vue-data-ui 2.12.8-beta.3 → 2.12.8-beta.4
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 +10 -4
- package/dist/{Arrow-kQyQXUUg.js → Arrow-XoY1VXNf.js} +1 -1
- package/dist/{BaseDraggableDialog-DLRFrsDT.js → BaseDraggableDialog-CXe0WfN-.js} +2 -2
- package/dist/{BaseIcon-DaR0sIWZ.js → BaseIcon-d4dmqhkb.js} +1 -1
- package/dist/{ColorPicker-Bj3sq9o7.js → ColorPicker-B3v0IhDO.js} +2 -2
- package/dist/{DataTable-BBqbcutV.js → DataTable-CmbjnjRg.js} +2 -2
- package/dist/{Legend-DRqzYrP9.js → Legend-YPYnzTBz.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CQIC2PMP.js → NonSvgPenAndPaper-SD-bH_GI.js} +3 -3
- package/dist/{PackageVersion-ClpqQxYT.js → PackageVersion-OcbP0WH2.js} +1 -1
- package/dist/{PenAndPaper-B-T7XvxF.js → PenAndPaper-BgPXmpGI.js} +3 -3
- package/dist/{Shape-DEWxbZ-l.js → Shape-WvXjwML_.js} +1 -1
- package/dist/{Slicer-o6jJH5bw.js → Slicer-CaMHCF_p.js} +2 -2
- package/dist/{SparkTooltip-LPnbBoFu.js → SparkTooltip-BTLad6y3.js} +1 -1
- package/dist/{Title-apr_T9tg.js → Title-CJcZXNtK.js} +1 -1
- package/dist/{Tooltip-BuHsMAfp.js → Tooltip-dXp8FaUj.js} +1 -1
- package/dist/{UserOptions-OVNxxnq5.js → UserOptions-Cs7JW3dK.js} +16 -11
- package/dist/dom-to-png-DGfv21rX.js +247 -0
- package/dist/img-fdViJw1e.js +20 -0
- package/dist/{index-CH_mJIWj.js → index-BzQ0j5xI.js} +6 -2
- package/dist/{pdf-Jun3ogRn.js → pdf-Bj65uPK-.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +20 -3
- package/dist/types/vue-data-ui.d.ts +20 -3
- package/dist/{useNestedProp-rMR-JeOJ.js → useNestedProp-DqpZEE3h.js} +1 -1
- package/dist/{usePrinter-DJ7WfWUs.js → usePrinter-CpG5jh_z.js} +2 -2
- package/dist/{vue-data-ui-D7AaTKU6.js → vue-data-ui-CeIncf6V.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BfLLrwWi.js → vue-ui-3d-bar-fAJK0nIB.js} +173 -173
- package/dist/{vue-ui-accordion-Ds4zkPIx.js → vue-ui-accordion-bpaEpjqI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C7ca5TG5.js → vue-ui-age-pyramid-D5w5EqmV.js} +179 -179
- package/dist/{vue-ui-annotator-DG2z1gw8.js → vue-ui-annotator-CSGemK-O.js} +2 -2
- package/dist/{vue-ui-bullet-Dh25QAEH.js → vue-ui-bullet-FPBahjOr.js} +6 -6
- package/dist/{vue-ui-candlestick-7Yo_kEV0.js → vue-ui-candlestick-BpP9MQC2.js} +113 -113
- package/dist/{vue-ui-carousel-table-Det9Kwmy.js → vue-ui-carousel-table-lpdLFAfT.js} +94 -94
- package/dist/{vue-ui-chestnut-DLlFv6Uj.js → vue-ui-chestnut-D5um0tmC.js} +452 -452
- package/dist/{vue-ui-chord-BXlv5Z2x.js → vue-ui-chord-CgrXXOgv.js} +17 -17
- package/dist/{vue-ui-circle-pack-DdRcdWmx.js → vue-ui-circle-pack-Jk-Yd8T_.js} +116 -116
- package/dist/{vue-ui-cursor-Djtg6Ppw.js → vue-ui-cursor-BjmAMjTd.js} +2 -2
- package/dist/{vue-ui-dashboard-C4MDDCl6.js → vue-ui-dashboard-CQ0B1DMq.js} +62 -62
- package/dist/{vue-ui-digits-8Ox6q1Ov.js → vue-ui-digits-B3h4BufU.js} +2 -2
- package/dist/{vue-ui-donut-Hk4EaVhb.js → vue-ui-donut-DcjJqRof.js} +149 -149
- package/dist/{vue-ui-donut-evolution-DzgYokPU.js → vue-ui-donut-evolution-DmSbXlMu.js} +109 -109
- package/dist/{vue-ui-dumbbell-CAC44_Hu.js → vue-ui-dumbbell-BLcmTUd_.js} +65 -65
- package/dist/{vue-ui-flow-CYWiZjrP.js → vue-ui-flow-BmIGl6DC.js} +12 -12
- package/dist/{vue-ui-funnel-C2eqxh_8.js → vue-ui-funnel-BJfxaSQC.js} +65 -65
- package/dist/{vue-ui-galaxy-BBfg84E4.js → vue-ui-galaxy-Cpnr2YW-.js} +82 -82
- package/dist/{vue-ui-gauge-BJgJgef_.js → vue-ui-gauge-BhPFNziU.js} +5 -5
- package/dist/{vue-ui-gizmo-DBclpybR.js → vue-ui-gizmo-B2wA-kmz.js} +3 -3
- package/dist/{vue-ui-heatmap-D65wOgqe.js → vue-ui-heatmap-CpwNMx3i.js} +221 -221
- package/dist/{vue-ui-history-plot-CHhDy7Da.js → vue-ui-history-plot-DpxHqDZw.js} +232 -232
- package/dist/{vue-ui-kpi-uT6fsAaO.js → vue-ui-kpi-CvqXwiiE.js} +3 -3
- package/dist/{vue-ui-mini-loader-CKVlBiYB.js → vue-ui-mini-loader-DIjSfc7L.js} +2 -2
- package/dist/{vue-ui-molecule-BwtHZtGN.js → vue-ui-molecule-3-vg0Re6.js} +30 -30
- package/dist/{vue-ui-mood-radar-Vf4_-R-m.js → vue-ui-mood-radar-B7W7wGkW.js} +75 -75
- package/dist/{vue-ui-nested-donuts-BVkSns4S.js → vue-ui-nested-donuts-ByoeDL-3.js} +16 -16
- package/dist/{vue-ui-onion-UzMmwtvF.js → vue-ui-onion-CNVwf4QX.js} +70 -70
- package/dist/{vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js → vue-ui-parallel-coordinate-plot-C0KJrBX8.js} +11 -11
- package/dist/{vue-ui-quadrant-Ck7xALez.js → vue-ui-quadrant-C-wPn5l5.js} +11 -11
- package/dist/{vue-ui-quick-chart-B62Pa0nG.js → vue-ui-quick-chart-SV-m_FhA.js} +5 -5
- package/dist/{vue-ui-radar-DMfv2hSb.js → vue-ui-radar-DqOzvLUy.js} +283 -282
- package/dist/{vue-ui-rating-CFYHJrxj.js → vue-ui-rating-CsZXcINB.js} +2 -2
- package/dist/{vue-ui-relation-circle-RWlfC5BI.js → vue-ui-relation-circle-B0zxq02O.js} +5 -5
- package/dist/{vue-ui-ridgeline-Bh93VzcO.js → vue-ui-ridgeline-CykFyAin.js} +100 -100
- package/dist/{vue-ui-rings-CyX30Ccv.js → vue-ui-rings-DoJwXgd3.js} +96 -96
- package/dist/{vue-ui-scatter-BEDnWByj.js → vue-ui-scatter-BTT3BYrI.js} +164 -164
- package/dist/{vue-ui-skeleton-C6PWt_m5.js → vue-ui-skeleton-CavMQlAm.js} +3 -3
- package/dist/{vue-ui-smiley-79itAe84.js → vue-ui-smiley-DdT6TBz8.js} +2 -2
- package/dist/{vue-ui-spark-trend-AaA4KuaH.js → vue-ui-spark-trend-D9q63V2-.js} +3 -3
- package/dist/{vue-ui-sparkbar-CYBZeaor.js → vue-ui-sparkbar-DCS_f__b.js} +3 -3
- package/dist/{vue-ui-sparkgauge-ElGarXVS.js → vue-ui-sparkgauge-CGDjBHjo.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C_LV99i1.js → vue-ui-sparkhistogram-Ctpm0106.js} +4 -4
- package/dist/{vue-ui-sparkline-DwzCA8d6.js → vue-ui-sparkline-BVyjNK_A.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CobB11uw.js → vue-ui-sparkstackbar-BsNDucJO.js} +3 -3
- package/dist/{vue-ui-stackbar-B4SxM5Ix.js → vue-ui-stackbar-DuGcJQ6F.js} +37 -37
- package/dist/{vue-ui-strip-plot-9VK_Y3SC.js → vue-ui-strip-plot-C6vbloAI.js} +80 -80
- package/dist/{vue-ui-table-DFTE1OH5.js → vue-ui-table-Bb6pNaIM.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DvyJx0j7.js → vue-ui-table-heatmap-_ypWL_z2.js} +57 -57
- package/dist/{vue-ui-table-sparkline-SGsBnQTK.js → vue-ui-table-sparkline-_pPedR_D.js} +72 -72
- package/dist/{vue-ui-thermometer-DEMS6HXl.js → vue-ui-thermometer-CmLnTIU7.js} +5 -5
- package/dist/{vue-ui-timer-CQ71yJ_N.js → vue-ui-timer-CpAJT80M.js} +5 -5
- package/dist/{vue-ui-tiremarks-CsN_QtUK.js → vue-ui-tiremarks-DXgmJClr.js} +5 -5
- package/dist/{vue-ui-treemap-B0CPNusH.js → vue-ui-treemap-Ci2Yi9Gh.js} +297 -297
- package/dist/{vue-ui-vertical-bar-Cxv-ahMT.js → vue-ui-vertical-bar-pn_EqFmU.js} +81 -81
- package/dist/{vue-ui-waffle-TgNNo9UX.js → vue-ui-waffle-vqh1kEDT.js} +50 -50
- package/dist/{vue-ui-wheel-Bq0ZLc-R.js → vue-ui-wheel-BCcK6wwZ.js} +5 -5
- package/dist/{vue-ui-word-cloud-D28awCaT.js → vue-ui-word-cloud-Bu8Giu0b.js} +67 -67
- package/dist/{vue-ui-world-BhUsfhY5.js → vue-ui-world-CzRlg19V.js} +55 -55
- package/dist/{vue-ui-xy-CEFkua9H.js → vue-ui-xy-0gHPOOwZ.js} +201 -182
- package/dist/{vue-ui-xy-canvas-oHhzL0ui.js → vue-ui-xy-canvas-DuAgXbBB.js} +80 -80
- package/package.json +1 -1
- package/dist/dom-to-png-C0Ct8ClX.js +0 -243
- package/dist/img-P0SFFw37.js +0 -19
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineAsyncComponent as T, computed as g, ref as d, watch as ge, shallowRef as pe, onMounted as me, onBeforeUnmount as We, createElementBlock as r, openBlock as o, unref as n, normalizeStyle as E, normalizeClass as ke, createBlock as A, createCommentVNode as v, createElementVNode as i, createSlots as Ue, withCtx as k, renderSlot as p, normalizeProps as R, guardReactiveProps as H, createVNode as Be, Fragment as $, renderList as L, toDisplayString as z, createTextVNode as _e, nextTick as je } from "vue";
|
|
2
|
-
import { u as qe, c as xe, a as Ye, o as Ze, e as we, g as Je, v as Ce, D as Ke, f as S, X as $e, i as q, l as Le, h as Ae, q as Qe, r as et } from "./index-
|
|
2
|
+
import { u as qe, c as xe, a as Ye, o as Ze, e as we, g as Je, v as Ce, D as Ke, f as S, X as $e, i as q, l as Le, h as Ae, q as Qe, r as et } from "./index-BzQ0j5xI.js";
|
|
3
3
|
import { t as tt, u as lt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as ze } from "./useNestedProp-
|
|
5
|
-
import { u as at } from "./usePrinter-
|
|
4
|
+
import { u as ze } from "./useNestedProp-DqpZEE3h.js";
|
|
5
|
+
import { u as at } from "./usePrinter-CpG5jh_z.js";
|
|
6
6
|
import { u as st } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as ot } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import rt from "./Legend-
|
|
9
|
-
import nt from "./Title-
|
|
8
|
+
import rt from "./Legend-YPYnzTBz.js";
|
|
9
|
+
import nt from "./Title-CJcZXNtK.js";
|
|
10
10
|
import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"], vt = { key: 1 }, ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], yt = { key: 2 },
|
|
11
|
+
const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"], vt = { key: 1 }, ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], yt = { key: 2 }, ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gt = { key: 3 }, pt = ["x", "y", "font-size", "fill", "font-weight"], mt = ["x", "y", "font-size", "fill"], kt = { key: 4 }, _t = ["x", "y", "font-size", "fill", "font-weight"], xt = ["id"], wt = ["stop-color"], Ct = ["stop-color"], $t = ["stop-color"], Lt = ["id"], At = ["stop-color"], zt = ["stop-color"], St = ["stop-color"], Xt = ["id"], Nt = ["stop-color"], Tt = ["stop-color"], Ot = ["id"], Pt = ["stop-color"], Mt = ["stop-color"], It = { key: 0 }, Gt = ["d", "fill"], Dt = { key: 1 }, Ft = ["x", "y", "height", "width", "fill"], Vt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Et = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Rt = { key: 5 }, Ht = ["x", "y", "fill", "font-size"], Wt = { key: 6 }, Ut = ["x", "y", "fill", "font-size"], Bt = {
|
|
12
12
|
key: 5,
|
|
13
13
|
class: "vue-data-ui-watermark"
|
|
14
14
|
}, jt = ["xmlns", "height", "width"], qt = ["fill"], Yt = ["innerHTML"], Zt = {
|
|
@@ -29,9 +29,9 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
29
29
|
},
|
|
30
30
|
emits: ["selectDatapoint"],
|
|
31
31
|
setup(Se, { expose: Xe, emit: Jt }) {
|
|
32
|
-
const Ne = T(() => import("./vue-ui-accordion-
|
|
32
|
+
const Ne = T(() => import("./vue-ui-accordion-bpaEpjqI.js")), Te = T(() => import("./DataTable-CmbjnjRg.js")), Oe = T(() => import("./PackageVersion-OcbP0WH2.js")), Pe = T(() => import("./PenAndPaper-BgPXmpGI.js")), Me = T(() => import("./vue-ui-skeleton-CavMQlAm.js")), Ie = T(() => import("./UserOptions-Cs7JW3dK.js")), { vue_ui_dumbbell: Ge } = qe(), b = Se, X = g({
|
|
33
33
|
get() {
|
|
34
|
-
return !!
|
|
34
|
+
return !!b.dataset && b.dataset.length;
|
|
35
35
|
},
|
|
36
36
|
set(l) {
|
|
37
37
|
return l;
|
|
@@ -42,30 +42,30 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
42
42
|
}), { userOptionsVisible: W, setUserOptionsVisibility: ae, keepUserOptionState: se } = st({ config: e.value }), { svgRef: oe } = ot({ config: e.value.style.chart.title });
|
|
43
43
|
function re() {
|
|
44
44
|
const l = ze({
|
|
45
|
-
userConfig:
|
|
45
|
+
userConfig: b.config,
|
|
46
46
|
defaultConfig: Ge
|
|
47
47
|
});
|
|
48
48
|
return l.theme ? {
|
|
49
49
|
...ze({
|
|
50
|
-
userConfig: Ye.vue_ui_dumbbell[l.theme] ||
|
|
50
|
+
userConfig: Ye.vue_ui_dumbbell[l.theme] || b.config,
|
|
51
51
|
defaultConfig: l
|
|
52
52
|
})
|
|
53
53
|
} : l;
|
|
54
54
|
}
|
|
55
|
-
ge(() =>
|
|
55
|
+
ge(() => b.config, (l) => {
|
|
56
56
|
e.value = re(), W.value = !e.value.userOptions.showOnChartHover, ne(), ee.value += 1, te.value += 1, le.value += 1, h.value = e.value.style.chart.rowHeight, P.value = e.value.style.chart.width, O.value.showTable = e.value.table.show;
|
|
57
|
-
}, { deep: !0 }), ge(() =>
|
|
57
|
+
}, { deep: !0 }), ge(() => b.dataset, (l) => {
|
|
58
58
|
he();
|
|
59
59
|
}, { deep: !0 });
|
|
60
|
-
const
|
|
60
|
+
const x = pe(null), N = pe(null);
|
|
61
61
|
me(() => {
|
|
62
62
|
ne();
|
|
63
63
|
});
|
|
64
64
|
function ne() {
|
|
65
|
-
if (Ze(
|
|
65
|
+
if (Ze(b.dataset) ? we({
|
|
66
66
|
componentName: "VueUiDumbbell",
|
|
67
67
|
type: "dataset"
|
|
68
|
-
}) :
|
|
68
|
+
}) : b.dataset.forEach((l, u) => {
|
|
69
69
|
Je({
|
|
70
70
|
datasetObject: l,
|
|
71
71
|
requiredAttributes: ["name", "start", "end"]
|
|
@@ -87,14 +87,14 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
87
87
|
noTitle: Q.value
|
|
88
88
|
});
|
|
89
89
|
requestAnimationFrame(() => {
|
|
90
|
-
P.value = u, h.value = t /
|
|
90
|
+
P.value = u, h.value = t / b.dataset.length, f.value = G();
|
|
91
91
|
});
|
|
92
92
|
});
|
|
93
|
-
|
|
93
|
+
x.value && (N.value && x.value.unobserve(N.value), x.value.disconnect()), x.value = new ResizeObserver(l), N.value = I.value.parentNode, x.value.observe(N.value);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
We(() => {
|
|
97
|
-
|
|
97
|
+
x.value && (N.value && x.value.unobserve(N.value), x.value.disconnect());
|
|
98
98
|
});
|
|
99
99
|
const { isPrinting: ue, isImaging: ie, generatePdf: ce, generateImage: de } = at({
|
|
100
100
|
elementId: `dumbbell_${y.value}`,
|
|
@@ -102,23 +102,23 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
102
102
|
options: e.value.userOptions.print
|
|
103
103
|
}), De = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), O = d({
|
|
104
104
|
showTable: e.value.table.show
|
|
105
|
-
}),
|
|
105
|
+
}), w = g(() => b.dataset.map((l, u) => ({
|
|
106
106
|
...l,
|
|
107
107
|
start: Ce(l.start),
|
|
108
108
|
end: Ce(l.end),
|
|
109
109
|
id: xe()
|
|
110
110
|
}))), U = g(() => ({
|
|
111
|
-
max: Math.max(...
|
|
112
|
-
min: Math.min(...
|
|
111
|
+
max: Math.max(...w.value.flatMap((l) => [l.start, l.end])),
|
|
112
|
+
min: Math.min(...w.value.flatMap((l) => [l.start, l.end]))
|
|
113
113
|
})), c = g(() => Ke(U.value.min < 0 ? U.value.min : 0, U.value.max, e.value.style.chart.grid.scaleSteps)), h = d(e.value.style.chart.rowHeight), P = d(e.value.style.chart.width), s = g(() => {
|
|
114
|
-
const l = h.value, u = e.value.style.chart.padding.left + e.value.style.chart.padding.right + P.value, t = e.value.style.chart.padding.top + e.value.style.chart.padding.bottom + l *
|
|
114
|
+
const l = h.value, u = e.value.style.chart.padding.left + e.value.style.chart.padding.right + P.value, t = e.value.style.chart.padding.top + e.value.style.chart.padding.bottom + l * b.dataset.length, a = c.value.ticks.length * (P.value / c.value.ticks.length);
|
|
115
115
|
return {
|
|
116
116
|
left: e.value.style.chart.padding.left,
|
|
117
117
|
right: u - e.value.style.chart.padding.right,
|
|
118
118
|
top: e.value.style.chart.padding.top,
|
|
119
119
|
bottom: t - e.value.style.chart.padding.bottom,
|
|
120
120
|
width: P.value,
|
|
121
|
-
height: l *
|
|
121
|
+
height: l * b.dataset.length,
|
|
122
122
|
rowHeight: l,
|
|
123
123
|
absoluteHeight: t,
|
|
124
124
|
absoluteWidth: u,
|
|
@@ -126,41 +126,41 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
126
126
|
};
|
|
127
127
|
});
|
|
128
128
|
function G() {
|
|
129
|
-
return
|
|
130
|
-
const t = s.value.left + (l.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, a = s.value.left + (l.end + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference,
|
|
129
|
+
return w.value.map((l, u) => {
|
|
130
|
+
const t = s.value.left + (l.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, a = s.value.left + (l.end + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, _ = t + (a - t) / 2;
|
|
131
131
|
return {
|
|
132
132
|
...l,
|
|
133
133
|
startX: t,
|
|
134
134
|
endX: a,
|
|
135
|
-
centerX:
|
|
135
|
+
centerX: _,
|
|
136
136
|
y: s.value.top + u * h.value + h.value / 2,
|
|
137
137
|
endVal: l.start
|
|
138
138
|
};
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
|
-
const
|
|
141
|
+
const f = d([]), ve = d(null), Fe = g(() => w.value.map((l) => l.end).reduce((l, u) => l + u, 0));
|
|
142
142
|
me(() => {
|
|
143
143
|
he();
|
|
144
144
|
});
|
|
145
145
|
function he() {
|
|
146
|
-
|
|
147
|
-
let l =
|
|
146
|
+
f.value = G();
|
|
147
|
+
let l = f.value.map((t) => t.start).reduce((t, a) => t + a, 0);
|
|
148
148
|
function u() {
|
|
149
|
-
const t =
|
|
150
|
-
l >= Fe.value ? (cancelAnimationFrame(ve.value),
|
|
151
|
-
a.endVal += t[
|
|
152
|
-
const
|
|
149
|
+
const t = w.value.map((a) => a.end - a.start);
|
|
150
|
+
l >= Fe.value ? (cancelAnimationFrame(ve.value), f.value = G()) : (f.value = f.value.map((a, _) => {
|
|
151
|
+
a.endVal += t[_] * (e.value.animationSpeed / 100);
|
|
152
|
+
const m = s.value.left + (a.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, V = s.value.left + (a.endVal + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, j = m + (V - m) / 2;
|
|
153
153
|
return {
|
|
154
154
|
...a,
|
|
155
|
-
startX:
|
|
155
|
+
startX: m,
|
|
156
156
|
endX: V,
|
|
157
157
|
centerX: j,
|
|
158
|
-
y: s.value.top +
|
|
158
|
+
y: s.value.top + _ * h.value + h.value / 2,
|
|
159
159
|
endVal: a.endVal
|
|
160
160
|
};
|
|
161
|
-
}), l =
|
|
161
|
+
}), l = f.value.map((a) => a.endVal).reduce((a, _) => a + _, 0), ve.value = requestAnimationFrame(u));
|
|
162
162
|
}
|
|
163
|
-
e.value.useAnimation ? u() :
|
|
163
|
+
e.value.useAnimation ? u() : f.value = G();
|
|
164
164
|
}
|
|
165
165
|
const ye = g(() => [
|
|
166
166
|
{ name: e.value.style.chart.legend.labelStart, color: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${y.value})` : e.value.style.chart.plots.startColor },
|
|
@@ -173,10 +173,10 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
173
173
|
paddingBottom: 12,
|
|
174
174
|
paddingTop: 12,
|
|
175
175
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
176
|
-
})),
|
|
177
|
-
const l =
|
|
176
|
+
})), C = g(() => {
|
|
177
|
+
const l = f.value.map((t) => ({
|
|
178
178
|
name: t.name
|
|
179
|
-
})), u =
|
|
179
|
+
})), u = f.value.map((t) => ({
|
|
180
180
|
start: t.start,
|
|
181
181
|
end: t.end
|
|
182
182
|
}));
|
|
@@ -187,24 +187,24 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
187
187
|
e.value.table.columnNames.start,
|
|
188
188
|
e.value.table.columnNames.end,
|
|
189
189
|
e.value.table.columnNames.progression
|
|
190
|
-
], u =
|
|
190
|
+
], u = C.value.head.map((_, m) => {
|
|
191
191
|
const V = S({
|
|
192
192
|
p: e.value.style.chart.labels.prefix,
|
|
193
|
-
v:
|
|
193
|
+
v: C.value.body[m].start,
|
|
194
194
|
s: e.value.style.chart.labels.suffix,
|
|
195
195
|
r: e.value.table.td.roundingValue
|
|
196
196
|
}), j = S({
|
|
197
197
|
p: e.value.style.chart.labels.prefix,
|
|
198
|
-
v:
|
|
198
|
+
v: C.value.body[m].end,
|
|
199
199
|
s: e.value.style.chart.labels.suffix,
|
|
200
200
|
r: e.value.table.td.roundingValue
|
|
201
201
|
}), He = S({
|
|
202
|
-
v: 100 * (
|
|
202
|
+
v: 100 * (C.value.body[m].end / C.value.body[m].start - 1),
|
|
203
203
|
s: "%",
|
|
204
204
|
r: e.value.table.td.roundingPercentage
|
|
205
205
|
});
|
|
206
206
|
return [
|
|
207
|
-
{ name:
|
|
207
|
+
{ name: _.name },
|
|
208
208
|
V,
|
|
209
209
|
j,
|
|
210
210
|
He
|
|
@@ -234,12 +234,12 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
234
234
|
config: t
|
|
235
235
|
};
|
|
236
236
|
});
|
|
237
|
-
function
|
|
237
|
+
function fe(l = null) {
|
|
238
238
|
je(() => {
|
|
239
|
-
const
|
|
240
|
-
|
|
241
|
-
], [
|
|
242
|
-
et({ csvContent:
|
|
239
|
+
const u = C.value.head.map((_, m) => [[
|
|
240
|
+
_.name
|
|
241
|
+
], [C.value.body[m].start], [C.value.body[m].end]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(u), a = Qe(t);
|
|
242
|
+
l ? l(a) : et({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
245
|
const M = d(!1);
|
|
@@ -247,9 +247,9 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
247
247
|
M.value = l, Y.value += 1;
|
|
248
248
|
}
|
|
249
249
|
function Re() {
|
|
250
|
-
return
|
|
250
|
+
return f.value;
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function be() {
|
|
253
253
|
O.value.showTable = !O.value.showTable;
|
|
254
254
|
}
|
|
255
255
|
const F = d(!1);
|
|
@@ -259,9 +259,9 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
259
259
|
return Xe({
|
|
260
260
|
getData: Re,
|
|
261
261
|
generatePdf: ce,
|
|
262
|
-
generateCsv:
|
|
262
|
+
generateCsv: fe,
|
|
263
263
|
generateImage: de,
|
|
264
|
-
toggleTable:
|
|
264
|
+
toggleTable: be,
|
|
265
265
|
toggleAnnotator: B
|
|
266
266
|
}), (l, u) => (o(), r("div", {
|
|
267
267
|
ref_key: "dumbbellChart",
|
|
@@ -329,9 +329,9 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
329
329
|
callbacks: e.value.userOptions.callbacks,
|
|
330
330
|
onToggleFullscreen: Ee,
|
|
331
331
|
onGeneratePdf: n(ce),
|
|
332
|
-
onGenerateCsv:
|
|
332
|
+
onGenerateCsv: fe,
|
|
333
333
|
onGenerateImage: n(de),
|
|
334
|
-
onToggleTable:
|
|
334
|
+
onToggleTable: be,
|
|
335
335
|
onToggleAnnotator: B,
|
|
336
336
|
style: E({
|
|
337
337
|
visibility: n(se) ? n(W) ? "visible" : "hidden" : "visible"
|
|
@@ -421,7 +421,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
421
421
|
}, null, 8, ht))), 256))
|
|
422
422
|
])) : v("", !0),
|
|
423
423
|
e.value.style.chart.grid.horizontalGrid.show ? (o(), r("g", yt, [
|
|
424
|
-
(o(!0), r($, null, L(
|
|
424
|
+
(o(!0), r($, null, L(w.value, (t, a) => (o(), r("line", {
|
|
425
425
|
x1: s.value.left,
|
|
426
426
|
x2: s.value.right,
|
|
427
427
|
y1: s.value.top + a * h.value,
|
|
@@ -429,7 +429,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
429
429
|
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
430
430
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
431
431
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
432
|
-
}, null, 8,
|
|
432
|
+
}, null, 8, ft))), 256)),
|
|
433
433
|
i("line", {
|
|
434
434
|
x1: s.value.left,
|
|
435
435
|
x2: s.value.right,
|
|
@@ -438,10 +438,10 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
438
438
|
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
439
439
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
440
440
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
441
|
-
}, null, 8,
|
|
441
|
+
}, null, 8, bt)
|
|
442
442
|
])) : v("", !0),
|
|
443
443
|
e.value.style.chart.labels.yAxisLabels.show ? (o(), r("g", gt, [
|
|
444
|
-
(o(!0), r($, null, L(
|
|
444
|
+
(o(!0), r($, null, L(w.value, (t, a) => (o(), r("text", {
|
|
445
445
|
x: s.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
446
446
|
y: s.value.top + a * h.value + (e.value.style.chart.labels.yAxisLabels.showProgression ? h.value / 3 : h.value / 2) + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
447
447
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
@@ -449,7 +449,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
449
449
|
"font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
|
|
450
450
|
"text-anchor": "end"
|
|
451
451
|
}, z(t.name), 9, pt))), 256)),
|
|
452
|
-
e.value.style.chart.labels.yAxisLabels.showProgression ? (o(!0), r($, { key: 0 }, L(
|
|
452
|
+
e.value.style.chart.labels.yAxisLabels.showProgression ? (o(!0), r($, { key: 0 }, L(w.value, (t, a) => (o(), r("text", {
|
|
453
453
|
x: s.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
454
454
|
y: s.value.top + a * h.value + h.value / 1.3 + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
455
455
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
@@ -517,7 +517,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
517
517
|
}, null, 8, St)
|
|
518
518
|
], 8, Lt)
|
|
519
519
|
]),
|
|
520
|
-
(o(!0), r($, null, L(
|
|
520
|
+
(o(!0), r($, null, L(f.value, (t, a) => (o(), r("g", null, [
|
|
521
521
|
i("defs", null, [
|
|
522
522
|
i("linearGradient", {
|
|
523
523
|
id: `grad_positive_${y.value}`,
|
|
@@ -592,7 +592,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
592
592
|
}, null, 8, Et)
|
|
593
593
|
]))), 256)),
|
|
594
594
|
e.value.style.chart.labels.startLabels.show ? (o(), r("g", Rt, [
|
|
595
|
-
(o(!0), r($, null, L(
|
|
595
|
+
(o(!0), r($, null, L(f.value, (t, a) => (o(), r("text", {
|
|
596
596
|
x: t.startX,
|
|
597
597
|
y: s.value.top + (a + 1) * h.value - e.value.style.chart.labels.startLabels.fontSize / 3 + e.value.style.chart.labels.startLabels.offsetY,
|
|
598
598
|
fill: e.value.style.chart.labels.startLabels.useStartColor ? e.value.style.chart.plots.startColor : e.value.style.chart.labels.startLabels.color,
|
|
@@ -611,7 +611,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
611
611
|
)), 9, Ht))), 256))
|
|
612
612
|
])) : v("", !0),
|
|
613
613
|
e.value.style.chart.labels.endLabels.show ? (o(), r("g", Wt, [
|
|
614
|
-
(o(!0), r($, null, L(
|
|
614
|
+
(o(!0), r($, null, L(f.value, (t, a) => (o(), r("text", {
|
|
615
615
|
x: t.endX,
|
|
616
616
|
y: s.value.top + a * h.value + e.value.style.chart.labels.endLabels.fontSize + e.value.style.chart.labels.endLabels.offsetY,
|
|
617
617
|
fill: e.value.style.chart.labels.endLabels.useEndColor ? e.value.style.chart.plots.endColor : e.value.style.chart.labels.endLabels.color,
|
|
@@ -731,7 +731,7 @@ const it = ["id"], ct = ["xmlns", "viewBox"], dt = ["x", "y", "width", "height"]
|
|
|
731
731
|
}, 8, ["config"])) : v("", !0)
|
|
732
732
|
], 46, it));
|
|
733
733
|
}
|
|
734
|
-
}, ul = /* @__PURE__ */ ut(Zt, [["__scopeId", "data-v-
|
|
734
|
+
}, ul = /* @__PURE__ */ ut(Zt, [["__scopeId", "data-v-0167dbe6"]]);
|
|
735
735
|
export {
|
|
736
736
|
ul as default
|
|
737
737
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineAsyncComponent as E, computed as p, onMounted as ut, ref as y, watch as it, createElementBlock as g, openBlock as d, unref as r, normalizeStyle as L, normalizeClass as Me, createBlock as B, createCommentVNode as _, createElementVNode as D, createVNode as de, createSlots as ct, withCtx as w, renderSlot as b, normalizeProps as R, guardReactiveProps as G, Fragment as U, renderList as W, toDisplayString as j, createTextVNode as dt, nextTick as vt } from "vue";
|
|
2
|
-
import { u as ft, o as ht, e as pt, c as ve, t as gt, p as S, a as mt, b as yt, v as $, d as bt, f as X, X as kt, G as He, K as Ct, i as fe, q as wt, r as $t, x as Tt } from "./index-
|
|
3
|
-
import { u as Ye } from "./useNestedProp-
|
|
4
|
-
import { u as xt } from "./usePrinter-
|
|
2
|
+
import { u as ft, o as ht, e as pt, c as ve, t as gt, p as S, a as mt, b as yt, v as $, d as bt, f as X, X as kt, G as He, K as Ct, i as fe, q as wt, r as $t, x as Tt } from "./index-BzQ0j5xI.js";
|
|
3
|
+
import { u as Ye } from "./useNestedProp-DqpZEE3h.js";
|
|
4
|
+
import { u as xt } from "./usePrinter-CpG5jh_z.js";
|
|
5
5
|
import { u as _t } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { u as Nt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import Ot from "./Legend-
|
|
8
|
-
import St from "./Title-
|
|
7
|
+
import Ot from "./Legend-YPYnzTBz.js";
|
|
8
|
+
import St from "./Title-CJcZXNtK.js";
|
|
9
9
|
import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const Pt = ["id"], Lt = {
|
|
11
11
|
key: 1,
|
|
@@ -39,7 +39,7 @@ const Pt = ["id"], Lt = {
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
setup(Be, { expose: De }) {
|
|
42
|
-
const Re = E(() => import("./vue-ui-accordion-
|
|
42
|
+
const Re = E(() => import("./vue-ui-accordion-bpaEpjqI.js")), Ge = E(() => import("./DataTable-CmbjnjRg.js")), Ve = E(() => import("./PackageVersion-OcbP0WH2.js")), Ue = E(() => import("./PenAndPaper-BgPXmpGI.js")), We = E(() => import("./vue-ui-skeleton-CavMQlAm.js")), je = E(() => import("./Tooltip-dXp8FaUj.js")), Xe = E(() => import("./UserOptions-Cs7JW3dK.js")), { vue_ui_flow: qe } = ft(), T = Be, ee = p(() => !!T.dataset && T.dataset.length);
|
|
43
43
|
ut(() => {
|
|
44
44
|
he();
|
|
45
45
|
});
|
|
@@ -297,9 +297,9 @@ const Pt = ["id"], Lt = {
|
|
|
297
297
|
value: s
|
|
298
298
|
})
|
|
299
299
|
));
|
|
300
|
-
function Se() {
|
|
300
|
+
function Se(t = null) {
|
|
301
301
|
vt(() => {
|
|
302
|
-
const
|
|
302
|
+
const l = Oe.value.map((s, h) => [[s.source], [s.target], [s.value]]), o = [
|
|
303
303
|
[e.value.style.chart.title.text],
|
|
304
304
|
[e.value.style.chart.title.subtitle.text],
|
|
305
305
|
[
|
|
@@ -307,9 +307,9 @@ const Pt = ["id"], Lt = {
|
|
|
307
307
|
[e.value.table.columnNames.target],
|
|
308
308
|
[e.value.table.columnNames.value]
|
|
309
309
|
]
|
|
310
|
-
].concat(
|
|
311
|
-
$t({
|
|
312
|
-
csvContent:
|
|
310
|
+
].concat(l), a = wt(o);
|
|
311
|
+
t ? t(a) : $t({
|
|
312
|
+
csvContent: a,
|
|
313
313
|
title: e.value.style.chart.title.text || "vue-ui-flow"
|
|
314
314
|
});
|
|
315
315
|
});
|
|
@@ -743,7 +743,7 @@ const Pt = ["id"], Lt = {
|
|
|
743
743
|
}, 8, ["config"])) : _("", !0)
|
|
744
744
|
], 46, Pt));
|
|
745
745
|
}
|
|
746
|
-
}, lo = /* @__PURE__ */ Ft(jt, [["__scopeId", "data-v-
|
|
746
|
+
}, lo = /* @__PURE__ */ Ft(jt, [["__scopeId", "data-v-3b19a8a3"]]);
|
|
747
747
|
export {
|
|
748
748
|
lo as default
|
|
749
749
|
};
|