vue-data-ui 2.12.6 → 2.12.7-beta.1
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-Bd9ZVBnX.js → Arrow-C5-RFd0F.js} +1 -1
- package/dist/BaseDraggableDialog-CKbomZCX.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-DhWmrDAn.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-F4TctKaQ.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Y5HbiUZU.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DtTYopxf.js} +8 -8
- package/dist/NonSvgPenAndPaper-PC9Yu1K_.js +467 -0
- package/dist/PackageVersion-DaWGaZxE.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-C-CpE0NC.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-C69a0f29.js → Shape-B6kIkp2s.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-DXpA-pZk.js} +2 -2
- package/dist/SparkTooltip-DcdMxgqn.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-Bc66VstS.js} +2 -2
- package/dist/Tooltip-B07vY6jm.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-C8X2STEg.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DH-7H-9g.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-CEn9LJxg.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BHEd2dgu.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BfkyEFza.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-CZztHZIm.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-C8URL2IU.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-C0tGhjs9.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-CriyJ0Da.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-DntThSTF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BwgozppD.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-B7jNrpQ0.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-C20X1YRt.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-B264jwvu.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-ECSEPy9m.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-BxjeL4B6.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-CJNnQbPC.js} +356 -364
- package/dist/vue-ui-circle-pack-0RLVrL7y.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-c9pZbUX7.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-DJTFcJry.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-Cwy7WTqM.js} +2 -2
- package/dist/vue-ui-donut-BIFf4SLq.js +1292 -0
- package/dist/vue-ui-donut-evolution-mc_-1JSs.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-D50S44wU.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-CxDTjjYn.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DeC0U017.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-n0MW2u-q.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-AYMCSEtU.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-Ckz1h7XW.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-m0SgFsTu.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-BrcF_YLL.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-DiVxDYiV.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-CqbUMft8.js} +2 -2
- package/dist/vue-ui-molecule-BCUC8QED.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-DrrjD9S1.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-8RTss1yH.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-CmPLnisN.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-BsbEUu_g.js} +292 -298
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-CdM3bVZs.js} +403 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-C-lgCI6O.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Dq94lb99.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-DceDRLFc.js} +2 -2
- package/dist/vue-ui-relation-circle-DsKddA_I.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-CVR7NvJ_.js} +313 -317
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-B0soMLZ5.js} +260 -266
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Bq4_NUfW.js} +368 -374
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CG3Pn3Zg.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-aGKTgh42.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend--6lA4742.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-BXx7Vglf.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-zM4_Tgqb.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-BDNrZbWN.js} +93 -95
- package/dist/vue-ui-sparkline-CzzyDmYJ.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-tBSUQ_09.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-BriZOfj6.js} +409 -412
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-DzYyFp3o.js} +240 -246
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-C2qosrZR.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-COKfg2KT.js} +90 -90
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-D7C5AiCp.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-CDG6vSMm.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-DOoO0CVB.js} +180 -181
- package/dist/vue-ui-tiremarks-BSPIy1A3.js +341 -0
- package/dist/vue-ui-treemap-DsMmxgin.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-B2_ZHuyv.js} +381 -386
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-YhkwHcUX.js} +312 -318
- package/dist/vue-ui-wheel-CWHJwyyL.js +335 -0
- package/dist/vue-ui-word-cloud-BLgEqHRF.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-BQelvSLD.js} +389 -400
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-D1luVUXJ.js} +845 -846
- package/dist/vue-ui-xy-canvas-C7Pu9RFN.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
- package/dist/PackageVersion-BjrblLPQ.js +0 -10
- package/dist/Tooltip-CWmRmhJr.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
- package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
- package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
- package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
- package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
- package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
- package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
- package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
- package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
- package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
- package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { _ as
|
|
7
|
-
|
|
8
|
-
import { _ as he } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width", "height"], be = ["id"], _e = ["stop-color"], xe = ["stop-color"], ke = ["id"], we = ["stop-color"], $e = ["stop-color"], Ce = ["id"], Le = ["stop-color"], ze = ["stop-color"], Se = { key: 1 }, Ae = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Me = { key: 2 }, Ne = ["x", "y", "font-size", "font-weight", "fill"], De = ["x", "y", "font-size", "fill"], Ie = ["x", "y", "font-size", "fill"], Ve = ["height", "width", "x", "onMouseover", "stroke", "stroke-width", "rx", "stroke-dasharray", "onClick"], Ee = {
|
|
1
|
+
import { useCssVars as le, computed as _, defineAsyncComponent as N, onMounted as ae, ref as D, watch as se, createElementBlock as s, openBlock as a, normalizeStyle as $, createCommentVNode as c, createBlock as V, createElementVNode as h, createTextVNode as oe, toDisplayString as p, unref as n, createVNode as ie, renderSlot as I, Fragment as f, renderList as g, normalizeClass as E } from "vue";
|
|
2
|
+
import { u as ue, o as re, e as H, g as ne, c as ve, a as de, s as b, i as F, f as O, X as ce, w as z } from "./index-BHEd2dgu.js";
|
|
3
|
+
import { u as W } from "./useNestedProp-CZztHZIm.js";
|
|
4
|
+
import { u as ye } from "./useChartAccessibility-9icAAmYg.js";
|
|
5
|
+
import he from "./Shape-B6kIkp2s.js";
|
|
6
|
+
import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
const ge = { key: 0 }, pe = { key: 1 }, be = ["xmlns", "viewBox"], me = ["width", "height"], _e = ["id"], xe = ["stop-color"], ke = ["stop-color"], we = ["id"], $e = ["stop-color"], Ce = ["stop-color"], Le = ["id"], ze = ["stop-color"], Se = ["stop-color"], Ae = { key: 1 }, Me = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Ne = { key: 2 }, De = ["x", "y", "font-size", "font-weight", "fill"], Ve = ["x", "y", "font-size", "fill"], Ie = ["x", "y", "font-size", "fill"], Ee = ["height", "width", "x", "onMouseover", "stroke", "stroke-width", "rx", "stroke-dasharray", "onClick"], He = {
|
|
10
8
|
key: 2,
|
|
11
9
|
ref: "source",
|
|
12
10
|
dir: "auto"
|
|
13
|
-
},
|
|
11
|
+
}, Fe = {
|
|
14
12
|
__name: "vue-ui-sparkhistogram",
|
|
15
13
|
props: {
|
|
16
14
|
config: {
|
|
@@ -27,53 +25,53 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
27
25
|
}
|
|
28
26
|
},
|
|
29
27
|
emits: ["selectDatapoint"],
|
|
30
|
-
setup(
|
|
31
|
-
|
|
32
|
-
"
|
|
28
|
+
setup(B, { emit: U }) {
|
|
29
|
+
le((l) => ({
|
|
30
|
+
"2d6ebc7a": J.value
|
|
33
31
|
}));
|
|
34
|
-
const { vue_ui_sparkhistogram:
|
|
35
|
-
|
|
32
|
+
const j = N(() => import("./PackageVersion-DaWGaZxE.js")), R = N(() => import("./vue-ui-skeleton-CG3Pn3Zg.js")), { vue_ui_sparkhistogram: X } = ue(), d = B, S = _(() => !!d.dataset && d.dataset.length);
|
|
33
|
+
ae(() => {
|
|
36
34
|
A();
|
|
37
35
|
});
|
|
38
36
|
function A() {
|
|
39
|
-
|
|
37
|
+
re(d.dataset) ? H({
|
|
40
38
|
componentName: "VueUiSparkHistogram",
|
|
41
39
|
type: "dataset"
|
|
42
|
-
}) : d.dataset.forEach((l,
|
|
43
|
-
|
|
40
|
+
}) : d.dataset.forEach((l, u) => {
|
|
41
|
+
ne({
|
|
44
42
|
datasetObject: l,
|
|
45
43
|
requiredAttributes: ["value"]
|
|
46
44
|
}).forEach((t) => {
|
|
47
|
-
|
|
45
|
+
H({
|
|
48
46
|
componentName: "VueUiSparkHistogram",
|
|
49
47
|
type: "datasetSerieAttribute",
|
|
50
48
|
property: t,
|
|
51
|
-
index:
|
|
49
|
+
index: u
|
|
52
50
|
});
|
|
53
51
|
});
|
|
54
52
|
});
|
|
55
53
|
}
|
|
56
|
-
const
|
|
54
|
+
const m = D(ve()), e = _({
|
|
57
55
|
get: () => M(),
|
|
58
56
|
set: (l) => l
|
|
59
|
-
}), { svgRef:
|
|
57
|
+
}), { svgRef: G } = ye({ config: e.value.style.title });
|
|
60
58
|
function M() {
|
|
61
|
-
const l =
|
|
59
|
+
const l = W({
|
|
62
60
|
userConfig: d.config,
|
|
63
|
-
defaultConfig:
|
|
61
|
+
defaultConfig: X
|
|
64
62
|
});
|
|
65
63
|
return l.theme ? {
|
|
66
|
-
...
|
|
67
|
-
userConfig:
|
|
64
|
+
...W({
|
|
65
|
+
userConfig: de.vue_ui_sparkhistogram[l.theme] || d.config,
|
|
68
66
|
defaultConfig: l
|
|
69
67
|
})
|
|
70
68
|
} : l;
|
|
71
69
|
}
|
|
72
|
-
|
|
70
|
+
se(() => d.config, (l) => {
|
|
73
71
|
e.value = M(), A();
|
|
74
72
|
}, { deep: !0 });
|
|
75
73
|
const v = _(() => {
|
|
76
|
-
const l = e.value.style.layout.height,
|
|
74
|
+
const l = e.value.style.layout.height, u = e.value.style.layout.width, t = e.value.style.layout.padding.top, o = l - e.value.style.layout.padding.bottom, y = e.value.style.layout.padding.left, x = u - e.value.style.layout.padding.right, k = t + (l - t - e.value.style.layout.padding.bottom) / 2, C = l - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom, w = u - e.value.style.layout.padding.left - e.value.style.layout.padding.right;
|
|
77
75
|
return {
|
|
78
76
|
bottom: o,
|
|
79
77
|
centerY: k,
|
|
@@ -83,38 +81,38 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
83
81
|
left: y,
|
|
84
82
|
right: x,
|
|
85
83
|
top: t,
|
|
86
|
-
width:
|
|
84
|
+
width: u
|
|
87
85
|
};
|
|
88
|
-
}),
|
|
89
|
-
function
|
|
90
|
-
return Math.abs(l) /
|
|
86
|
+
}), Y = _(() => Math.max(...d.dataset.map((l) => Math.abs(l.value || 0))));
|
|
87
|
+
function q(l) {
|
|
88
|
+
return Math.abs(l) / Y.value;
|
|
91
89
|
}
|
|
92
|
-
const r = _(() => d.dataset.map((l,
|
|
93
|
-
const t =
|
|
90
|
+
const r = _(() => d.dataset.map((l, u) => {
|
|
91
|
+
const t = q(l.value || 0), o = v.value.drawingHeight * t, y = v.value.drawingWidth / d.dataset.length, x = y * (e.value.style.bars.gap / 100), k = y - x, C = v.value.centerY - o / 2, w = v.value.left + (x / 2 + u * y), K = v.value.left + u * y, L = typeof l.intensity > "u" ? 100 : Math.round(l.intensity * 100), Q = l.color ? l.color : l.value >= 0 ? b(e.value.style.bars.colors.positive, L) : b(e.value.style.bars.colors.negative, L), Z = l.color ? l.color : l.value >= 0 ? e.value.style.bars.colors.positive : e.value.style.bars.colors.negative, ee = l.color ? `url(#gradient_datapoint_${u}_${m.value})` : l.value >= 0 ? `url(#gradient_positive_${u}_${m.value})` : `url(#gradient_negative_${u}_${m.value})`, te = w + k / 2;
|
|
94
92
|
return {
|
|
95
93
|
...l,
|
|
96
|
-
color:
|
|
97
|
-
gradient:
|
|
94
|
+
color: Q,
|
|
95
|
+
gradient: ee,
|
|
98
96
|
height: o,
|
|
99
97
|
intensity: L,
|
|
100
98
|
proportion: t,
|
|
101
|
-
stroke:
|
|
102
|
-
textAnchor:
|
|
103
|
-
trapX:
|
|
99
|
+
stroke: Z,
|
|
100
|
+
textAnchor: te,
|
|
101
|
+
trapX: K,
|
|
104
102
|
unitWidth: y,
|
|
105
103
|
width: k,
|
|
106
104
|
x: w,
|
|
107
105
|
y: C
|
|
108
106
|
};
|
|
109
|
-
})),
|
|
110
|
-
function
|
|
111
|
-
|
|
107
|
+
})), i = D(null), P = U;
|
|
108
|
+
function T(l, u) {
|
|
109
|
+
P("selectDatapoint", { datapoint: l, index: u });
|
|
112
110
|
}
|
|
113
|
-
const
|
|
114
|
-
return (l,
|
|
111
|
+
const J = _(() => `${e.value.style.animation.speedMs}ms`);
|
|
112
|
+
return (l, u) => (a(), s("div", {
|
|
115
113
|
class: "vue-ui-spark-histogram",
|
|
116
114
|
style: $(`width:100%;background:${e.value.style.backgroundColor};font-family:${e.value.style.fontFamily}`),
|
|
117
|
-
onMouseleave:
|
|
115
|
+
onMouseleave: u[1] || (u[1] = (t) => i.value = null)
|
|
118
116
|
}, [
|
|
119
117
|
e.value.style.title.text ? (a(), s("div", {
|
|
120
118
|
key: 0,
|
|
@@ -123,19 +121,19 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
123
121
|
h("div", {
|
|
124
122
|
style: $(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
|
|
125
123
|
}, [
|
|
126
|
-
|
|
127
|
-
|
|
124
|
+
oe(p(e.value.style.title.text) + " ", 1),
|
|
125
|
+
i.value !== null ? (a(), s("span", ge, "- " + p(r.value[i.value].timeLabel || "") + " " + p(n(F)(
|
|
128
126
|
e.value.style.labels.value.formatter,
|
|
129
|
-
r.value[
|
|
130
|
-
n(
|
|
127
|
+
r.value[i.value].value,
|
|
128
|
+
n(O)({
|
|
131
129
|
p: e.value.style.labels.value.prefix,
|
|
132
|
-
v: r.value[
|
|
130
|
+
v: r.value[i.value].value,
|
|
133
131
|
s: e.value.style.labels.value.suffix,
|
|
134
132
|
r: e.value.style.labels.value.rounding
|
|
135
133
|
}),
|
|
136
|
-
{ datapoint: r.value[
|
|
134
|
+
{ datapoint: r.value[i.value], seriesIndex: i.value }
|
|
137
135
|
)), 1)) : c("", !0),
|
|
138
|
-
![void 0, null].includes(
|
|
136
|
+
![void 0, null].includes(i.value) && ![null, void 0].includes(r.value[i.value].valueLabel) ? (a(), s("span", pe, "(" + p(r.value[i.value].valueLabel || 0) + ")", 1)) : c("", !0)
|
|
139
137
|
], 4),
|
|
140
138
|
e.value.style.title.subtitle.text ? (a(), s("div", {
|
|
141
139
|
key: 0,
|
|
@@ -145,12 +143,12 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
145
143
|
S.value ? (a(), s("svg", {
|
|
146
144
|
key: 1,
|
|
147
145
|
ref_key: "svgRef",
|
|
148
|
-
ref:
|
|
149
|
-
xmlns: n(
|
|
146
|
+
ref: G,
|
|
147
|
+
xmlns: n(ce),
|
|
150
148
|
viewBox: `0 0 ${v.value.width} ${v.value.height}`,
|
|
151
149
|
style: { overflow: "visible" }
|
|
152
150
|
}, [
|
|
153
|
-
|
|
151
|
+
ie(n(j)),
|
|
154
152
|
l.$slots["chart-background"] ? (a(), s("foreignObject", {
|
|
155
153
|
key: 0,
|
|
156
154
|
x: 0,
|
|
@@ -165,7 +163,7 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
165
163
|
], 8, me)) : c("", !0),
|
|
166
164
|
h("defs", null, [
|
|
167
165
|
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("radialGradient", {
|
|
168
|
-
id: `gradient_positive_${o}_${
|
|
166
|
+
id: `gradient_positive_${o}_${m.value}`,
|
|
169
167
|
cy: "50%",
|
|
170
168
|
cx: "50%",
|
|
171
169
|
r: "50%",
|
|
@@ -174,15 +172,15 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
174
172
|
}, [
|
|
175
173
|
h("stop", {
|
|
176
174
|
offset: "0%",
|
|
177
|
-
"stop-color": n(
|
|
178
|
-
}, null, 8,
|
|
175
|
+
"stop-color": n(b)(n(z)(e.value.style.bars.colors.positive, 0.05), t.intensity)
|
|
176
|
+
}, null, 8, xe),
|
|
179
177
|
h("stop", {
|
|
180
178
|
offset: "100%",
|
|
181
|
-
"stop-color": n(
|
|
182
|
-
}, null, 8,
|
|
183
|
-
], 8,
|
|
179
|
+
"stop-color": n(b)(e.value.style.bars.colors.positive, t.intensity)
|
|
180
|
+
}, null, 8, ke)
|
|
181
|
+
], 8, _e))), 256)),
|
|
184
182
|
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("radialGradient", {
|
|
185
|
-
id: `gradient_negative_${o}_${
|
|
183
|
+
id: `gradient_negative_${o}_${m.value}`,
|
|
186
184
|
cy: "50%",
|
|
187
185
|
cx: "50%",
|
|
188
186
|
r: "50%",
|
|
@@ -191,15 +189,15 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
191
189
|
}, [
|
|
192
190
|
h("stop", {
|
|
193
191
|
offset: "0%",
|
|
194
|
-
"stop-color": n(
|
|
195
|
-
}, null, 8,
|
|
192
|
+
"stop-color": n(b)(n(z)(e.value.style.bars.colors.negative, 0.05), t.intensity)
|
|
193
|
+
}, null, 8, $e),
|
|
196
194
|
h("stop", {
|
|
197
195
|
offset: "100%",
|
|
198
|
-
"stop-color": n(
|
|
199
|
-
}, null, 8,
|
|
200
|
-
], 8,
|
|
196
|
+
"stop-color": n(b)(e.value.style.bars.colors.negative, t.intensity)
|
|
197
|
+
}, null, 8, Ce)
|
|
198
|
+
], 8, we))), 256)),
|
|
201
199
|
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("radialGradient", {
|
|
202
|
-
id: `gradient_datapoint_${o}_${
|
|
200
|
+
id: `gradient_datapoint_${o}_${m.value}`,
|
|
203
201
|
cy: "50%",
|
|
204
202
|
cx: "50%",
|
|
205
203
|
r: "50%",
|
|
@@ -208,15 +206,15 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
208
206
|
}, [
|
|
209
207
|
h("stop", {
|
|
210
208
|
offset: "0%",
|
|
211
|
-
"stop-color": n(
|
|
212
|
-
}, null, 8,
|
|
209
|
+
"stop-color": n(b)(n(z)(t.color, 0.05), t.intensity)
|
|
210
|
+
}, null, 8, ze),
|
|
213
211
|
h("stop", {
|
|
214
212
|
offset: "100%",
|
|
215
|
-
"stop-color": n(
|
|
216
|
-
}, null, 8,
|
|
217
|
-
], 8,
|
|
213
|
+
"stop-color": n(b)(t.color, t.intensity)
|
|
214
|
+
}, null, 8, Se)
|
|
215
|
+
], 8, Le))), 256))
|
|
218
216
|
]),
|
|
219
|
-
!e.value.style.bars.shape || e.value.style.bars.shape === "square" ? (a(), s("g",
|
|
217
|
+
!e.value.style.bars.shape || e.value.style.bars.shape === "square" ? (a(), s("g", Ae, [
|
|
220
218
|
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("rect", {
|
|
221
219
|
x: t.x,
|
|
222
220
|
y: t.y,
|
|
@@ -226,15 +224,15 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
226
224
|
stroke: t.stroke,
|
|
227
225
|
"stroke-width": e.value.style.bars.strokeWidth,
|
|
228
226
|
rx: `${e.value.style.bars.borderRadius * t.proportion / 12}%`,
|
|
229
|
-
class:
|
|
230
|
-
}, null, 10,
|
|
231
|
-
])) : (a(), s("g",
|
|
232
|
-
(a(!0), s(f, null, g(r.value, (t, o) => (a(),
|
|
227
|
+
class: E({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
|
|
228
|
+
}, null, 10, Me))), 256))
|
|
229
|
+
])) : (a(), s("g", Ne, [
|
|
230
|
+
(a(!0), s(f, null, g(r.value, (t, o) => (a(), V(he, {
|
|
233
231
|
plot: { x: t.x + t.width / 2, y: t.y + t.height / 2 },
|
|
234
232
|
color: e.value.style.bars.colors.gradient.show ? t.gradient : t.color,
|
|
235
233
|
shape: e.value.style.bars.shape,
|
|
236
234
|
radius: t.height * 0.4,
|
|
237
|
-
class:
|
|
235
|
+
class: E({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
|
|
238
236
|
}, null, 8, ["plot", "color", "shape", "radius", "class"]))), 256))
|
|
239
237
|
])),
|
|
240
238
|
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("text", {
|
|
@@ -244,17 +242,17 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
244
242
|
"font-size": e.value.style.labels.value.fontSize,
|
|
245
243
|
"font-weight": e.value.style.labels.value.bold ? "bold" : "normal",
|
|
246
244
|
fill: e.value.style.labels.value.color
|
|
247
|
-
}, p(n(
|
|
245
|
+
}, p(n(F)(
|
|
248
246
|
e.value.style.labels.value.formatter,
|
|
249
247
|
t.value,
|
|
250
|
-
n(
|
|
248
|
+
n(O)({
|
|
251
249
|
p: e.value.style.labels.value.prefix,
|
|
252
250
|
v: t.value,
|
|
253
251
|
s: e.value.style.labels.value.suffix,
|
|
254
252
|
r: e.value.style.labels.value.rounding
|
|
255
253
|
}),
|
|
256
|
-
{ datapoint: r.value[
|
|
257
|
-
)), 9,
|
|
254
|
+
{ datapoint: r.value[i.value], seriesIndex: i.value }
|
|
255
|
+
)), 9, De))), 256)),
|
|
258
256
|
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("g", null, [
|
|
259
257
|
t.valueLabel ? (a(), s("text", {
|
|
260
258
|
key: 0,
|
|
@@ -263,7 +261,7 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
263
261
|
"font-size": e.value.style.labels.valueLabel.fontSize,
|
|
264
262
|
"text-anchor": "middle",
|
|
265
263
|
fill: e.value.style.labels.valueLabel.color
|
|
266
|
-
}, p(t.valueLabel), 9,
|
|
264
|
+
}, p(t.valueLabel), 9, Ve)) : c("", !0)
|
|
267
265
|
]))), 256)),
|
|
268
266
|
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("g", null, [
|
|
269
267
|
t.timeLabel ? (a(), s("text", {
|
|
@@ -282,20 +280,20 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
282
280
|
fill: "transparent",
|
|
283
281
|
x: t.trapX,
|
|
284
282
|
y: 0,
|
|
285
|
-
onMouseover: (y) =>
|
|
286
|
-
onMouseleave:
|
|
287
|
-
stroke:
|
|
288
|
-
"stroke-width":
|
|
283
|
+
onMouseover: (y) => i.value = o,
|
|
284
|
+
onMouseleave: u[0] || (u[0] = (y) => i.value = null),
|
|
285
|
+
stroke: i.value !== null && i.value === o ? e.value.style.selector.stroke : "",
|
|
286
|
+
"stroke-width": i.value !== null && i.value === o ? e.value.style.selector.strokeWidth : 0,
|
|
289
287
|
rx: e.value.style.selector.borderRadius,
|
|
290
288
|
"stroke-dasharray": e.value.style.selector.strokeDasharray,
|
|
291
|
-
onClick: () =>
|
|
292
|
-
}, null, 40,
|
|
289
|
+
onClick: () => T(t, o)
|
|
290
|
+
}, null, 40, Ee)
|
|
293
291
|
]))), 256))
|
|
294
|
-
], 8,
|
|
295
|
-
l.$slots.source ? (a(), s("div",
|
|
292
|
+
], 8, be)) : c("", !0),
|
|
293
|
+
l.$slots.source ? (a(), s("div", He, [
|
|
296
294
|
I(l.$slots, "source", {}, void 0, !0)
|
|
297
295
|
], 512)) : c("", !0),
|
|
298
|
-
S.value ? c("", !0) : (a(),
|
|
296
|
+
S.value ? c("", !0) : (a(), V(n(R), {
|
|
299
297
|
key: 3,
|
|
300
298
|
config: {
|
|
301
299
|
type: "sparkHistogram",
|
|
@@ -309,7 +307,7 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
309
307
|
}, null, 8, ["config"]))
|
|
310
308
|
], 36));
|
|
311
309
|
}
|
|
312
|
-
},
|
|
310
|
+
}, Xe = /* @__PURE__ */ fe(Fe, [["__scopeId", "data-v-4d2045fb"]]);
|
|
313
311
|
export {
|
|
314
|
-
|
|
312
|
+
Xe as default
|
|
315
313
|
};
|