vue-data-ui 3.22.9 → 3.22.10
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/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CDTIUIKV.js} +1 -1
- package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-BxpTMgfK.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-CW_XPIKL.js → Slicer-WsWTQPKt.js} +21 -21
- package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-3n516NyE.js} +214 -214
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-trvJ26nz.js → UserOptions-BUQOnoPR.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.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-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.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-geo.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-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.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-rating.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-smiley.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-stackline.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/{dom-to-png-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-ByOT60IK.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-D18VrP0h.js → render-common-DJXFRGhU.js} +10 -10
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/types/utils.d.ts +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-BUP1JoNs.js} +287 -287
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CdBFGYOK.js} +37 -37
- package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-CoL0OzSd.js} +178 -178
- package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-CbC5zV3K.js} +9 -9
- package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-CuWssH-D.js} +414 -414
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-B_6GFlaR.js} +261 -261
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-CzLGCFWK.js} +101 -101
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/vue-ui-ridgeline-BArLhskj.js +1628 -0
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-KeIPGp9U.js} +99 -99
- package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-C1mYDh4R.js} +17 -17
- package/dist/vue-ui-spark-trend-EqCqmHmU.js +443 -0
- package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-BPh45vBP.js} +66 -66
- package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-CtouPcyW.js} +65 -65
- package/dist/vue-ui-sparkhistogram-D4sI0DHN.js +576 -0
- package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-BDFZ78Fz.js} +51 -51
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-nMXIY9x8.js} +108 -108
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-BCf5nthl.js} +65 -65
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-Bz7EnsM1.js} +5 -5
- package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-JxNNtb7v.js} +232 -232
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-R9o00A6c.js} +210 -210
- package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-CUt6sU1s.js} +766 -766
- package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
- package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
- package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
- package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
- package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
- package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
- package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
- package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
- package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
- package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
- package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
- package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
- package/dist/vue-ui-rings-J990vNbX.js +0 -1252
- package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
- package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
- package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
- package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
- package/dist/vue-ui-table-uudidrYt.js +0 -1338
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
- package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
- package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { At as t, B as n, Bt as r, Et as i, F as a, H as o, I as s, K as c, M as l, N as u, O as d, Rt as ee, V as f, Y as p, at as te, et as ne, ft as re, i as ie, k as ae, p as oe, qt as se, rt as ce, t as le, u as ue, x as de, yt as fe, zt as m } from "./lib-CnHx5WfV.js";
|
|
3
3
|
import { t as pe } from "./useTimeLabels-BmBRv27Y.js";
|
|
4
4
|
import { t as me } from "./useConfig-DYM3f6EI.js";
|
|
5
5
|
import { n as h, t as he } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
-
import { t as ge } from "./useNestedProp-
|
|
6
|
+
import { t as ge } from "./useNestedProp-D8NuRneO.js";
|
|
7
7
|
import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
8
|
import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
9
9
|
import { c as ye } from "./canvas-lib-BOP_HS11.js";
|
|
@@ -340,18 +340,18 @@ function st(e, t, n, r, i, a) {
|
|
|
340
340
|
function ct(e, t, n, r, i, a) {
|
|
341
341
|
let o = n - t, s = Math.ceil(o / r) + 1;
|
|
342
342
|
s < 2 && (s = 2), s > a && (s = a);
|
|
343
|
-
let c = s > 1 ? o / (s - 1) : 0, l = e.getPointAtLength(t), u = l.x, d = l.x,
|
|
343
|
+
let c = s > 1 ? o / (s - 1) : 0, l = e.getPointAtLength(t), u = l.x, d = l.x, ee = l.y, f = l.y, p = `M ${R(L(l.x, i))} ${R(L(l.y, i))}`;
|
|
344
344
|
for (let n = 1; n < s; n += 1) {
|
|
345
345
|
let r = t + n * c, a = e.getPointAtLength(r);
|
|
346
|
-
a.x < u && (u = a.x), a.x > d && (d = a.x), a.y <
|
|
346
|
+
a.x < u && (u = a.x), a.x > d && (d = a.x), a.y < ee && (ee = a.y), a.y > f && (f = a.y), p += ` L ${R(L(a.x, i))} ${R(L(a.y, i))}`;
|
|
347
347
|
}
|
|
348
348
|
return {
|
|
349
|
-
pathData:
|
|
349
|
+
pathData: p,
|
|
350
350
|
bounds: {
|
|
351
351
|
minX: u,
|
|
352
352
|
maxX: d,
|
|
353
|
-
minY:
|
|
354
|
-
maxY:
|
|
353
|
+
minY: ee,
|
|
354
|
+
maxY: f
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
357
|
}
|
|
@@ -445,11 +445,11 @@ function mt(e, t = null, n = {}) {
|
|
|
445
445
|
if ((n.returnMode ?? "string") !== "string") throw Error("SvgPathGradientAsync: only returnMode=\"string\" is supported for the async version.");
|
|
446
446
|
let o = typeof n.decimalPlaces == "number" ? n.decimalPlaces : 3, s = typeof n.flattenTolerance == "number" && n.flattenTolerance > 0 ? n.flattenTolerance : .25, c = n.attrs ? { ...n.attrs } : {}, l = n.groupAttrs ? { ...n.groupAttrs } : {}, u = et(c["stroke-width"]), d = typeof n.strokeWidth == "number" && n.strokeWidth > 0 ? n.strokeWidth : typeof u == "number" && u > 0 ? u : 1;
|
|
447
447
|
a = rt(e);
|
|
448
|
-
let
|
|
449
|
-
if (i === null && (!(
|
|
448
|
+
let ee = a.pathElement, f = ee.getTotalLength(), p = i === null ? N(t, n.colorReferenceElement) : [];
|
|
449
|
+
if (i === null && (!(f > 0) || p.length === 1)) {
|
|
450
450
|
let t = pt([ft({
|
|
451
451
|
pathData: e,
|
|
452
|
-
stroke: U(
|
|
452
|
+
stroke: U(p[0]),
|
|
453
453
|
segmentAttributeMap: c
|
|
454
454
|
})], l);
|
|
455
455
|
it(a), r(t);
|
|
@@ -461,25 +461,25 @@ function mt(e, t = null, n = {}) {
|
|
|
461
461
|
if (!Array.isArray(e) || e.length !== 2) throw Error("SvgPathGradientAsync: temperatureColors must be a tuple of exactly 2 colors when temperatureMode is enabled.");
|
|
462
462
|
}
|
|
463
463
|
let ne = i === null ? null : N(n.temperatureColors, n.colorReferenceElement), re = i === null ? (() => {
|
|
464
|
-
let e = lt(
|
|
464
|
+
let e = lt(p), t = Array(e.length);
|
|
465
465
|
for (let n = 0; n < e.length; n += 1) t[n] = {
|
|
466
466
|
position: e[n].position,
|
|
467
467
|
rgba: e[n].rgba
|
|
468
468
|
};
|
|
469
469
|
return t;
|
|
470
|
-
})() : [], ie = at(
|
|
470
|
+
})() : [], ie = at(f, d, n.maxSegmentLength), ae = ot(f, n.segments, ie), oe = f / ae, se = typeof n.overlap == "number" && n.overlap >= 0 ? n.overlap : d * .5, ce = oe * .45;
|
|
471
471
|
se > ce && (se = ce);
|
|
472
472
|
let le = typeof n.samplePointLimitPerSegment == "number" && n.samplePointLimitPerSegment > 10 ? n.samplePointLimitPerSegment : 250, ue = ut(c), de = [], fe = i === null ? null : [], m = i === null ? null : [], pe = 0, me = i === null ? re.length - 2 : 0, h = 0, he = () => {
|
|
473
473
|
let e = performance.now(), t = typeof n.frameBudgetMs == "number" ? n.frameBudgetMs : 8;
|
|
474
474
|
for (; h < ae && performance.now() - e < t;) {
|
|
475
475
|
let e = h * oe, t = (h + 1) * oe, n = e, r = t;
|
|
476
|
-
if (h !== 0 && (n = e - se), h !== ae - 1 && (r = t + se), n = I(n, 0,
|
|
477
|
-
let e = ct(
|
|
476
|
+
if (h !== 0 && (n = e - se), h !== ae - 1 && (r = t + se), n = I(n, 0, f), r = I(r, 0, f), r > n) if (i !== null) {
|
|
477
|
+
let e = ct(ee, n, r, s, o, le);
|
|
478
478
|
fe.push(e.pathData), m.push(e.bounds);
|
|
479
479
|
} else {
|
|
480
|
-
let e = (n + r) * .5 /
|
|
480
|
+
let e = (n + r) * .5 / f;
|
|
481
481
|
for (; pe < me && e > re[pe + 1].position;) pe += 1;
|
|
482
|
-
let t = z(re, e, te, pe), i = st(
|
|
482
|
+
let t = z(re, e, te, pe), i = st(ee, n, r, s, o, le);
|
|
483
483
|
de.push(dt(i, t, ue));
|
|
484
484
|
}
|
|
485
485
|
h += 1;
|
|
@@ -695,17 +695,17 @@ var ht = ["innerHTML"], gt = {
|
|
|
695
695
|
},
|
|
696
696
|
emits: ["hoverIndex", "selectDatapoint"],
|
|
697
697
|
setup(e, { emit: ve }) {
|
|
698
|
-
let Be = ke(() => import("./PackageVersion-
|
|
698
|
+
let Be = ke(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), Ve = ke(() => import("./SparkTooltip-CbYYc-xb.js")), { vue_ui_sparkline: He } = me(), { isThemeValid: Ue, warnInvalidTheme: We } = _e(), Ge = we(), O = e, Ke = _(() => Array.isArray(O.dataset) && O.dataset.length > 0), k = w(c()), A = w(null), Je = w(null), Ye = w(null), j = w(null), M = w(null), N = w(L());
|
|
699
699
|
function Xe(e) {
|
|
700
700
|
return O.config?.skeletonDataset && Array.isArray(O.config.skeletonDataset) ? O.config.skeletonDataset.map((e) => ({
|
|
701
701
|
period: "-",
|
|
702
702
|
value: e
|
|
703
|
-
})) :
|
|
703
|
+
})) : ce(e).map((e) => ({
|
|
704
704
|
period: "-",
|
|
705
705
|
value: e
|
|
706
706
|
}));
|
|
707
707
|
}
|
|
708
|
-
let Ze = _(() =>
|
|
708
|
+
let Ze = _(() => se({
|
|
709
709
|
defaultConfig: {
|
|
710
710
|
gradientPath: { show: !1 },
|
|
711
711
|
temperatureColors: { show: !1 },
|
|
@@ -737,7 +737,7 @@ var ht = ["innerHTML"], gt = {
|
|
|
737
737
|
});
|
|
738
738
|
},
|
|
739
739
|
skeletonDataset: Xe(12),
|
|
740
|
-
skeletonConfig:
|
|
740
|
+
skeletonConfig: se({
|
|
741
741
|
defaultConfig: N.value,
|
|
742
742
|
userConfig: Ze.value
|
|
743
743
|
})
|
|
@@ -838,7 +838,7 @@ var ht = ["innerHTML"], gt = {
|
|
|
838
838
|
fadeIn: .5,
|
|
839
839
|
fadeOut: .2
|
|
840
840
|
};
|
|
841
|
-
}), z = _(() =>
|
|
841
|
+
}), z = _(() => i({
|
|
842
842
|
data: F.value,
|
|
843
843
|
threshold: N.value.downsample.threshold
|
|
844
844
|
}));
|
|
@@ -849,7 +849,7 @@ var ht = ["innerHTML"], gt = {
|
|
|
849
849
|
}), D(() => O.config, (e) => {
|
|
850
850
|
P.value || (N.value = L()), Wt(), K.value.chartWidth = N.value.style.chartWidth;
|
|
851
851
|
}, { deep: !0 }), D(() => O.dataset, (e) => {
|
|
852
|
-
Array.isArray(e) && e.length > 0 && (Qe.value = !1), B.value =
|
|
852
|
+
Array.isArray(e) && e.length > 0 && (Qe.value = !1), B.value = i({
|
|
853
853
|
data: F.value.map((e) => ({
|
|
854
854
|
...e,
|
|
855
855
|
value: [void 0].includes(e.value) ? null : e.value
|
|
@@ -859,7 +859,7 @@ var ht = ["innerHTML"], gt = {
|
|
|
859
859
|
}, { deep: !0 });
|
|
860
860
|
let B = w(V());
|
|
861
861
|
function V() {
|
|
862
|
-
return
|
|
862
|
+
return i({
|
|
863
863
|
data: F.value.map((e) => N.value.style.animation.show && F.value.length > 1 ? {
|
|
864
864
|
...e,
|
|
865
865
|
value: null
|
|
@@ -919,24 +919,24 @@ var ht = ["innerHTML"], gt = {
|
|
|
919
919
|
}
|
|
920
920
|
let Ut = _(() => !!N.value.debug);
|
|
921
921
|
function Wt() {
|
|
922
|
-
if (
|
|
922
|
+
if (t(O.dataset) ? (ne({
|
|
923
923
|
componentName: "VueUiSparkline",
|
|
924
924
|
type: "dataset",
|
|
925
925
|
debug: Ut.value
|
|
926
|
-
}), Qe.value = !0) : O.dataset.forEach((e,
|
|
927
|
-
|
|
926
|
+
}), Qe.value = !0) : O.dataset.forEach((e, t) => {
|
|
927
|
+
re({
|
|
928
928
|
datasetObject: e,
|
|
929
929
|
requiredAttributes: ["period", "value"]
|
|
930
930
|
}).forEach((e) => {
|
|
931
|
-
|
|
931
|
+
ne({
|
|
932
932
|
componentName: "VueUiSparkline",
|
|
933
933
|
type: "datasetSerieAttribute",
|
|
934
934
|
property: e,
|
|
935
|
-
index:
|
|
935
|
+
index: t,
|
|
936
936
|
debug: Ut.value
|
|
937
937
|
});
|
|
938
938
|
});
|
|
939
|
-
}),
|
|
939
|
+
}), t(O.dataset) || (Qe.value = N.value.loading), N.value.responsive) {
|
|
940
940
|
let e = ye(() => {
|
|
941
941
|
let { width: e, height: t } = be({
|
|
942
942
|
chart: A.value,
|
|
@@ -1011,18 +1011,18 @@ var ht = ["innerHTML"], gt = {
|
|
|
1011
1011
|
NaN,
|
|
1012
1012
|
Infinity,
|
|
1013
1013
|
-Infinity
|
|
1014
|
-
].includes(e.value) ? 0 : e.value,
|
|
1014
|
+
].includes(e.value) ? 0 : e.value, i = q.value.width / Qt.value;
|
|
1015
1015
|
return {
|
|
1016
1016
|
value: e.value,
|
|
1017
1017
|
absoluteValue: n,
|
|
1018
1018
|
period: $t.value && $t.value[t] && $t.value[t].text ? $t.value[t].text : e.period,
|
|
1019
1019
|
plotValue: n + Jt.value,
|
|
1020
1020
|
toMax: Zt(n + Jt.value),
|
|
1021
|
-
x: q.value.start + t *
|
|
1021
|
+
x: q.value.start + t * i,
|
|
1022
1022
|
y: q.value.bottom - q.value.height * Zt(n + Jt.value),
|
|
1023
1023
|
id: `plot_${k.value}_${t}`,
|
|
1024
|
-
color: Q.value ? N.value.style.bar.color : N.value.style.area.useGradient ?
|
|
1025
|
-
width:
|
|
1024
|
+
color: Q.value ? N.value.style.bar.color : N.value.style.area.useGradient ? r(N.value.style.line.color, .05 * (1 - t / Qt.value)) : N.value.style.line.color,
|
|
1025
|
+
width: i
|
|
1026
1026
|
};
|
|
1027
1027
|
})), tn = _(() => O.selectedIndex !== void 0 && O.selectedIndex !== null && O.selectedIndex >= 0 && O.selectedIndex < J.value.length ? O.selectedIndex : M.value !== void 0 && M.value !== null && M.value >= 0 && M.value < J.value.length ? M.value : null), Y = w(void 0), X = w(void 0);
|
|
1028
1028
|
function nn(e, t) {
|
|
@@ -1044,8 +1044,8 @@ var ht = ["innerHTML"], gt = {
|
|
|
1044
1044
|
latest: J.value[J.value.length - 1] ? J.value[J.value.length - 1].absoluteValue : 0,
|
|
1045
1045
|
sum: t,
|
|
1046
1046
|
average: t / J.value.length,
|
|
1047
|
-
median:
|
|
1048
|
-
trend:
|
|
1047
|
+
median: oe(e),
|
|
1048
|
+
trend: ue(J.value.map(({ x: e, y: t, absoluteValue: n }) => ({
|
|
1049
1049
|
x: e,
|
|
1050
1050
|
y: t,
|
|
1051
1051
|
value: n
|
|
@@ -1095,14 +1095,14 @@ var ht = ["innerHTML"], gt = {
|
|
|
1095
1095
|
function mn(e, t) {
|
|
1096
1096
|
return dn(e, t) ? N.value.style.plot.stroke : N.value.style.backgroundColor;
|
|
1097
1097
|
}
|
|
1098
|
-
let hn = _(() => cn.value ? J.value : J.value.filter((e) => e.value !== null)), gn = _(() => J.value.filter((e) => e.value !== null)), _n = _(() => gn.value.length > 1), vn = _(() => Q.value || !_n.value ? "" : cn.value ?
|
|
1098
|
+
let hn = _(() => cn.value ? J.value : J.value.filter((e) => e.value !== null)), gn = _(() => J.value.filter((e) => e.value !== null)), _n = _(() => gn.value.length > 1), vn = _(() => Q.value || !_n.value ? "" : cn.value ? a(J.value) : u(hn.value)), yn = _(() => Q.value || !_n.value ? "" : cn.value ? f(J.value) : n(hn.value)), bn = _(() => Q.value || !sn.value || !_n.value ? [] : s(hn.value, N.value.style.line.dashIndices)), xn = _(() => Q.value || !sn.value || !_n.value ? [] : o(hn.value, N.value.style.line.dashIndices)), Sn = _(() => Q.value || !N.value.style.area.show || !_n.value ? [] : N.value.style.line.smooth ? l(hn.value, q.value.bottom, cn.value).filter(Boolean) : (cn.value ? ae(J.value, q.value.bottom) : d(hn.value, q.value.bottom)).split(";").filter(Boolean).map((e) => `M${e}Z`)), Cn = _(() => Q.value || !N.value.gradientPath.show || N.value.temperatureColors.show ? "" : `M ${(N.value.style.line.smooth ? vn.value : yn.value) || "0,0"}`), wn = _(() => {
|
|
1099
1099
|
if (!N.value.temperatureColors.show) return null;
|
|
1100
1100
|
let e = N.value.temperatureColors.colors;
|
|
1101
|
-
return !Array.isArray(e) || !e.length ? null : e.map((e) =>
|
|
1101
|
+
return !Array.isArray(e) || !e.length ? null : e.map((e) => de(e));
|
|
1102
1102
|
}), $ = _(() => {
|
|
1103
1103
|
if (!N.value.temperatureColors.show) return null;
|
|
1104
1104
|
let e = N.value.temperatureColors.colors;
|
|
1105
|
-
return !Array.isArray(e) || !e.length ? null : e.map((e) =>
|
|
1105
|
+
return !Array.isArray(e) || !e.length ? null : e.map((e) => de(e));
|
|
1106
1106
|
});
|
|
1107
1107
|
function Tn(e) {
|
|
1108
1108
|
if (!Number.isFinite(e?.y)) return 0;
|
|
@@ -1111,7 +1111,7 @@ var ht = ["innerHTML"], gt = {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
function En(e) {
|
|
1113
1113
|
let t = wn.value;
|
|
1114
|
-
return !Array.isArray(t) || !t.length ? e.color :
|
|
1114
|
+
return !Array.isArray(t) || !t.length ? e.color : fe({
|
|
1115
1115
|
colors: t,
|
|
1116
1116
|
ratio: Tn(e)
|
|
1117
1117
|
});
|
|
@@ -1215,7 +1215,7 @@ var ht = ["innerHTML"], gt = {
|
|
|
1215
1215
|
b("div", bt, [(C(), y("svg", {
|
|
1216
1216
|
ref_key: "svgRef",
|
|
1217
1217
|
ref: I,
|
|
1218
|
-
xmlns: E(
|
|
1218
|
+
xmlns: E(le),
|
|
1219
1219
|
viewBox: `0 0 ${K.value.width} ${K.value.height}`,
|
|
1220
1220
|
style: S(`background:${N.value.style.backgroundColor};overflow:visible;direction:ltr`),
|
|
1221
1221
|
tabindex: "0",
|
|
@@ -1244,11 +1244,11 @@ var ht = ["innerHTML"], gt = {
|
|
|
1244
1244
|
id: `sparkline_gradient_${k.value}`,
|
|
1245
1245
|
stops: [[
|
|
1246
1246
|
"0%",
|
|
1247
|
-
E(
|
|
1247
|
+
E(m)(E(r)(N.value.style.area.color, .05), N.value.style.area.opacity),
|
|
1248
1248
|
1
|
|
1249
1249
|
], [
|
|
1250
1250
|
"100%",
|
|
1251
|
-
E(
|
|
1251
|
+
E(m)(N.value.style.area.color, N.value.style.area.opacity),
|
|
1252
1252
|
1
|
|
1253
1253
|
]]
|
|
1254
1254
|
}, null, 8, ["id", "stops"]),
|
|
@@ -1263,7 +1263,7 @@ var ht = ["innerHTML"], gt = {
|
|
|
1263
1263
|
1
|
|
1264
1264
|
], [
|
|
1265
1265
|
"100%",
|
|
1266
|
-
E(
|
|
1266
|
+
E(r)(N.value.style.bar.color, .05),
|
|
1267
1267
|
1
|
|
1268
1268
|
]]
|
|
1269
1269
|
}, null, 8, ["id", "stops"]),
|
|
@@ -1274,7 +1274,7 @@ var ht = ["innerHTML"], gt = {
|
|
|
1274
1274
|
id: `sparkline_bar_gradient_neg_${k.value}`,
|
|
1275
1275
|
stops: [[
|
|
1276
1276
|
"0%",
|
|
1277
|
-
E(
|
|
1277
|
+
E(r)(N.value.style.bar.color, .05),
|
|
1278
1278
|
1
|
|
1279
1279
|
], [
|
|
1280
1280
|
"100%",
|
|
@@ -1305,7 +1305,7 @@ var ht = ["innerHTML"], gt = {
|
|
|
1305
1305
|
}, [(C(!0), y(g, null, T($.value, (e, t) => (C(), y("stop", {
|
|
1306
1306
|
key: `temperature_grad_stop_${t}_${k.value}`,
|
|
1307
1307
|
"stop-color": e,
|
|
1308
|
-
offset: $.value.length === 1 ? "0%" : E(
|
|
1308
|
+
offset: $.value.length === 1 ? "0%" : E(ee)(t, $.value.length)
|
|
1309
1309
|
}, null, 8, Tt))), 128))], 8, wt)) : v("", !0)
|
|
1310
1310
|
]),
|
|
1311
1311
|
N.value.style.area.show && !Q.value && Sn.value.length ? (C(), y("g", Et, [(C(!0), y(g, null, T(Sn.value, (e, t) => (C(), y("path", {
|
|
@@ -1313,7 +1313,7 @@ var ht = ["innerHTML"], gt = {
|
|
|
1313
1313
|
class: "vue-ui-sparkline-area",
|
|
1314
1314
|
"data-cy": N.value.style.line.smooth ? "sparkline-smooth-area" : "sparkline-angle-area",
|
|
1315
1315
|
d: e,
|
|
1316
|
-
fill: N.value.style.area.useGradient ? `url(#sparkline_gradient_${k.value})` : E(
|
|
1316
|
+
fill: N.value.style.area.useGradient ? `url(#sparkline_gradient_${k.value})` : E(m)(N.value.style.area.color, N.value.style.area.opacity),
|
|
1317
1317
|
"stroke-linecap": "round",
|
|
1318
1318
|
"stroke-linejoin": "round",
|
|
1319
1319
|
style: S({ transition: E(P) ? void 0 : "all 0.2s" })
|
|
@@ -1453,8 +1453,8 @@ var ht = ["innerHTML"], gt = {
|
|
|
1453
1453
|
key: 6,
|
|
1454
1454
|
x1: q.value.start,
|
|
1455
1455
|
x2: q.value.start + q.value.width,
|
|
1456
|
-
y1: E(
|
|
1457
|
-
y2: E(
|
|
1456
|
+
y1: E(te)(Xt.value, q.value.bottom),
|
|
1457
|
+
y2: E(te)(Xt.value, q.value.bottom),
|
|
1458
1458
|
stroke: N.value.style.zeroLine.color,
|
|
1459
1459
|
"stroke-dasharray": N.value.style.zeroLine.strokeWidth * 2,
|
|
1460
1460
|
"stroke-width": N.value.style.zeroLine.strokeWidth,
|
|
@@ -1476,12 +1476,12 @@ var ht = ["innerHTML"], gt = {
|
|
|
1476
1476
|
"font-size": N.value.style.dataLabel.fontSize,
|
|
1477
1477
|
"font-weight": N.value.style.dataLabel.bold ? "bold" : "normal",
|
|
1478
1478
|
fill: N.value.style.dataLabel.color
|
|
1479
|
-
}, Ie(Y.value ? E(ie)(N.value.style.dataLabel.formatter, Y.value.absoluteValue, E(
|
|
1479
|
+
}, Ie(Y.value ? E(ie)(N.value.style.dataLabel.formatter, Y.value.absoluteValue, E(p)({
|
|
1480
1480
|
p: N.value.style.dataLabel.prefix,
|
|
1481
1481
|
v: Y.value.absoluteValue,
|
|
1482
1482
|
s: N.value.style.dataLabel.suffix,
|
|
1483
1483
|
r: N.value.style.dataLabel.roundingValue
|
|
1484
|
-
}), { datapoint: Y.value }) : E(ie)(N.value.style.dataLabel.formatter, an.value, E(
|
|
1484
|
+
}), { datapoint: Y.value }) : E(ie)(N.value.style.dataLabel.formatter, an.value, E(p)({
|
|
1485
1485
|
p: N.value.style.dataLabel.prefix,
|
|
1486
1486
|
v: an.value,
|
|
1487
1487
|
s: N.value.style.dataLabel.suffix,
|
|
@@ -1524,7 +1524,7 @@ var ht = ["innerHTML"], gt = {
|
|
|
1524
1524
|
borderRadius: N.value.style.tooltip.borderRadius,
|
|
1525
1525
|
backgroundOpacity: N.value.style.tooltip.backgroundOpacity
|
|
1526
1526
|
}, {
|
|
1527
|
-
default: ze(() => [Pe(t.$slots, "tooltip", je(Ae({ ...Y.value })), () => [De(Ie(Y.value.period) + ": " + Ie(E(ie)(N.value.style.dataLabel.formatter, Y.value.absoluteValue, E(
|
|
1527
|
+
default: ze(() => [Pe(t.$slots, "tooltip", je(Ae({ ...Y.value })), () => [De(Ie(Y.value.period) + ": " + Ie(E(ie)(N.value.style.dataLabel.formatter, Y.value.absoluteValue, E(p)({
|
|
1528
1528
|
p: N.value.style.dataLabel.prefix,
|
|
1529
1529
|
v: Y.value.absoluteValue,
|
|
1530
1530
|
s: N.value.style.dataLabel.suffix,
|