vue-data-ui 2.16.5 → 2.16.6
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 -2
- package/dist/{Arrow-D9B36pfx.js → Arrow-DCqxVwey.js} +1 -1
- package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-6DIKXIBU.js} +2 -2
- package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-Bn996RXm.js} +1 -1
- package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-OFfLkKNb.js} +2 -2
- package/dist/{DataTable-B6MXw9cG.js → DataTable-CHBLjKtZ.js} +2 -2
- package/dist/{Legend-DoxQwq_u.js → Legend-nBXoxXJH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-Cls2idJS.js} +3 -3
- package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-Bg_9KCU-.js} +1 -1
- package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-BPTpbnay.js} +3 -3
- package/dist/{Shape-CrstrfQ9.js → Shape-Bnf512BA.js} +1 -1
- package/dist/{Slicer-Bd0AkciG.js → Slicer-BrqtJG2E.js} +2 -2
- package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-C-rLATAw.js} +1 -1
- package/dist/{Title-BQLtfM0P.js → Title-Gi81VwUM.js} +1 -1
- package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CJxVw7-T.js} +1 -1
- package/dist/{UserOptions-DMGkAAIO.js → UserOptions-CBEK6_jo.js} +137 -129
- package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-CRHNL8VU.js} +1 -1
- package/dist/img-BgOg8opa.js +27 -0
- package/dist/{index-CZNLCg7T.js → index-DvIXJm6t.js} +1 -1
- package/dist/{pdf-DJVOD0cz.js → pdf-DhTxBrbJ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -2
- package/dist/types/vue-data-ui.d.ts +2 -2
- package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DrYHm61t.js} +1 -1
- package/dist/{usePrinter-ButWuZVm.js → usePrinter-CWnXbGMb.js} +2 -2
- package/dist/{vue-data-ui-BB8Upnjm.js → vue-data-ui-B8EWlMIK.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-CtlB4p7i.js} +42 -41
- package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-D55kCO5G.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-DSshyUn-.js} +39 -38
- package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-DQSMv_k2.js} +2 -2
- package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-FeScjj7q.js} +23 -22
- package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-Drupgyoi.js} +100 -99
- package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-BTZQRZfO.js} +17 -16
- package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DLWjPwRL.js} +64 -63
- package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-BgLbFBT9.js} +87 -86
- package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-VXcRh2gy.js} +31 -30
- package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-DWmfnM25.js} +2 -2
- package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-CGIocEHj.js} +62 -62
- package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-BgQch3Fc.js} +2 -2
- package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-B59bCV5_.js} +74 -73
- package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-CI8qBIQd.js} +44 -43
- package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-CXv7sk88.js} +9 -8
- package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-DxF0ELtv.js} +9 -8
- package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Bco8rqF8.js} +20 -19
- package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-CaPJwwOj.js} +22 -21
- package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-D7arhDmb.js} +8 -7
- package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-Dwli-Mip.js} +3 -3
- package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-Cyn-ahGO.js} +10 -9
- package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-C2AEToqx.js} +27 -26
- package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-DKDibSdl.js} +3 -3
- package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-B8OVutUx.js} +2 -2
- package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-BVSrqIGw.js} +22 -21
- package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-DvlyS3RN.js} +9 -8
- package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D9ssSus6.js} +89 -88
- package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-Buu4VX3u.js} +40 -39
- package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-DFLUvhxD.js} +29 -28
- package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-BMC7NBGd.js} +90 -89
- package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-DB9RKUkb.js} +59 -58
- package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-68NMPxxQ.js} +26 -25
- package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-swH9kRr3.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CT-EdSjO.js} +11 -10
- package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-DftROPaX.js} +10 -9
- package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-M-9dPI5D.js} +45 -44
- package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-CsGhaFJh.js} +44 -43
- package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-BAOt2neL.js} +3 -3
- package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-7_kIgPg-.js} +2 -2
- package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-DHlQQpwz.js} +3 -3
- package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-BnHhzuKf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-WtfkCK8g.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-B2u4XLVd.js} +4 -4
- package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-DKIyUlSm.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-BLGz2qIb.js} +3 -3
- package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-BDpMsTYe.js} +11 -10
- package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-5qDcYPnR.js} +22 -21
- package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-Bg5HIQ3O.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-DmjNy1q1.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-CnkJkBk5.js} +8 -7
- package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-RlD-9mJf.js} +30 -29
- package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-Bes74INL.js} +5 -5
- package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-DiLS3akQ.js} +29 -28
- package/dist/vue-ui-treemap-BG1Omm38.js +953 -0
- package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-CwqQyZFX.js} +39 -38
- package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-Ce3T4BPp.js} +10 -9
- package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-6B0WTkf2.js} +34 -33
- package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-ByYZCOh7.js} +42 -41
- package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-B9PxVO4n.js} +8 -7
- package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-DtJ7qJib.js} +69 -68
- package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-S6YpFgzs.js} +131 -130
- package/package.json +1 -1
- package/dist/img-CTC5DLKL.js +0 -20
- package/dist/vue-ui-treemap-DzJsjtz7.js +0 -952
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineAsyncComponent as C, computed as b, ref as
|
|
2
|
-
import { u as Ue, c as Ve, a as We, o as Xe, e as je, v as c, X as He, s as q, w as xe, i as $, f as T, q as Ye, r as qe, x as Je, y as Ke } from "./index-
|
|
1
|
+
import { defineAsyncComponent as C, computed as b, ref as d, watch as Re, shallowRef as fe, onMounted as Be, onBeforeUnmount as De, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as Y, normalizeClass as ge, createBlock as I, createCommentVNode as y, renderSlot as h, createVNode as pe, createSlots as Ee, withCtx as f, normalizeProps as F, guardReactiveProps as M, createElementVNode as n, Fragment as P, renderList as B, toDisplayString as _, createTextVNode as be, nextTick as Ge } from "vue";
|
|
2
|
+
import { u as Ue, c as Ve, a as We, o as Xe, e as je, v as c, X as He, s as q, w as xe, i as $, f as T, q as Ye, r as qe, x as Je, y as Ke } from "./index-DvIXJm6t.js";
|
|
3
3
|
import { t as Qe, u as Ze } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as me } from "./useNestedProp-
|
|
5
|
-
import { u as et } from "./usePrinter-
|
|
4
|
+
import { u as me } from "./useNestedProp-DrYHm61t.js";
|
|
5
|
+
import { u as et } from "./usePrinter-CWnXbGMb.js";
|
|
6
6
|
import { u as tt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as lt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import at from "./Title-
|
|
8
|
+
import at from "./Title-Gi81VwUM.js";
|
|
9
9
|
import { _ as ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"], rt = ["id"], nt = ["stop-color"],
|
|
10
|
+
const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"], rt = ["id"], nt = ["stop-color"], vt = ["stop-color"], dt = ["id"], yt = ["stop-color"], ht = ["stop-color"], ct = ["x", "y", "width", "height", "fill", "rx"], ft = ["x", "y", "width", "height", "fill", "rx"], gt = ["x", "y", "width", "height", "fill", "rx"], pt = ["x", "y", "width", "height", "fill", "rx"], bt = { key: 0 }, xt = ["x", "y", "fill", "font-size", "font-weight"], mt = ["x", "y", "fill", "font-size", "font-weight"], wt = { key: 1 }, kt = ["x", "y", "font-size", "fill", "font-weight"], _t = { key: 2 }, Ct = { key: 0 }, $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], At = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Lt = ["x", "y", "font-size", "fill", "font-weight"], St = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zt = ["x", "y", "font-size", "fill", "font-weight"], Ot = ["x", "y", "font-size", "fill", "font-weight"], It = ["x", "y", "width", "height", "fill", "onMouseover"], Ft = {
|
|
11
11
|
key: 5,
|
|
12
12
|
class: "vue-data-ui-watermark"
|
|
13
13
|
}, Mt = {
|
|
@@ -27,7 +27,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
setup(J, { expose: we }) {
|
|
30
|
-
const ke = C(() => import("./vue-ui-accordion-
|
|
30
|
+
const ke = C(() => import("./vue-ui-accordion-D55kCO5G.js")), _e = C(() => import("./DataTable-CHBLjKtZ.js")), Ce = C(() => import("./PackageVersion-Bg_9KCU-.js")), $e = C(() => import("./PenAndPaper-BPTpbnay.js")), Te = C(() => import("./vue-ui-skeleton-BAOt2neL.js")), Ae = C(() => import("./Tooltip-CJxVw7-T.js")), Le = C(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_age_pyramid: Se } = Ue(), g = J, D = b(() => !!g.dataset && g.dataset.length), m = d(Ve()), ze = d(null), V = d(!1), W = d(""), E = d(null), K = d(0), N = d(null), Q = d(null), Z = d(null), ee = d(null), te = d(0), le = d(0), e = b({
|
|
31
31
|
get: () => ie(),
|
|
32
32
|
set: (t) => t
|
|
33
33
|
}), { userOptionsVisible: X, setUserOptionsVisibility: ae, keepUserOptionState: oe } = tt({ config: e.value }), { svgRef: se } = lt({ config: e.value.style.title });
|
|
@@ -72,14 +72,14 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
72
72
|
De(() => {
|
|
73
73
|
k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect());
|
|
74
74
|
});
|
|
75
|
-
const { isPrinting: re, isImaging: ne, generatePdf:
|
|
75
|
+
const { isPrinting: re, isImaging: ne, generatePdf: ve, generateImage: de } = et({
|
|
76
76
|
elementId: `vue-ui-age-pyramid_${m.value}`,
|
|
77
77
|
fileName: e.value.style.title.text || "vue-ui-age-pyramid",
|
|
78
78
|
options: e.value.userOptions.print
|
|
79
|
-
}), Oe = b(() => e.value.userOptions.show && !e.value.style.title.text), x =
|
|
79
|
+
}), Oe = b(() => e.value.userOptions.show && !e.value.style.title.text), x = d({
|
|
80
80
|
showTable: e.value.table.show,
|
|
81
81
|
showTooltip: e.value.style.tooltip.show
|
|
82
|
-
}), p =
|
|
82
|
+
}), p = d({
|
|
83
83
|
height: e.value.style.height,
|
|
84
84
|
width: e.value.style.width
|
|
85
85
|
}), o = b(() => {
|
|
@@ -104,10 +104,10 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
104
104
|
}), Ie = b(() => g.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), L = b(() => {
|
|
105
105
|
const t = Fe(R.value / 5), s = [], l = [];
|
|
106
106
|
for (let a = 0; a <= 5; a += 1) {
|
|
107
|
-
const
|
|
107
|
+
const v = t * a, w = t * (a - 5);
|
|
108
108
|
s.push({
|
|
109
|
-
value:
|
|
110
|
-
x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width +
|
|
109
|
+
value: v,
|
|
110
|
+
x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + v / R.value * o.value.leftChart.width
|
|
111
111
|
}), l.push({
|
|
112
112
|
value: Math.abs(w),
|
|
113
113
|
x: o.value.left + o.value.width / 2 + w / R.value * o.value.leftChart.width - e.value.style.layout.centerSlit.width
|
|
@@ -157,7 +157,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
157
157
|
height: a
|
|
158
158
|
}
|
|
159
159
|
};
|
|
160
|
-
})), j =
|
|
160
|
+
})), j = d(null);
|
|
161
161
|
function Pe(t, s) {
|
|
162
162
|
E.value = t, j.value = {
|
|
163
163
|
datapoint: s,
|
|
@@ -190,26 +190,26 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
190
190
|
});
|
|
191
191
|
else {
|
|
192
192
|
let a = "";
|
|
193
|
-
const
|
|
194
|
-
a += `<div><b>${
|
|
193
|
+
const v = z.value[t];
|
|
194
|
+
a += `<div><b>${v.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${$(
|
|
195
195
|
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
196
|
-
c(
|
|
197
|
-
T({ v: c(
|
|
196
|
+
c(v.age),
|
|
197
|
+
T({ v: c(v.age) }),
|
|
198
198
|
{ datapoint: s, seriesIndex: t }
|
|
199
199
|
)}</div>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, a += '<div style="display:flex; flex-direction:row;gap:12px">', a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${m.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${$(
|
|
200
200
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
201
|
-
c(
|
|
202
|
-
T({ v: c(
|
|
201
|
+
c(v.left.value),
|
|
202
|
+
T({ v: c(v.left.value) }),
|
|
203
203
|
{ datapoint: s, seriesIndex: t }
|
|
204
204
|
)}</b></div></div>`, a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${m.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${$(
|
|
205
205
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
206
|
-
c(
|
|
207
|
-
T({ v: c(
|
|
206
|
+
c(v.right.value),
|
|
207
|
+
T({ v: c(v.right.value) }),
|
|
208
208
|
{ datapoint: s, seriesIndex: t }
|
|
209
209
|
)}</b></div></div>`, a += "</div>", a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}"><div>${e.value.translations.total}</div><div><b>${$(
|
|
210
210
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
211
|
-
c(
|
|
212
|
-
T({ v: c(
|
|
211
|
+
c(v.right.value) + c(v.left.value),
|
|
212
|
+
T({ v: c(v.right.value) + c(v.left.value) }),
|
|
213
213
|
{ datapoint: s, seriesIndex: t }
|
|
214
214
|
)}</b></div></div>`, a += "</div>", W.value = `<div>${a}</div>`;
|
|
215
215
|
}
|
|
@@ -223,8 +223,8 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
223
223
|
w[2],
|
|
224
224
|
w[3],
|
|
225
225
|
w[2] + w[3]
|
|
226
|
-
]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(l),
|
|
227
|
-
t ? t(
|
|
226
|
+
]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(l), v = Ye(a);
|
|
227
|
+
t ? t(v) : qe({ csvContent: v, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
230
|
const G = b(() => {
|
|
@@ -254,7 +254,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
254
254
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
255
255
|
};
|
|
256
256
|
return { head: t, body: s, config: l, colNames: t };
|
|
257
|
-
}), O =
|
|
257
|
+
}), O = d(!1);
|
|
258
258
|
function Ne(t) {
|
|
259
259
|
O.value = t, K.value += 1;
|
|
260
260
|
}
|
|
@@ -264,14 +264,14 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
264
264
|
function ce() {
|
|
265
265
|
x.value.showTooltip = !x.value.showTooltip;
|
|
266
266
|
}
|
|
267
|
-
const U =
|
|
267
|
+
const U = d(!1);
|
|
268
268
|
function H() {
|
|
269
269
|
U.value = !U.value;
|
|
270
270
|
}
|
|
271
271
|
return we({
|
|
272
|
-
generatePdf:
|
|
272
|
+
generatePdf: ve,
|
|
273
273
|
generateCsv: ye,
|
|
274
|
-
generateImage:
|
|
274
|
+
generateImage: de,
|
|
275
275
|
toggleTable: he,
|
|
276
276
|
toggleTooltip: ce,
|
|
277
277
|
toggleAnnotator: H
|
|
@@ -342,10 +342,11 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
342
342
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
343
343
|
isAnnotation: U.value,
|
|
344
344
|
callbacks: e.value.userOptions.callbacks,
|
|
345
|
+
printScale: e.value.userOptions.print.scale,
|
|
345
346
|
onToggleFullscreen: Ne,
|
|
346
|
-
onGeneratePdf: i(
|
|
347
|
+
onGeneratePdf: i(ve),
|
|
347
348
|
onGenerateCsv: ye,
|
|
348
|
-
onGenerateImage: i(
|
|
349
|
+
onGenerateImage: i(de),
|
|
349
350
|
onToggleTable: he,
|
|
350
351
|
onToggleTooltip: ce,
|
|
351
352
|
onToggleAnnotator: H,
|
|
@@ -409,7 +410,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
409
410
|
]),
|
|
410
411
|
key: "7"
|
|
411
412
|
} : void 0
|
|
412
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
413
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
413
414
|
D.value ? (u(), r("svg", {
|
|
414
415
|
key: 4,
|
|
415
416
|
ref_key: "svgRef",
|
|
@@ -447,7 +448,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
447
448
|
n("stop", {
|
|
448
449
|
offset: "100%",
|
|
449
450
|
"stop-color": i(q)(i(xe)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
|
|
450
|
-
}, null, 8,
|
|
451
|
+
}, null, 8, vt)
|
|
451
452
|
], 8, rt),
|
|
452
453
|
n("linearGradient", {
|
|
453
454
|
id: `age_pyramid_right_${m.value}`,
|
|
@@ -464,7 +465,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
464
465
|
offset: "100%",
|
|
465
466
|
"stop-color": e.value.style.layout.bars.right.color
|
|
466
467
|
}, null, 8, ht)
|
|
467
|
-
], 8,
|
|
468
|
+
], 8, dt)
|
|
468
469
|
]),
|
|
469
470
|
(u(!0), r(P, null, B(z.value, (l, a) => (u(), r("g", null, [
|
|
470
471
|
n("rect", {
|
|
@@ -629,8 +630,8 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
629
630
|
width: o.value.width <= 0 ? 1e-4 : o.value.width,
|
|
630
631
|
height: o.value.height / S.value <= 0 ? 1e-4 : o.value.height / S.value,
|
|
631
632
|
fill: E.value !== null && E.value === a ? i(q)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
|
|
632
|
-
onMouseover: (
|
|
633
|
-
onMouseleave: s[0] || (s[0] = (
|
|
633
|
+
onMouseover: (v) => Pe(a, l),
|
|
634
|
+
onMouseleave: s[0] || (s[0] = (v) => {
|
|
634
635
|
E.value = null, V.value = !1;
|
|
635
636
|
})
|
|
636
637
|
}, null, 40, It)
|
|
@@ -724,7 +725,7 @@ const st = ["id"], it = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
|
|
|
724
725
|
}, 8, ["config"])) : y("", !0)
|
|
725
726
|
], 46, st));
|
|
726
727
|
}
|
|
727
|
-
}, Wt = /* @__PURE__ */ ot(Mt, [["__scopeId", "data-v-
|
|
728
|
+
}, Wt = /* @__PURE__ */ ot(Mt, [["__scopeId", "data-v-07736a66"]]);
|
|
728
729
|
export {
|
|
729
730
|
Wt as default
|
|
730
731
|
};
|
|
@@ -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-DvIXJm6t.js";
|
|
2
|
+
import { d as M } from "./dom-to-png-CRHNL8VU.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,11 +1,11 @@
|
|
|
1
1
|
import { defineAsyncComponent as L, ref as g, computed as f, onMounted as be, watch as Q, onBeforeUnmount as ke, createElementBlock as n, openBlock as r, unref as o, normalizeStyle as M, normalizeClass as Z, createBlock as w, createCommentVNode as i, createElementVNode as x, createSlots as we, withCtx as p, renderSlot as m, normalizeProps as $, guardReactiveProps as O, createVNode as xe, Fragment as T, renderList as N, toDisplayString as A } from "vue";
|
|
2
|
-
import { u as _e, o as Ce, e as ee, g as Le, c as $e, l as Oe, D as Ae, d as Be, i as B, f as P, X as Pe, a as
|
|
3
|
-
import { u as te } from "./useNestedProp-
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
2
|
+
import { u as _e, o as Ce, e as ee, g as Le, c as $e, l as Oe, D as Ae, d as Be, i as B, f as P, X as Pe, a as Se } from "./index-DvIXJm6t.js";
|
|
3
|
+
import { u as te } from "./useNestedProp-DrYHm61t.js";
|
|
4
|
+
import { u as Fe } from "./usePrinter-CWnXbGMb.js";
|
|
5
|
+
import { u as Ie } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { u as He } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import Me from "./Legend-
|
|
8
|
-
import Te from "./Title-
|
|
7
|
+
import Me from "./Legend-nBXoxXJH.js";
|
|
8
|
+
import Te from "./Title-Gi81VwUM.js";
|
|
9
9
|
import { _ as Ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const Ue = ["id"], ze = {
|
|
11
11
|
key: 1,
|
|
@@ -39,7 +39,7 @@ const Ue = ["id"], ze = {
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
setup(ae, { expose: le }) {
|
|
42
|
-
const se = L(() => import("./PackageVersion-
|
|
42
|
+
const se = L(() => import("./PackageVersion-Bg_9KCU-.js")), re = L(() => import("./PenAndPaper-BPTpbnay.js")), oe = L(() => import("./vue-ui-skeleton-BAOt2neL.js")), ne = L(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_bullet: ue } = _e(), u = ae, U = g(null), ie = g(null), z = g(0), ce = g(null), he = g(0), y = f({
|
|
43
43
|
get: () => u.dataset.hasOwnProperty("value"),
|
|
44
44
|
set: (t) => t
|
|
45
45
|
}), 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:
|
|
@@ -95,7 +95,7 @@ segments: [
|
|
|
95
95
|
});
|
|
96
96
|
}) : y.value = !1, e.value.style.chart.animation.show && G(u.dataset.value || 0);
|
|
97
97
|
}
|
|
98
|
-
const
|
|
98
|
+
const S = g($e());
|
|
99
99
|
function W() {
|
|
100
100
|
const t = te({
|
|
101
101
|
userConfig: u.config,
|
|
@@ -103,7 +103,7 @@ segments: [
|
|
|
103
103
|
});
|
|
104
104
|
return t.theme ? {
|
|
105
105
|
...te({
|
|
106
|
-
userConfig:
|
|
106
|
+
userConfig: Se.vue_ui_bullet[t.theme] || u.config,
|
|
107
107
|
defaultConfig: t
|
|
108
108
|
})
|
|
109
109
|
} : t;
|
|
@@ -111,9 +111,9 @@ segments: [
|
|
|
111
111
|
const e = f({
|
|
112
112
|
get: () => W(),
|
|
113
113
|
set: (t) => t
|
|
114
|
-
}), { userOptionsVisible:
|
|
114
|
+
}), { userOptionsVisible: F, setUserOptionsVisibility: E, keepUserOptionState: V } = Ie({ config: e.value }), { svgRef: D } = He({ config: e.value.style.chart.title });
|
|
115
115
|
Q(() => u.config, (t) => {
|
|
116
|
-
e.value = W(),
|
|
116
|
+
e.value = W(), F.value = !e.value.userOptions.showOnChartHover, R(), z.value += 1;
|
|
117
117
|
}, { deep: !0 });
|
|
118
118
|
const l = f(() => {
|
|
119
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, C = e.value.style.chart.padding.top, v = t - e.value.style.chart.padding.bottom;
|
|
@@ -133,7 +133,7 @@ segments: [
|
|
|
133
133
|
for (let s = 0; s < u.dataset.segments.length; s += 1)
|
|
134
134
|
t.push(Oe(e.value.style.chart.segments.baseColor, s / u.dataset.segments.length));
|
|
135
135
|
return t;
|
|
136
|
-
}),
|
|
136
|
+
}), I = f(() => b.value ? {
|
|
137
137
|
min: Math.min(...u.dataset.segments.map((t) => t.from)),
|
|
138
138
|
max: Math.max(...u.dataset.segments.map((t) => t.to))
|
|
139
139
|
} : { min: 0, max: 1 }), c = g(de());
|
|
@@ -141,7 +141,7 @@ segments: [
|
|
|
141
141
|
e.value.style.chart.animation.show ? G(t.value || 0) : c.value = t.value || 0;
|
|
142
142
|
}, { deep: !0 });
|
|
143
143
|
function de() {
|
|
144
|
-
return e.value.style.chart.animation.show ?
|
|
144
|
+
return e.value.style.chart.animation.show ? I.value.min : u.dataset.value || 0;
|
|
145
145
|
}
|
|
146
146
|
const j = g(null);
|
|
147
147
|
function G(t) {
|
|
@@ -157,7 +157,7 @@ segments: [
|
|
|
157
157
|
const h = f(() => {
|
|
158
158
|
if (!b.value)
|
|
159
159
|
return [];
|
|
160
|
-
const t = Ae(
|
|
160
|
+
const t = Ae(I.value.min, I.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
|
|
161
161
|
x: l.value.left + (u.dataset.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
|
|
162
162
|
}, d = {
|
|
163
163
|
width: (c.value + s) / (t.max + s) * l.value.chartWidth
|
|
@@ -212,8 +212,8 @@ segments: [
|
|
|
212
212
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
213
213
|
paddingBottom: 6,
|
|
214
214
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
215
|
-
})), { isPrinting: X, isImaging: Y, generatePdf: J, generateImage: K } =
|
|
216
|
-
elementId: `bullet_${
|
|
215
|
+
})), { isPrinting: X, isImaging: Y, generatePdf: J, generateImage: K } = Fe({
|
|
216
|
+
elementId: `bullet_${S.value}`,
|
|
217
217
|
fileName: e.value.style.chart.title.text || "vue-ui-bullet",
|
|
218
218
|
options: e.value.userOptions.print
|
|
219
219
|
}), fe = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), k = g(!1);
|
|
@@ -237,7 +237,7 @@ segments: [
|
|
|
237
237
|
ref: U,
|
|
238
238
|
class: Z(`vue-ui-bullet ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
239
239
|
style: M(`font-family:${e.value.style.fontFamily};width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
240
|
-
id: `bullet_${
|
|
240
|
+
id: `bullet_${S.value}`,
|
|
241
241
|
onMouseenter: s[0] || (s[0] = () => o(E)(!0)),
|
|
242
242
|
onMouseleave: s[1] || (s[1] = () => o(E)(!1))
|
|
243
243
|
}, [
|
|
@@ -271,14 +271,14 @@ segments: [
|
|
|
271
271
|
}
|
|
272
272
|
}, null, 8, ["config"]))
|
|
273
273
|
], 512)) : i("", !0),
|
|
274
|
-
e.value.userOptions.show && y.value && (o(V) || o(
|
|
274
|
+
e.value.userOptions.show && y.value && (o(V) || o(F)) ? (r(), w(o(ne), {
|
|
275
275
|
key: 3,
|
|
276
276
|
ref: "details",
|
|
277
277
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
278
278
|
color: e.value.style.chart.color,
|
|
279
279
|
isPrinting: o(X),
|
|
280
280
|
isImaging: o(Y),
|
|
281
|
-
uid:
|
|
281
|
+
uid: S.value,
|
|
282
282
|
hasTooltip: !1,
|
|
283
283
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
284
284
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -293,12 +293,13 @@ segments: [
|
|
|
293
293
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
294
294
|
isAnnotation: _.value,
|
|
295
295
|
callbacks: e.value.userOptions.callbacks,
|
|
296
|
+
printScale: e.value.userOptions.print.scale,
|
|
296
297
|
onToggleFullscreen: me,
|
|
297
298
|
onGeneratePdf: o(J),
|
|
298
299
|
onGenerateImage: o(K),
|
|
299
300
|
onToggleAnnotator: H,
|
|
300
301
|
style: M({
|
|
301
|
-
visibility: o(V) ? o(
|
|
302
|
+
visibility: o(V) ? o(F) ? "visible" : "hidden" : "visible"
|
|
302
303
|
})
|
|
303
304
|
}, we({ _: 2 }, [
|
|
304
305
|
t.$slots.menuIcon ? {
|
|
@@ -336,7 +337,7 @@ segments: [
|
|
|
336
337
|
]),
|
|
337
338
|
key: "4"
|
|
338
339
|
} : void 0
|
|
339
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
|
|
340
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : i("", !0),
|
|
340
341
|
y.value ? (r(), n("svg", {
|
|
341
342
|
key: 4,
|
|
342
343
|
ref_key: "svgRef",
|
|
@@ -491,7 +492,7 @@ segments: [
|
|
|
491
492
|
], 512)) : i("", !0)
|
|
492
493
|
], 46, Ue));
|
|
493
494
|
}
|
|
494
|
-
}, vt = /* @__PURE__ */ Ne(at, [["__scopeId", "data-v-
|
|
495
|
+
}, vt = /* @__PURE__ */ Ne(at, [["__scopeId", "data-v-fb99af28"]]);
|
|
495
496
|
export {
|
|
496
497
|
vt as default
|
|
497
498
|
};
|