vue-data-ui 2.17.0 → 2.17.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/README.md +2 -1
- package/dist/{Arrow-BAEkZGzL.js → Arrow-BDCVJzQB.js} +1 -1
- package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
- package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-D9Tz8ARD.js} +1 -1
- package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-wGf46G2G.js} +2 -2
- package/dist/{DataTable-D0VYDhfx.js → DataTable-Dt-TIOyY.js} +2 -2
- package/dist/{Legend-Bxlv67uY.js → Legend-3LNqqLDg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
- package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-C-4Ee8BQ.js} +1 -1
- package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-Cde-wJ3N.js} +3 -3
- package/dist/{Shape-DtFT5EJa.js → Shape-C75836Jl.js} +1 -1
- package/dist/{Slicer-CL6-MRI6.js → Slicer-CpSu7plp.js} +2 -2
- package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-B_GXa2tb.js} +1 -1
- package/dist/{Title-B-2bV0SW.js → Title-DpERl1yr.js} +1 -1
- package/dist/{Tooltip-CoQnTnr-.js → Tooltip-DA0bYKFG.js} +1 -1
- package/dist/{UserOptions-Dd34lEKb.js → UserOptions-DTEJ3UM_.js} +2 -2
- package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-DWDGYXFL.js} +1 -1
- package/dist/{img-Y_hYz-ZC.js → img-utitT2Gd.js} +1 -1
- package/dist/{index-pPGk-uhD.js → index-CobsZUkv.js} +22 -8
- package/dist/{pdf-yfk3d1is.js → pdf-DWZ8IB56.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +63 -160
- package/dist/types/vue-data-ui.d.ts +63 -160
- package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-BwL5wmVa.js} +1 -1
- package/dist/{usePrinter-DDHcrl0A.js → usePrinter-DPh6U_Qk.js} +2 -2
- package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-D7ZgRDQ_.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-ORUAjkg7.js} +41 -34
- package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-UewqY6OI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-Yl4aRpNc.js} +134 -127
- package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
- package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-C307lCPt.js} +90 -83
- package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-BE6PcEdh.js} +101 -94
- package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
- package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CUw74AgC.js} +270 -263
- package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-CCPGeAiY.js} +60 -53
- package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-dfyPiQmy.js} +121 -114
- package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
- package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
- package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-7qJFCuoI.js} +2 -2
- package/dist/{vue-ui-donut-CKa7nFjt.js → vue-ui-donut-D41WeqQU.js} +244 -243
- package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-Deg0dsYg.js} +215 -211
- package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-DDwNoTPG.js} +117 -110
- package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-6oR7IMyi.js} +105 -98
- package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BnXtOJmh.js} +138 -131
- package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-75XC8SpV.js} +150 -146
- package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-w31j915C.js} +125 -118
- package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
- package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-BfU62tMW.js} +155 -148
- package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-CFfco-Yj.js} +141 -134
- package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
- package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
- package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-Tdk3Gd8M.js} +141 -134
- package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-Dg5wS7W5.js} +126 -119
- package/dist/{vue-ui-nested-donuts-D0RgFifU.js → vue-ui-nested-donuts-CpRe0sQB.js} +244 -244
- package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-B8o4ft2v.js} +88 -81
- package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +123 -116
- package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-DiRtZ16w.js} +151 -144
- package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-BRlYC_yT.js} +39 -32
- package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-DKgX1Ibx.js} +58 -51
- package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-DlklKr-X.js} +2 -2
- package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-MHiAp8dC.js} +127 -120
- package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-DA8verAe.js} +98 -91
- package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-Dh6lFqun.js} +208 -204
- package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-CLC5sTOi.js} +172 -165
- package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
- package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-utuzw8uI.js} +2 -2
- package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
- package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
- package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
- package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-C6rjCYDD.js} +61 -54
- package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-B6cYojHQ.js} +116 -109
- package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-IC7SmWVd.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
- package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-D-oiVT3n.js} +88 -81
- package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-C9jVyX5l.js} +5 -5
- package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-B1bM9Aoo.js} +127 -120
- package/dist/vue-ui-treemap-DX48YlU5.js +965 -0
- package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-6SjKPQWR.js} +233 -226
- package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-CYao9MMw.js} +183 -179
- package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-USuDhMwW.js} +121 -114
- package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-TOBTs7yF.js} +152 -145
- package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-C2qikqBa.js} +77 -70
- package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-DxwgKoO-.js} +229 -222
- package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-N69OpVn8.js} +154 -147
- package/package.json +1 -1
- package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z as p, A as v, u as w, B as A } from "./index-
|
|
2
|
-
import { d as M } from "./dom-to-png-
|
|
1
|
+
import { z as p, A as v, u as w, B as A } from "./index-CobsZUkv.js";
|
|
2
|
+
import { d as M } from "./dom-to-png-DWDGYXFL.js";
|
|
3
3
|
import { createElementBlock as d, openBlock as n, createElementVNode as r, normalizeStyle as c, toDisplayString as u, createCommentVNode as a, normalizeClass as y, createStaticVNode as F, withDirectives as N, vModelCheckbox as g, vModelText as C, renderSlot as O, Fragment as L, renderList as G } from "vue";
|
|
4
4
|
import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const m = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineAsyncComponent as $, ref as g, computed as f, onMounted as ke, watch as Z, onBeforeUnmount as we, createElementBlock as n, openBlock as r, unref as o, normalizeStyle as T, normalizeClass as ee, createBlock as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as ae } from "./useNestedProp-
|
|
4
|
-
import { u as Fe } from "./usePrinter-
|
|
1
|
+
import { defineAsyncComponent as $, ref as g, computed as f, onMounted as ke, watch as Z, onBeforeUnmount as we, createElementBlock as n, openBlock as r, unref as o, normalizeStyle as T, normalizeClass as ee, createBlock as C, createCommentVNode as i, createElementVNode as _, createSlots as xe, withCtx as b, renderSlot as m, normalizeProps as O, guardReactiveProps as A, createVNode as Ce, Fragment as U, renderList as N, toDisplayString as B } from "vue";
|
|
2
|
+
import { u as _e, o as Le, e as te, g as $e, c as Oe, l as Ae, D as Be, d as Pe, i as P, f as S, X as Se, a as Ie } from "./index-CobsZUkv.js";
|
|
3
|
+
import { u as ae } from "./useNestedProp-BwL5wmVa.js";
|
|
4
|
+
import { u as Fe } from "./usePrinter-DPh6U_Qk.js";
|
|
5
5
|
import { u as He } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { u as Me } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import Te from "./Legend-
|
|
8
|
-
import Ue from "./Title-
|
|
9
|
-
import Ne from "./img-
|
|
10
|
-
import { _ as
|
|
11
|
-
const
|
|
7
|
+
import Te from "./Legend-3LNqqLDg.js";
|
|
8
|
+
import Ue from "./Title-DpERl1yr.js";
|
|
9
|
+
import Ne from "./img-utitT2Gd.js";
|
|
10
|
+
import { _ as Re } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const ze = ["id"], Ee = {
|
|
12
12
|
key: 1,
|
|
13
13
|
ref: "noTitle",
|
|
14
14
|
class: "vue-data-ui-no-title-space",
|
|
@@ -40,10 +40,10 @@ const Re = ["id"], Ee = {
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
setup(le, { expose: se }) {
|
|
43
|
-
const re = $(() => import("./PackageVersion-
|
|
43
|
+
const re = $(() => import("./PackageVersion-C-4Ee8BQ.js")), oe = $(() => import("./PenAndPaper-Cde-wJ3N.js")), ne = $(() => import("./vue-ui-skeleton-8s4xts8z.js")), ue = $(() => import("./UserOptions-DTEJ3UM_.js")), { vue_ui_bullet: ie } = _e(), u = le, k = g(null), ce = g(null), R = g(0), he = g(null), ve = g(0), y = f({
|
|
44
44
|
get: () => u.dataset.hasOwnProperty("value"),
|
|
45
45
|
set: (t) => t
|
|
46
|
-
}),
|
|
46
|
+
}), w = f(() => u.dataset.segments ? Array.isArray(u.dataset.segments) ? u.dataset.segments.length ? !0 : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
47
47
|
|
|
48
48
|
segments: [
|
|
49
49
|
{
|
|
@@ -77,12 +77,12 @@ segments: [
|
|
|
77
77
|
{...}
|
|
78
78
|
]
|
|
79
79
|
`), y.value = !1, !1));
|
|
80
|
-
ke(
|
|
81
|
-
function
|
|
80
|
+
ke(z);
|
|
81
|
+
function z() {
|
|
82
82
|
Le(u.dataset) ? te({
|
|
83
83
|
componentName: "VueUiBullet",
|
|
84
84
|
type: "dataset"
|
|
85
|
-
}) :
|
|
85
|
+
}) : w.value ? u.dataset.segments.forEach((t, s) => {
|
|
86
86
|
$e({
|
|
87
87
|
datasetObject: t,
|
|
88
88
|
requiredAttributes: ["name", "from", "to"]
|
|
@@ -114,74 +114,74 @@ segments: [
|
|
|
114
114
|
set: (t) => t
|
|
115
115
|
}), { userOptionsVisible: F, setUserOptionsVisibility: W, keepUserOptionState: V } = He({ config: e.value }), { svgRef: D } = Me({ config: e.value.style.chart.title });
|
|
116
116
|
Z(() => u.config, (t) => {
|
|
117
|
-
e.value = E(), F.value = !e.value.userOptions.showOnChartHover,
|
|
117
|
+
e.value = E(), F.value = !e.value.userOptions.showOnChartHover, z(), R.value += 1;
|
|
118
118
|
}, { deep: !0 });
|
|
119
119
|
const l = f(() => {
|
|
120
|
-
const t = e.value.style.chart.height, s = e.value.style.chart.width, a = e.value.style.chart.padding.left, d = s - e.value.style.chart.padding.right,
|
|
120
|
+
const t = e.value.style.chart.height, s = e.value.style.chart.width, a = e.value.style.chart.padding.left, d = s - e.value.style.chart.padding.right, p = e.value.style.chart.padding.top, c = t - e.value.style.chart.padding.bottom;
|
|
121
121
|
return {
|
|
122
122
|
height: t,
|
|
123
123
|
width: s,
|
|
124
124
|
left: a,
|
|
125
125
|
right: d,
|
|
126
|
-
top:
|
|
127
|
-
bottom:
|
|
126
|
+
top: p,
|
|
127
|
+
bottom: c,
|
|
128
128
|
chartWidth: d - a,
|
|
129
|
-
chartHeight:
|
|
129
|
+
chartHeight: c - p
|
|
130
130
|
};
|
|
131
131
|
}), de = f(() => {
|
|
132
|
-
if (!
|
|
132
|
+
if (!w.value) return [];
|
|
133
133
|
const t = [];
|
|
134
134
|
for (let s = 0; s < u.dataset.segments.length; s += 1)
|
|
135
135
|
t.push(Ae(e.value.style.chart.segments.baseColor, s / u.dataset.segments.length));
|
|
136
136
|
return t;
|
|
137
|
-
}), H = f(() =>
|
|
137
|
+
}), H = f(() => w.value ? {
|
|
138
138
|
min: Math.min(...u.dataset.segments.map((t) => t.from)),
|
|
139
139
|
max: Math.max(...u.dataset.segments.map((t) => t.to))
|
|
140
|
-
} : { min: 0, max: 1 }),
|
|
140
|
+
} : { min: 0, max: 1 }), h = g(ge());
|
|
141
141
|
Z(() => u.dataset, (t) => {
|
|
142
|
-
e.value.style.chart.animation.show ? G(t.value || 0) :
|
|
142
|
+
e.value.style.chart.animation.show ? G(t.value || 0) : h.value = t.value || 0;
|
|
143
143
|
}, { deep: !0 });
|
|
144
144
|
function ge() {
|
|
145
145
|
return e.value.style.chart.animation.show ? H.value.min : u.dataset.value || 0;
|
|
146
146
|
}
|
|
147
147
|
const j = g(null);
|
|
148
148
|
function G(t) {
|
|
149
|
-
const s = Math.abs(t -
|
|
149
|
+
const s = Math.abs(t - h.value) / e.value.style.chart.animation.animationFrames;
|
|
150
150
|
function a() {
|
|
151
|
-
|
|
151
|
+
h.value < t ? h.value = Math.min(h.value + s, t) : h.value > t && (h.value = Math.max(h.value - s, t)), h.value !== t && (j.value = requestAnimationFrame(a));
|
|
152
152
|
}
|
|
153
153
|
a();
|
|
154
154
|
}
|
|
155
155
|
we(() => {
|
|
156
156
|
cancelAnimationFrame(j.value);
|
|
157
157
|
});
|
|
158
|
-
const
|
|
159
|
-
if (!
|
|
158
|
+
const v = f(() => {
|
|
159
|
+
if (!w.value)
|
|
160
160
|
return [];
|
|
161
161
|
const t = Be(H.value.min, H.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
|
|
162
162
|
x: l.value.left + (u.dataset.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
|
|
163
163
|
}, d = {
|
|
164
|
-
width: (
|
|
165
|
-
},
|
|
166
|
-
value:
|
|
164
|
+
width: (h.value + s) / (t.max + s) * l.value.chartWidth
|
|
165
|
+
}, p = t.ticks.map((c) => ({
|
|
166
|
+
value: c,
|
|
167
167
|
y: l.value.bottom + e.value.style.chart.segments.dataLabels.fontSize + 3 + e.value.style.chart.segments.dataLabels.offsetY,
|
|
168
|
-
x: l.value.left + (
|
|
168
|
+
x: l.value.left + (c + s) / (t.max + s) * l.value.chartWidth
|
|
169
169
|
}));
|
|
170
170
|
return {
|
|
171
171
|
scale: t,
|
|
172
172
|
target: a,
|
|
173
173
|
value: d,
|
|
174
|
-
ticks:
|
|
175
|
-
chunks: u.dataset.segments.map((
|
|
176
|
-
...
|
|
177
|
-
color:
|
|
178
|
-
x: l.value.left + l.value.chartWidth * ((
|
|
174
|
+
ticks: p,
|
|
175
|
+
chunks: u.dataset.segments.map((c, be) => ({
|
|
176
|
+
...c,
|
|
177
|
+
color: c.color ? Pe(c.color) : de.value[be],
|
|
178
|
+
x: l.value.left + l.value.chartWidth * ((c.from + s) / (t.max + s)),
|
|
179
179
|
y: l.value.top,
|
|
180
180
|
height: l.value.chartHeight,
|
|
181
|
-
width: l.value.chartWidth * (Math.abs(
|
|
181
|
+
width: l.value.chartWidth * (Math.abs(c.to - c.from) / (t.max + s))
|
|
182
182
|
}))
|
|
183
183
|
};
|
|
184
|
-
}), q = f(() => !
|
|
184
|
+
}), q = f(() => !v.value || !v.value.chunks || !v.value.chunks.length ? [] : v.value.chunks.map((t) => {
|
|
185
185
|
const s = P(
|
|
186
186
|
e.value.style.chart.segments.dataLabels.formatter,
|
|
187
187
|
t.from,
|
|
@@ -217,21 +217,28 @@ segments: [
|
|
|
217
217
|
elementId: `bullet_${I.value}`,
|
|
218
218
|
fileName: e.value.style.chart.title.text || "vue-ui-bullet",
|
|
219
219
|
options: e.value.userOptions.print
|
|
220
|
-
}), me = f(() => e.value.userOptions.show && !e.value.style.chart.title.text),
|
|
220
|
+
}), me = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), x = g(!1);
|
|
221
221
|
function Q(t) {
|
|
222
|
-
|
|
222
|
+
x.value = t, ve.value += 1;
|
|
223
223
|
}
|
|
224
224
|
function ye() {
|
|
225
|
-
return
|
|
225
|
+
return v.value;
|
|
226
226
|
}
|
|
227
|
-
const
|
|
227
|
+
const L = g(!1);
|
|
228
228
|
function M() {
|
|
229
|
-
|
|
229
|
+
L.value = !L.value;
|
|
230
230
|
}
|
|
231
231
|
async function pe({ scale: t = 2 } = {}) {
|
|
232
|
-
if (!
|
|
233
|
-
const {
|
|
234
|
-
return {
|
|
232
|
+
if (!k.value) return;
|
|
233
|
+
const { width: s, height: a } = k.value.getBoundingClientRect(), d = s / a, { imageUri: p, base64: c } = await Ne({ domElement: k.value, base64: !0, img: !0, scale: t });
|
|
234
|
+
return {
|
|
235
|
+
imageUri: p,
|
|
236
|
+
base64: c,
|
|
237
|
+
title: e.value.style.chart.title.text,
|
|
238
|
+
width: s,
|
|
239
|
+
height: a,
|
|
240
|
+
aspectRatio: d
|
|
241
|
+
};
|
|
235
242
|
}
|
|
236
243
|
return se({
|
|
237
244
|
getData: ye,
|
|
@@ -242,19 +249,19 @@ segments: [
|
|
|
242
249
|
toggleFullscreen: Q
|
|
243
250
|
}), (t, s) => (r(), n("div", {
|
|
244
251
|
ref_key: "bulletChart",
|
|
245
|
-
ref:
|
|
246
|
-
class: ee(`vue-ui-bullet ${
|
|
252
|
+
ref: k,
|
|
253
|
+
class: ee(`vue-ui-bullet ${x.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
247
254
|
style: T(`font-family:${e.value.style.fontFamily};width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
248
255
|
id: `bullet_${I.value}`,
|
|
249
256
|
onMouseenter: s[0] || (s[0] = () => o(W)(!0)),
|
|
250
257
|
onMouseleave: s[1] || (s[1] = () => o(W)(!1))
|
|
251
258
|
}, [
|
|
252
|
-
e.value.userOptions.buttons.annotator ? (r(),
|
|
259
|
+
e.value.userOptions.buttons.annotator ? (r(), C(o(oe), {
|
|
253
260
|
key: 0,
|
|
254
261
|
svgRef: o(D),
|
|
255
262
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
256
263
|
color: e.value.style.chart.color,
|
|
257
|
-
active:
|
|
264
|
+
active: L.value,
|
|
258
265
|
onClose: M
|
|
259
266
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : i("", !0),
|
|
260
267
|
me.value ? (r(), n("div", Ee, null, 512)) : i("", !0),
|
|
@@ -264,9 +271,9 @@ segments: [
|
|
|
264
271
|
ref: ce,
|
|
265
272
|
style: "width:100%;background:transparent;"
|
|
266
273
|
}, [
|
|
267
|
-
(r(),
|
|
274
|
+
(r(), C(Ue, {
|
|
268
275
|
lineHeight: "1.3rem",
|
|
269
|
-
key: `title_${
|
|
276
|
+
key: `title_${R.value}`,
|
|
270
277
|
config: {
|
|
271
278
|
title: {
|
|
272
279
|
cy: "bullet-div-title",
|
|
@@ -279,7 +286,7 @@ segments: [
|
|
|
279
286
|
}
|
|
280
287
|
}, null, 8, ["config"]))
|
|
281
288
|
], 512)) : i("", !0),
|
|
282
|
-
e.value.userOptions.show && y.value && (o(V) || o(F)) ? (r(),
|
|
289
|
+
e.value.userOptions.show && y.value && (o(V) || o(F)) ? (r(), C(o(ue), {
|
|
283
290
|
key: 3,
|
|
284
291
|
ref: "details",
|
|
285
292
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -294,12 +301,12 @@ segments: [
|
|
|
294
301
|
hasTable: !1,
|
|
295
302
|
hasLabel: !1,
|
|
296
303
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
297
|
-
isFullscreen:
|
|
298
|
-
chartElement:
|
|
304
|
+
isFullscreen: x.value,
|
|
305
|
+
chartElement: k.value,
|
|
299
306
|
position: e.value.userOptions.position,
|
|
300
307
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
301
308
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
302
|
-
isAnnotation:
|
|
309
|
+
isAnnotation: L.value,
|
|
303
310
|
callbacks: e.value.userOptions.callbacks,
|
|
304
311
|
printScale: e.value.userOptions.print.scale,
|
|
305
312
|
onToggleFullscreen: Q,
|
|
@@ -312,35 +319,35 @@ segments: [
|
|
|
312
319
|
}, xe({ _: 2 }, [
|
|
313
320
|
t.$slots.menuIcon ? {
|
|
314
321
|
name: "menuIcon",
|
|
315
|
-
fn:
|
|
322
|
+
fn: b(({ isOpen: a, color: d }) => [
|
|
316
323
|
m(t.$slots, "menuIcon", O(A({ isOpen: a, color: d })), void 0, !0)
|
|
317
324
|
]),
|
|
318
325
|
key: "0"
|
|
319
326
|
} : void 0,
|
|
320
327
|
t.$slots.optionPdf ? {
|
|
321
328
|
name: "optionPdf",
|
|
322
|
-
fn:
|
|
329
|
+
fn: b(() => [
|
|
323
330
|
m(t.$slots, "optionPdf", {}, void 0, !0)
|
|
324
331
|
]),
|
|
325
332
|
key: "1"
|
|
326
333
|
} : void 0,
|
|
327
334
|
t.$slots.optionImg ? {
|
|
328
335
|
name: "optionImg",
|
|
329
|
-
fn:
|
|
336
|
+
fn: b(() => [
|
|
330
337
|
m(t.$slots, "optionImg", {}, void 0, !0)
|
|
331
338
|
]),
|
|
332
339
|
key: "2"
|
|
333
340
|
} : void 0,
|
|
334
341
|
t.$slots.optionFullscreen ? {
|
|
335
342
|
name: "optionFullscreen",
|
|
336
|
-
fn:
|
|
343
|
+
fn: b(({ toggleFullscreen: a, isFullscreen: d }) => [
|
|
337
344
|
m(t.$slots, "optionFullscreen", O(A({ toggleFullscreen: a, isFullscreen: d })), void 0, !0)
|
|
338
345
|
]),
|
|
339
346
|
key: "3"
|
|
340
347
|
} : void 0,
|
|
341
348
|
t.$slots.optionAnnotator ? {
|
|
342
349
|
name: "optionAnnotator",
|
|
343
|
-
fn:
|
|
350
|
+
fn: b(({ toggleAnnotator: a, isAnnotator: d }) => [
|
|
344
351
|
m(t.$slots, "optionAnnotator", O(A({ toggleAnnotator: a, isAnnotator: d })), void 0, !0)
|
|
345
352
|
]),
|
|
346
353
|
key: "4"
|
|
@@ -351,11 +358,11 @@ segments: [
|
|
|
351
358
|
ref_key: "svgRef",
|
|
352
359
|
ref: D,
|
|
353
360
|
xmlns: o(Se),
|
|
354
|
-
class: ee({ "vue-data-ui-fullscreen--on":
|
|
361
|
+
class: ee({ "vue-data-ui-fullscreen--on": x.value, "vue-data-ui-fulscreen--off": !x.value, "vue-ui-bullet-svg": !0 }),
|
|
355
362
|
viewBox: `0 0 ${l.value.width} ${l.value.height}`,
|
|
356
363
|
style: T(`width: 100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
357
364
|
}, [
|
|
358
|
-
|
|
365
|
+
Ce(o(re)),
|
|
359
366
|
t.$slots["chart-background"] ? (r(), n("foreignObject", {
|
|
360
367
|
key: 0,
|
|
361
368
|
x: 0,
|
|
@@ -368,8 +375,8 @@ segments: [
|
|
|
368
375
|
}, [
|
|
369
376
|
m(t.$slots, "chart-background", {}, void 0, !0)
|
|
370
377
|
], 8, Ve)) : i("", !0),
|
|
371
|
-
|
|
372
|
-
(r(!0), n(U, null, N(
|
|
378
|
+
w.value ? (r(), n("g", De, [
|
|
379
|
+
(r(!0), n(U, null, N(v.value.chunks, (a) => (r(), n("rect", {
|
|
373
380
|
x: a.x,
|
|
374
381
|
y: a.y,
|
|
375
382
|
height: a.height,
|
|
@@ -380,7 +387,7 @@ segments: [
|
|
|
380
387
|
}, null, 8, je))), 256)),
|
|
381
388
|
e.value.style.chart.target.onTop ? i("", !0) : (r(), n("rect", {
|
|
382
389
|
key: 0,
|
|
383
|
-
x:
|
|
390
|
+
x: v.value.target.x,
|
|
384
391
|
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
|
|
385
392
|
height: l.value.chartHeight * e.value.style.chart.target.heightRatio,
|
|
386
393
|
width: e.value.style.chart.target.width,
|
|
@@ -389,18 +396,18 @@ segments: [
|
|
|
389
396
|
stroke: e.value.style.chart.target.stroke,
|
|
390
397
|
"stroke-width": e.value.style.chart.target.strokeWidth
|
|
391
398
|
}, null, 8, Ge)),
|
|
392
|
-
|
|
399
|
+
_("rect", {
|
|
393
400
|
x: l.value.left,
|
|
394
401
|
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.valueBar.heightRatio) / 2,
|
|
395
402
|
height: l.value.chartHeight * e.value.style.chart.valueBar.heightRatio,
|
|
396
|
-
width:
|
|
403
|
+
width: v.value.value.width,
|
|
397
404
|
fill: e.value.style.chart.valueBar.color,
|
|
398
405
|
stroke: e.value.style.chart.valueBar.stroke,
|
|
399
406
|
"stroke-width": e.value.style.chart.valueBar.strokeWidth
|
|
400
407
|
}, null, 8, qe),
|
|
401
408
|
e.value.style.chart.valueBar.label.show ? (r(), n("text", {
|
|
402
409
|
key: 1,
|
|
403
|
-
x: l.value.left +
|
|
410
|
+
x: l.value.left + v.value.value.width,
|
|
404
411
|
y: l.value.top - 6 + e.value.style.chart.valueBar.label.offsetY,
|
|
405
412
|
"font-size": e.value.style.chart.valueBar.label.fontSize,
|
|
406
413
|
"font-weight": e.value.style.chart.valueBar.label.bold ? "bold" : "normal",
|
|
@@ -408,17 +415,17 @@ segments: [
|
|
|
408
415
|
"text-anchor": "middle"
|
|
409
416
|
}, B(o(P)(
|
|
410
417
|
e.value.style.chart.segments.dataLabels.formatter,
|
|
411
|
-
|
|
418
|
+
h.value,
|
|
412
419
|
o(S)({
|
|
413
420
|
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
414
|
-
v:
|
|
421
|
+
v: h.value,
|
|
415
422
|
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
416
423
|
r: e.value.style.chart.segments.dataLabels.rounding
|
|
417
424
|
})
|
|
418
425
|
)), 9, Xe)) : i("", !0),
|
|
419
426
|
e.value.style.chart.target.onTop ? (r(), n("rect", {
|
|
420
427
|
key: 2,
|
|
421
|
-
x:
|
|
428
|
+
x: v.value.target.x,
|
|
422
429
|
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
|
|
423
430
|
height: l.value.chartHeight * e.value.style.chart.target.heightRatio,
|
|
424
431
|
width: e.value.style.chart.target.width,
|
|
@@ -428,7 +435,7 @@ segments: [
|
|
|
428
435
|
"stroke-width": e.value.style.chart.target.strokeWidth
|
|
429
436
|
}, null, 8, Ye)) : i("", !0),
|
|
430
437
|
e.value.style.chart.segments.dataLabels.show ? (r(), n("g", Je, [
|
|
431
|
-
(r(!0), n(U, null, N(
|
|
438
|
+
(r(!0), n(U, null, N(v.value.ticks, (a) => (r(), n("text", {
|
|
432
439
|
x: a.x,
|
|
433
440
|
y: a.y,
|
|
434
441
|
"text-anchor": "middle",
|
|
@@ -447,7 +454,7 @@ segments: [
|
|
|
447
454
|
)), 9, Ke))), 256))
|
|
448
455
|
])) : i("", !0),
|
|
449
456
|
e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (r(), n("g", Qe, [
|
|
450
|
-
(r(!0), n(U, null, N(
|
|
457
|
+
(r(!0), n(U, null, N(v.value.ticks, (a) => (r(), n("line", {
|
|
451
458
|
x1: a.x,
|
|
452
459
|
x2: a.x,
|
|
453
460
|
y1: l.value.bottom,
|
|
@@ -463,7 +470,7 @@ segments: [
|
|
|
463
470
|
t.$slots.watermark ? (r(), n("div", et, [
|
|
464
471
|
m(t.$slots, "watermark", O(A({ isPrinting: o(X) || o(Y) })), void 0, !0)
|
|
465
472
|
])) : i("", !0),
|
|
466
|
-
y.value ? i("", !0) : (r(),
|
|
473
|
+
y.value ? i("", !0) : (r(), C(o(ne), {
|
|
467
474
|
key: 6,
|
|
468
475
|
config: {
|
|
469
476
|
type: "bullet",
|
|
@@ -475,20 +482,20 @@ segments: [
|
|
|
475
482
|
}
|
|
476
483
|
}
|
|
477
484
|
}, null, 8, ["config"])),
|
|
478
|
-
|
|
485
|
+
_("div", {
|
|
479
486
|
ref_key: "chartLegend",
|
|
480
487
|
ref: he
|
|
481
488
|
}, [
|
|
482
|
-
e.value.style.chart.legend.show ? (r(),
|
|
489
|
+
e.value.style.chart.legend.show ? (r(), C(Te, {
|
|
483
490
|
key: 0,
|
|
484
491
|
clickable: !1,
|
|
485
492
|
legendSet: q.value,
|
|
486
493
|
config: fe.value
|
|
487
494
|
}, {
|
|
488
|
-
item:
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
495
|
+
item: b(({ legend: a }) => [
|
|
496
|
+
_("div", tt, [
|
|
497
|
+
_("span", at, B(a.name) + ":", 1),
|
|
498
|
+
_("span", null, B(a.value), 1)
|
|
492
499
|
])
|
|
493
500
|
]),
|
|
494
501
|
_: 1
|
|
@@ -498,9 +505,9 @@ segments: [
|
|
|
498
505
|
t.$slots.source ? (r(), n("div", lt, [
|
|
499
506
|
m(t.$slots, "source", {}, void 0, !0)
|
|
500
507
|
], 512)) : i("", !0)
|
|
501
|
-
], 46,
|
|
508
|
+
], 46, ze));
|
|
502
509
|
}
|
|
503
|
-
}, ft = /* @__PURE__ */
|
|
510
|
+
}, ft = /* @__PURE__ */ Re(st, [["__scopeId", "data-v-2049ea54"]]);
|
|
504
511
|
export {
|
|
505
512
|
ft as default
|
|
506
513
|
};
|