vue-data-ui 3.3.1 → 3.3.2
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-BfykJm_B.js → PackageVersion-r-Q1R3nV.js} +1 -1
- 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-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/useResizeObserverEffect-DfnWps4W.js +109 -0
- package/dist/{vue-data-ui-j8Dnx_Ui.js → vue-data-ui-BFdGl7rL.js} +54 -54
- package/dist/vue-data-ui.js +54 -54
- package/dist/{vue-ui-3d-bar-Cml_eeEU.js → vue-ui-3d-bar-kzlIaqHU.js} +1 -1
- package/dist/{vue-ui-age-pyramid-MULKSv5c.js → vue-ui-age-pyramid-YFzQ15k1.js} +26 -33
- package/dist/{vue-ui-bullet-BHO5zu9m.js → vue-ui-bullet-DdjpiM-T.js} +1 -1
- package/dist/{vue-ui-candlestick-B7EjAlSi.js → vue-ui-candlestick-x9U5Ni0N.js} +28 -35
- package/dist/{vue-ui-carousel-table-DXnYj0Gc.js → vue-ui-carousel-table-CRI_iPLn.js} +1 -1
- package/dist/{vue-ui-chestnut-B1Usqda-.js → vue-ui-chestnut-YrEA5Gq3.js} +1 -1
- package/dist/{vue-ui-chord-DgXH82Hg.js → vue-ui-chord-D_2DdvpZ.js} +1 -1
- package/dist/{vue-ui-circle-pack-BQfaZFFz.js → vue-ui-circle-pack-xm9-OOAR.js} +1 -1
- package/dist/{vue-ui-dashboard-C6xHAPp8.js → vue-ui-dashboard-29ZuFoLn.js} +54 -54
- package/dist/{vue-ui-donut-swJu7UL2.js → vue-ui-donut-BQptfVfE.js} +1 -1
- package/dist/{vue-ui-donut-evolution-D_CKlaay.js → vue-ui-donut-evolution-fiqngEFW.js} +72 -79
- package/dist/{vue-ui-dumbbell-siD31WFG.js → vue-ui-dumbbell-Cw45EBO0.js} +28 -35
- package/dist/{vue-ui-flow-BZCnqIs-.js → vue-ui-flow-DPu9BjPy.js} +1 -1
- package/dist/{vue-ui-funnel-DmgcIRzW.js → vue-ui-funnel-CtlDuNjO.js} +1 -1
- package/dist/{vue-ui-galaxy-C-zegxf9.js → vue-ui-galaxy-BiVjoNHW.js} +1 -1
- package/dist/{vue-ui-gauge-D6C8eUvP.js → vue-ui-gauge-CoM6Q3Nb.js} +1 -1
- package/dist/{vue-ui-gizmo-iSYUVKlt.js → vue-ui-gizmo-DXG8dS5u.js} +1 -1
- package/dist/{vue-ui-heatmap-RHDxexNf.js → vue-ui-heatmap-D6n8AnCc.js} +135 -156
- package/dist/{vue-ui-history-plot-4nwAd1qA.js → vue-ui-history-plot-C8WMHda_.js} +35 -42
- package/dist/{vue-ui-molecule-BhisFSGQ.js → vue-ui-molecule-DC4_vXt_.js} +1 -1
- package/dist/{vue-ui-mood-radar-B8yHPdrV.js → vue-ui-mood-radar-BgT5wMS0.js} +1 -1
- package/dist/{vue-ui-nested-donuts-Bfp0oVSK.js → vue-ui-nested-donuts-D2gSqe1f.js} +1 -1
- package/dist/{vue-ui-onion-f1B0W_oT.js → vue-ui-onion-CEbv2ii4.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DcY-0R-7.js → vue-ui-parallel-coordinate-plot-budrvcwU.js} +34 -41
- package/dist/{vue-ui-quadrant-DuzopA33.js → vue-ui-quadrant-PpymeiXe.js} +1 -1
- package/dist/{vue-ui-quick-chart-45Tm1UnC.js → vue-ui-quick-chart-k6mjTD56.js} +205 -212
- package/dist/{vue-ui-radar-DDS405TF.js → vue-ui-radar-C5NvYMnv.js} +1 -1
- package/dist/{vue-ui-relation-circle-BqXHJEvi.js → vue-ui-relation-circle-Df33aaUT.js} +1 -1
- package/dist/{vue-ui-ridgeline-Lx7YOCRg.js → vue-ui-ridgeline-BTw-37RS.js} +34 -41
- package/dist/{vue-ui-rings-crjrV65X.js → vue-ui-rings-C_s9xOtZ.js} +1 -1
- package/dist/{vue-ui-scatter-Bk4liS2c.js → vue-ui-scatter-Jd8bQ0S5.js} +1 -1
- package/dist/{vue-ui-skeleton-Pu9gPf97.js → vue-ui-skeleton-Ce7H57o7.js} +1 -1
- package/dist/{vue-ui-spark-trend-BmaybxJn.js → vue-ui-spark-trend-DQy4iSO7.js} +1 -1
- package/dist/{vue-ui-sparkbar-DvhcXniz.js → vue-ui-sparkbar-CUFTHql0.js} +1 -1
- package/dist/{vue-ui-sparkgauge-D4Brfset.js → vue-ui-sparkgauge-CcykuBps.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-D5_lR__d.js → vue-ui-sparkhistogram-CyGvYpYn.js} +1 -1
- package/dist/{vue-ui-sparkline-DxNG5QQg.js → vue-ui-sparkline-CLWJM6hA.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-BTFzo3fq.js → vue-ui-sparkstackbar-Cln1pduE.js} +1 -1
- package/dist/{vue-ui-stackbar-B8glHsE6.js → vue-ui-stackbar-DIUil9DO.js} +24 -39
- package/dist/{vue-ui-strip-plot-C5Bro8-W.js → vue-ui-strip-plot-C4U0fT5D.js} +104 -111
- package/dist/{vue-ui-table-Ddu9yx2S.js → vue-ui-table-DpdP3PDq.js} +2 -2
- package/dist/{vue-ui-table-sparkline-D3tgrV_k.js → vue-ui-table-sparkline-Chf5YY4A.js} +1 -1
- package/dist/{vue-ui-thermometer-BxQIZoXd.js → vue-ui-thermometer-D6RmaNE6.js} +1 -1
- package/dist/{vue-ui-timer-BwFlr_19.js → vue-ui-timer-C5E1kJRt.js} +1 -1
- package/dist/{vue-ui-tiremarks-KwISwJS6.js → vue-ui-tiremarks-D0erVBnj.js} +1 -1
- package/dist/{vue-ui-treemap-C6PLDL2Y.js → vue-ui-treemap-K8FYxuYz.js} +1 -1
- package/dist/{vue-ui-vertical-bar-CTmRo06n.js → vue-ui-vertical-bar-BA3OY8Sh.js} +1 -1
- package/dist/{vue-ui-waffle-BwOLL9aa.js → vue-ui-waffle-CgLgPuro.js} +1 -1
- package/dist/{vue-ui-wheel-KI9mkz8y.js → vue-ui-wheel-C_cOUhCs.js} +1 -1
- package/dist/{vue-ui-word-cloud-DTyjx6X4.js → vue-ui-word-cloud-uvHNOIpN.js} +1 -1
- package/dist/{vue-ui-world-C3QXAlC7.js → vue-ui-world-DmeNMwpX.js} +1 -1
- package/dist/{vue-ui-xy-canvas-CdkE1NHd.js → vue-ui-xy-canvas-BQKR36bd.js} +1 -1
- package/dist/{vue-ui-xy-b-CN-G4J.js → vue-ui-xy-tWE4H5ij.js} +274 -281
- package/package.json +1 -1
- package/dist/useTimeLabelCollider-CIsgDrl9.js +0 -78
|
@@ -37,7 +37,7 @@ const ua = ["id"], ia = ["id"], ca = ["xmlns", "viewBox"], va = ["width", "heigh
|
|
|
37
37
|
},
|
|
38
38
|
emits: ["selectLegend"],
|
|
39
39
|
setup(Qe, { expose: Ze, emit: et }) {
|
|
40
|
-
const tt = _(() => import("./Tooltip-VOcQEHa4.js")), at = _(() => import("./BaseIcon-eZbszQrv.js")), ot = _(() => import("./vue-ui-sparkbar-
|
|
40
|
+
const tt = _(() => import("./Tooltip-VOcQEHa4.js")), at = _(() => import("./BaseIcon-eZbszQrv.js")), ot = _(() => import("./vue-ui-sparkbar-CUFTHql0.js")), lt = _(() => import("./vue-ui-accordion-VTP418mC.js")), st = _(() => import("./DataTable-yAMEyP6y.js")), nt = _(() => import("./PenAndPaper-Bo-lMUik.js")), rt = _(() => import("./UserOptions-CSja1SGU.js")), ut = _(() => import("./PackageVersion-r-Q1R3nV.js")), it = _(() => import("./BaseDraggableDialog-CVGErydD.js")), { vue_ui_radar: ct } = jt(), x = Qe, pe = v(() => !!x.dataset && Object.keys(x.dataset).length), b = c(Rt()), Z = c(!1), ee = c(""), he = c(0), C = c(null), ge = c(null), fe = c(null), me = c(null), ye = c(null), be = c(0), ke = c(0), Ce = c(0), we = c(!1), U = c(null), te = c(null), e = c(oe()), { loading: _e, FINAL_DATASET: w } = Jt({
|
|
41
41
|
...Pt(x),
|
|
42
42
|
FINAL_CONFIG: e,
|
|
43
43
|
prepareConfig: oe,
|
|
@@ -37,7 +37,7 @@ const Nt = ["id"], jt = ["xmlns", "viewBox"], Dt = ["width", "height"], Ut = ["c
|
|
|
37
37
|
v7926d380: Xe.value,
|
|
38
38
|
a1d88bbc: qe.value
|
|
39
39
|
}));
|
|
40
|
-
const Te = Z(() => import("./PenAndPaper-Bo-lMUik.js")), Re = Z(() => import("./UserOptions-CSja1SGU.js")), Ne = Z(() => import("./PackageVersion-
|
|
40
|
+
const Te = Z(() => import("./PenAndPaper-Bo-lMUik.js")), Re = Z(() => import("./UserOptions-CSja1SGU.js")), Ne = Z(() => import("./PackageVersion-r-Q1R3nV.js")), { vue_ui_relation_circle: je } = Lt(), m = Be, De = g(() => !!m.dataset && Object.keys(m.dataset).length), S = r(bt()), ie = r(0), A = r(null), ne = r(null), oe = r(null), ue = r(null), re = r(0), l = r(X()), { loading: ce, FINAL_DATASET: Ue, manualLoading: V } = Pt({
|
|
41
41
|
...ft(m),
|
|
42
42
|
FINAL_CONFIG: l,
|
|
43
43
|
prepareConfig: X,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineAsyncComponent as L, computed as c, ref as i, shallowRef as rt, toRefs as sa, onBeforeUnmount as ut, watch as Q, nextTick as $e,
|
|
2
|
-
import { c as Oe, t as
|
|
3
|
-
import { t as ht, u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as La } from "./
|
|
1
|
+
import { defineAsyncComponent as L, computed as c, ref as i, shallowRef as rt, toRefs as sa, onBeforeUnmount as ut, watch as Q, nextTick as $e, createElementBlock as r, openBlock as n, unref as u, normalizeStyle as w, normalizeClass as oe, createBlock as T, createCommentVNode as h, renderSlot as p, createElementVNode as y, createSlots as _e, withCtx as g, normalizeProps as se, guardReactiveProps as ne, createVNode as Te, Fragment as m, renderList as k, mergeProps as Se, toDisplayString as R, resolveDynamicComponent as na, createTextVNode as Pe } from "vue";
|
|
2
|
+
import { c as Oe, t as ra, e as ua, h as ia, p as re, aa as it, ab as ca, T as ct, U as va, V as ha, X as da, E as ya, L as ga, a as ue, d as ie, b as fa, f as Le, g as vt, o as ma, x as pa, y as ba, N as xa } from "./lib-CEjkWSLj.js";
|
|
3
|
+
import { t as ht, u as ka } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Aa, a as dt } from "./useNestedProp-Ce3PwN8T.js";
|
|
5
|
+
import { u as Ca, B as wa } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as $a } from "./usePrinter-DJ1iH-F_.js";
|
|
7
|
+
import { u as _a } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Ta } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
|
+
import { u as Sa } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as Pa } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import { u as Oa, a as La } from "./useResizeObserverEffect-DfnWps4W.js";
|
|
12
12
|
import { t as Ma } from "./themes-Dw-dDudK.js";
|
|
13
13
|
import za from "./Legend-By4rru90.js";
|
|
14
14
|
import Da from "./Title-Camz1Lce.js";
|
|
@@ -36,7 +36,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
36
36
|
},
|
|
37
37
|
emits: ["selectLegend", "selectDatapoint", "selectX"],
|
|
38
38
|
setup(yt, { expose: gt, emit: ft }) {
|
|
39
|
-
const mt = L(() => import("./vue-ui-xy-
|
|
39
|
+
const mt = L(() => import("./vue-ui-xy-tWE4H5ij.js")), pt = L(() => import("./BaseIcon-eZbszQrv.js")), bt = L(() => import("./vue-ui-accordion-VTP418mC.js")), xt = L(() => import("./DataTable-yAMEyP6y.js")), kt = L(() => import("./PenAndPaper-Bo-lMUik.js")), At = L(() => import("./UserOptions-CSja1SGU.js")), Ct = L(() => import("./PackageVersion-r-Q1R3nV.js")), Me = L(() => import("./BaseDraggableDialog-CVGErydD.js")), { vue_ui_ridgeline: wt } = Aa(), E = yt, U = c({
|
|
40
40
|
get() {
|
|
41
41
|
return Array.isArray(z.value) && z.value.length > 0;
|
|
42
42
|
},
|
|
@@ -54,10 +54,10 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
54
54
|
userConfig: Ma.vue_ui_ridgeline[t.theme] || E.config,
|
|
55
55
|
defaultConfig: t
|
|
56
56
|
}),
|
|
57
|
-
customPalette:
|
|
57
|
+
customPalette: fa[t.theme] || re
|
|
58
58
|
} : t;
|
|
59
59
|
}
|
|
60
|
-
const e = i(fe()), { loading: G, FINAL_DATASET: z, manualLoading: me } =
|
|
60
|
+
const e = i(fe()), { loading: G, FINAL_DATASET: z, manualLoading: me } = Ca({
|
|
61
61
|
...sa(E),
|
|
62
62
|
FINAL_CONFIG: e,
|
|
63
63
|
prepareConfig: fe,
|
|
@@ -153,7 +153,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
153
153
|
]
|
|
154
154
|
}
|
|
155
155
|
],
|
|
156
|
-
skeletonConfig:
|
|
156
|
+
skeletonConfig: ra({
|
|
157
157
|
defaultConfig: e.value,
|
|
158
158
|
userConfig: {
|
|
159
159
|
userOptions: { show: !1 },
|
|
@@ -199,7 +199,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
199
199
|
userOptionsVisible: Z,
|
|
200
200
|
setUserOptionsVisibility: He,
|
|
201
201
|
keepUserOptionState: Xe
|
|
202
|
-
} =
|
|
202
|
+
} = Sa({ config: e.value }), { svgRef: ee } = Pa({ config: e.value.style.chart.title }), pe = c(() => !!e.value.debug);
|
|
203
203
|
function Be() {
|
|
204
204
|
const t = z.value || [];
|
|
205
205
|
if (!Array.isArray(t) || t.length === 0) {
|
|
@@ -235,9 +235,9 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
235
235
|
}), _t.value = t.length, C.value = Math.min(
|
|
236
236
|
e.value.style.chart.areas.height,
|
|
237
237
|
e.value.style.chart.areas.rowHeight
|
|
238
|
-
),
|
|
238
|
+
), ma(E.dataset) || (me.value = e.value.loading), e.value.responsive) {
|
|
239
239
|
const o = ht(() => {
|
|
240
|
-
const { width: a, height: s } =
|
|
240
|
+
const { width: a, height: s } = ka({
|
|
241
241
|
chart: $.value,
|
|
242
242
|
title: e.value.style.chart.title.text ? ze.value : null,
|
|
243
243
|
legend: e.value.style.chart.legend.show ? De.value : null,
|
|
@@ -255,11 +255,11 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
255
255
|
ut(() => {
|
|
256
256
|
S.value && (M.value && S.value.unobserve(M.value), S.value.disconnect());
|
|
257
257
|
});
|
|
258
|
-
const { isPrinting: Ue, isImaging: Ve, generatePdf: Ge, generateImage: We } =
|
|
258
|
+
const { isPrinting: Ue, isImaging: Ve, generatePdf: Ge, generateImage: We } = $a({
|
|
259
259
|
elementId: `vue-ui-ridgeline_${A.value}`,
|
|
260
260
|
fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
261
261
|
options: e.value.userOptions.print
|
|
262
|
-
}), Tt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), St = c(() =>
|
|
262
|
+
}), Tt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), St = c(() => ua(e.value.customPalette)), D = i({
|
|
263
263
|
showTable: e.value.table.show
|
|
264
264
|
});
|
|
265
265
|
Q(
|
|
@@ -292,7 +292,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
292
292
|
labelLen: Nt(t.name, e.value.style.chart.yAxis.labels.fontSize),
|
|
293
293
|
uid: Oe(),
|
|
294
294
|
datapoints: t.datapoints.map((o, a) => {
|
|
295
|
-
const s = o.color ?
|
|
295
|
+
const s = o.color ? ia(o.color) : St.value[a] || re[a] || re[a % re.length], l = it(o.name);
|
|
296
296
|
return { ...o, color: s, id: l };
|
|
297
297
|
})
|
|
298
298
|
})) : []), je = c(() => e.value.style.chart.padding.top + C.value * (z.value || []).length + C.value * be.value + e.value.style.chart.padding.bottom), f = c(() => {
|
|
@@ -305,14 +305,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
305
305
|
}), Pt = c(() => f.value.width), Ot = c(() => f.value.height), xe = i(0), Lt = ht((t) => {
|
|
306
306
|
xe.value = t;
|
|
307
307
|
}, 100);
|
|
308
|
-
|
|
309
|
-
const o = ye.value;
|
|
310
|
-
if (!o) return;
|
|
311
|
-
const a = new ResizeObserver((s) => {
|
|
312
|
-
Lt(s[0].contentRect.height);
|
|
313
|
-
});
|
|
314
|
-
a.observe(o), t(() => a.disconnect());
|
|
315
|
-
}), ut(() => {
|
|
308
|
+
Oa({ elementRef: ye, callback: Lt, attr: "height" }), ut(() => {
|
|
316
309
|
xe.value = 0;
|
|
317
310
|
});
|
|
318
311
|
const b = c(() => ({
|
|
@@ -322,7 +315,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
322
315
|
right: f.value.width - f.value.padding.right,
|
|
323
316
|
bottom: f.value.height - e.value.style.chart.padding.bottom,
|
|
324
317
|
width: f.value.width - (f.value.padding.left + f.value.padding.right)
|
|
325
|
-
})), W = c(() => Math.max(...P.value.flatMap((t) => t.datapoints.map((o) => o.values.length)))), Y = c(() =>
|
|
318
|
+
})), W = c(() => Math.max(...P.value.flatMap((t) => t.datapoints.map((o) => o.values.length)))), Y = c(() => Ta({
|
|
326
319
|
values: e.value.style.chart.xAxis.labels.values,
|
|
327
320
|
maxDatapoints: W.value,
|
|
328
321
|
formatter: e.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
@@ -397,7 +390,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
397
390
|
isMaxPoint: oa,
|
|
398
391
|
zero: N
|
|
399
392
|
};
|
|
400
|
-
}), Jt = `${
|
|
393
|
+
}), Jt = `${ca(F, N, !1, !1)}`, Kt = `M ${s},${N} ${ct(F)} ${F.at(-1).x},${N}`, Qt = `M ${s},${N} ${F.at(-1).x},${N}`, st = `M ${va(F)}`, nt = `M ${ct(F)}`, Zt = ha(
|
|
401
394
|
e.value.style.chart.areas.smooth ? st : nt
|
|
402
395
|
);
|
|
403
396
|
return {
|
|
@@ -452,7 +445,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
452
445
|
useArea: !0,
|
|
453
446
|
smooth: e.value.style.chart.areas.smooth,
|
|
454
447
|
series: o.values
|
|
455
|
-
})), H.value = t, Ke.value =
|
|
448
|
+
})), H.value = t, Ke.value = xa({
|
|
456
449
|
...e.value.style.chart.dialog.xyChart,
|
|
457
450
|
responsive: !0,
|
|
458
451
|
// Overriding
|
|
@@ -542,8 +535,8 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
542
535
|
], a = [
|
|
543
536
|
[e.value.style.chart.title.text],
|
|
544
537
|
[e.value.style.chart.title.subtitle.text]
|
|
545
|
-
].concat(o), s =
|
|
546
|
-
t ? t(s) :
|
|
538
|
+
].concat(o), s = pa(a);
|
|
539
|
+
t ? t(s) : ba({
|
|
547
540
|
csvContent: s,
|
|
548
541
|
title: e.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
549
542
|
});
|
|
@@ -617,7 +610,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
617
610
|
const Gt = c(() => e.value.style.chart.backgroundColor), Wt = c(() => ({
|
|
618
611
|
...e.value.style.chart.legend,
|
|
619
612
|
position: "bottom"
|
|
620
|
-
})), Yt = c(() => e.value.style.chart.title), { exportSvg: jt, getSvg: qt } =
|
|
613
|
+
})), Yt = c(() => e.value.style.chart.title), { exportSvg: jt, getSvg: qt } = _a({
|
|
621
614
|
svg: ee,
|
|
622
615
|
title: Yt,
|
|
623
616
|
legend: Wt,
|
|
@@ -788,7 +781,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
788
781
|
(n(), r("svg", {
|
|
789
782
|
ref_key: "svgRef",
|
|
790
783
|
ref: ee,
|
|
791
|
-
xmlns: u(
|
|
784
|
+
xmlns: u(da),
|
|
792
785
|
class: oe({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
793
786
|
viewBox: `0 0 ${f.value.width <= 0 ? 10 : f.value.width} ${b.value.fullHeight <= 0 ? 10 : b.value.fullHeight}`,
|
|
794
787
|
style: w(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${Ee.value}px; width: 100%;` : ""}`)
|
|
@@ -915,7 +908,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
915
908
|
y1: _.y,
|
|
916
909
|
x2: _.x,
|
|
917
910
|
y2: _.zero,
|
|
918
|
-
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(
|
|
911
|
+
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(ya)(l.color) : e.value.style.chart.areas.maxPoint.stroke,
|
|
919
912
|
"stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
|
|
920
913
|
"stroke-linecap": "round",
|
|
921
914
|
"stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
|
|
@@ -978,7 +971,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
978
971
|
style: w({
|
|
979
972
|
opacity: d.value ? d.value.index === s ? 1 : 0.2 : 1
|
|
980
973
|
}),
|
|
981
|
-
innerHTML: u(
|
|
974
|
+
innerHTML: u(ga)({
|
|
982
975
|
content: String(a.label),
|
|
983
976
|
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
984
977
|
fill: e.value.style.chart.xAxis.labels.color,
|
|
@@ -1136,7 +1129,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
1136
1129
|
}, [
|
|
1137
1130
|
p(t.$slots, "source", {}, void 0, !0)
|
|
1138
1131
|
], 512)) : h("", !0),
|
|
1139
|
-
U.value && e.value.userOptions.buttons.table ? (n(), T(
|
|
1132
|
+
U.value && e.value.userOptions.buttons.table ? (n(), T(na(j.value.component), Se({ key: 6 }, j.value.props, {
|
|
1140
1133
|
ref_key: "tableUnit",
|
|
1141
1134
|
ref: V,
|
|
1142
1135
|
onClose: tt
|
|
@@ -1221,10 +1214,10 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ha = ["id"], Xa = ["stop-color"],
|
|
|
1221
1214
|
]),
|
|
1222
1215
|
_: 1
|
|
1223
1216
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : h("", !0),
|
|
1224
|
-
u(G) ? (n(), T(
|
|
1217
|
+
u(G) ? (n(), T(wa, { key: 8 })) : h("", !0)
|
|
1225
1218
|
], 46, Ra));
|
|
1226
1219
|
}
|
|
1227
|
-
}, Ml = /* @__PURE__ */ Fa(yl, [["__scopeId", "data-v-
|
|
1220
|
+
}, Ml = /* @__PURE__ */ Fa(yl, [["__scopeId", "data-v-d51e8a0f"]]);
|
|
1228
1221
|
export {
|
|
1229
1222
|
Ml as default
|
|
1230
1223
|
};
|
|
@@ -34,7 +34,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend"],
|
|
36
36
|
setup(Xe, { expose: qe, emit: Ye }) {
|
|
37
|
-
const Je = A(() => import("./Tooltip-VOcQEHa4.js")), Ke = A(() => import("./BaseIcon-eZbszQrv.js")), Qe = A(() => import("./vue-ui-accordion-VTP418mC.js")), Ze = A(() => import("./DataTable-yAMEyP6y.js")), et = A(() => import("./PenAndPaper-Bo-lMUik.js")), tt = A(() => import("./UserOptions-CSja1SGU.js")), lt = A(() => import("./PackageVersion-
|
|
37
|
+
const Je = A(() => import("./Tooltip-VOcQEHa4.js")), Ke = A(() => import("./BaseIcon-eZbszQrv.js")), Qe = A(() => import("./vue-ui-accordion-VTP418mC.js")), Ze = A(() => import("./DataTable-yAMEyP6y.js")), et = A(() => import("./PenAndPaper-Bo-lMUik.js")), tt = A(() => import("./UserOptions-CSja1SGU.js")), lt = A(() => import("./PackageVersion-r-Q1R3nV.js")), ot = A(() => import("./BaseDraggableDialog-CVGErydD.js")), { vue_ui_rings: at } = Gt(), st = $t(), k = Xe, F = r(!1), pe = c(() => !!k.dataset && k.dataset.length), y = r(Ue()), W = r(!1), K = r(""), T = r(null), ge = r(0), _ = r(null), fe = r(null), ye = r(null), me = r(null), be = r(null), ke = r(0), we = r(0), Ce = r(0), Q = r(!1), $e = r(!1), M = r(null), Z = r(null), e = r(le()), { loading: I, FINAL_DATASET: Te, manualLoading: G } = jt({
|
|
38
38
|
...Tt(k),
|
|
39
39
|
FINAL_CONFIG: e,
|
|
40
40
|
prepareConfig: le,
|
|
@@ -59,7 +59,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Jl = ["width", "heigh
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
setup(Ft, { expose: Wt }) {
|
|
62
|
-
const Nt = ne(() => import("./Tooltip-VOcQEHa4.js")), It = ne(() => import("./BaseIcon-eZbszQrv.js")), Xt = ne(() => import("./vue-ui-accordion-VTP418mC.js")), Yt = ne(() => import("./DataTable-yAMEyP6y.js")), Rt = ne(() => import("./PenAndPaper-Bo-lMUik.js")), Ut = ne(() => import("./UserOptions-CSja1SGU.js")), jt = ne(() => import("./PackageVersion-
|
|
62
|
+
const Nt = ne(() => import("./Tooltip-VOcQEHa4.js")), It = ne(() => import("./BaseIcon-eZbszQrv.js")), Xt = ne(() => import("./vue-ui-accordion-VTP418mC.js")), Yt = ne(() => import("./DataTable-yAMEyP6y.js")), Rt = ne(() => import("./PenAndPaper-Bo-lMUik.js")), Ut = ne(() => import("./UserOptions-CSja1SGU.js")), jt = ne(() => import("./PackageVersion-r-Q1R3nV.js")), Vt = ne(() => import("./BaseDraggableDialog-CVGErydD.js")), { vue_ui_scatter: Gt } = El(), ee = Ft, et = T(() => !!ee.dataset && ee.dataset.length), W = M(kl()), Pe = M(!1), Oe = M(""), tt = M(0), te = M(null), lt = M(null), at = M(null), ot = M(null), st = M(null), nt = M(0), ut = M(0), it = M(0), N = M([]), rt = M(!1), ge = M(null), me = M(null), xe = M(null), De = M(null), Ee = M(null), qt = M(null), Ht = M(null), Fe = M(null), e = M(Xe());
|
|
63
63
|
function Zt(l = 100, s = 0.8, t = {}) {
|
|
64
64
|
const { meanX: o = 0, sdX: a = 1, meanY: u = 0, sdY: i = 1, seed: p } = t;
|
|
65
65
|
let v = (p ?? Math.floor(Math.random() * 2 ** 31)) >>> 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as w, computed as g, createElementBlock as e, openBlock as o, normalizeStyle as n, normalizeClass as N, createCommentVNode as a, unref as s, createVNode as d, createElementVNode as t, Fragment as k, renderList as h, createStaticVNode as $ } from "vue";
|
|
2
2
|
import { k as B, X as c, s as v, j as F } from "./lib-CEjkWSLj.js";
|
|
3
3
|
import { u as O, a as V } from "./useNestedProp-Ce3PwN8T.js";
|
|
4
|
-
import y from "./PackageVersion-
|
|
4
|
+
import y from "./PackageVersion-r-Q1R3nV.js";
|
|
5
5
|
import { _ as X } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const G = ["id"], R = ["xmlns"], T = { transform: "translate(300, 300)" }, U = ["d", "fill", "stroke"], Y = ["xmlns"], D = ["id"], J = ["stop-color"], K = ["stop-color"], l1 = ["stop-color"], t1 = ["stop-color"], e1 = ["fill", "stroke"], o1 = ["fill", "stroke"], s1 = ["fill", "stroke"], r1 = ["fill", "stroke"], i1 = ["fill", "stroke"], n1 = ["xmlns"], a1 = ["stroke"], c1 = ["stroke"], u1 = ["stroke"], d1 = ["fill", "stroke"], y1 = ["fill"], k1 = ["fill", "stroke"], h1 = ["fill"], v1 = ["fill", "stroke"], _1 = ["fill"], x1 = ["fill", "stroke"], p1 = ["fill"], g1 = ["fill", "stroke"], f1 = ["fill"], w1 = ["fill", "stroke"], C1 = ["fill"], m1 = ["xmlns"], b1 = ["stroke"], M1 = ["stroke"], L1 = ["stroke"], A1 = ["stroke"], $1 = ["stroke"], B1 = ["stroke"], P1 = ["stroke"], W1 = ["stroke"], j1 = ["stroke"], z1 = ["xmlns"], Z1 = ["stroke", "fill"], q1 = ["xmlns"], H1 = ["stroke", "fill"], Q1 = ["xmlns"], E1 = ["fill"], S1 = ["fill"], I1 = ["fill"], N1 = ["fill"], F1 = ["xmlns"], O1 = ["stroke"], V1 = ["fill"], X1 = ["stroke", "fill"], G1 = ["stroke", "fill"], R1 = ["fill"], T1 = ["stroke", "fill"], U1 = ["stroke", "fill"], Y1 = ["fill"], D1 = ["stroke", "fill"], J1 = ["stroke", "fill"], K1 = ["fill"], ll = ["stroke", "fill"], tl = ["stroke", "fill"], el = ["fill"], ol = ["stroke", "fill"], sl = ["stroke", "fill"], rl = ["xmlns"], il = ["stroke"], nl = ["stroke"], al = ["stroke", "fill"], cl = ["stroke", "fill"], ul = ["stroke", "fill"], dl = ["stroke", "fill"], yl = ["stroke", "fill"], kl = ["stroke", "fill"], hl = ["stroke", "fill"], vl = ["stroke", "fill"], _l = ["stroke", "fill"], xl = ["stroke", "fill"], pl = ["stroke", "fill"], gl = ["stroke", "fill"], fl = ["stroke", "fill"], wl = ["stroke", "fill"], Cl = ["stroke", "fill"], ml = ["stroke", "fill"], bl = ["stroke", "fill"], Ml = ["stroke", "fill"], Ll = ["stroke", "fill"], Al = ["stroke", "fill"], $l = ["stroke", "fill"], Bl = ["stroke", "fill"], Pl = ["stroke", "fill"], Wl = ["xmlns"], jl = ["stroke"], zl = ["xmlns"], Zl = ["stroke"], ql = ["xmlns"], Hl = ["stroke"], Ql = ["xmlns"], El = ["fill"], Sl = ["fill"], Il = ["fill"], Nl = ["fill"], Fl = ["fill"], Ol = ["fill"], Vl = ["fill"], Xl = ["fill"], Gl = ["fill"], Rl = ["fill"], Tl = ["fill"], Ul = ["fill"], Yl = ["xmlns"], Dl = ["stroke"], Jl = ["stroke"], Kl = ["stroke"], l0 = ["stroke"], t0 = ["stroke"], e0 = ["stroke"], o0 = ["xmlns"], s0 = ["stroke"], r0 = ["stroke"], i0 = ["stroke"], n0 = ["stroke"], a0 = ["stroke"], c0 = ["stroke"], u0 = ["stroke"], d0 = ["stroke"], y0 = ["stroke"], k0 = ["xmlns"], h0 = ["stroke"], v0 = ["xmlns"], _0 = ["stroke"], x0 = ["stroke"], p0 = ["stroke"], g0 = ["stroke"], f0 = ["stroke"], w0 = ["stroke"], C0 = ["stroke"], m0 = ["stroke"], b0 = ["stroke"], M0 = ["xmlns"], L0 = ["x1", "x2", "stroke"], A0 = ["xmlns"], $0 = ["x", "y", "width", "height", "fill"], B0 = ["y", "width", "height", "fill"], P0 = ["xmlns"], W0 = ["fill"], j0 = ["fill"], z0 = ["fill"], Z0 = ["xmlns"], q0 = ["x1", "x2", "y1", "y2", "stroke"], H0 = ["stroke"], Q0 = ["fill"], E0 = ["xmlns"], S0 = ["fill"], I0 = ["fill"], N0 = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], F0 = ["xmlns"], O0 = { key: 0 }, V0 = ["stroke", "stroke-width"], X0 = ["stroke", "stroke-width"], G0 = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], R0 = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], T0 = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], U0 = ["x", "y", "height", "width", "fill"], Y0 = ["xmlns", "viewBox"], D0 = ["x", "y", "stroke", "fill"], J0 = ["xmlns"], K0 = ["d", "stroke"], lt = ["cx", "cy", "r", "fill", "stroke"], tt = ["cx", "cy", "r", "fill", "stroke"], et = ["x", "y", "width", "fill"], ot = ["cx", "cy", "fill"], st = ["cx", "cy", "fill"], rt = ["stroke"], it = ["xmlns"], nt = ["stroke", "stroke-width"], at = ["stroke", "stroke-width"], ct = ["stroke", "stroke-width"], ut = ["fill"], dt = ["fill"], yt = ["fill"], kt = ["fill"], ht = ["fill"], vt = ["fill"], _t = ["xmlns"], xt = { key: 0 }, pt = ["stroke", "stroke-width"], gt = ["stroke", "stroke-width"], ft = ["stroke", "stroke-width"], wt = { key: 1 }, Ct = ["r", "fill"], mt = ["r", "fill"], bt = ["xmlns"], Mt = { key: 0 }, Lt = ["stroke", "stroke-width"], At = ["stroke", "stroke-width"], $t = ["fill", "rx", "x", "y", "width", "height"], Bt = ["xmlns"], Pt = ["stroke-width", "stroke"], Wt = ["stroke-width", "stroke"], jt = ["stroke-width", "stroke"], zt = ["xmlns"], Zt = ["stroke"], qt = ["stroke"], Ht = ["stroke"], Qt = ["stroke"], Et = ["fill"], St = ["stroke"], It = ["xmlns"], Nt = ["stroke", "stroke-width"], Ft = ["stroke", "stroke-width"], Ot = ["fill", "r"], Vt = ["fill", "r"], Xt = ["fill", "r"], Gt = ["fill", "r"], Rt = ["fill", "r"], Tt = ["fill", "r"], Ut = ["fill", "r"], Yt = ["fill", "r"], Dt = ["fill", "r"], Jt = ["xmlns"], Kt = ["d", "stroke", "stroke-width"], le = ["d", "stroke", "stroke-width"], te = ["d", "stroke", "stroke-width"], ee = ["d", "stroke", "stroke-width"], oe = ["stroke", "stroke-width"], se = ["stroke", "stroke-width"], re = ["stroke", "stroke-width"], ie = ["fill"], ne = ["fill"], ae = ["xmlns"], ce = ["x", "y", "fill"], ue = ["x", "y", "fill"], de = ["x", "y", "fill"], ye = ["xmlns"], ke = ["fill"], he = ["fill"], ve = ["y1", "y2", "stroke", "stroke-width"], _e = ["x1", "x2", "stroke", "stroke-width"], xe = ["xmlns", "stroke"], pe = ["fill"], ge = ["xmlns", "stroke"], fe = ["xmlns", "stroke"], we = ["fill"], Ce = ["xmlns", "stroke"], me = ["xmlns", "stroke"], be = ["fill"], Me = ["xmlns", "stroke"], Le = ["xmlns", "stroke"], Ae = ["fill"], $e = ["xmlns", "stroke"], Be = ["xmlns", "stroke"], Pe = ["fill"], We = ["xmlns", "stroke"], je = ["xmlns"], ze = ["points", "fill", "stroke", "stroke-width"], Ze = ["xmlns"], qe = { key: 0 }, He = ["stroke", "stroke-width"], Qe = ["y", "width", "fill", "rx"], Ee = {
|
|
7
7
|
__name: "vue-ui-skeleton",
|
|
@@ -23,7 +23,7 @@ const Me = ["id"], Ie = ["xmlns", "viewBox"], je = ["width", "height"], Ee = ["i
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
setup(ae) {
|
|
26
|
-
const ne = ce(() => import("./PackageVersion-
|
|
26
|
+
const ne = ce(() => import("./PackageVersion-r-Q1R3nV.js")), { vue_ui_spark_trend: ue } = Ae(), m = ae, F = f(null), U = f(null), W = f(null), $ = f(null), C = f(null), A = f(!1), y = f(null), L = f(ke()), e = f(j()), { loading: _, FINAL_DATASET: M, manualLoading: I } = Te({
|
|
27
27
|
...he(m),
|
|
28
28
|
FINAL_CONFIG: e,
|
|
29
29
|
prepareConfig: j,
|
|
@@ -32,7 +32,7 @@ const ke = ["onClick", "onMouseenter", "onMouseleave"], be = { key: 1 }, we = ["
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectDatapoint"],
|
|
34
34
|
setup(O, { emit: j }) {
|
|
35
|
-
const U = Z(() => import("./PackageVersion-
|
|
35
|
+
const U = Z(() => import("./PackageVersion-r-Q1R3nV.js")), { vue_ui_sparkbar: R } = ge(), f = O, W = ee();
|
|
36
36
|
F(() => {
|
|
37
37
|
W["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
|
|
38
38
|
});
|
|
@@ -25,7 +25,7 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
setup(D) {
|
|
28
|
-
const O = T(() => import("./PackageVersion-
|
|
28
|
+
const O = T(() => import("./PackageVersion-r-Q1R3nV.js")), { vue_ui_sparkgauge: j } = X(), c = D, _ = b(Y()), e = b(p()), { loading: h, FINAL_DATASET: v } = te({
|
|
29
29
|
...U(c),
|
|
30
30
|
FINAL_CONFIG: e,
|
|
31
31
|
prepareConfig: p,
|
|
@@ -29,7 +29,7 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
29
29
|
pe((l) => ({
|
|
30
30
|
v693dff61: ve.value
|
|
31
31
|
}));
|
|
32
|
-
const te = me(() => import("./PackageVersion-
|
|
32
|
+
const te = me(() => import("./PackageVersion-r-Q1R3nV.js")), { vue_ui_sparkhistogram: le } = Se(), b = Z, _ = y(ke()), W = y(null), V = y(null), M = y(null), C = y(null), w = y(null), e = y(T()), { loading: H, FINAL_DATASET: A } = Me({
|
|
33
33
|
...be(b),
|
|
34
34
|
FINAL_CONFIG: e,
|
|
35
35
|
prepareConfig: T,
|
|
@@ -41,7 +41,7 @@ const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["i
|
|
|
41
41
|
},
|
|
42
42
|
emits: ["hoverIndex", "selectDatapoint"],
|
|
43
43
|
setup($, { emit: Ae }) {
|
|
44
|
-
const $e = he(() => import("./PackageVersion-
|
|
44
|
+
const $e = he(() => import("./PackageVersion-r-Q1R3nV.js")), Ne = he(() => import("./SparkTooltip--YwqrrgZ.js")), { vue_ui_sparkline: Me } = He(), r = $, ue = h(() => Array.isArray(r.dataset) && r.dataset.length > 0), g = y(Ge()), R = y(null), oe = y(null), se = y(null), e = y(B());
|
|
45
45
|
function Ce(t) {
|
|
46
46
|
return Ke(t).map((a) => ({ period: "-", value: a }));
|
|
47
47
|
}
|
|
@@ -33,7 +33,7 @@ const Ne = ["xmlns", "viewBox"], Te = ["id"], Ee = ["stop-color"], Me = ["stop-c
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectDatapoint"],
|
|
35
35
|
setup(ue, { emit: ie }) {
|
|
36
|
-
const ce = X(() => import("./PackageVersion-
|
|
36
|
+
const ce = X(() => import("./PackageVersion-r-Q1R3nV.js")), de = X(() => import("./Tooltip-VOcQEHa4.js")), { vue_ui_sparkstackbar: ve } = De(), _ = ue, pe = be();
|
|
37
37
|
J(() => {
|
|
38
38
|
pe["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
39
39
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineAsyncComponent as H, useSlots as Ia, computed as m, ref as y, onMounted as Rt, toRefs as Na, watch as ze, shallowRef as It, onBeforeUnmount as Nt,
|
|
2
|
-
import { u as Va, a as
|
|
3
|
-
import { c as
|
|
1
|
+
import { defineAsyncComponent as H, useSlots as Ia, computed as m, ref as y, onMounted as Rt, toRefs as Na, watch as ze, shallowRef as It, onBeforeUnmount as Nt, nextTick as Ot, createElementBlock as o, openBlock as r, unref as v, normalizeStyle as j, normalizeClass as le, createBlock as B, createCommentVNode as d, renderSlot as L, createElementVNode as D, createVNode as he, createSlots as Ge, withCtx as C, normalizeProps as W, guardReactiveProps as Y, Fragment as b, renderList as p, mergeProps as Ce, toDisplayString as T, Teleport as Oa, resolveDynamicComponent as Pa, createTextVNode as Pt } from "vue";
|
|
2
|
+
import { u as Va, a as Vt } from "./useNestedProp-Ce3PwN8T.js";
|
|
3
|
+
import { c as Dt, t as Da, b as Ea, p as Se, B as se, e as Fa, o as Et, f as Ft, g as Ua, h as Ha, a8 as _e, a9 as Ut, C as Ht, X as Ba, m as Wa, a4 as $e, E as Bt, a as Te, d as ee, L as Ya, H as Xa, z as Wt, x as Ga, y as Ja, A as qa } from "./lib-CEjkWSLj.js";
|
|
4
4
|
import { t as Je, u as Za } from "./useResponsive-DfdjqQps.js";
|
|
5
5
|
import { u as Ka } from "./usePrinter-DJ1iH-F_.js";
|
|
6
6
|
import { u as Qa, B as ja } from "./BaseScanner-BgWxam9d.js";
|
|
@@ -8,7 +8,7 @@ import { u as el } from "./useSvgExport-DrjCWun4.js";
|
|
|
8
8
|
import { u as tl } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
9
|
import { u as al } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
10
|
import { u as ll } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
-
import { u as sl } from "./
|
|
11
|
+
import { u as Yt, a as sl } from "./useResizeObserverEffect-DfnWps4W.js";
|
|
12
12
|
import rl from "./img-J2dLIr8Y.js";
|
|
13
13
|
import ol from "./Title-Camz1Lce.js";
|
|
14
14
|
import { _ as nl } from "./Shape-BceHSLHf.js";
|
|
@@ -37,14 +37,14 @@ const vl = ["id"], dl = ["id"], gl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
37
37
|
},
|
|
38
38
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
39
39
|
setup(Me, { expose: Xt, emit: Gt }) {
|
|
40
|
-
const Jt = H(() => import("./Tooltip-VOcQEHa4.js")), qt = H(() => import("./BaseIcon-eZbszQrv.js")), Zt = H(() => import("./vue-ui-accordion-VTP418mC.js")), Kt = H(() => import("./DataTable-yAMEyP6y.js")), Qt = H(() => import("./PenAndPaper-Bo-lMUik.js")), jt = H(() => import("./UserOptions-CSja1SGU.js")), ea = H(() => import("./PackageVersion-
|
|
40
|
+
const Jt = H(() => import("./Tooltip-VOcQEHa4.js")), qt = H(() => import("./BaseIcon-eZbszQrv.js")), Zt = H(() => import("./vue-ui-accordion-VTP418mC.js")), Kt = H(() => import("./DataTable-yAMEyP6y.js")), Qt = H(() => import("./PenAndPaper-Bo-lMUik.js")), jt = H(() => import("./UserOptions-CSja1SGU.js")), ea = H(() => import("./PackageVersion-r-Q1R3nV.js")), ta = H(() => import("./BaseDraggableDialog-CVGErydD.js")), { vue_ui_stackbar: aa } = Va(), la = Ia(), f = Me, Ae = Gt, ve = m({
|
|
41
41
|
get() {
|
|
42
42
|
return !!f.dataset && f.dataset.length;
|
|
43
43
|
},
|
|
44
44
|
set(a) {
|
|
45
45
|
return a;
|
|
46
46
|
}
|
|
47
|
-
}), O = y(null), M = y(
|
|
47
|
+
}), O = y(null), M = y(Dt()), Re = y(!1), Ie = y(null), Ne = y(""), _ = y([]), qe = y(0), Ze = y(null), Ke = y(null), Qe = y(null), je = y(null), et = y(0), re = y(!1), de = y(null), X = y(!1), tt = y(0), sa = y(0), ra = y(0), at = y(null), lt = y(!1), oe = y(null), Oe = y(null), Pe = y(null), Ve = y(null), G = y(null), J = y(null), oa = y(null), st = y(null);
|
|
48
48
|
Rt(() => {
|
|
49
49
|
lt.value = !0, He();
|
|
50
50
|
});
|
|
@@ -120,13 +120,13 @@ const vl = ["id"], dl = ["id"], gl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
120
120
|
})
|
|
121
121
|
}), { userOptionsVisible: De, setUserOptionsVisibility: rt, keepUserOptionState: ot } = al({ config: e.value }), { svgRef: Ee } = ll({ config: e.value.style.chart.title });
|
|
122
122
|
function Fe() {
|
|
123
|
-
const a =
|
|
123
|
+
const a = Vt({
|
|
124
124
|
userConfig: f.config,
|
|
125
125
|
defaultConfig: aa
|
|
126
126
|
});
|
|
127
127
|
let l = {};
|
|
128
128
|
return a.theme ? l = {
|
|
129
|
-
...
|
|
129
|
+
...Vt({
|
|
130
130
|
userConfig: il.vue_ui_stackbar[a.theme] || f.config,
|
|
131
131
|
defaultConfig: a
|
|
132
132
|
}),
|
|
@@ -174,7 +174,7 @@ const vl = ["id"], dl = ["id"], gl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
174
174
|
});
|
|
175
175
|
const Ue = m(() => !!e.value.debug);
|
|
176
176
|
function He() {
|
|
177
|
-
if (
|
|
177
|
+
if (Et(f.dataset) ? (Ft({
|
|
178
178
|
componentName: "VueUiStackbar",
|
|
179
179
|
type: "dataset",
|
|
180
180
|
debug: Ue.value
|
|
@@ -183,7 +183,7 @@ const vl = ["id"], dl = ["id"], gl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
183
183
|
datasetObject: a,
|
|
184
184
|
requiredAttributes: ["name", "series"]
|
|
185
185
|
}).forEach((t) => {
|
|
186
|
-
ve.value = !1,
|
|
186
|
+
ve.value = !1, Ft({
|
|
187
187
|
componentName: "VueUiStackbar",
|
|
188
188
|
type: "datasetSerieAttribute",
|
|
189
189
|
property: t,
|
|
@@ -191,7 +191,7 @@ const vl = ["id"], dl = ["id"], gl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
191
191
|
debug: Ue.value
|
|
192
192
|
}), ye.value = !0;
|
|
193
193
|
});
|
|
194
|
-
}),
|
|
194
|
+
}), Et(f.dataset) || (ye.value = e.value.loading), setTimeout(() => {
|
|
195
195
|
X.value = !0;
|
|
196
196
|
}, 10), e.value.responsive) {
|
|
197
197
|
const a = Je(() => {
|
|
@@ -231,26 +231,11 @@ const vl = ["id"], dl = ["id"], gl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
231
231
|
const be = y(0), fe = y(0), ua = Je((a) => {
|
|
232
232
|
be.value = a;
|
|
233
233
|
}, 100);
|
|
234
|
-
|
|
235
|
-
const l = e.value.orientation === "vertical" ? J.value : G.value;
|
|
236
|
-
if (!l) return;
|
|
237
|
-
const t = new ResizeObserver((s) => {
|
|
238
|
-
ua(s[0].contentRect.height);
|
|
239
|
-
});
|
|
240
|
-
t.observe(l), a(() => t.disconnect());
|
|
241
|
-
});
|
|
234
|
+
Yt({ elementRef: e.value.orientation === "vertical" ? J : G, callback: ua, attr: "height" });
|
|
242
235
|
const ca = Je((a) => {
|
|
243
236
|
fe.value = a + e.value.style.chart.bars.totalValues.fontSize;
|
|
244
237
|
}, 100);
|
|
245
|
-
|
|
246
|
-
if (e.value.orientation === "vertical") return;
|
|
247
|
-
const l = st.value;
|
|
248
|
-
if (!l) return;
|
|
249
|
-
const t = new ResizeObserver((s) => {
|
|
250
|
-
ca(s[0].contentRect.width);
|
|
251
|
-
});
|
|
252
|
-
t.observe(l), a(() => t.disconnect());
|
|
253
|
-
}), Nt(() => {
|
|
238
|
+
Yt({ elementRef: st, callback: ca, attr: "width", earlyReturn: e.value.orientation === "vertical" }), Nt(() => {
|
|
254
239
|
be.value = 0, fe.value = 0;
|
|
255
240
|
});
|
|
256
241
|
const gt = m(() => {
|
|
@@ -282,7 +267,7 @@ const vl = ["id"], dl = ["id"], gl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
282
267
|
// Store signs to manage display of neg values in distributed mode
|
|
283
268
|
signedSeries: a.series.map((s) => s >= 0 ? 1 : -1),
|
|
284
269
|
absoluteIndex: l,
|
|
285
|
-
id:
|
|
270
|
+
id: Dt(),
|
|
286
271
|
color: t
|
|
287
272
|
};
|
|
288
273
|
})), U = m(() => Math.max(...F.value.filter((a) => !_.value.includes(a.id)).map((a) => a.series.length))), h = y({
|
|
@@ -293,7 +278,7 @@ const vl = ["id"], dl = ["id"], gl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
293
278
|
Be();
|
|
294
279
|
}
|
|
295
280
|
async function Be() {
|
|
296
|
-
await
|
|
281
|
+
await Ot(), await Ot();
|
|
297
282
|
const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t = at.value, s = Math.max(...ge.value.map((c) => c.series.length));
|
|
298
283
|
h.value = { start: 0, end: s }, (a != null || l != null) && t ? (a != null ? t.setStartValue(a) : (h.value.start = 0, t.setStartValue(0)), l != null ? t.setEndValue(ha(l + 1)) : (h.value.end = s, t.setEndValue(s))) : (h.value = { start: 0, end: s }, et.value += 1);
|
|
299
284
|
}
|
|
@@ -320,7 +305,7 @@ const vl = ["id"], dl = ["id"], gl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
320
305
|
})))
|
|
321
306
|
};
|
|
322
307
|
}), N = m(() => {
|
|
323
|
-
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...me.value.positive), l = Math.min(...me.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(l) ? 0 : l, s = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ?
|
|
308
|
+
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...me.value.positive), l = Math.min(...me.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(l) ? 0 : l, s = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ut(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Ht(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
324
309
|
return s.ticks.map((c) => ({
|
|
325
310
|
zero: n.value.bottom - n.value.height * (Math.abs(s.min) / (s.max + Math.abs(s.min))),
|
|
326
311
|
y: n.value.bottom - n.value.height * ((c + Math.abs(s.min)) / (s.max + Math.abs(s.min))),
|
|
@@ -339,7 +324,7 @@ const vl = ["id"], dl = ["id"], gl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
339
324
|
})), w = m(() => {
|
|
340
325
|
if (!ve.value && !ne.value) return [];
|
|
341
326
|
let a = Array(U.value).fill(0), l = Array(U.value).fill(0), t = Array(U.value).fill(0), s = Array(U.value).fill(0);
|
|
342
|
-
const c = Math.max(...me.value.positive) || 0, u = Math.min(...me.value.negative), S = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, q = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ?
|
|
327
|
+
const c = Math.max(...me.value.positive) || 0, u = Math.min(...me.value.negative), S = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, q = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ut(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : S > 0 ? 0 : S, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks) : Ht(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : S > 0 ? 0 : S, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks), { min: Z, max: K } = q, P = K + (Z >= 0 ? 0 : Math.abs(Z)) || 1, A = n.value.height, Le = n.value.width, Mt = N.value[0] ? N.value[0].zero : n.value.bottom, At = N.value[0] ? N.value[0].horizontal_zero : n.value.left;
|
|
343
328
|
return F.value.filter((ce) => !_.value.includes(ce.id)).map((ce) => {
|
|
344
329
|
const V = ce.series.slice(h.value.start, h.value.end), Ca = ce.signedSeries.slice(h.value.start, h.value.end), Sa = V.map((x, k) => n.value.left + g.value * k + g.value * e.value.style.chart.bars.gapRatio / 4), _a = V.map((x, k) => n.value.top + g.value * k + g.value * e.value.style.chart.bars.gapRatio / 4), $a = V.map((x, k) => {
|
|
345
330
|
const R = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
@@ -436,7 +421,7 @@ const vl = ["id"], dl = ["id"], gl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
436
421
|
series: w.value
|
|
437
422
|
};
|
|
438
423
|
const s = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
|
|
439
|
-
if (
|
|
424
|
+
if (Wt(l) && qa(() => l({
|
|
440
425
|
seriesIndex: a,
|
|
441
426
|
datapoint: t,
|
|
442
427
|
series: w.value,
|
|
@@ -1011,7 +996,7 @@ const vl = ["id"], dl = ["id"], gl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
1011
996
|
x: c + g.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
1012
997
|
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
1013
998
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
1014
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(
|
|
999
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Bt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
1015
1000
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1016
1001
|
"text-anchor": "middle"
|
|
1017
1002
|
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ft(t.proportions[u] * 100, t, s, u) : pe(t.series[u], t, s, u, t.signedSeries[u])), 9, Pl)) : d("", !0)
|
|
@@ -1043,7 +1028,7 @@ const vl = ["id"], dl = ["id"], gl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
1043
1028
|
x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
1044
1029
|
y: t.horizontal_y[u] + g.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
1045
1030
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
1046
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(
|
|
1031
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Bt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
1047
1032
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1048
1033
|
"text-anchor": "middle"
|
|
1049
1034
|
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ft(t.proportions[u] * 100, t, s, u) : pe(t.series[u], t, s, u, t.signedSeries[u])), 9, Dl)) : d("", !0)
|
|
@@ -1326,7 +1311,7 @@ const vl = ["id"], dl = ["id"], gl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
1326
1311
|
parent: O.value,
|
|
1327
1312
|
content: Ne.value,
|
|
1328
1313
|
isFullscreen: re.value,
|
|
1329
|
-
isCustom: v(
|
|
1314
|
+
isCustom: v(Wt)(e.value.style.chart.tooltip.customFormat),
|
|
1330
1315
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1331
1316
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1332
1317
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
@@ -1412,7 +1397,7 @@ const vl = ["id"], dl = ["id"], gl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
1412
1397
|
D("div", { innerHTML: t }, null, 8, ls)
|
|
1413
1398
|
]),
|
|
1414
1399
|
td: C(({ td: t }) => [
|
|
1415
|
-
|
|
1400
|
+
Pt(T(isNaN(Number(t)) ? t : v(ee)({
|
|
1416
1401
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1417
1402
|
v: t,
|
|
1418
1403
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1427,7 +1412,7 @@ const vl = ["id"], dl = ["id"], gl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
1427
1412
|
e.value.table.useDialog ? {
|
|
1428
1413
|
name: "title",
|
|
1429
1414
|
fn: C(() => [
|
|
1430
|
-
|
|
1415
|
+
Pt(T(ue.value.title), 1)
|
|
1431
1416
|
]),
|
|
1432
1417
|
key: "0"
|
|
1433
1418
|
} : void 0,
|
|
@@ -1451,7 +1436,7 @@ const vl = ["id"], dl = ["id"], gl = ["xmlns", "viewBox"], yl = ["x", "y", "widt
|
|
|
1451
1436
|
v(ne) ? (r(), B(ja, { key: 7 })) : d("", !0)
|
|
1452
1437
|
], 46, vl));
|
|
1453
1438
|
}
|
|
1454
|
-
}, Ls = /* @__PURE__ */ hl(ss, [["__scopeId", "data-v-
|
|
1439
|
+
}, Ls = /* @__PURE__ */ hl(ss, [["__scopeId", "data-v-d52bebfe"]]);
|
|
1455
1440
|
export {
|
|
1456
1441
|
Ls as default
|
|
1457
1442
|
};
|