vue-data-ui 3.22.13 → 3.23.0
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/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.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-hill.js +2 -0
- 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-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- 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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
2
|
+
import { Bt as t, Jt as n, Kt as r, Pt as i, S as a, Vt as ee, X as o, i as s, jt as te, pt as ne, q as re, t as ie, tt as c, w as ae } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as oe, t as l } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as u } from "./useConfig-BilxnBNr.js";
|
|
5
|
+
import { n as d, t as se } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as f } from "./useNestedProp--NSEmhOH.js";
|
|
7
|
+
import { t as ce } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
+
import { t as le } from "./DefGrad-DVBqDjhO.js";
|
|
9
|
+
import { t as ue } from "./usePrefersMotion-BC-CsqR1.js";
|
|
10
|
+
import { t as de } from "./vue_ui_sparkbar-z6qO--Kf.js";
|
|
11
|
+
import { Fragment as p, computed as m, createBlock as fe, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createVNode as v, defineAsyncComponent as pe, guardReactiveProps as me, mergeProps as y, nextTick as b, normalizeProps as he, normalizeStyle as x, onMounted as S, openBlock as C, ref as w, renderList as ge, renderSlot as T, toDisplayString as E, toRefs as D, unref as O, useSlots as k, watch as A } from "vue";
|
|
11
12
|
//#region src/components/vue-ui-sparkbar.vue
|
|
12
|
-
var j = /* @__PURE__ */ e({ default: () =>
|
|
13
|
+
var j = /* @__PURE__ */ e({ default: () => R }), M = [
|
|
13
14
|
"onClick",
|
|
14
15
|
"onMouseenter",
|
|
15
16
|
"onMouseleave"
|
|
@@ -31,11 +32,11 @@ var j = /* @__PURE__ */ e({ default: () => z }), M = [
|
|
|
31
32
|
"width",
|
|
32
33
|
"fill",
|
|
33
34
|
"rx"
|
|
34
|
-
],
|
|
35
|
+
], _e = {
|
|
35
36
|
key: 2,
|
|
36
37
|
ref: "source",
|
|
37
38
|
dir: "auto"
|
|
38
|
-
},
|
|
39
|
+
}, R = {
|
|
39
40
|
__name: "vue-ui-sparkbar",
|
|
40
41
|
props: {
|
|
41
42
|
config: {
|
|
@@ -57,11 +58,18 @@ var j = /* @__PURE__ */ e({ default: () => z }), M = [
|
|
|
57
58
|
},
|
|
58
59
|
emits: ["selectDatapoint"],
|
|
59
60
|
setup(e, { emit: j }) {
|
|
60
|
-
let
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
let R = pe(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), { vue_ui_sparkbar: z } = u(), { isThemeValid: ve, warnInvalidTheme: ye } = ce(), B = ue(), V = e, be = k();
|
|
62
|
+
S(() => {
|
|
63
|
+
be["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
|
|
63
64
|
});
|
|
64
|
-
let H =
|
|
65
|
+
let H = w(re()), U = w(q());
|
|
66
|
+
oe({
|
|
67
|
+
config: () => U.value,
|
|
68
|
+
dataset: () => V.dataset,
|
|
69
|
+
component: "VueUiSparkbar",
|
|
70
|
+
rules: [l.noHint]
|
|
71
|
+
});
|
|
72
|
+
let xe = m(() => n({
|
|
65
73
|
defaultConfig: { style: {
|
|
66
74
|
backgroundColor: "#99999930",
|
|
67
75
|
animation: { show: !1 },
|
|
@@ -73,8 +81,8 @@ var j = /* @__PURE__ */ e({ default: () => z }), M = [
|
|
|
73
81
|
bar: { gradient: { underlayerColor: "#6A6A6A" } }
|
|
74
82
|
} },
|
|
75
83
|
userConfig: U.value.skeletonConfig ?? {}
|
|
76
|
-
})), { loading: W, FINAL_DATASET: G, manualLoading:
|
|
77
|
-
...
|
|
84
|
+
})), { loading: W, FINAL_DATASET: G, manualLoading: Se } = d({
|
|
85
|
+
...D(V),
|
|
78
86
|
FINAL_CONFIG: U,
|
|
79
87
|
prepareConfig: q,
|
|
80
88
|
skeletonDataset: V.config?.skeletonDataset ?? [
|
|
@@ -97,40 +105,40 @@ var j = /* @__PURE__ */ e({ default: () => z }), M = [
|
|
|
97
105
|
color: "#DBDBDB"
|
|
98
106
|
}
|
|
99
107
|
],
|
|
100
|
-
skeletonConfig:
|
|
108
|
+
skeletonConfig: n({
|
|
101
109
|
defaultConfig: U.value,
|
|
102
|
-
userConfig:
|
|
110
|
+
userConfig: xe.value
|
|
103
111
|
})
|
|
104
112
|
}), K = m(() => !!U.value.debug);
|
|
105
113
|
function q() {
|
|
106
|
-
let e =
|
|
114
|
+
let e = f({
|
|
107
115
|
userConfig: V.config,
|
|
108
|
-
defaultConfig:
|
|
116
|
+
defaultConfig: z
|
|
109
117
|
}), t = e.theme;
|
|
110
118
|
if (!t) return e;
|
|
111
|
-
if (!
|
|
112
|
-
let n =
|
|
113
|
-
userConfig:
|
|
119
|
+
if (!ve.value(e)) return ye(e), e;
|
|
120
|
+
let n = f({
|
|
121
|
+
userConfig: de[t] || V.config,
|
|
114
122
|
defaultConfig: e
|
|
115
|
-
}),
|
|
123
|
+
}), a = f({
|
|
116
124
|
userConfig: V.config,
|
|
117
125
|
defaultConfig: n
|
|
118
126
|
});
|
|
119
127
|
return {
|
|
120
|
-
...
|
|
121
|
-
customPalette:
|
|
128
|
+
...a,
|
|
129
|
+
customPalette: a.customPalette.length ? a.customPalette : r[t] || i
|
|
122
130
|
};
|
|
123
131
|
}
|
|
124
132
|
A(() => V.config, (e) => {
|
|
125
133
|
U.value = q();
|
|
126
134
|
}, { deep: !0 });
|
|
127
|
-
let
|
|
135
|
+
let Ce = m(() => ae(U.value.customPalette)), J = w(G.value.map((e) => ({
|
|
128
136
|
...e,
|
|
129
137
|
value: U.value.style.animation.show ? 0 : e.value || 0,
|
|
130
138
|
formatter: e.formatter || null
|
|
131
|
-
}))), Y =
|
|
132
|
-
|
|
133
|
-
|
|
139
|
+
}))), Y = w(null);
|
|
140
|
+
S(async () => {
|
|
141
|
+
te(V.dataset) && c({
|
|
134
142
|
componentName: "VueUiSparkbar",
|
|
135
143
|
type: "dataset",
|
|
136
144
|
debug: K.value
|
|
@@ -157,17 +165,17 @@ var j = /* @__PURE__ */ e({ default: () => z }), M = [
|
|
|
157
165
|
...e,
|
|
158
166
|
value: U.value.style.animation.show && !B.value ? 0 : e.value || 0,
|
|
159
167
|
formatter: e.formatter || null
|
|
160
|
-
})),
|
|
168
|
+
})), b(X);
|
|
161
169
|
}, { deep: !0 });
|
|
162
|
-
let Z =
|
|
170
|
+
let Z = w({
|
|
163
171
|
width: 500,
|
|
164
172
|
height: 16
|
|
165
|
-
}),
|
|
166
|
-
|
|
173
|
+
}), we = m(() => Math.max(...G.value.map((e) => e.value))), Te = m(() => (G.value.forEach((e, t) => {
|
|
174
|
+
ne({
|
|
167
175
|
datasetObject: e,
|
|
168
176
|
requiredAttributes: ["name", "value"]
|
|
169
177
|
}).forEach((e) => {
|
|
170
|
-
|
|
178
|
+
c({
|
|
171
179
|
componentName: "VueUiSparkbar",
|
|
172
180
|
type: "datasetSerieAttribute",
|
|
173
181
|
property: e,
|
|
@@ -178,20 +186,20 @@ var j = /* @__PURE__ */ e({ default: () => z }), M = [
|
|
|
178
186
|
}), J.value.map((e, t) => ({
|
|
179
187
|
...e,
|
|
180
188
|
value: e.value || 0,
|
|
181
|
-
color:
|
|
189
|
+
color: a(e.color) || Ce.value[t] || i[t] || i[t % i.length]
|
|
182
190
|
}))));
|
|
183
|
-
function
|
|
184
|
-
return e /
|
|
191
|
+
function Ee(e) {
|
|
192
|
+
return e / we.value;
|
|
185
193
|
}
|
|
186
194
|
function Q(e) {
|
|
187
|
-
return U.value.style.layout.independant ? e.target ? e.value / e.target : U.value.style.layout.percentage ? e.value > 100 ? 1 : e.value / 100 : U.value.style.layout.target === 0 ? 1 : e.value / U.value.style.layout.target :
|
|
195
|
+
return U.value.style.layout.independant ? e.target ? e.value / e.target : U.value.style.layout.percentage ? e.value > 100 ? 1 : e.value / 100 : U.value.style.layout.target === 0 ? 1 : e.value / U.value.style.layout.target : Ee(e.value);
|
|
188
196
|
}
|
|
189
197
|
function $(e) {
|
|
190
198
|
return U.value.style.layout.independant && e.target || U.value.style.layout.target;
|
|
191
199
|
}
|
|
192
|
-
let
|
|
193
|
-
function
|
|
194
|
-
|
|
200
|
+
let De = j;
|
|
201
|
+
function Oe(e, t) {
|
|
202
|
+
De("selectDatapoint", {
|
|
195
203
|
datapoint: e,
|
|
196
204
|
index: t
|
|
197
205
|
}), U.value.events.datapointClick && U.value.events.datapointClick({
|
|
@@ -199,87 +207,87 @@ var j = /* @__PURE__ */ e({ default: () => z }), M = [
|
|
|
199
207
|
seriesIndex: t
|
|
200
208
|
});
|
|
201
209
|
}
|
|
202
|
-
function
|
|
210
|
+
function ke(e, t) {
|
|
203
211
|
U.value.events.datapointEnter && U.value.events.datapointEnter({
|
|
204
212
|
datapoint: e,
|
|
205
213
|
seriesIndex: t
|
|
206
214
|
});
|
|
207
215
|
}
|
|
208
|
-
function
|
|
216
|
+
function Ae(e, t) {
|
|
209
217
|
U.value.events.datapointLeave && U.value.events.datapointLeave({
|
|
210
218
|
datapoint: e,
|
|
211
219
|
seriesIndex: t
|
|
212
220
|
});
|
|
213
221
|
}
|
|
214
|
-
return (e,
|
|
222
|
+
return (e, n) => (C(), g("div", {
|
|
215
223
|
class: "vue-data-ui-component vue-ui-sparkbar",
|
|
216
|
-
style:
|
|
224
|
+
style: x({
|
|
217
225
|
width: "100%",
|
|
218
226
|
position: "relative",
|
|
219
227
|
fontFamily: U.value.style.fontFamily,
|
|
220
|
-
background: V.backgroundOpacity === null ? U.value.style.backgroundColor : O(
|
|
228
|
+
background: V.backgroundOpacity === null ? U.value.style.backgroundColor : O(t)(U.value.style.backgroundColor, V.backgroundOpacity)
|
|
221
229
|
})
|
|
222
230
|
}, [
|
|
223
|
-
e.$slots.title ?
|
|
231
|
+
e.$slots.title ? T(e.$slots, "title", he(me({ title: {
|
|
224
232
|
...e.title,
|
|
225
233
|
title: U.value.style.title.text,
|
|
226
234
|
subtitle: U.value.style.title.subtitle.text
|
|
227
235
|
} })), void 0, void 0, 0) : h("", !0),
|
|
228
|
-
!e.$slots.title && U.value.style.title.text ? (
|
|
236
|
+
!e.$slots.title && U.value.style.title.text ? (C(), g("div", {
|
|
229
237
|
key: 1,
|
|
230
238
|
class: "vue-ui-sparkbar-title-container",
|
|
231
|
-
style:
|
|
239
|
+
style: x({
|
|
232
240
|
background: U.value.style.title.backgroundColor,
|
|
233
241
|
margin: U.value.style.title.margin,
|
|
234
242
|
textAlign: U.value.style.title.textAlign
|
|
235
243
|
})
|
|
236
244
|
}, [_("div", {
|
|
237
245
|
class: "vue-ui-sparkbar-title",
|
|
238
|
-
style:
|
|
246
|
+
style: x({
|
|
239
247
|
fontSize: U.value.style.title.fontSize + "px",
|
|
240
248
|
color: U.value.style.title.color,
|
|
241
249
|
fontWeight: U.value.style.title.bold ? "bold" : "normal"
|
|
242
250
|
})
|
|
243
|
-
},
|
|
251
|
+
}, E(U.value.style.title.text), 5), U.value.style.title.subtitle.text ? (C(), g("div", {
|
|
244
252
|
key: 0,
|
|
245
253
|
class: "vue-ui-sparkbar-subtitle",
|
|
246
|
-
style:
|
|
254
|
+
style: x({
|
|
247
255
|
fontSize: U.value.style.title.subtitle.fontSize + "px",
|
|
248
256
|
color: U.value.style.title.subtitle.color,
|
|
249
257
|
fontWeight: U.value.style.title.subtitle.bold ? "bold" : "normal"
|
|
250
258
|
})
|
|
251
|
-
},
|
|
252
|
-
(
|
|
253
|
-
style:
|
|
254
|
-
onClick: (e) =>
|
|
255
|
-
onMouseenter: (e) =>
|
|
256
|
-
onMouseleave: (e) =>
|
|
259
|
+
}, E(U.value.style.title.subtitle.text), 5)) : h("", !0)], 4)) : h("", !0),
|
|
260
|
+
(C(!0), g(p, null, ge(Te.value, (n, r) => (C(), g("div", {
|
|
261
|
+
style: x(`display:flex !important;${["left", "right"].includes(U.value.style.labels.name.position) ? `flex-direction: ${U.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${U.value.style.gap}px !important;align-items:center;${O(G).length > 0 && r !== O(G).length - 1 ? "margin-bottom:6px" : ""}`),
|
|
262
|
+
onClick: (e) => Oe(n, r),
|
|
263
|
+
onMouseenter: (e) => ke(n, r),
|
|
264
|
+
onMouseleave: (e) => Ae(n, r)
|
|
257
265
|
}, [
|
|
258
|
-
O(W) ? h("", !0) :
|
|
259
|
-
...
|
|
260
|
-
target: $(
|
|
261
|
-
valueLabel: O(
|
|
262
|
-
p:
|
|
263
|
-
v:
|
|
264
|
-
s:
|
|
265
|
-
r:
|
|
266
|
+
O(W) ? h("", !0) : T(e.$slots, "data-label", y({ ref_for: !0 }, { bar: {
|
|
267
|
+
...n,
|
|
268
|
+
target: $(n),
|
|
269
|
+
valueLabel: O(s)(n.formatter, n.value, O(o)({
|
|
270
|
+
p: n.prefix || "",
|
|
271
|
+
v: n.value,
|
|
272
|
+
s: n.suffix || "",
|
|
273
|
+
r: n.rounding || 0
|
|
266
274
|
}), {
|
|
267
|
-
datapoint:
|
|
275
|
+
datapoint: n,
|
|
268
276
|
seriesIndex: r
|
|
269
277
|
}),
|
|
270
|
-
targetLabel: O(
|
|
271
|
-
p:
|
|
272
|
-
v: $(
|
|
273
|
-
s:
|
|
274
|
-
r:
|
|
278
|
+
targetLabel: O(s)(n.formatter, $(n), O(o)({
|
|
279
|
+
p: n.prefix || "",
|
|
280
|
+
v: $(n),
|
|
281
|
+
s: n.suffix || "",
|
|
282
|
+
r: n.rounding || 0
|
|
275
283
|
}), {
|
|
276
|
-
datapoint:
|
|
284
|
+
datapoint: n,
|
|
277
285
|
seriesIndex: r
|
|
278
286
|
})
|
|
279
287
|
} }), void 0, void 0, 0),
|
|
280
|
-
!e.$slots["data-label"] || O(W) ? (
|
|
288
|
+
!e.$slots["data-label"] || O(W) ? (C(), g("div", {
|
|
281
289
|
key: 1,
|
|
282
|
-
style:
|
|
290
|
+
style: x({
|
|
283
291
|
display: "flex",
|
|
284
292
|
justifyContent: ["right", "top-right"].includes(U.value.style.labels.name.position) ? "flex-end" : ["top-center"].includes(U.value.style.labels.name.position) ? "center" : "flex-start",
|
|
285
293
|
alignItems: "center",
|
|
@@ -289,10 +297,10 @@ var j = /* @__PURE__ */ e({ default: () => z }), M = [
|
|
|
289
297
|
fontWeight: U.value.style.labels.name.bold ? "bold" : "normal",
|
|
290
298
|
flexWrap: "wrap"
|
|
291
299
|
})
|
|
292
|
-
}, [O(W) ? (
|
|
300
|
+
}, [O(W) ? (C(), g("div", {
|
|
293
301
|
key: 0,
|
|
294
302
|
class: "vue-ui-sparkbar-skeleton-name",
|
|
295
|
-
style:
|
|
303
|
+
style: x({
|
|
296
304
|
width: "60px",
|
|
297
305
|
height: U.value.style.labels.fontSize + "px",
|
|
298
306
|
borderRadius: U.value.style.labels.fontSize / 4 + "px",
|
|
@@ -301,49 +309,49 @@ var j = /* @__PURE__ */ e({ default: () => z }), M = [
|
|
|
301
309
|
justifyContent: "space-between",
|
|
302
310
|
marginTop: "5px"
|
|
303
311
|
})
|
|
304
|
-
}, [_("div", { style:
|
|
312
|
+
}, [_("div", { style: x({
|
|
305
313
|
height: "100%",
|
|
306
314
|
width: "40px",
|
|
307
315
|
borderRadius: U.value.style.labels.fontSize / 4 + "px",
|
|
308
316
|
backgroundColor: "#6A6A6A80"
|
|
309
|
-
}) }, null, 4), _("div", { style:
|
|
317
|
+
}) }, null, 4), _("div", { style: x({
|
|
310
318
|
height: "100%",
|
|
311
319
|
width: "15px",
|
|
312
320
|
borderRadius: U.value.style.labels.fontSize / 4 + "px",
|
|
313
321
|
backgroundColor: "#6A6A6A80"
|
|
314
|
-
}) }, null, 4)], 4)) : (
|
|
315
|
-
_("span", null,
|
|
316
|
-
U.value.style.labels.value.show ? (
|
|
322
|
+
}) }, null, 4)], 4)) : (C(), g(p, { key: 1 }, [
|
|
323
|
+
_("span", null, E(n.name), 1),
|
|
324
|
+
U.value.style.labels.value.show ? (C(), g("span", {
|
|
317
325
|
key: 0,
|
|
318
|
-
style:
|
|
326
|
+
style: x(`font-weight:${U.value.style.labels.value.bold ? "bold" : "normal"}`),
|
|
319
327
|
class: "vue-ui-sparkbar-datapoint-name"
|
|
320
|
-
}, ": " +
|
|
321
|
-
p:
|
|
322
|
-
v:
|
|
323
|
-
s:
|
|
324
|
-
r:
|
|
328
|
+
}, ": " + E(O(s)(n.formatter, n.value, O(o)({
|
|
329
|
+
p: n.prefix || "",
|
|
330
|
+
v: n.value,
|
|
331
|
+
s: n.suffix || "",
|
|
332
|
+
r: n.rounding || 0
|
|
325
333
|
}), {
|
|
326
|
-
datapoint:
|
|
334
|
+
datapoint: n,
|
|
327
335
|
seriesIndex: r
|
|
328
336
|
})), 5)) : h("", !0),
|
|
329
|
-
U.value.style.layout.showTargetValue ? (
|
|
330
|
-
p:
|
|
331
|
-
v: $(
|
|
332
|
-
s:
|
|
333
|
-
r:
|
|
337
|
+
U.value.style.layout.showTargetValue ? (C(), g("span", N, E(" " + U.value.style.layout.targetValueText) + " " + E(O(s)(n.formatter, $(n), O(o)({
|
|
338
|
+
p: n.prefix || "",
|
|
339
|
+
v: $(n),
|
|
340
|
+
s: n.suffix || "",
|
|
341
|
+
r: n.rounding || 0
|
|
334
342
|
}), {
|
|
335
|
-
datapoint:
|
|
343
|
+
datapoint: n,
|
|
336
344
|
seriesIndex: r
|
|
337
345
|
})), 1)) : h("", !0)
|
|
338
346
|
], 64))], 4)) : h("", !0),
|
|
339
|
-
(
|
|
347
|
+
(C(), g("svg", {
|
|
340
348
|
role: "img",
|
|
341
|
-
xmlns: O(
|
|
349
|
+
xmlns: O(ie),
|
|
342
350
|
viewBox: `0 0 ${Z.value.width} ${Z.value.height}`,
|
|
343
351
|
width: "100%"
|
|
344
352
|
}, [
|
|
345
|
-
v(O(
|
|
346
|
-
_("defs", null, [v(
|
|
353
|
+
v(O(R)),
|
|
354
|
+
_("defs", null, [v(le, {
|
|
347
355
|
t: "linear",
|
|
348
356
|
x1: "0%",
|
|
349
357
|
y1: "0%",
|
|
@@ -352,11 +360,11 @@ var j = /* @__PURE__ */ e({ default: () => z }), M = [
|
|
|
352
360
|
id: `sparkbar_gradient_${r}_${H.value}`,
|
|
353
361
|
stops: [[
|
|
354
362
|
"0%",
|
|
355
|
-
O(
|
|
363
|
+
O(t)(O(ee)(n.color, .03), 100 - U.value.style.bar.gradient.intensity),
|
|
356
364
|
1
|
|
357
365
|
], [
|
|
358
366
|
"100%",
|
|
359
|
-
|
|
367
|
+
n.color,
|
|
360
368
|
1
|
|
361
369
|
]]
|
|
362
370
|
}, null, 8, ["id", "stops"])]),
|
|
@@ -365,12 +373,12 @@ var j = /* @__PURE__ */ e({ default: () => z }), M = [
|
|
|
365
373
|
width: Z.value.width,
|
|
366
374
|
x: 0,
|
|
367
375
|
y: 0,
|
|
368
|
-
fill: O(
|
|
376
|
+
fill: O(t)(U.value.style.gutter.backgroundColor, U.value.style.gutter.opacity),
|
|
369
377
|
rx: Z.value.height / 2
|
|
370
378
|
}, null, 8, F),
|
|
371
379
|
_("rect", {
|
|
372
380
|
height: Z.value.height,
|
|
373
|
-
width: Z.value.width * Q(
|
|
381
|
+
width: Z.value.width * Q(n),
|
|
374
382
|
x: 0,
|
|
375
383
|
y: 0,
|
|
376
384
|
fill: U.value.style.bar.gradient.underlayerColor,
|
|
@@ -378,18 +386,18 @@ var j = /* @__PURE__ */ e({ default: () => z }), M = [
|
|
|
378
386
|
}, null, 8, I),
|
|
379
387
|
_("rect", {
|
|
380
388
|
height: Z.value.height,
|
|
381
|
-
width: Z.value.width * Q(
|
|
389
|
+
width: Z.value.width * Q(n),
|
|
382
390
|
x: 0,
|
|
383
391
|
y: 0,
|
|
384
|
-
fill: U.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${r}_${H.value})` :
|
|
392
|
+
fill: U.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${r}_${H.value})` : n.color,
|
|
385
393
|
rx: Z.value.height / 2
|
|
386
394
|
}, null, 8, L)
|
|
387
395
|
], 8, P))
|
|
388
396
|
], 44, M))), 256)),
|
|
389
|
-
e.$slots.source ? (
|
|
390
|
-
O(W) ? (
|
|
397
|
+
e.$slots.source ? (C(), g("div", _e, [T(e.$slots, "source")], 512)) : h("", !0),
|
|
398
|
+
O(W) ? (C(), fe(se, { key: 3 })) : h("", !0)
|
|
391
399
|
], 4));
|
|
392
400
|
}
|
|
393
401
|
};
|
|
394
402
|
//#endregion
|
|
395
|
-
export { j as n,
|
|
403
|
+
export { j as n, R as t };
|