vue-data-ui 2.16.6 → 2.17.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/README.md +83 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1096 -160
- package/dist/types/vue-data-ui.d.ts +1096 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
- package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
- package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
- package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
|
@@ -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-pPGk-uhD.js";
|
|
2
|
+
import { d as M } from "./dom-to-png-2AA0wHlX.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,28 +1,29 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as Fe } from "./usePrinter-
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
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 w, createCommentVNode as i, createElementVNode as x, createSlots as xe, withCtx as p, renderSlot as m, normalizeProps as O, guardReactiveProps as A, createVNode as _e, Fragment as U, renderList as N, toDisplayString as B } from "vue";
|
|
2
|
+
import { u as Ce, 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-pPGk-uhD.js";
|
|
3
|
+
import { u as ae } from "./useNestedProp-DjACxgdZ.js";
|
|
4
|
+
import { u as Fe } from "./usePrinter-DDHcrl0A.js";
|
|
5
|
+
import { u as He } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as Me } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import Te from "./Legend-Bxlv67uY.js";
|
|
8
|
+
import Ue from "./Title-B-2bV0SW.js";
|
|
9
|
+
import Ne from "./img-Y_hYz-ZC.js";
|
|
10
|
+
import { _ as ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const Re = ["id"], Ee = {
|
|
11
12
|
key: 1,
|
|
12
13
|
ref: "noTitle",
|
|
13
14
|
class: "vue-data-ui-no-title-space",
|
|
14
15
|
style: "height:36px; width: 100%;background:transparent"
|
|
15
|
-
},
|
|
16
|
+
}, We = ["xmlns", "viewBox"], Ve = ["width", "height"], De = { key: 1 }, je = ["x", "y", "height", "width", "fill", "stroke"], Ge = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], qe = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Xe = ["x", "y", "font-size", "font-weight", "fill"], Ye = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Je = { key: 3 }, Ke = ["x", "y", "fill", "font-size", "font-weight"], Qe = { key: 4 }, Ze = ["x1", "x2", "y1", "y2", "stroke"], et = {
|
|
16
17
|
key: 5,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, tt = {
|
|
19
20
|
class: "vue-ui-bullet-legend-item",
|
|
20
21
|
dir: "auto"
|
|
21
|
-
},
|
|
22
|
+
}, at = { style: { "margin-right": "2px" } }, lt = {
|
|
22
23
|
key: 7,
|
|
23
24
|
ref: "source",
|
|
24
25
|
dir: "auto"
|
|
25
|
-
},
|
|
26
|
+
}, st = {
|
|
26
27
|
__name: "vue-ui-bullet",
|
|
27
28
|
props: {
|
|
28
29
|
config: {
|
|
@@ -38,8 +39,8 @@ const Ue = ["id"], ze = {
|
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
},
|
|
41
|
-
setup(
|
|
42
|
-
const
|
|
42
|
+
setup(le, { expose: se }) {
|
|
43
|
+
const re = $(() => import("./PackageVersion-5TR4ocqp.js")), oe = $(() => import("./PenAndPaper-D6AqipIO.js")), ne = $(() => import("./vue-ui-skeleton-DJPjyNYn.js")), ue = $(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_bullet: ie } = Ce(), u = le, _ = g(null), ce = g(null), z = g(0), he = g(null), ve = g(0), y = f({
|
|
43
44
|
get: () => u.dataset.hasOwnProperty("value"),
|
|
44
45
|
set: (t) => t
|
|
45
46
|
}), b = 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:
|
|
@@ -76,17 +77,17 @@ segments: [
|
|
|
76
77
|
{...}
|
|
77
78
|
]
|
|
78
79
|
`), y.value = !1, !1));
|
|
79
|
-
|
|
80
|
+
ke(R);
|
|
80
81
|
function R() {
|
|
81
|
-
|
|
82
|
+
Le(u.dataset) ? te({
|
|
82
83
|
componentName: "VueUiBullet",
|
|
83
84
|
type: "dataset"
|
|
84
85
|
}) : b.value ? u.dataset.segments.forEach((t, s) => {
|
|
85
|
-
|
|
86
|
+
$e({
|
|
86
87
|
datasetObject: t,
|
|
87
88
|
requiredAttributes: ["name", "from", "to"]
|
|
88
89
|
}).forEach((a) => {
|
|
89
|
-
y.value = !1,
|
|
90
|
+
y.value = !1, te({
|
|
90
91
|
componentName: "VueUiBullet segment",
|
|
91
92
|
type: "datasetSerieAttribute",
|
|
92
93
|
property: a,
|
|
@@ -95,53 +96,53 @@ segments: [
|
|
|
95
96
|
});
|
|
96
97
|
}) : y.value = !1, e.value.style.chart.animation.show && G(u.dataset.value || 0);
|
|
97
98
|
}
|
|
98
|
-
const
|
|
99
|
-
function
|
|
100
|
-
const t =
|
|
99
|
+
const I = g(Oe());
|
|
100
|
+
function E() {
|
|
101
|
+
const t = ae({
|
|
101
102
|
userConfig: u.config,
|
|
102
|
-
defaultConfig:
|
|
103
|
+
defaultConfig: ie
|
|
103
104
|
});
|
|
104
105
|
return t.theme ? {
|
|
105
|
-
...
|
|
106
|
-
userConfig:
|
|
106
|
+
...ae({
|
|
107
|
+
userConfig: Ie.vue_ui_bullet[t.theme] || u.config,
|
|
107
108
|
defaultConfig: t
|
|
108
109
|
})
|
|
109
110
|
} : t;
|
|
110
111
|
}
|
|
111
112
|
const e = f({
|
|
112
|
-
get: () =>
|
|
113
|
+
get: () => E(),
|
|
113
114
|
set: (t) => t
|
|
114
|
-
}), { userOptionsVisible: F, setUserOptionsVisibility:
|
|
115
|
-
|
|
116
|
-
e.value =
|
|
115
|
+
}), { userOptionsVisible: F, setUserOptionsVisibility: W, keepUserOptionState: V } = He({ config: e.value }), { svgRef: D } = Me({ config: e.value.style.chart.title });
|
|
116
|
+
Z(() => u.config, (t) => {
|
|
117
|
+
e.value = E(), F.value = !e.value.userOptions.showOnChartHover, R(), z.value += 1;
|
|
117
118
|
}, { deep: !0 });
|
|
118
119
|
const l = f(() => {
|
|
119
|
-
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, L = e.value.style.chart.padding.top, v = t - e.value.style.chart.padding.bottom;
|
|
120
121
|
return {
|
|
121
122
|
height: t,
|
|
122
123
|
width: s,
|
|
123
124
|
left: a,
|
|
124
125
|
right: d,
|
|
125
|
-
top:
|
|
126
|
+
top: L,
|
|
126
127
|
bottom: v,
|
|
127
128
|
chartWidth: d - a,
|
|
128
|
-
chartHeight: v -
|
|
129
|
+
chartHeight: v - L
|
|
129
130
|
};
|
|
130
|
-
}),
|
|
131
|
+
}), de = f(() => {
|
|
131
132
|
if (!b.value) return [];
|
|
132
133
|
const t = [];
|
|
133
134
|
for (let s = 0; s < u.dataset.segments.length; s += 1)
|
|
134
|
-
t.push(
|
|
135
|
+
t.push(Ae(e.value.style.chart.segments.baseColor, s / u.dataset.segments.length));
|
|
135
136
|
return t;
|
|
136
|
-
}),
|
|
137
|
+
}), H = f(() => b.value ? {
|
|
137
138
|
min: Math.min(...u.dataset.segments.map((t) => t.from)),
|
|
138
139
|
max: Math.max(...u.dataset.segments.map((t) => t.to))
|
|
139
|
-
} : { min: 0, max: 1 }), c = g(
|
|
140
|
-
|
|
140
|
+
} : { min: 0, max: 1 }), c = g(ge());
|
|
141
|
+
Z(() => u.dataset, (t) => {
|
|
141
142
|
e.value.style.chart.animation.show ? G(t.value || 0) : c.value = t.value || 0;
|
|
142
143
|
}, { deep: !0 });
|
|
143
|
-
function
|
|
144
|
-
return e.value.style.chart.animation.show ?
|
|
144
|
+
function ge() {
|
|
145
|
+
return e.value.style.chart.animation.show ? H.value.min : u.dataset.value || 0;
|
|
145
146
|
}
|
|
146
147
|
const j = g(null);
|
|
147
148
|
function G(t) {
|
|
@@ -151,17 +152,17 @@ segments: [
|
|
|
151
152
|
}
|
|
152
153
|
a();
|
|
153
154
|
}
|
|
154
|
-
|
|
155
|
+
we(() => {
|
|
155
156
|
cancelAnimationFrame(j.value);
|
|
156
157
|
});
|
|
157
158
|
const h = f(() => {
|
|
158
159
|
if (!b.value)
|
|
159
160
|
return [];
|
|
160
|
-
const t =
|
|
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 = {
|
|
161
162
|
x: l.value.left + (u.dataset.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
|
|
162
163
|
}, d = {
|
|
163
164
|
width: (c.value + s) / (t.max + s) * l.value.chartWidth
|
|
164
|
-
},
|
|
165
|
+
}, L = t.ticks.map((v) => ({
|
|
165
166
|
value: v,
|
|
166
167
|
y: l.value.bottom + e.value.style.chart.segments.dataLabels.fontSize + 3 + e.value.style.chart.segments.dataLabels.offsetY,
|
|
167
168
|
x: l.value.left + (v + s) / (t.max + s) * l.value.chartWidth
|
|
@@ -170,10 +171,10 @@ segments: [
|
|
|
170
171
|
scale: t,
|
|
171
172
|
target: a,
|
|
172
173
|
value: d,
|
|
173
|
-
ticks:
|
|
174
|
-
chunks: u.dataset.segments.map((v,
|
|
174
|
+
ticks: L,
|
|
175
|
+
chunks: u.dataset.segments.map((v, be) => ({
|
|
175
176
|
...v,
|
|
176
|
-
color: v.color ?
|
|
177
|
+
color: v.color ? Pe(v.color) : de.value[be],
|
|
177
178
|
x: l.value.left + l.value.chartWidth * ((v.from + s) / (t.max + s)),
|
|
178
179
|
y: l.value.top,
|
|
179
180
|
height: l.value.chartHeight,
|
|
@@ -181,19 +182,19 @@ segments: [
|
|
|
181
182
|
}))
|
|
182
183
|
};
|
|
183
184
|
}), q = f(() => !h.value || !h.value.chunks || !h.value.chunks.length ? [] : h.value.chunks.map((t) => {
|
|
184
|
-
const s =
|
|
185
|
+
const s = P(
|
|
185
186
|
e.value.style.chart.segments.dataLabels.formatter,
|
|
186
187
|
t.from,
|
|
187
|
-
|
|
188
|
+
S({
|
|
188
189
|
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
189
190
|
v: t.from,
|
|
190
191
|
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
191
192
|
r: e.value.style.chart.segments.dataLabels.rounding
|
|
192
193
|
})
|
|
193
|
-
), a =
|
|
194
|
+
), a = P(
|
|
194
195
|
e.value.style.chart.segments.dataLabels.formatter,
|
|
195
196
|
t.to,
|
|
196
|
-
|
|
197
|
+
S({
|
|
197
198
|
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
198
199
|
v: t.to,
|
|
199
200
|
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
@@ -205,7 +206,7 @@ segments: [
|
|
|
205
206
|
shape: "square",
|
|
206
207
|
value: `${s} - ${a}`
|
|
207
208
|
};
|
|
208
|
-
})),
|
|
209
|
+
})), fe = f(() => ({
|
|
209
210
|
cy: "bullet-div-legend",
|
|
210
211
|
backgroundColor: "transparent",
|
|
211
212
|
color: e.value.style.chart.legend.color,
|
|
@@ -213,50 +214,57 @@ segments: [
|
|
|
213
214
|
paddingBottom: 6,
|
|
214
215
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
215
216
|
})), { isPrinting: X, isImaging: Y, generatePdf: J, generateImage: K } = Fe({
|
|
216
|
-
elementId: `bullet_${
|
|
217
|
+
elementId: `bullet_${I.value}`,
|
|
217
218
|
fileName: e.value.style.chart.title.text || "vue-ui-bullet",
|
|
218
219
|
options: e.value.userOptions.print
|
|
219
|
-
}),
|
|
220
|
-
function
|
|
221
|
-
k.value = t,
|
|
220
|
+
}), me = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), k = g(!1);
|
|
221
|
+
function Q(t) {
|
|
222
|
+
k.value = t, ve.value += 1;
|
|
222
223
|
}
|
|
223
224
|
function ye() {
|
|
224
225
|
return h.value;
|
|
225
226
|
}
|
|
226
|
-
const
|
|
227
|
-
function
|
|
228
|
-
|
|
227
|
+
const C = g(!1);
|
|
228
|
+
function M() {
|
|
229
|
+
C.value = !C.value;
|
|
229
230
|
}
|
|
230
|
-
|
|
231
|
+
async function pe({ scale: t = 2 } = {}) {
|
|
232
|
+
if (!_.value) return;
|
|
233
|
+
const { imageUri: s, base64: a } = await Ne({ domElement: _.value, base64: !0, img: !0, scale: t });
|
|
234
|
+
return { imageUri: s, base64: a };
|
|
235
|
+
}
|
|
236
|
+
return se({
|
|
231
237
|
getData: ye,
|
|
238
|
+
getImage: pe,
|
|
232
239
|
generatePdf: J,
|
|
233
240
|
generateImage: K,
|
|
234
|
-
toggleAnnotator:
|
|
241
|
+
toggleAnnotator: M,
|
|
242
|
+
toggleFullscreen: Q
|
|
235
243
|
}), (t, s) => (r(), n("div", {
|
|
236
244
|
ref_key: "bulletChart",
|
|
237
|
-
ref:
|
|
238
|
-
class:
|
|
239
|
-
style:
|
|
240
|
-
id: `bullet_${
|
|
241
|
-
onMouseenter: s[0] || (s[0] = () => o(
|
|
242
|
-
onMouseleave: s[1] || (s[1] = () => o(
|
|
245
|
+
ref: _,
|
|
246
|
+
class: ee(`vue-ui-bullet ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
247
|
+
style: T(`font-family:${e.value.style.fontFamily};width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
248
|
+
id: `bullet_${I.value}`,
|
|
249
|
+
onMouseenter: s[0] || (s[0] = () => o(W)(!0)),
|
|
250
|
+
onMouseleave: s[1] || (s[1] = () => o(W)(!1))
|
|
243
251
|
}, [
|
|
244
|
-
e.value.userOptions.buttons.annotator ? (r(), w(o(
|
|
252
|
+
e.value.userOptions.buttons.annotator ? (r(), w(o(oe), {
|
|
245
253
|
key: 0,
|
|
246
254
|
svgRef: o(D),
|
|
247
255
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
248
256
|
color: e.value.style.chart.color,
|
|
249
|
-
active:
|
|
250
|
-
onClose:
|
|
257
|
+
active: C.value,
|
|
258
|
+
onClose: M
|
|
251
259
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : i("", !0),
|
|
252
|
-
|
|
260
|
+
me.value ? (r(), n("div", Ee, null, 512)) : i("", !0),
|
|
253
261
|
e.value.style.chart.title.text ? (r(), n("div", {
|
|
254
262
|
key: 2,
|
|
255
263
|
ref_key: "chartTitle",
|
|
256
|
-
ref:
|
|
264
|
+
ref: ce,
|
|
257
265
|
style: "width:100%;background:transparent;"
|
|
258
266
|
}, [
|
|
259
|
-
(r(), w(
|
|
267
|
+
(r(), w(Ue, {
|
|
260
268
|
lineHeight: "1.3rem",
|
|
261
269
|
key: `title_${z.value}`,
|
|
262
270
|
config: {
|
|
@@ -271,14 +279,14 @@ segments: [
|
|
|
271
279
|
}
|
|
272
280
|
}, null, 8, ["config"]))
|
|
273
281
|
], 512)) : i("", !0),
|
|
274
|
-
e.value.userOptions.show && y.value && (o(V) || o(F)) ? (r(), w(o(
|
|
282
|
+
e.value.userOptions.show && y.value && (o(V) || o(F)) ? (r(), w(o(ue), {
|
|
275
283
|
key: 3,
|
|
276
284
|
ref: "details",
|
|
277
285
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
278
286
|
color: e.value.style.chart.color,
|
|
279
287
|
isPrinting: o(X),
|
|
280
288
|
isImaging: o(Y),
|
|
281
|
-
uid:
|
|
289
|
+
uid: I.value,
|
|
282
290
|
hasTooltip: !1,
|
|
283
291
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
284
292
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -287,25 +295,25 @@ segments: [
|
|
|
287
295
|
hasLabel: !1,
|
|
288
296
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
289
297
|
isFullscreen: k.value,
|
|
290
|
-
chartElement:
|
|
298
|
+
chartElement: _.value,
|
|
291
299
|
position: e.value.userOptions.position,
|
|
292
300
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
293
301
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
294
|
-
isAnnotation:
|
|
302
|
+
isAnnotation: C.value,
|
|
295
303
|
callbacks: e.value.userOptions.callbacks,
|
|
296
304
|
printScale: e.value.userOptions.print.scale,
|
|
297
|
-
onToggleFullscreen:
|
|
305
|
+
onToggleFullscreen: Q,
|
|
298
306
|
onGeneratePdf: o(J),
|
|
299
307
|
onGenerateImage: o(K),
|
|
300
|
-
onToggleAnnotator:
|
|
301
|
-
style:
|
|
308
|
+
onToggleAnnotator: M,
|
|
309
|
+
style: T({
|
|
302
310
|
visibility: o(V) ? o(F) ? "visible" : "hidden" : "visible"
|
|
303
311
|
})
|
|
304
|
-
},
|
|
312
|
+
}, xe({ _: 2 }, [
|
|
305
313
|
t.$slots.menuIcon ? {
|
|
306
314
|
name: "menuIcon",
|
|
307
315
|
fn: p(({ isOpen: a, color: d }) => [
|
|
308
|
-
m(t.$slots, "menuIcon",
|
|
316
|
+
m(t.$slots, "menuIcon", O(A({ isOpen: a, color: d })), void 0, !0)
|
|
309
317
|
]),
|
|
310
318
|
key: "0"
|
|
311
319
|
} : void 0,
|
|
@@ -326,14 +334,14 @@ segments: [
|
|
|
326
334
|
t.$slots.optionFullscreen ? {
|
|
327
335
|
name: "optionFullscreen",
|
|
328
336
|
fn: p(({ toggleFullscreen: a, isFullscreen: d }) => [
|
|
329
|
-
m(t.$slots, "optionFullscreen",
|
|
337
|
+
m(t.$slots, "optionFullscreen", O(A({ toggleFullscreen: a, isFullscreen: d })), void 0, !0)
|
|
330
338
|
]),
|
|
331
339
|
key: "3"
|
|
332
340
|
} : void 0,
|
|
333
341
|
t.$slots.optionAnnotator ? {
|
|
334
342
|
name: "optionAnnotator",
|
|
335
343
|
fn: p(({ toggleAnnotator: a, isAnnotator: d }) => [
|
|
336
|
-
m(t.$slots, "optionAnnotator",
|
|
344
|
+
m(t.$slots, "optionAnnotator", O(A({ toggleAnnotator: a, isAnnotator: d })), void 0, !0)
|
|
337
345
|
]),
|
|
338
346
|
key: "4"
|
|
339
347
|
} : void 0
|
|
@@ -342,12 +350,12 @@ segments: [
|
|
|
342
350
|
key: 4,
|
|
343
351
|
ref_key: "svgRef",
|
|
344
352
|
ref: D,
|
|
345
|
-
xmlns: o(
|
|
346
|
-
class:
|
|
353
|
+
xmlns: o(Se),
|
|
354
|
+
class: ee({ "vue-data-ui-fullscreen--on": k.value, "vue-data-ui-fulscreen--off": !k.value, "vue-ui-bullet-svg": !0 }),
|
|
347
355
|
viewBox: `0 0 ${l.value.width} ${l.value.height}`,
|
|
348
|
-
style:
|
|
356
|
+
style: T(`width: 100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
349
357
|
}, [
|
|
350
|
-
|
|
358
|
+
_e(o(re)),
|
|
351
359
|
t.$slots["chart-background"] ? (r(), n("foreignObject", {
|
|
352
360
|
key: 0,
|
|
353
361
|
x: 0,
|
|
@@ -359,9 +367,9 @@ segments: [
|
|
|
359
367
|
}
|
|
360
368
|
}, [
|
|
361
369
|
m(t.$slots, "chart-background", {}, void 0, !0)
|
|
362
|
-
], 8,
|
|
363
|
-
b.value ? (r(), n("g",
|
|
364
|
-
(r(!0), n(
|
|
370
|
+
], 8, Ve)) : i("", !0),
|
|
371
|
+
b.value ? (r(), n("g", De, [
|
|
372
|
+
(r(!0), n(U, null, N(h.value.chunks, (a) => (r(), n("rect", {
|
|
365
373
|
x: a.x,
|
|
366
374
|
y: a.y,
|
|
367
375
|
height: a.height,
|
|
@@ -369,7 +377,7 @@ segments: [
|
|
|
369
377
|
fill: a.color,
|
|
370
378
|
"stroke-width": 1,
|
|
371
379
|
stroke: e.value.style.chart.backgroundColor
|
|
372
|
-
}, null, 8,
|
|
380
|
+
}, null, 8, je))), 256)),
|
|
373
381
|
e.value.style.chart.target.onTop ? i("", !0) : (r(), n("rect", {
|
|
374
382
|
key: 0,
|
|
375
383
|
x: h.value.target.x,
|
|
@@ -380,7 +388,7 @@ segments: [
|
|
|
380
388
|
fill: e.value.style.chart.target.color,
|
|
381
389
|
stroke: e.value.style.chart.target.stroke,
|
|
382
390
|
"stroke-width": e.value.style.chart.target.strokeWidth
|
|
383
|
-
}, null, 8,
|
|
391
|
+
}, null, 8, Ge)),
|
|
384
392
|
x("rect", {
|
|
385
393
|
x: l.value.left,
|
|
386
394
|
y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.valueBar.heightRatio) / 2,
|
|
@@ -389,7 +397,7 @@ segments: [
|
|
|
389
397
|
fill: e.value.style.chart.valueBar.color,
|
|
390
398
|
stroke: e.value.style.chart.valueBar.stroke,
|
|
391
399
|
"stroke-width": e.value.style.chart.valueBar.strokeWidth
|
|
392
|
-
}, null, 8,
|
|
400
|
+
}, null, 8, qe),
|
|
393
401
|
e.value.style.chart.valueBar.label.show ? (r(), n("text", {
|
|
394
402
|
key: 1,
|
|
395
403
|
x: l.value.left + h.value.value.width,
|
|
@@ -398,16 +406,16 @@ segments: [
|
|
|
398
406
|
"font-weight": e.value.style.chart.valueBar.label.bold ? "bold" : "normal",
|
|
399
407
|
fill: e.value.style.chart.valueBar.label.color,
|
|
400
408
|
"text-anchor": "middle"
|
|
401
|
-
},
|
|
409
|
+
}, B(o(P)(
|
|
402
410
|
e.value.style.chart.segments.dataLabels.formatter,
|
|
403
411
|
c.value,
|
|
404
|
-
o(
|
|
412
|
+
o(S)({
|
|
405
413
|
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
406
414
|
v: c.value,
|
|
407
415
|
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
408
416
|
r: e.value.style.chart.segments.dataLabels.rounding
|
|
409
417
|
})
|
|
410
|
-
)), 9,
|
|
418
|
+
)), 9, Xe)) : i("", !0),
|
|
411
419
|
e.value.style.chart.target.onTop ? (r(), n("rect", {
|
|
412
420
|
key: 2,
|
|
413
421
|
x: h.value.target.x,
|
|
@@ -418,28 +426,28 @@ segments: [
|
|
|
418
426
|
fill: e.value.style.chart.target.color,
|
|
419
427
|
stroke: e.value.style.chart.target.stroke,
|
|
420
428
|
"stroke-width": e.value.style.chart.target.strokeWidth
|
|
421
|
-
}, null, 8,
|
|
422
|
-
e.value.style.chart.segments.dataLabels.show ? (r(), n("g",
|
|
423
|
-
(r(!0), n(
|
|
429
|
+
}, null, 8, Ye)) : i("", !0),
|
|
430
|
+
e.value.style.chart.segments.dataLabels.show ? (r(), n("g", Je, [
|
|
431
|
+
(r(!0), n(U, null, N(h.value.ticks, (a) => (r(), n("text", {
|
|
424
432
|
x: a.x,
|
|
425
433
|
y: a.y,
|
|
426
434
|
"text-anchor": "middle",
|
|
427
435
|
fill: e.value.style.chart.segments.dataLabels.color,
|
|
428
436
|
"font-size": e.value.style.chart.segments.dataLabels.fontSize + "px",
|
|
429
437
|
"font-weight": e.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
|
|
430
|
-
},
|
|
438
|
+
}, B(o(P)(
|
|
431
439
|
e.value.style.chart.segments.dataLabels.formatter,
|
|
432
440
|
a.value,
|
|
433
|
-
o(
|
|
441
|
+
o(S)({
|
|
434
442
|
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
435
443
|
v: a.value,
|
|
436
444
|
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
437
445
|
r: e.value.style.chart.segments.dataLabels.rounding
|
|
438
446
|
})
|
|
439
|
-
)), 9,
|
|
447
|
+
)), 9, Ke))), 256))
|
|
440
448
|
])) : i("", !0),
|
|
441
|
-
e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (r(), n("g",
|
|
442
|
-
(r(!0), n(
|
|
449
|
+
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(h.value.ticks, (a) => (r(), n("line", {
|
|
443
451
|
x1: a.x,
|
|
444
452
|
x2: a.x,
|
|
445
453
|
y1: l.value.bottom,
|
|
@@ -447,15 +455,15 @@ segments: [
|
|
|
447
455
|
stroke: e.value.style.chart.segments.ticks.stroke,
|
|
448
456
|
"stroke-width": 1,
|
|
449
457
|
"stroke-linecap": "round"
|
|
450
|
-
}, null, 8,
|
|
458
|
+
}, null, 8, Ze))), 256))
|
|
451
459
|
])) : i("", !0)
|
|
452
460
|
])) : i("", !0),
|
|
453
461
|
m(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
454
|
-
], 14,
|
|
455
|
-
t.$slots.watermark ? (r(), n("div",
|
|
456
|
-
m(t.$slots, "watermark",
|
|
462
|
+
], 14, We)) : i("", !0),
|
|
463
|
+
t.$slots.watermark ? (r(), n("div", et, [
|
|
464
|
+
m(t.$slots, "watermark", O(A({ isPrinting: o(X) || o(Y) })), void 0, !0)
|
|
457
465
|
])) : i("", !0),
|
|
458
|
-
y.value ? i("", !0) : (r(), w(o(
|
|
466
|
+
y.value ? i("", !0) : (r(), w(o(ne), {
|
|
459
467
|
key: 6,
|
|
460
468
|
config: {
|
|
461
469
|
type: "bullet",
|
|
@@ -469,30 +477,30 @@ segments: [
|
|
|
469
477
|
}, null, 8, ["config"])),
|
|
470
478
|
x("div", {
|
|
471
479
|
ref_key: "chartLegend",
|
|
472
|
-
ref:
|
|
480
|
+
ref: he
|
|
473
481
|
}, [
|
|
474
|
-
e.value.style.chart.legend.show ? (r(), w(
|
|
482
|
+
e.value.style.chart.legend.show ? (r(), w(Te, {
|
|
475
483
|
key: 0,
|
|
476
484
|
clickable: !1,
|
|
477
485
|
legendSet: q.value,
|
|
478
|
-
config:
|
|
486
|
+
config: fe.value
|
|
479
487
|
}, {
|
|
480
488
|
item: p(({ legend: a }) => [
|
|
481
|
-
x("div",
|
|
482
|
-
x("span",
|
|
483
|
-
x("span", null,
|
|
489
|
+
x("div", tt, [
|
|
490
|
+
x("span", at, B(a.name) + ":", 1),
|
|
491
|
+
x("span", null, B(a.value), 1)
|
|
484
492
|
])
|
|
485
493
|
]),
|
|
486
494
|
_: 1
|
|
487
495
|
}, 8, ["legendSet", "config"])) : i("", !0),
|
|
488
496
|
m(t.$slots, "legend", { legend: q.value }, void 0, !0)
|
|
489
497
|
], 512),
|
|
490
|
-
t.$slots.source ? (r(), n("div",
|
|
498
|
+
t.$slots.source ? (r(), n("div", lt, [
|
|
491
499
|
m(t.$slots, "source", {}, void 0, !0)
|
|
492
500
|
], 512)) : i("", !0)
|
|
493
|
-
], 46,
|
|
501
|
+
], 46, Re));
|
|
494
502
|
}
|
|
495
|
-
},
|
|
503
|
+
}, ft = /* @__PURE__ */ ze(st, [["__scopeId", "data-v-c9289b67"]]);
|
|
496
504
|
export {
|
|
497
|
-
|
|
505
|
+
ft as default
|
|
498
506
|
};
|