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,38 +1,42 @@
|
|
|
1
|
-
import { defineAsyncComponent as Q, useSlots as
|
|
2
|
-
import { c as re, t as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { _ as
|
|
8
|
-
const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerColor: "#FFFFFF" } }, legend: { name: { color: "#CCCCCC" }, value: { color: "#CCCCCC" }, percentage: { color: "#CCCCCC" } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } },
|
|
1
|
+
import { defineAsyncComponent as Q, useSlots as Pe, onMounted as Z, ref as v, toRefs as ze, watch as ee, computed as F, createElementBlock as s, openBlock as r, normalizeStyle as g, createCommentVNode as h, createVNode as te, createBlock as Oe, createElementVNode as d, toDisplayString as S, unref as c, Fragment as _, renderList as D, normalizeClass as z, withCtx as oe, renderSlot as U, normalizeProps as le, guardReactiveProps as ae } from "vue";
|
|
2
|
+
import { c as re, t as Le, i as Ne, j as i, m as B, k as je, o as Ve, g as se, l as Me, d as R, X as Ue, s as ne, h as ue, a as ie, y as Re } from "./lib-CVHM9FhP.js";
|
|
3
|
+
import { u as Ge, a as G } from "./useNestedProp-Ckf_2P_V.js";
|
|
4
|
+
import { u as We, B as Ye } from "./BaseScanner-BMpwQAfz.js";
|
|
5
|
+
import { u as qe } from "./useThemeCheck-D1ZYXUwG.js";
|
|
6
|
+
import { u as He } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import { _ as Xe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const ce = { style: { legend: { show: !1 } } }, de = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerColor: "#FFFFFF" } }, legend: { show: !1, name: { color: "#CCCCCC" }, value: { color: "#CCCCCC" }, percentage: { color: "#CCCCCC" } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#3A3A3A" } } }, ve = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerColor: "#FFFFFF" } }, legend: { name: { color: "#CCCCCC" }, value: { color: "#CCCCCC" }, percentage: { color: "#CCCCCC" } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, pe = { style: { backgroundColor: "#FFF8E1", bar: { gradient: { underlayerColor: "#FFF8E1" } }, legend: { name: { color: "#424242" }, value: { color: "#424242" }, percentage: { color: "#424242" } }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, ge = { style: { backgroundColor: "#1E1E1E", bar: { gradient: { underlayerColor: "#FFF8E1" } }, legend: { name: { color: "#BDBDBD" }, value: { color: "#BDBDBD" }, percentage: { color: "#BDBDBD" } }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, fe = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerColor: "#1A1A1A" } }, legend: { name: { color: "#99AA99" }, value: { color: "#AACCAA" }, percentage: { color: "#99CC99" } }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } } } }, he = { style: { backgroundColor: "#fbfafa", bar: { gradient: { underlayerColor: "#fbfafa" } }, legend: { name: { color: "#8A9892" }, value: { color: "#A0AC94" }, percentage: { color: "#8A9892" } }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } } } }, ye = { style: { backgroundColor: "#f6f6fb", bar: { gradient: { underlayerColor: "#f6f6fb" } }, legend: { name: { color: "#50606C" }, value: { color: "#8A9892" }, percentage: { color: "#61747E" } }, title: { color: "#50606C", subtitle: { color: "#718890" } } } }, Ce = {
|
|
9
9
|
default: {},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
minimal: ce,
|
|
11
|
+
minimalDark: de,
|
|
12
|
+
dark: ve,
|
|
13
|
+
celebration: pe,
|
|
14
|
+
celebrationNight: ge,
|
|
15
|
+
hack: fe,
|
|
16
|
+
zen: he,
|
|
17
|
+
concrete: ye
|
|
18
|
+
}, At = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17
19
|
__proto__: null,
|
|
18
|
-
celebration:
|
|
19
|
-
celebrationNight:
|
|
20
|
-
concrete:
|
|
21
|
-
dark:
|
|
22
|
-
default:
|
|
23
|
-
hack:
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
celebration: pe,
|
|
21
|
+
celebrationNight: ge,
|
|
22
|
+
concrete: ye,
|
|
23
|
+
dark: ve,
|
|
24
|
+
default: Ce,
|
|
25
|
+
hack: fe,
|
|
26
|
+
minimal: ce,
|
|
27
|
+
minimalDark: de,
|
|
28
|
+
zen: he
|
|
29
|
+
}, Symbol.toStringTag, { value: "Module" })), Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"], Ze = ["stop-color"], et = ["stop-color"], tt = {
|
|
26
30
|
id: "stackPill",
|
|
27
31
|
clipPathUnits: "objectBoundingBox"
|
|
28
|
-
},
|
|
32
|
+
}, ot = ["fill"], lt = {
|
|
29
33
|
key: 0,
|
|
30
34
|
"clip-path": "url(#stackPill)"
|
|
31
|
-
},
|
|
35
|
+
}, at = ["x", "width", "height", "fill"], rt = ["x", "width", "height", "fill", "stroke"], st = ["x", "width", "height", "onClick", "onMouseenter", "onMouseleave"], nt = ["width", "height", "rx"], ut = ["onClick"], it = { style: { display: "flex", "flex-direction": "row", "align-items": "center", gap: "4px", "justify-content": "center" } }, ct = ["height", "width"], dt = ["id"], vt = ["stop-color"], pt = ["stop-color"], gt = ["fill"], ft = {
|
|
32
36
|
key: 2,
|
|
33
37
|
ref: "source",
|
|
34
38
|
dir: "auto"
|
|
35
|
-
},
|
|
39
|
+
}, ht = {
|
|
36
40
|
__name: "vue-ui-sparkstackbar",
|
|
37
41
|
props: {
|
|
38
42
|
config: {
|
|
@@ -49,13 +53,13 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
49
53
|
}
|
|
50
54
|
},
|
|
51
55
|
emits: ["selectDatapoint"],
|
|
52
|
-
setup(
|
|
53
|
-
const
|
|
56
|
+
setup(me, { expose: be, emit: ke }) {
|
|
57
|
+
const _e = Q(() => import("./PackageVersion-CQxJyGQr.js")), xe = Q(() => import("./Tooltip-B6qvABDL.js")), { vue_ui_sparkstackbar: we } = Ge(), { isThemeValid: Ae, warnInvalidTheme: Fe } = qe(), C = me, $e = Pe();
|
|
54
58
|
Z(() => {
|
|
55
|
-
|
|
59
|
+
$e["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
56
60
|
});
|
|
57
|
-
const W = v(null), T = v(re()), O = v(!1), L = v(""), e = v(N()), { loading: x, FINAL_DATASET:
|
|
58
|
-
...
|
|
61
|
+
const W = v(null), T = v(re()), O = v(!1), L = v(""), e = v(N()), { loading: x, FINAL_DATASET: m } = We({
|
|
62
|
+
...ze(C),
|
|
59
63
|
FINAL_CONFIG: e,
|
|
60
64
|
prepareConfig: N,
|
|
61
65
|
skeletonDataset: [
|
|
@@ -63,7 +67,7 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
63
67
|
{ name: "_", value: 5, color: "#ADADAD" },
|
|
64
68
|
{ name: "_", value: 3, color: "#DBDBDB" }
|
|
65
69
|
],
|
|
66
|
-
skeletonConfig:
|
|
70
|
+
skeletonConfig: Le({
|
|
67
71
|
defaultConfig: e.value,
|
|
68
72
|
userConfig: {
|
|
69
73
|
style: {
|
|
@@ -76,36 +80,36 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
76
80
|
}
|
|
77
81
|
}
|
|
78
82
|
})
|
|
79
|
-
}), { svgRef:
|
|
83
|
+
}), { svgRef: Se } = He({ config: e.value.style.title });
|
|
80
84
|
function N() {
|
|
81
85
|
const t = G({
|
|
82
|
-
userConfig:
|
|
83
|
-
defaultConfig:
|
|
86
|
+
userConfig: C.config,
|
|
87
|
+
defaultConfig: we
|
|
84
88
|
}), l = t.theme;
|
|
85
89
|
if (!l) return t;
|
|
86
|
-
if (!
|
|
87
|
-
return
|
|
90
|
+
if (!Ae.value(t))
|
|
91
|
+
return Fe(t), t;
|
|
88
92
|
const o = G({
|
|
89
|
-
userConfig:
|
|
93
|
+
userConfig: Ce[l] || C.config,
|
|
90
94
|
defaultConfig: t
|
|
91
95
|
}), a = G({
|
|
92
|
-
userConfig:
|
|
96
|
+
userConfig: C.config,
|
|
93
97
|
defaultConfig: o
|
|
94
98
|
});
|
|
95
99
|
return {
|
|
96
100
|
...a,
|
|
97
|
-
customPalette: a.customPalette.length ? a.customPalette :
|
|
101
|
+
customPalette: a.customPalette.length ? a.customPalette : Ne[l] || i
|
|
98
102
|
};
|
|
99
103
|
}
|
|
100
|
-
ee(() =>
|
|
104
|
+
ee(() => C.config, (t) => {
|
|
101
105
|
e.value = N(), H();
|
|
102
|
-
}, { deep: !0 }), ee(() =>
|
|
103
|
-
|
|
106
|
+
}, { deep: !0 }), ee(() => m.value, (t) => {
|
|
107
|
+
b.value = m.value.map((l, o) => ({
|
|
104
108
|
...l,
|
|
105
109
|
color: l.color ? B(l.color) : $.value[o] || i[o] || i[o % i.length]
|
|
106
110
|
})), Y();
|
|
107
111
|
}, { deep: !0 });
|
|
108
|
-
const $ = F(() =>
|
|
112
|
+
const $ = F(() => je(e.value.customPalette)), b = v(m.value.map((t, l) => ({
|
|
109
113
|
...t,
|
|
110
114
|
value: e.value.style.animation.show ? 0 : t.value || 0,
|
|
111
115
|
color: t.color ? B(t.color) : $.value[l] || i[l] || i[l % i.length]
|
|
@@ -115,19 +119,19 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
115
119
|
k.value = !1;
|
|
116
120
|
return;
|
|
117
121
|
}
|
|
118
|
-
const t = e.value.style.animation.animationFrames, l =
|
|
122
|
+
const t = e.value.style.animation.animationFrames, l = m.value.map((n) => n.value || 0), o = l.map((n) => n / t), a = l.reduce((n, u) => n + u, 0);
|
|
119
123
|
let y = 0;
|
|
120
|
-
k.value = !0,
|
|
124
|
+
k.value = !0, b.value = m.value.map((n, u) => ({
|
|
121
125
|
...n,
|
|
122
126
|
value: 0,
|
|
123
127
|
color: n.color ? B(n.color) : $.value[u] || i[u] || i[u % i.length]
|
|
124
128
|
}));
|
|
125
129
|
function P() {
|
|
126
|
-
y += a / t, y < a ? (
|
|
130
|
+
y += a / t, y < a ? (b.value = b.value.map((n, u) => ({
|
|
127
131
|
...n,
|
|
128
132
|
value: Math.min(n.value + o[u], l[u]),
|
|
129
133
|
color: n.color ? B(n.color) : $.value[u] || i[u] || i[u % i.length]
|
|
130
|
-
})), requestAnimationFrame(P)) : (k.value = !1,
|
|
134
|
+
})), requestAnimationFrame(P)) : (k.value = !1, b.value = m.value.map((n, u) => ({
|
|
131
135
|
...n,
|
|
132
136
|
value: l[u],
|
|
133
137
|
color: n.color ? B(n.color) : $.value[u] || i[u] || i[u % i.length],
|
|
@@ -141,12 +145,12 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
141
145
|
});
|
|
142
146
|
const q = F(() => e.value.debug);
|
|
143
147
|
function H() {
|
|
144
|
-
|
|
148
|
+
Ve(C.dataset) ? se({
|
|
145
149
|
componentName: "VueUiSparkStackbar",
|
|
146
150
|
type: "dataset",
|
|
147
151
|
debug: q.value
|
|
148
|
-
}) :
|
|
149
|
-
|
|
152
|
+
}) : C.dataset.forEach((t, l) => {
|
|
153
|
+
Me({
|
|
150
154
|
datasetObject: t,
|
|
151
155
|
requiredAttributes: ["name", "value"]
|
|
152
156
|
}).forEach((o) => {
|
|
@@ -163,7 +167,7 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
163
167
|
const f = v({
|
|
164
168
|
width: 500,
|
|
165
169
|
height: 16
|
|
166
|
-
}), p = v([]), X = F(() =>
|
|
170
|
+
}), p = v([]), X = F(() => m.value.map((t) => t.value || 0).filter((t, l) => !p.value.includes(l)).reduce((t, l) => t + l, 0)), w = F(() => b.value.map((t, l) => {
|
|
167
171
|
const o = t.value || 0, a = o / X.value, y = isNaN(a) ? 0 : a, P = y * f.value.width;
|
|
168
172
|
return {
|
|
169
173
|
...t,
|
|
@@ -179,7 +183,7 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
179
183
|
};
|
|
180
184
|
})), j = F(() => w.value.filter((t, l) => !p.value.includes(l)));
|
|
181
185
|
function V(t) {
|
|
182
|
-
p.value.includes(t) ? p.value = p.value.filter((l) => l !== t) : p.value.length <
|
|
186
|
+
p.value.includes(t) ? p.value = p.value.filter((l) => l !== t) : p.value.length < b.value.length - 1 && p.value.push(t);
|
|
183
187
|
}
|
|
184
188
|
function J(t) {
|
|
185
189
|
if (!w.value.length)
|
|
@@ -187,11 +191,11 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
187
191
|
const l = w.value.find((o) => o.name === t);
|
|
188
192
|
return l || (e.value.debug && console.warn(`VueUiSparkStackbar - Series name not found "${t}"`), null);
|
|
189
193
|
}
|
|
190
|
-
function
|
|
194
|
+
function De(t) {
|
|
191
195
|
const l = J(t);
|
|
192
196
|
l !== null && p.value.includes(l.id) && V(l.seriesIndex);
|
|
193
197
|
}
|
|
194
|
-
function
|
|
198
|
+
function Be(t) {
|
|
195
199
|
const l = J(t);
|
|
196
200
|
l !== null && (p.value.includes(l.id) || V(l.seriesIndex));
|
|
197
201
|
}
|
|
@@ -204,20 +208,20 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
204
208
|
start: t
|
|
205
209
|
}), t += j.value[o].width;
|
|
206
210
|
return l;
|
|
207
|
-
}),
|
|
211
|
+
}), Te = ke;
|
|
208
212
|
function K(t, l, o = !1) {
|
|
209
|
-
|
|
213
|
+
Te("selectDatapoint", { datapoint: t, index: l }), e.value.events.datapointClick && !o && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.seriesIndex });
|
|
210
214
|
}
|
|
211
215
|
const M = v(null), I = v(!1), A = v(null);
|
|
212
|
-
function
|
|
216
|
+
function Ee({ datapoint: t, seriesIndex: l }) {
|
|
213
217
|
O.value = !1, A.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex });
|
|
214
218
|
}
|
|
215
|
-
function
|
|
219
|
+
function Ie({ datapoint: t, seriesIndex: l }) {
|
|
216
220
|
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.seriesIndex }), !e.value.style.tooltip.show)
|
|
217
221
|
return;
|
|
218
222
|
M.value = { datapoint: t, seriesIndex: l, config: e.value, series: w.value }, O.value = !0, A.value = l;
|
|
219
223
|
const o = e.value.style.tooltip.customFormat;
|
|
220
|
-
if (
|
|
224
|
+
if (Re(o))
|
|
221
225
|
try {
|
|
222
226
|
const a = o({
|
|
223
227
|
seriesIndex: t.seriesIndex,
|
|
@@ -247,9 +251,9 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
247
251
|
)})</span>`, L.value = `<div>${a}</div>`;
|
|
248
252
|
}
|
|
249
253
|
}
|
|
250
|
-
return
|
|
251
|
-
hideSeries:
|
|
252
|
-
showSeries:
|
|
254
|
+
return be({
|
|
255
|
+
hideSeries: Be,
|
|
256
|
+
showSeries: De
|
|
253
257
|
}), (t, l) => (r(), s("div", {
|
|
254
258
|
class: "vue-data-ui-component vue-ui-spark-stackbar",
|
|
255
259
|
ref_key: "sparkstackbarChart",
|
|
@@ -272,12 +276,12 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
272
276
|
], 4)) : h("", !0),
|
|
273
277
|
(r(), s("svg", {
|
|
274
278
|
ref_key: "svgRef",
|
|
275
|
-
ref:
|
|
276
|
-
xmlns: c(
|
|
279
|
+
ref: Se,
|
|
280
|
+
xmlns: c(Ue),
|
|
277
281
|
width: "100%",
|
|
278
282
|
viewBox: `0 0 ${f.value.width} ${f.value.height}`
|
|
279
283
|
}, [
|
|
280
|
-
te(c(
|
|
284
|
+
te(c(_e)),
|
|
281
285
|
d("defs", null, [
|
|
282
286
|
(r(!0), s(_, null, D(E.value, (o, a) => (r(), s("linearGradient", {
|
|
283
287
|
key: `stack_gradient_${a}`,
|
|
@@ -287,17 +291,17 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
287
291
|
d("stop", {
|
|
288
292
|
offset: "0%",
|
|
289
293
|
"stop-color": o.color
|
|
290
|
-
}, null, 8,
|
|
294
|
+
}, null, 8, Qe),
|
|
291
295
|
d("stop", {
|
|
292
296
|
offset: "50%",
|
|
293
297
|
"stop-color": c(ne)(c(ue)(o.color, 0.05), 100 - e.value.style.bar.gradient.intensity)
|
|
294
|
-
}, null, 8,
|
|
298
|
+
}, null, 8, Ze),
|
|
295
299
|
d("stop", {
|
|
296
300
|
offset: "100%",
|
|
297
301
|
"stop-color": o.color
|
|
298
|
-
}, null, 8,
|
|
299
|
-
], 8,
|
|
300
|
-
d("clipPath",
|
|
302
|
+
}, null, 8, et)
|
|
303
|
+
], 8, Ke))), 128)),
|
|
304
|
+
d("clipPath", tt, [
|
|
301
305
|
d("rect", {
|
|
302
306
|
x: "0.005",
|
|
303
307
|
y: "-2",
|
|
@@ -306,10 +310,10 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
306
310
|
rx: "3",
|
|
307
311
|
ry: "3",
|
|
308
312
|
fill: e.value.style.backgroundColor
|
|
309
|
-
}, null, 8,
|
|
313
|
+
}, null, 8, ot)
|
|
310
314
|
])
|
|
311
315
|
]),
|
|
312
|
-
X.value > 0 ? (r(), s("g",
|
|
316
|
+
X.value > 0 ? (r(), s("g", lt, [
|
|
313
317
|
(r(!0), s(_, null, D(E.value, (o, a) => (r(), s("rect", {
|
|
314
318
|
key: `stack_underlayer_${a}`,
|
|
315
319
|
x: o.start,
|
|
@@ -321,7 +325,7 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
321
325
|
style: g({
|
|
322
326
|
opacity: A.value !== null && e.value.style.tooltip.show ? A.value === a ? 1 : 0.5 : 1
|
|
323
327
|
})
|
|
324
|
-
}, null, 14,
|
|
328
|
+
}, null, 14, at))), 128)),
|
|
325
329
|
(r(!0), s(_, null, D(E.value, (o, a) => (r(), s("rect", {
|
|
326
330
|
key: `stack_${a}`,
|
|
327
331
|
x: o.start,
|
|
@@ -335,7 +339,7 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
335
339
|
style: g({
|
|
336
340
|
opacity: A.value !== null && e.value.style.tooltip.show ? A.value === a ? 1 : 0.5 : 1
|
|
337
341
|
})
|
|
338
|
-
}, null, 14,
|
|
342
|
+
}, null, 14, rt))), 128)),
|
|
339
343
|
(r(!0), s(_, null, D(E.value, (o, a) => (r(), s("rect", {
|
|
340
344
|
key: `stack_trap_${a}`,
|
|
341
345
|
x: o.start,
|
|
@@ -346,9 +350,9 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
346
350
|
stroke: "none",
|
|
347
351
|
class: z({ animated: !k.value && !c(x) }),
|
|
348
352
|
onClick: () => K(o, a),
|
|
349
|
-
onMouseenter: () =>
|
|
350
|
-
onMouseleave: (y) =>
|
|
351
|
-
}, null, 42,
|
|
353
|
+
onMouseenter: () => Ie({ datapoint: o, seriesIndex: a }),
|
|
354
|
+
onMouseleave: (y) => Ee({ datapoint: o, seriesIndex: a })
|
|
355
|
+
}, null, 42, st))), 128))
|
|
352
356
|
])) : (r(), s("rect", {
|
|
353
357
|
key: 1,
|
|
354
358
|
x: 2,
|
|
@@ -359,8 +363,8 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
359
363
|
"stroke-width": "2",
|
|
360
364
|
fill: "transparent",
|
|
361
365
|
rx: (f.value.height - 4) / 2
|
|
362
|
-
}, null, 8,
|
|
363
|
-
], 8,
|
|
366
|
+
}, null, 8, nt))
|
|
367
|
+
], 8, Je)),
|
|
364
368
|
e.value.style.legend.show ? (r(), s("div", {
|
|
365
369
|
key: 1,
|
|
366
370
|
style: g(`background:transparent;margin:0 auto;margin:${e.value.style.legend.margin};justify-content:${e.value.style.legend.textAlign === "left" ? "flex-start" : e.value.style.legend.textAlign === "right" ? "flex-end" : "center"}`),
|
|
@@ -373,7 +377,7 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
373
377
|
V(a), K(o, a, !0);
|
|
374
378
|
}
|
|
375
379
|
}, [
|
|
376
|
-
d("div",
|
|
380
|
+
d("div", it, [
|
|
377
381
|
(r(), s("svg", {
|
|
378
382
|
height: `${e.value.style.legend.fontSize}px`,
|
|
379
383
|
width: `${e.value.style.legend.fontSize}px`,
|
|
@@ -386,20 +390,20 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
386
390
|
d("stop", {
|
|
387
391
|
offset: "0%",
|
|
388
392
|
"stop-color": c(x) ? "#FFFFFF" : c(ne)(c(ue)(o.color, 0.05), 100 - e.value.style.bar.gradient.intensity)
|
|
389
|
-
}, null, 8,
|
|
393
|
+
}, null, 8, vt),
|
|
390
394
|
d("stop", {
|
|
391
395
|
offset: "100%",
|
|
392
396
|
"stop-color": o.color
|
|
393
|
-
}, null, 8,
|
|
394
|
-
], 8,
|
|
397
|
+
}, null, 8, pt)
|
|
398
|
+
], 8, dt)
|
|
395
399
|
]),
|
|
396
400
|
d("circle", {
|
|
397
401
|
cx: 5,
|
|
398
402
|
cy: 5,
|
|
399
403
|
r: 5,
|
|
400
404
|
fill: e.value.style.bar.gradient.show ? `url(#legend_grad_${a}-${T.value})` : o.color
|
|
401
|
-
}, null, 8,
|
|
402
|
-
], 8,
|
|
405
|
+
}, null, 8, gt)
|
|
406
|
+
], 8, ct)),
|
|
403
407
|
c(x) ? h("", !0) : (r(), s(_, { key: 0 }, [
|
|
404
408
|
d("span", {
|
|
405
409
|
style: g(`color:${e.value.style.legend.name.color}; font-weight:${e.value.style.legend.name.bold ? "bold" : "normal"}`)
|
|
@@ -426,9 +430,9 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
426
430
|
], 64))
|
|
427
431
|
], 64))
|
|
428
432
|
])
|
|
429
|
-
], 14,
|
|
433
|
+
], 14, ut))), 256))
|
|
430
434
|
], 4)) : h("", !0),
|
|
431
|
-
te(c(
|
|
435
|
+
te(c(xe), {
|
|
432
436
|
teleportTo: e.value.style.tooltip.teleportTo,
|
|
433
437
|
show: O.value && e.value.style.tooltip.show,
|
|
434
438
|
parent: W.value,
|
|
@@ -457,18 +461,18 @@ const ce = { style: { backgroundColor: "#1A1A1A", bar: { gradient: { underlayerC
|
|
|
457
461
|
]),
|
|
458
462
|
_: 3
|
|
459
463
|
}, 8, ["teleportTo", "show", "parent", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "content", "isCustom", "offsetY", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
460
|
-
t.$slots.source ? (r(), s("div",
|
|
464
|
+
t.$slots.source ? (r(), s("div", ft, [
|
|
461
465
|
U(t.$slots, "source", {}, void 0, !0)
|
|
462
466
|
], 512)) : h("", !0),
|
|
463
|
-
c(x) ? (r(),
|
|
467
|
+
c(x) ? (r(), Oe(Ye, { key: 3 })) : h("", !0)
|
|
464
468
|
], 4));
|
|
465
469
|
}
|
|
466
|
-
},
|
|
470
|
+
}, yt = /* @__PURE__ */ Xe(ht, [["__scopeId", "data-v-aab967dc"]]), Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
467
471
|
__proto__: null,
|
|
468
|
-
default:
|
|
472
|
+
default: yt
|
|
469
473
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
470
474
|
export {
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
475
|
+
At as a,
|
|
476
|
+
Ft as b,
|
|
477
|
+
yt as v
|
|
474
478
|
};
|