vue-data-ui 2.12.6 → 2.12.7-beta.0
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-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.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-D3w9qas1.js} +2 -2
- package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
- package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.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-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +19 -19
- package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.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,13 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import { u as ye } from "./useChartAccessibility-BWojgys7.js";
|
|
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 ae, computed as _, defineAsyncComponent as z, onMounted as se, ref as D, watch as oe, createElementBlock as s, openBlock as a, normalizeStyle as $, createCommentVNode as c, createBlock as V, createElementVNode as h, createTextVNode as ue, 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 ne, o as re, e as H, g as ve, c as de, a as ce, s as b, i as F, f as O, X as ye, w as S } from "./index-BiHmNd1-.js";
|
|
3
|
+
import { u as W } from "./useNestedProp-tRqS0ZAM.js";
|
|
4
|
+
import { u as he } from "./useChartAccessibility-9icAAmYg.js";
|
|
5
|
+
import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
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
7
|
key: 2,
|
|
11
8
|
ref: "source",
|
|
12
9
|
dir: "auto"
|
|
13
|
-
},
|
|
10
|
+
}, Fe = {
|
|
14
11
|
__name: "vue-ui-sparkhistogram",
|
|
15
12
|
props: {
|
|
16
13
|
config: {
|
|
@@ -27,24 +24,24 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
27
24
|
}
|
|
28
25
|
},
|
|
29
26
|
emits: ["selectDatapoint"],
|
|
30
|
-
setup(
|
|
31
|
-
|
|
32
|
-
"
|
|
27
|
+
setup(B, { emit: U }) {
|
|
28
|
+
ae((l) => ({
|
|
29
|
+
"752d6a86": K.value
|
|
33
30
|
}));
|
|
34
|
-
const { vue_ui_sparkhistogram:
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
const j = z(() => import("./PackageVersion-CLY-udAA.js")), R = z(() => import("./Shape-D3w9qas1.js")), X = z(() => import("./vue-ui-skeleton-CbYQYRvD.js")), { vue_ui_sparkhistogram: G } = ne(), d = B, A = _(() => !!d.dataset && d.dataset.length);
|
|
32
|
+
se(() => {
|
|
33
|
+
M();
|
|
37
34
|
});
|
|
38
|
-
function
|
|
39
|
-
|
|
35
|
+
function M() {
|
|
36
|
+
re(d.dataset) ? H({
|
|
40
37
|
componentName: "VueUiSparkHistogram",
|
|
41
38
|
type: "dataset"
|
|
42
39
|
}) : d.dataset.forEach((l, i) => {
|
|
43
|
-
|
|
40
|
+
ve({
|
|
44
41
|
datasetObject: l,
|
|
45
42
|
requiredAttributes: ["value"]
|
|
46
43
|
}).forEach((t) => {
|
|
47
|
-
|
|
44
|
+
H({
|
|
48
45
|
componentName: "VueUiSparkHistogram",
|
|
49
46
|
type: "datasetSerieAttribute",
|
|
50
47
|
property: t,
|
|
@@ -53,24 +50,24 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
53
50
|
});
|
|
54
51
|
});
|
|
55
52
|
}
|
|
56
|
-
const
|
|
57
|
-
get: () =>
|
|
53
|
+
const m = D(de()), e = _({
|
|
54
|
+
get: () => N(),
|
|
58
55
|
set: (l) => l
|
|
59
|
-
}), { svgRef:
|
|
60
|
-
function
|
|
61
|
-
const l =
|
|
56
|
+
}), { svgRef: Y } = he({ config: e.value.style.title });
|
|
57
|
+
function N() {
|
|
58
|
+
const l = W({
|
|
62
59
|
userConfig: d.config,
|
|
63
|
-
defaultConfig:
|
|
60
|
+
defaultConfig: G
|
|
64
61
|
});
|
|
65
62
|
return l.theme ? {
|
|
66
|
-
...
|
|
67
|
-
userConfig:
|
|
63
|
+
...W({
|
|
64
|
+
userConfig: ce.vue_ui_sparkhistogram[l.theme] || d.config,
|
|
68
65
|
defaultConfig: l
|
|
69
66
|
})
|
|
70
67
|
} : l;
|
|
71
68
|
}
|
|
72
|
-
|
|
73
|
-
e.value =
|
|
69
|
+
oe(() => d.config, (l) => {
|
|
70
|
+
e.value = N(), M();
|
|
74
71
|
}, { deep: !0 });
|
|
75
72
|
const v = _(() => {
|
|
76
73
|
const l = e.value.style.layout.height, i = 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 = i - 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 = i - e.value.style.layout.padding.left - e.value.style.layout.padding.right;
|
|
@@ -85,32 +82,32 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
85
82
|
top: t,
|
|
86
83
|
width: i
|
|
87
84
|
};
|
|
88
|
-
}),
|
|
89
|
-
function
|
|
90
|
-
return Math.abs(l) /
|
|
85
|
+
}), q = _(() => Math.max(...d.dataset.map((l) => Math.abs(l.value || 0))));
|
|
86
|
+
function P(l) {
|
|
87
|
+
return Math.abs(l) / q.value;
|
|
91
88
|
}
|
|
92
89
|
const r = _(() => d.dataset.map((l, i) => {
|
|
93
|
-
const t =
|
|
90
|
+
const t = P(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 + i * y), Q = v.value.left + i * y, L = typeof l.intensity > "u" ? 100 : Math.round(l.intensity * 100), Z = l.color ? l.color : l.value >= 0 ? b(e.value.style.bars.colors.positive, L) : b(e.value.style.bars.colors.negative, L), ee = l.color ? l.color : l.value >= 0 ? e.value.style.bars.colors.positive : e.value.style.bars.colors.negative, te = l.color ? `url(#gradient_datapoint_${i}_${m.value})` : l.value >= 0 ? `url(#gradient_positive_${i}_${m.value})` : `url(#gradient_negative_${i}_${m.value})`, le = w + k / 2;
|
|
94
91
|
return {
|
|
95
92
|
...l,
|
|
96
|
-
color:
|
|
97
|
-
gradient:
|
|
93
|
+
color: Z,
|
|
94
|
+
gradient: te,
|
|
98
95
|
height: o,
|
|
99
96
|
intensity: L,
|
|
100
97
|
proportion: t,
|
|
101
|
-
stroke:
|
|
102
|
-
textAnchor:
|
|
103
|
-
trapX:
|
|
98
|
+
stroke: ee,
|
|
99
|
+
textAnchor: le,
|
|
100
|
+
trapX: Q,
|
|
104
101
|
unitWidth: y,
|
|
105
102
|
width: k,
|
|
106
103
|
x: w,
|
|
107
104
|
y: C
|
|
108
105
|
};
|
|
109
|
-
})), u =
|
|
110
|
-
function
|
|
111
|
-
|
|
106
|
+
})), u = D(null), T = U;
|
|
107
|
+
function J(l, i) {
|
|
108
|
+
T("selectDatapoint", { datapoint: l, index: i });
|
|
112
109
|
}
|
|
113
|
-
const
|
|
110
|
+
const K = _(() => `${e.value.style.animation.speedMs}ms`);
|
|
114
111
|
return (l, i) => (a(), s("div", {
|
|
115
112
|
class: "vue-ui-spark-histogram",
|
|
116
113
|
style: $(`width:100%;background:${e.value.style.backgroundColor};font-family:${e.value.style.fontFamily}`),
|
|
@@ -123,11 +120,11 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
123
120
|
h("div", {
|
|
124
121
|
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
122
|
}, [
|
|
126
|
-
|
|
127
|
-
u.value !== null ? (a(), s("span",
|
|
123
|
+
ue(p(e.value.style.title.text) + " ", 1),
|
|
124
|
+
u.value !== null ? (a(), s("span", ge, "- " + p(r.value[u.value].timeLabel || "") + " " + p(n(F)(
|
|
128
125
|
e.value.style.labels.value.formatter,
|
|
129
126
|
r.value[u.value].value,
|
|
130
|
-
n(
|
|
127
|
+
n(O)({
|
|
131
128
|
p: e.value.style.labels.value.prefix,
|
|
132
129
|
v: r.value[u.value].value,
|
|
133
130
|
s: e.value.style.labels.value.suffix,
|
|
@@ -135,22 +132,22 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
135
132
|
}),
|
|
136
133
|
{ datapoint: r.value[u.value], seriesIndex: u.value }
|
|
137
134
|
)), 1)) : c("", !0),
|
|
138
|
-
![void 0, null].includes(u.value) && ![null, void 0].includes(r.value[u.value].valueLabel) ? (a(), s("span",
|
|
135
|
+
![void 0, null].includes(u.value) && ![null, void 0].includes(r.value[u.value].valueLabel) ? (a(), s("span", pe, "(" + p(r.value[u.value].valueLabel || 0) + ")", 1)) : c("", !0)
|
|
139
136
|
], 4),
|
|
140
137
|
e.value.style.title.subtitle.text ? (a(), s("div", {
|
|
141
138
|
key: 0,
|
|
142
139
|
style: $(`font-size:${e.value.style.title.subtitle.fontSize}px;color:${e.value.style.title.subtitle.color};font-weight:${e.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
143
140
|
}, p(e.value.style.title.subtitle.text), 5)) : c("", !0)
|
|
144
141
|
], 4)) : c("", !0),
|
|
145
|
-
|
|
142
|
+
A.value ? (a(), s("svg", {
|
|
146
143
|
key: 1,
|
|
147
144
|
ref_key: "svgRef",
|
|
148
|
-
ref:
|
|
149
|
-
xmlns: n(
|
|
145
|
+
ref: Y,
|
|
146
|
+
xmlns: n(ye),
|
|
150
147
|
viewBox: `0 0 ${v.value.width} ${v.value.height}`,
|
|
151
148
|
style: { overflow: "visible" }
|
|
152
149
|
}, [
|
|
153
|
-
|
|
150
|
+
ie(n(j)),
|
|
154
151
|
l.$slots["chart-background"] ? (a(), s("foreignObject", {
|
|
155
152
|
key: 0,
|
|
156
153
|
x: 0,
|
|
@@ -165,7 +162,7 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
165
162
|
], 8, me)) : c("", !0),
|
|
166
163
|
h("defs", null, [
|
|
167
164
|
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("radialGradient", {
|
|
168
|
-
id: `gradient_positive_${o}_${
|
|
165
|
+
id: `gradient_positive_${o}_${m.value}`,
|
|
169
166
|
cy: "50%",
|
|
170
167
|
cx: "50%",
|
|
171
168
|
r: "50%",
|
|
@@ -174,15 +171,15 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
174
171
|
}, [
|
|
175
172
|
h("stop", {
|
|
176
173
|
offset: "0%",
|
|
177
|
-
"stop-color": n(
|
|
178
|
-
}, null, 8,
|
|
174
|
+
"stop-color": n(b)(n(S)(e.value.style.bars.colors.positive, 0.05), t.intensity)
|
|
175
|
+
}, null, 8, xe),
|
|
179
176
|
h("stop", {
|
|
180
177
|
offset: "100%",
|
|
181
|
-
"stop-color": n(
|
|
182
|
-
}, null, 8,
|
|
183
|
-
], 8,
|
|
178
|
+
"stop-color": n(b)(e.value.style.bars.colors.positive, t.intensity)
|
|
179
|
+
}, null, 8, ke)
|
|
180
|
+
], 8, _e))), 256)),
|
|
184
181
|
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("radialGradient", {
|
|
185
|
-
id: `gradient_negative_${o}_${
|
|
182
|
+
id: `gradient_negative_${o}_${m.value}`,
|
|
186
183
|
cy: "50%",
|
|
187
184
|
cx: "50%",
|
|
188
185
|
r: "50%",
|
|
@@ -191,15 +188,15 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
191
188
|
}, [
|
|
192
189
|
h("stop", {
|
|
193
190
|
offset: "0%",
|
|
194
|
-
"stop-color": n(
|
|
195
|
-
}, null, 8,
|
|
191
|
+
"stop-color": n(b)(n(S)(e.value.style.bars.colors.negative, 0.05), t.intensity)
|
|
192
|
+
}, null, 8, $e),
|
|
196
193
|
h("stop", {
|
|
197
194
|
offset: "100%",
|
|
198
|
-
"stop-color": n(
|
|
199
|
-
}, null, 8,
|
|
200
|
-
], 8,
|
|
195
|
+
"stop-color": n(b)(e.value.style.bars.colors.negative, t.intensity)
|
|
196
|
+
}, null, 8, Ce)
|
|
197
|
+
], 8, we))), 256)),
|
|
201
198
|
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("radialGradient", {
|
|
202
|
-
id: `gradient_datapoint_${o}_${
|
|
199
|
+
id: `gradient_datapoint_${o}_${m.value}`,
|
|
203
200
|
cy: "50%",
|
|
204
201
|
cx: "50%",
|
|
205
202
|
r: "50%",
|
|
@@ -208,15 +205,15 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
208
205
|
}, [
|
|
209
206
|
h("stop", {
|
|
210
207
|
offset: "0%",
|
|
211
|
-
"stop-color": n(
|
|
212
|
-
}, null, 8,
|
|
208
|
+
"stop-color": n(b)(n(S)(t.color, 0.05), t.intensity)
|
|
209
|
+
}, null, 8, ze),
|
|
213
210
|
h("stop", {
|
|
214
211
|
offset: "100%",
|
|
215
|
-
"stop-color": n(
|
|
216
|
-
}, null, 8,
|
|
217
|
-
], 8,
|
|
212
|
+
"stop-color": n(b)(t.color, t.intensity)
|
|
213
|
+
}, null, 8, Se)
|
|
214
|
+
], 8, Le))), 256))
|
|
218
215
|
]),
|
|
219
|
-
!e.value.style.bars.shape || e.value.style.bars.shape === "square" ? (a(), s("g",
|
|
216
|
+
!e.value.style.bars.shape || e.value.style.bars.shape === "square" ? (a(), s("g", Ae, [
|
|
220
217
|
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("rect", {
|
|
221
218
|
x: t.x,
|
|
222
219
|
y: t.y,
|
|
@@ -226,15 +223,15 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
226
223
|
stroke: t.stroke,
|
|
227
224
|
"stroke-width": e.value.style.bars.strokeWidth,
|
|
228
225
|
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(),
|
|
226
|
+
class: E({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
|
|
227
|
+
}, null, 10, Me))), 256))
|
|
228
|
+
])) : (a(), s("g", Ne, [
|
|
229
|
+
(a(!0), s(f, null, g(r.value, (t, o) => (a(), V(n(R), {
|
|
233
230
|
plot: { x: t.x + t.width / 2, y: t.y + t.height / 2 },
|
|
234
231
|
color: e.value.style.bars.colors.gradient.show ? t.gradient : t.color,
|
|
235
232
|
shape: e.value.style.bars.shape,
|
|
236
233
|
radius: t.height * 0.4,
|
|
237
|
-
class:
|
|
234
|
+
class: E({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
|
|
238
235
|
}, null, 8, ["plot", "color", "shape", "radius", "class"]))), 256))
|
|
239
236
|
])),
|
|
240
237
|
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("text", {
|
|
@@ -244,17 +241,17 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
244
241
|
"font-size": e.value.style.labels.value.fontSize,
|
|
245
242
|
"font-weight": e.value.style.labels.value.bold ? "bold" : "normal",
|
|
246
243
|
fill: e.value.style.labels.value.color
|
|
247
|
-
}, p(n(
|
|
244
|
+
}, p(n(F)(
|
|
248
245
|
e.value.style.labels.value.formatter,
|
|
249
246
|
t.value,
|
|
250
|
-
n(
|
|
247
|
+
n(O)({
|
|
251
248
|
p: e.value.style.labels.value.prefix,
|
|
252
249
|
v: t.value,
|
|
253
250
|
s: e.value.style.labels.value.suffix,
|
|
254
251
|
r: e.value.style.labels.value.rounding
|
|
255
252
|
}),
|
|
256
253
|
{ datapoint: r.value[u.value], seriesIndex: u.value }
|
|
257
|
-
)), 9,
|
|
254
|
+
)), 9, De))), 256)),
|
|
258
255
|
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("g", null, [
|
|
259
256
|
t.valueLabel ? (a(), s("text", {
|
|
260
257
|
key: 0,
|
|
@@ -263,7 +260,7 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
263
260
|
"font-size": e.value.style.labels.valueLabel.fontSize,
|
|
264
261
|
"text-anchor": "middle",
|
|
265
262
|
fill: e.value.style.labels.valueLabel.color
|
|
266
|
-
}, p(t.valueLabel), 9,
|
|
263
|
+
}, p(t.valueLabel), 9, Ve)) : c("", !0)
|
|
267
264
|
]))), 256)),
|
|
268
265
|
(a(!0), s(f, null, g(r.value, (t, o) => (a(), s("g", null, [
|
|
269
266
|
t.timeLabel ? (a(), s("text", {
|
|
@@ -288,14 +285,14 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
288
285
|
"stroke-width": u.value !== null && u.value === o ? e.value.style.selector.strokeWidth : 0,
|
|
289
286
|
rx: e.value.style.selector.borderRadius,
|
|
290
287
|
"stroke-dasharray": e.value.style.selector.strokeDasharray,
|
|
291
|
-
onClick: () =>
|
|
292
|
-
}, null, 40,
|
|
288
|
+
onClick: () => J(t, o)
|
|
289
|
+
}, null, 40, Ee)
|
|
293
290
|
]))), 256))
|
|
294
|
-
], 8,
|
|
295
|
-
l.$slots.source ? (a(), s("div",
|
|
291
|
+
], 8, be)) : c("", !0),
|
|
292
|
+
l.$slots.source ? (a(), s("div", He, [
|
|
296
293
|
I(l.$slots, "source", {}, void 0, !0)
|
|
297
294
|
], 512)) : c("", !0),
|
|
298
|
-
|
|
295
|
+
A.value ? c("", !0) : (a(), V(n(X), {
|
|
299
296
|
key: 3,
|
|
300
297
|
config: {
|
|
301
298
|
type: "sparkHistogram",
|
|
@@ -309,7 +306,7 @@ const fe = { key: 0 }, ge = { key: 1 }, pe = ["xmlns", "viewBox"], me = ["width"
|
|
|
309
306
|
}, null, 8, ["config"]))
|
|
310
307
|
], 36));
|
|
311
308
|
}
|
|
312
|
-
},
|
|
309
|
+
}, Re = /* @__PURE__ */ fe(Fe, [["__scopeId", "data-v-673e26a2"]]);
|
|
313
310
|
export {
|
|
314
|
-
|
|
311
|
+
Re as default
|
|
315
312
|
};
|