vue-data-ui 3.4.6 → 3.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PackageVersion-BSldVhnp.js → PackageVersion-D-auaEEJ.js} +1 -1
- package/dist/{UserOptions-CnzumGJj.js → UserOptions-CGnQt6Fd.js} +91 -91
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-BCOCglbX.js → vue-data-ui-CzqHcPqG.js} +55 -55
- package/dist/vue-data-ui.js +55 -55
- package/dist/{vue-ui-3d-bar-E-nuI5P-.js → vue-ui-3d-bar-CwXiD8zD.js} +49 -42
- package/dist/{vue-ui-age-pyramid-DfN03uDZ.js → vue-ui-age-pyramid-DlEPlWmV.js} +12 -5
- package/dist/{vue-ui-bullet-DVOmSxcg.js → vue-ui-bullet-DtzpeIu4.js} +59 -52
- package/dist/{vue-ui-candlestick-C0tlhgvf.js → vue-ui-candlestick-DzoiyaeB.js} +56 -49
- package/dist/{vue-ui-carousel-table-Bwf70lBb.js → vue-ui-carousel-table-BqRERrjs.js} +79 -72
- package/dist/{vue-ui-chestnut-CzNj08EH.js → vue-ui-chestnut-CzBGckif.js} +77 -70
- package/dist/{vue-ui-chord-CQAAGCjj.js → vue-ui-chord-B4waG93A.js} +71 -64
- package/dist/{vue-ui-circle-pack-8Ut7fxPJ.js → vue-ui-circle-pack-DiTw_p5r.js} +58 -51
- package/dist/{vue-ui-dashboard-CpG2L2Xk.js → vue-ui-dashboard-Bt-MUKqy.js} +56 -56
- package/dist/{vue-ui-donut-acdGdmqY.js → vue-ui-donut-Bc492JeS.js} +95 -88
- package/dist/{vue-ui-donut-evolution-J2tTLcht.js → vue-ui-donut-evolution-D6TaZK2x.js} +80 -73
- package/dist/{vue-ui-dumbbell-DhDvD0DH.js → vue-ui-dumbbell-BlZr68Sq.js} +12 -5
- package/dist/{vue-ui-flow-Du9joQEy.js → vue-ui-flow-ByEP18dA.js} +205 -198
- package/dist/{vue-ui-funnel-BPccZaVG.js → vue-ui-funnel-BU7d_U6T.js} +98 -91
- package/dist/{vue-ui-galaxy-D69X300F.js → vue-ui-galaxy-CpVrxaTr.js} +140 -133
- package/dist/{vue-ui-gauge-C_tPaN05.js → vue-ui-gauge-B9Z4EXoj.js} +108 -101
- package/dist/{vue-ui-gizmo-Bsc620Bs.js → vue-ui-gizmo-T1paJEJ3.js} +1 -1
- package/dist/{vue-ui-heatmap-CRoQ0Xo1.js → vue-ui-heatmap-Uw83eEMz.js} +97 -90
- package/dist/{vue-ui-history-plot-PQT8iCyT.js → vue-ui-history-plot-C93VwVCY.js} +41 -34
- package/dist/{vue-ui-molecule-C0hQ1BHF.js → vue-ui-molecule-CFMWwXFN.js} +94 -87
- package/dist/{vue-ui-mood-radar-DMng4w8x.js → vue-ui-mood-radar-FkVaaOVG.js} +71 -64
- package/dist/{vue-ui-nested-donuts-DtnysjV9.js → vue-ui-nested-donuts-Cyi98NXq.js} +93 -86
- package/dist/{vue-ui-onion-C0Z5_zay.js → vue-ui-onion-BCENNhsY.js} +82 -75
- package/dist/{vue-ui-parallel-coordinate-plot-C0grlzOd.js → vue-ui-parallel-coordinate-plot-Dca9wkD0.js} +116 -109
- package/dist/{vue-ui-quadrant-BJGF3wuL.js → vue-ui-quadrant-CEtFEZT3.js} +46 -39
- package/dist/{vue-ui-quick-chart-CaR3jp1D.js → vue-ui-quick-chart-bqcp6BIl.js} +171 -164
- package/dist/{vue-ui-radar-wYNRX7Uh.js → vue-ui-radar-lgRCmyNP.js} +36 -29
- package/dist/{vue-ui-relation-circle-CIwou-3d.js → vue-ui-relation-circle-cRRrbaIT.js} +100 -93
- package/dist/{vue-ui-ridgeline-DnzoIClq.js → vue-ui-ridgeline-CaeFJq9a.js} +23 -16
- package/dist/{vue-ui-rings-B7zSZa8h.js → vue-ui-rings-DbsYfGjx.js} +55 -48
- package/dist/{vue-ui-scatter-Bevyh8s3.js → vue-ui-scatter-DcMnoNrY.js} +189 -182
- package/dist/{vue-ui-skeleton-DfuGqFYM.js → vue-ui-skeleton-b5fdgyHv.js} +1 -1
- package/dist/{vue-ui-spark-trend-D16UBZxk.js → vue-ui-spark-trend-DrQ26BzL.js} +1 -1
- package/dist/{vue-ui-sparkbar-Dl1kY_5e.js → vue-ui-sparkbar-BlvXLcfO.js} +1 -1
- package/dist/{vue-ui-sparkgauge-iJIT26xG.js → vue-ui-sparkgauge-CQmNePxu.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-Bawjmfxu.js → vue-ui-sparkhistogram-CJatqy8x.js} +1 -1
- package/dist/{vue-ui-sparkline-CGVoLIcr.js → vue-ui-sparkline-5m7hFiMq.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-CdlGAlFM.js → vue-ui-sparkstackbar-Z5g6L2Hj.js} +1 -1
- package/dist/{vue-ui-stackbar-Cjz4PvOG.js → vue-ui-stackbar-WrexTg8_.js} +53 -46
- package/dist/{vue-ui-strip-plot-DS84cU6V.js → vue-ui-strip-plot-DqX7yya9.js} +13 -6
- package/dist/{vue-ui-table-t9Shp522.js → vue-ui-table-BhrP9BCp.js} +2 -2
- package/dist/{vue-ui-table-heatmap-B4rjR34n.js → vue-ui-table-heatmap-BqCEBoUf.js} +1 -1
- package/dist/{vue-ui-table-sparkline-CAqqSvhG.js → vue-ui-table-sparkline-BECa8n5_.js} +1 -1
- package/dist/{vue-ui-thermometer-CKciCjTK.js → vue-ui-thermometer-BxBGrsSR.js} +83 -76
- package/dist/{vue-ui-timer-CNwoVRn5.js → vue-ui-timer-BbHY5Ed5.js} +1 -1
- package/dist/{vue-ui-tiremarks-Dxp9rcJi.js → vue-ui-tiremarks-DzL3Sc1f.js} +43 -36
- package/dist/{vue-ui-treemap-D4cRZ9SZ.js → vue-ui-treemap-DoHoS5NK.js} +114 -107
- package/dist/{vue-ui-vertical-bar-Cz6yCNYK.js → vue-ui-vertical-bar-D0N5btU-.js} +89 -82
- package/dist/{vue-ui-waffle-BhQ0m4Ia.js → vue-ui-waffle-CTt7dxCY.js} +41 -34
- package/dist/{vue-ui-wheel-Bh_G3WQQ.js → vue-ui-wheel--TIPvQ9I.js} +132 -125
- package/dist/{vue-ui-word-cloud-Bk2yP7oQ.js → vue-ui-word-cloud-D5pZq4Jq.js} +116 -109
- package/dist/{vue-ui-world-C_eUAzmI.js → vue-ui-world-BERHgePa.js} +71 -64
- package/dist/{vue-ui-xy-BDc2EKMr.js → vue-ui-xy-BI5stV8f.js} +163 -156
- package/dist/{vue-ui-xy-canvas-BGl_2pHw.js → vue-ui-xy-canvas-DXnLFwW3.js} +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useCssVars as Kt, defineAsyncComponent as K, useSlots as Qt, computed as g, ref as i, toRefs as Jt, watch as ze, shallowRef as ct, onMounted as Ve, nextTick as he, onBeforeUnmount as Zt, createElementBlock as v, openBlock as u, unref as s, normalizeStyle as d, normalizeClass as X, createBlock as G, createCommentVNode as y, renderSlot as
|
|
1
|
+
import { useCssVars as Kt, defineAsyncComponent as K, useSlots as Qt, computed as g, ref as i, toRefs as Jt, watch as ze, shallowRef as ct, onMounted as Ve, nextTick as he, onBeforeUnmount as Zt, createElementBlock as v, openBlock as u, unref as s, normalizeStyle as d, normalizeClass as X, createBlock as G, createCommentVNode as y, renderSlot as k, createVNode as Q, createSlots as pe, withCtx as b, normalizeProps as J, guardReactiveProps as Z, createElementVNode as n, toDisplayString as h, Fragment as ee, renderList as te, mergeProps as dt, resolveDynamicComponent as ea, withKeys as ta, createTextVNode as ht } from "vue";
|
|
2
2
|
import { c as aa, t as la, b as oa, p as W, O as Oe, e as na, x as L, o as Ie, f as ue, h as Fe, a as se, d as D, X as ua, s as Me, i as sa, P as ra, Q as ia, G as va, H as ca } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as da, u as ha } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as pa, a as pt } from "./useNestedProp-BjZe1Y85.js";
|
|
@@ -37,11 +37,11 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
37
37
|
emits: ["selectLegend"],
|
|
38
38
|
setup(yt, { expose: bt, emit: mt }) {
|
|
39
39
|
Kt((t) => ({
|
|
40
|
-
|
|
40
|
+
v40c2e850: t.tdo
|
|
41
41
|
}));
|
|
42
|
-
const kt = K(() => import("./Tooltip-oWCO1HKy.js")), De = K(() => import("./BaseIcon-BmMbm4d0.js")), xt = K(() => import("./PenAndPaper-DSvu9dwa.js")), _t = K(() => import("./UserOptions-
|
|
42
|
+
const kt = K(() => import("./Tooltip-oWCO1HKy.js")), De = K(() => import("./BaseIcon-BmMbm4d0.js")), xt = K(() => import("./PenAndPaper-DSvu9dwa.js")), _t = K(() => import("./UserOptions-CGnQt6Fd.js")), wt = K(() => import("./PackageVersion-D-auaEEJ.js")), $t = K(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_vertical_bar: Ct } = pa(), Tt = Qt(), m = yt, ge = g({
|
|
43
43
|
get() {
|
|
44
|
-
return !!
|
|
44
|
+
return !!m.dataset && m.dataset.length;
|
|
45
45
|
},
|
|
46
46
|
set(t) {
|
|
47
47
|
return t;
|
|
@@ -54,7 +54,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
54
54
|
{ name: "", value: 2, color: "#d9d9d9" },
|
|
55
55
|
{ name: "", value: 1, color: "#d9d9d9" }
|
|
56
56
|
]), { loading: Ge, FINAL_DATASET: xe, manualLoading: _e } = ga({
|
|
57
|
-
...Jt(
|
|
57
|
+
...Jt(m),
|
|
58
58
|
FINAL_CONFIG: e,
|
|
59
59
|
prepareConfig: Ce,
|
|
60
60
|
callback: () => {
|
|
@@ -112,21 +112,21 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
112
112
|
}), { userOptionsVisible: we, setUserOptionsVisibility: We, keepUserOptionState: He } = ka({ config: e.value }), { svgRef: $e } = xa({ config: e.value.style.chart.title });
|
|
113
113
|
function Ce() {
|
|
114
114
|
const t = pt({
|
|
115
|
-
userConfig:
|
|
115
|
+
userConfig: m.config,
|
|
116
116
|
defaultConfig: Ct
|
|
117
117
|
});
|
|
118
118
|
let l = {};
|
|
119
119
|
return t.theme ? l = {
|
|
120
120
|
...pt({
|
|
121
|
-
userConfig: _a.vue_ui_vertical_bar[t.theme] ||
|
|
121
|
+
userConfig: _a.vue_ui_vertical_bar[t.theme] || m.config,
|
|
122
122
|
defaultConfig: t
|
|
123
123
|
}),
|
|
124
124
|
customPalette: oa[t.theme] || W
|
|
125
|
-
} : l = t,
|
|
125
|
+
} : l = t, m.config && Oe(m.config, "events.datapointEnter") ? l.events.datapointEnter = m.config.events.datapointEnter : l.events.datapointEnter = null, m.config && Oe(m.config, "events.datapointLeave") ? l.events.datapointLeave = m.config.events.datapointLeave : l.events.datapointLeave = null, m.config && Oe(m.config, "events.datapointClick") ? l.events.datapointClick = m.config.events.datapointClick : l.events.datapointClick = null, l;
|
|
126
126
|
}
|
|
127
|
-
ze(() =>
|
|
128
|
-
Ge.value || (e.value = Ce()), we.value = !e.value.userOptions.showOnChartHover, et(), Xe.value += 1, me.value += 1, p.value = e.value.style.chart.layout.bars.height,
|
|
129
|
-
}, { deep: !0 }), ze(() =>
|
|
127
|
+
ze(() => m.config, (t) => {
|
|
128
|
+
Ge.value || (e.value = Ce()), we.value = !e.value.userOptions.showOnChartHover, et(), Xe.value += 1, me.value += 1, p.value = e.value.style.chart.layout.bars.height, x.value = e.value.style.chart.layout.bars.gap, $.value.showTable = e.value.table.show, $.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", $.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
129
|
+
}, { deep: !0 }), ze(() => m.dataset, (t) => {
|
|
130
130
|
Array.isArray(t) && t.length > 0 && (_e.value = !1), q();
|
|
131
131
|
}, { deep: !0 });
|
|
132
132
|
const { isPrinting: je, isImaging: qe, generatePdf: Ye, generateImage: Ke } = ya({
|
|
@@ -145,15 +145,15 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
145
145
|
const t = H.value.querySelectorAll(".vue-ui-horizontal-bar-parent-label"), l = H.value.querySelectorAll(".vue-ui-horizontal-bar-child-label");
|
|
146
146
|
if (t && t.length) {
|
|
147
147
|
const f = Math.max(...Array.from(t).flatMap((c) => {
|
|
148
|
-
const
|
|
149
|
-
return
|
|
148
|
+
const _ = c.querySelectorAll("text");
|
|
149
|
+
return _.length ? Array.from(_).map((Y) => Y.getBBox().width) : 0;
|
|
150
150
|
})), w = Math.max(...Array.from(l).flatMap((c) => {
|
|
151
|
-
const
|
|
152
|
-
return
|
|
151
|
+
const _ = c.querySelectorAll("text");
|
|
152
|
+
return _.length ? Array.from(_).map((Y) => Y.getBBox().width) : 0;
|
|
153
153
|
}));
|
|
154
154
|
Array.from(t).forEach((c) => {
|
|
155
|
-
const
|
|
156
|
-
Array.from(
|
|
155
|
+
const _ = c.querySelectorAll("text");
|
|
156
|
+
Array.from(_).forEach(async (Y) => {
|
|
157
157
|
Y.setAttribute("x", 0), Y.setAttribute("x", L(-f - w));
|
|
158
158
|
});
|
|
159
159
|
});
|
|
@@ -183,11 +183,11 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
183
183
|
});
|
|
184
184
|
const ie = g(() => !!e.value.debug), Te = i(0);
|
|
185
185
|
function et() {
|
|
186
|
-
if (Ie(
|
|
186
|
+
if (Ie(m.dataset) && (ue({
|
|
187
187
|
componentName: "VueUiVerticalBar",
|
|
188
188
|
type: "dataset",
|
|
189
189
|
debug: ie.value
|
|
190
|
-
}), ge.value = !1, _e.value = !0), ae.value = xe.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), Ie(
|
|
190
|
+
}), ge.value = !1, _e.value = !0), ae.value = xe.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), Ie(m.dataset) || (_e.value = e.value.loading), e.value.responsive) {
|
|
191
191
|
const t = da(() => {
|
|
192
192
|
const { width: l, height: a } = ha({
|
|
193
193
|
chart: P.value,
|
|
@@ -198,7 +198,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
198
198
|
});
|
|
199
199
|
Te.value = a / 3, requestAnimationFrame(async () => {
|
|
200
200
|
lt.value = l;
|
|
201
|
-
const o =
|
|
201
|
+
const o = x.value * (ae.value - 1);
|
|
202
202
|
p.value = (a - o) / ae.value, await he(), F();
|
|
203
203
|
});
|
|
204
204
|
});
|
|
@@ -234,7 +234,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
234
234
|
});
|
|
235
235
|
}));
|
|
236
236
|
}), xe.value.map((t, l) => {
|
|
237
|
-
const a = `vertical_parent_${l}_${S.value}`, o = t.children && t.children.length > 0, f = L(t.value ? t.value : o ? t.children.map((c) => c.value || 0).reduce((c,
|
|
237
|
+
const a = `vertical_parent_${l}_${S.value}`, o = t.children && t.children.length > 0, f = L(t.value ? t.value : o ? t.children.map((c) => c.value || 0).reduce((c, _) => c + _, 0) : 0), w = f >= 0 ? 1 : -1;
|
|
238
238
|
return {
|
|
239
239
|
...t,
|
|
240
240
|
id: a,
|
|
@@ -248,7 +248,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
248
248
|
segregate: () => oe(a),
|
|
249
249
|
isSegregated: A.value.includes(a),
|
|
250
250
|
color: Fe(t.color) || Qe.value[l] || W[l] || W[l % W.length],
|
|
251
|
-
children: !t.children || !t.children.length ? [] : t.children.toSorted(ve.value ? () => 0 : (c,
|
|
251
|
+
children: !t.children || !t.children.length ? [] : t.children.toSorted(ve.value ? () => 0 : (c, _) => tt.value ? _.value - c.value : c.value - _.value).map((c, _) => ({
|
|
252
252
|
...c,
|
|
253
253
|
value: L(Math.abs(c.value)),
|
|
254
254
|
absoluteIndex: l,
|
|
@@ -258,13 +258,13 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
258
258
|
parentName: t.name,
|
|
259
259
|
parentValue: f,
|
|
260
260
|
parentSign: w,
|
|
261
|
-
id: `vertical_child_${l}_${
|
|
262
|
-
childIndex:
|
|
261
|
+
id: `vertical_child_${l}_${_}_${S.value}`,
|
|
262
|
+
childIndex: _,
|
|
263
263
|
color: Fe(c.color) || Fe(t.color) || Qe.value[l] || W[l] || W[l % W.length]
|
|
264
|
-
})).map((c,
|
|
264
|
+
})).map((c, _) => ({
|
|
265
265
|
...c,
|
|
266
|
-
isFirstChild:
|
|
267
|
-
isLastChild:
|
|
266
|
+
isFirstChild: _ === 0,
|
|
267
|
+
isLastChild: _ === t.children.length - 1
|
|
268
268
|
}))
|
|
269
269
|
};
|
|
270
270
|
}).toSorted(ve.value ? () => 0 : (t, l) => tt.value ? l.value - t.value : t.value - l.value))), at = g(() => ({
|
|
@@ -274,7 +274,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
274
274
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
275
275
|
paddingBottom: 12,
|
|
276
276
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
277
|
-
})), p = i(e.value.style.chart.layout.bars.height),
|
|
277
|
+
})), p = i(e.value.style.chart.layout.bars.height), x = i(e.value.style.chart.layout.bars.gap), zt = g(() => (p.value + x.value) * ae.value), lt = i(512), C = g(() => ({
|
|
278
278
|
width: lt.value,
|
|
279
279
|
height: zt.value,
|
|
280
280
|
padding: {
|
|
@@ -321,7 +321,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
321
321
|
return T(t) + r.value.left;
|
|
322
322
|
}
|
|
323
323
|
function ne(t, l) {
|
|
324
|
-
const a = B.value.find((w) => w.id === t.parentId), o = r.value.top + (
|
|
324
|
+
const a = B.value.find((w) => w.id === t.parentId), o = r.value.top + (x.value + p.value) * l, f = a.children.length * (x.value + p.value);
|
|
325
325
|
return {
|
|
326
326
|
y: o + f / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
327
327
|
name: a.name,
|
|
@@ -663,73 +663,80 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
663
663
|
}, pe({ _: 2 }, [
|
|
664
664
|
t.$slots.menuIcon ? {
|
|
665
665
|
name: "menuIcon",
|
|
666
|
-
fn:
|
|
667
|
-
|
|
666
|
+
fn: b(({ isOpen: a, color: o }) => [
|
|
667
|
+
k(t.$slots, "menuIcon", J(Z({ isOpen: a, color: o })), void 0, !0)
|
|
668
668
|
]),
|
|
669
669
|
key: "0"
|
|
670
670
|
} : void 0,
|
|
671
671
|
t.$slots.optionTooltip ? {
|
|
672
672
|
name: "optionTooltip",
|
|
673
|
-
fn:
|
|
674
|
-
|
|
673
|
+
fn: b(() => [
|
|
674
|
+
k(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
675
675
|
]),
|
|
676
676
|
key: "1"
|
|
677
677
|
} : void 0,
|
|
678
678
|
t.$slots.optionPdf ? {
|
|
679
679
|
name: "optionPdf",
|
|
680
|
-
fn:
|
|
681
|
-
|
|
680
|
+
fn: b(() => [
|
|
681
|
+
k(t.$slots, "optionPdf", {}, void 0, !0)
|
|
682
682
|
]),
|
|
683
683
|
key: "2"
|
|
684
684
|
} : void 0,
|
|
685
685
|
t.$slots.optionCsv ? {
|
|
686
686
|
name: "optionCsv",
|
|
687
|
-
fn:
|
|
688
|
-
|
|
687
|
+
fn: b(() => [
|
|
688
|
+
k(t.$slots, "optionCsv", {}, void 0, !0)
|
|
689
689
|
]),
|
|
690
690
|
key: "3"
|
|
691
691
|
} : void 0,
|
|
692
692
|
t.$slots.optionImg ? {
|
|
693
693
|
name: "optionImg",
|
|
694
|
-
fn:
|
|
695
|
-
|
|
694
|
+
fn: b(() => [
|
|
695
|
+
k(t.$slots, "optionImg", {}, void 0, !0)
|
|
696
696
|
]),
|
|
697
697
|
key: "4"
|
|
698
698
|
} : void 0,
|
|
699
|
+
t.$slots.optionSvg ? {
|
|
700
|
+
name: "optionSvg",
|
|
701
|
+
fn: b(() => [
|
|
702
|
+
k(t.$slots, "optionSvg", {}, void 0, !0)
|
|
703
|
+
]),
|
|
704
|
+
key: "5"
|
|
705
|
+
} : void 0,
|
|
699
706
|
t.$slots.optionTable ? {
|
|
700
707
|
name: "optionTable",
|
|
701
|
-
fn:
|
|
702
|
-
|
|
708
|
+
fn: b(() => [
|
|
709
|
+
k(t.$slots, "optionTable", {}, void 0, !0)
|
|
703
710
|
]),
|
|
704
|
-
key: "
|
|
711
|
+
key: "6"
|
|
705
712
|
} : void 0,
|
|
706
713
|
t.$slots.optionLabels ? {
|
|
707
714
|
name: "optionLabels",
|
|
708
|
-
fn:
|
|
709
|
-
|
|
715
|
+
fn: b(() => [
|
|
716
|
+
k(t.$slots, "optionLabels", {}, void 0, !0)
|
|
710
717
|
]),
|
|
711
|
-
key: "
|
|
718
|
+
key: "7"
|
|
712
719
|
} : void 0,
|
|
713
720
|
t.$slots.optionSort ? {
|
|
714
721
|
name: "optionSort",
|
|
715
|
-
fn:
|
|
716
|
-
|
|
722
|
+
fn: b(() => [
|
|
723
|
+
k(t.$slots, "optionSort", {}, void 0, !0)
|
|
717
724
|
]),
|
|
718
|
-
key: "
|
|
725
|
+
key: "8"
|
|
719
726
|
} : void 0,
|
|
720
727
|
t.$slots.optionFullscreen ? {
|
|
721
728
|
name: "optionFullscreen",
|
|
722
|
-
fn:
|
|
723
|
-
|
|
729
|
+
fn: b(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
730
|
+
k(t.$slots, "optionFullscreen", J(Z({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
724
731
|
]),
|
|
725
|
-
key: "
|
|
732
|
+
key: "9"
|
|
726
733
|
} : void 0,
|
|
727
734
|
t.$slots.optionAnnotator ? {
|
|
728
735
|
name: "optionAnnotator",
|
|
729
|
-
fn:
|
|
730
|
-
|
|
736
|
+
fn: b(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
737
|
+
k(t.$slots, "optionAnnotator", J(Z({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
731
738
|
]),
|
|
732
|
-
key: "
|
|
739
|
+
key: "10"
|
|
733
740
|
} : void 0
|
|
734
741
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
735
742
|
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), v("div", {
|
|
@@ -743,7 +750,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
743
750
|
config: at.value,
|
|
744
751
|
onClickMarker: l[0] || (l[0] = ({ legend: a }) => oe(a.id))
|
|
745
752
|
}, pe({
|
|
746
|
-
item:
|
|
753
|
+
item: b(({ legend: a, index: o }) => [
|
|
747
754
|
n("div", {
|
|
748
755
|
onClick: (f) => oe(a.id),
|
|
749
756
|
style: d(`opacity:${A.value.includes(a.id) ? 0.5 : 1}`)
|
|
@@ -763,7 +770,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
763
770
|
}, [
|
|
764
771
|
t.$slots.pattern ? {
|
|
765
772
|
name: "legend-pattern",
|
|
766
|
-
fn:
|
|
773
|
+
fn: b(({ legend: a, index: o }) => [
|
|
767
774
|
Q(ft, {
|
|
768
775
|
shape: a.shape,
|
|
769
776
|
radius: 30,
|
|
@@ -800,7 +807,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
800
807
|
pointerEvents: "none"
|
|
801
808
|
}
|
|
802
809
|
}, [
|
|
803
|
-
|
|
810
|
+
k(t.$slots, "chart-background", {}, void 0, !0)
|
|
804
811
|
], 8, Na)) : y("", !0),
|
|
805
812
|
(u(!0), v(ee, null, te(R.value, (a, o) => (u(), v("linearGradient", {
|
|
806
813
|
x1: "0%",
|
|
@@ -820,13 +827,13 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
820
827
|
], 8, Aa))), 256)),
|
|
821
828
|
t.$slots.pattern ? (u(), v("g", Oa, [
|
|
822
829
|
(u(!0), v(ee, null, te(R.value, (a) => (u(), v("defs", null, [
|
|
823
|
-
|
|
830
|
+
k(t.$slots, "pattern", dt({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${S.value}_${a.absoluteIndex}` }), void 0, !0)
|
|
824
831
|
]))), 256))
|
|
825
832
|
])) : y("", !0),
|
|
826
833
|
(u(!0), v(ee, null, te(R.value, (a, o) => (u(), v("g", null, [
|
|
827
834
|
n("rect", {
|
|
828
835
|
x: s(L)(E.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : r.value.left),
|
|
829
|
-
y: r.value.top + (
|
|
836
|
+
y: r.value.top + (x.value + p.value) * o,
|
|
830
837
|
width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
|
|
831
838
|
height: p.value <= 0 ? 1e-4 : p.value,
|
|
832
839
|
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
@@ -837,7 +844,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
837
844
|
(u(!0), v(ee, null, te(R.value, (a, o) => (u(), v("g", null, [
|
|
838
845
|
n("rect", {
|
|
839
846
|
x: s(L)(E.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : r.value.left),
|
|
840
|
-
y: r.value.top + (
|
|
847
|
+
y: r.value.top + (x.value + p.value) * o,
|
|
841
848
|
width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
|
|
842
849
|
height: p.value <= 0 ? 1e-4 : p.value,
|
|
843
850
|
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${S.value}_${o})` : s(Me)(a.color, e.value.style.chart.layout.bars.fillOpacity),
|
|
@@ -849,7 +856,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
849
856
|
t.$slots.pattern ? (u(), v("rect", {
|
|
850
857
|
key: 0,
|
|
851
858
|
x: s(L)(E.value ? r.value.left + r.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : r.value.left),
|
|
852
|
-
y: r.value.top + (
|
|
859
|
+
y: r.value.top + (x.value + p.value) * o,
|
|
853
860
|
width: s(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
|
|
854
861
|
height: p.value <= 0 ? 1e-4 : p.value,
|
|
855
862
|
fill: `url(#pattern_${S.value}_${a.absoluteIndex})`,
|
|
@@ -862,8 +869,8 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
862
869
|
key: 1,
|
|
863
870
|
x1: N.value.x,
|
|
864
871
|
x2: e.value.style.chart.layout.separators.fullWidth ? N.value.width - Math.abs(N.value.x) : r.value.left,
|
|
865
|
-
y1: p.value +
|
|
866
|
-
y2: p.value +
|
|
872
|
+
y1: p.value + x.value / 2 + r.value.top + (x.value + p.value) * o,
|
|
873
|
+
y2: p.value + x.value / 2 + r.value.top + (x.value + p.value) * o,
|
|
867
874
|
stroke: e.value.style.chart.layout.separators.color,
|
|
868
875
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
869
876
|
"stroke-linecap": "round",
|
|
@@ -882,7 +889,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
882
889
|
n("g", Ra, [
|
|
883
890
|
n("text", {
|
|
884
891
|
x: E.value ? r.value.left + r.value.width / 2 + (a.sign === 1 ? -12 : 12) + (a.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : Ot(a.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
|
|
885
|
-
y: r.value.top + (
|
|
892
|
+
y: r.value.top + (x.value + p.value) * o + p.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
|
|
886
893
|
"text-anchor": !E.value || a.sign === -1 ? "start" : "end",
|
|
887
894
|
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
888
895
|
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
@@ -892,7 +899,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
892
899
|
key: 0,
|
|
893
900
|
"text-anchor": "end",
|
|
894
901
|
x: r.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
|
|
895
|
-
y: r.value.top + (
|
|
902
|
+
y: r.value.top + (x.value + p.value) * o + p.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
|
|
896
903
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
897
904
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
898
905
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
@@ -920,20 +927,20 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
920
927
|
]),
|
|
921
928
|
n("rect", {
|
|
922
929
|
x: N.value.x,
|
|
923
|
-
y: r.value.top + (
|
|
930
|
+
y: r.value.top + (x.value + p.value) * o - x.value / 2,
|
|
924
931
|
width: N.value.width,
|
|
925
|
-
height: p.value +
|
|
932
|
+
height: p.value + x.value <= 0 ? 1e-4 : p.value + x.value,
|
|
926
933
|
fill: Se.value === a.id ? s(Me)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
|
|
927
934
|
onMouseenter: (f) => Dt(a, o),
|
|
928
935
|
onMouseleave: (f) => Mt({ datapoint: a, seriesIndex: o }),
|
|
929
936
|
onClick: (f) => Ft({ datapoint: a, seriesIndex: o })
|
|
930
937
|
}, null, 40, Ha)
|
|
931
938
|
]))), 256)),
|
|
932
|
-
|
|
939
|
+
k(t.$slots, "svg", { svg: N.value }, void 0, !0)
|
|
933
940
|
], 512)
|
|
934
941
|
], 14, Pa)),
|
|
935
942
|
t.$slots.watermark ? (u(), v("div", ja, [
|
|
936
|
-
|
|
943
|
+
k(t.$slots, "watermark", J(Z({ isPrinting: s(je) || s(qe) })), void 0, !0)
|
|
937
944
|
])) : y("", !0),
|
|
938
945
|
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), v("div", {
|
|
939
946
|
key: 6,
|
|
@@ -946,7 +953,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
946
953
|
config: at.value,
|
|
947
954
|
onClickMarker: l[1] || (l[1] = ({ legend: a }) => oe(a.id))
|
|
948
955
|
}, pe({
|
|
949
|
-
item:
|
|
956
|
+
item: b(({ legend: a, index: o }) => [
|
|
950
957
|
n("div", {
|
|
951
958
|
onClick: (f) => oe(a.id),
|
|
952
959
|
style: d(`opacity:${A.value.includes(a.id) ? 0.5 : 1}`)
|
|
@@ -966,7 +973,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
966
973
|
}, [
|
|
967
974
|
t.$slots.pattern ? {
|
|
968
975
|
name: "legend-pattern",
|
|
969
|
-
fn:
|
|
976
|
+
fn: b(({ legend: a, index: o }) => [
|
|
970
977
|
Q(ft, {
|
|
971
978
|
shape: a.shape,
|
|
972
979
|
radius: 30,
|
|
@@ -979,17 +986,17 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
979
986
|
} : void 0
|
|
980
987
|
]), 1032, ["legendSet", "config"]))
|
|
981
988
|
], 512)) : y("", !0),
|
|
982
|
-
|
|
989
|
+
k(t.$slots, "legend", { legend: O.value }, void 0, !0),
|
|
983
990
|
t.$slots.source ? (u(), v("div", {
|
|
984
991
|
key: 7,
|
|
985
992
|
ref_key: "source",
|
|
986
993
|
ref: Ee,
|
|
987
994
|
dir: "auto"
|
|
988
995
|
}, [
|
|
989
|
-
|
|
996
|
+
k(t.$slots, "source", {}, void 0, !0)
|
|
990
997
|
], 512)) : y("", !0),
|
|
991
998
|
Q(s(kt), {
|
|
992
|
-
show: $.value.showTooltip && fe.value && A.value.length <
|
|
999
|
+
show: $.value.showTooltip && fe.value && A.value.length < m.dataset.length,
|
|
993
1000
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
994
1001
|
color: e.value.style.chart.tooltip.color,
|
|
995
1002
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1008,11 +1015,11 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
1008
1015
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1009
1016
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
1010
1017
|
}, {
|
|
1011
|
-
"tooltip-before":
|
|
1012
|
-
|
|
1018
|
+
"tooltip-before": b(() => [
|
|
1019
|
+
k(t.$slots, "tooltip-before", J(Z({ ...Le.value })), void 0, !0)
|
|
1013
1020
|
]),
|
|
1014
|
-
"tooltip-after":
|
|
1015
|
-
|
|
1021
|
+
"tooltip-after": b(() => [
|
|
1022
|
+
k(t.$slots, "tooltip-after", J(Z({ ...Le.value })), void 0, !0)
|
|
1016
1023
|
]),
|
|
1017
1024
|
_: 3
|
|
1018
1025
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
@@ -1021,7 +1028,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
1021
1028
|
ref: le,
|
|
1022
1029
|
onClose: Ae
|
|
1023
1030
|
}), pe({
|
|
1024
|
-
content:
|
|
1031
|
+
content: b(() => [
|
|
1025
1032
|
n("div", {
|
|
1026
1033
|
ref_key: "tableContainer",
|
|
1027
1034
|
ref: Je,
|
|
@@ -1162,14 +1169,14 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
1162
1169
|
}, [
|
|
1163
1170
|
e.value.table.useDialog ? {
|
|
1164
1171
|
name: "title",
|
|
1165
|
-
fn:
|
|
1172
|
+
fn: b(() => [
|
|
1166
1173
|
ht(h(de.value.title), 1)
|
|
1167
1174
|
]),
|
|
1168
1175
|
key: "0"
|
|
1169
1176
|
} : void 0,
|
|
1170
1177
|
e.value.table.useDialog ? {
|
|
1171
1178
|
name: "actions",
|
|
1172
|
-
fn:
|
|
1179
|
+
fn: b(() => [
|
|
1173
1180
|
n("button", {
|
|
1174
1181
|
tabindex: "0",
|
|
1175
1182
|
class: "vue-ui-user-options-button",
|
|
@@ -1187,7 +1194,7 @@ const Sa = ["id"], La = ["onClick"], Pa = ["xmlns", "viewBox"], Na = ["x", "widt
|
|
|
1187
1194
|
s(Ge) ? (u(), G(fa, { key: 9 })) : y("", !0)
|
|
1188
1195
|
], 46, Sa));
|
|
1189
1196
|
}
|
|
1190
|
-
}, Al = /* @__PURE__ */ Ta(hl, [["__scopeId", "data-v-
|
|
1197
|
+
}, Al = /* @__PURE__ */ Ta(hl, [["__scopeId", "data-v-eee5e9d1"]]);
|
|
1191
1198
|
export {
|
|
1192
1199
|
Al as default
|
|
1193
1200
|
};
|