vue-data-ui 3.25.3 → 3.25.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Bvx4_tSN.js → Arrow-DLn-pcrh.js} +1 -1
- package/dist/{BaseDraggableDialog-BCQY4Tir.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
- package/dist/{BaseIcon-CVrQHhw1.js → BaseIcon-t83PDe9k.js} +1 -1
- package/dist/{BaseLegendToggle-BF-thEu0.js → BaseLegendToggle-__JnV08B.js} +1 -1
- package/dist/{BaseZoomControls-BAHeLgV8.js → BaseZoomControls-Xo16vFa4.js} +2 -2
- package/dist/{ColorPicker-B0CMtFkc.js → ColorPicker-ZJrR3Olp.js} +2 -2
- package/dist/{DataTable-BBpTEQY5.js → DataTable-COIO9gi4.js} +2 -2
- package/dist/{HillActions-ChMsbYib.js → HillActions-Cl-dNBZR.js} +1 -1
- package/dist/{Legend-DmitJZi5.js → Legend-X4kF4PvW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DNIpZGOP.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
- package/dist/{PackageVersion-hRJtldYi.js → PackageVersion-5SWftabm.js} +1 -1
- package/dist/{PenAndPaper-DzM1vUXR.js → PenAndPaper-B_SdRSKH.js} +12 -12
- package/dist/{Shape-BBKymE00.js → Shape-CIqU-p2F.js} +1 -1
- package/dist/{SlicerPreview-W4PWXK69.js → SlicerPreview-GvsdvE-h.js} +27 -27
- package/dist/{SparkTooltip-9hXY74AD.js → SparkTooltip-C-Y-mDrc.js} +1 -1
- package/dist/{Title-DIf1lG-_.js → Title-CPHi-evi.js} +1 -1
- package/dist/{Tooltip-C3jBTIhR.js → Tooltip-hhrkQ3Lk.js} +1 -1
- package/dist/{UserOptions-m0uxKoiy.js → UserOptions-f3Q0nqrj.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 +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-label.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-DPcw-QzB.js → dom-to-png-C6cQJ5Hq.js} +1 -1
- package/dist/{exposedLib-BGrCpxDo.js → exposedLib-CG3aXJ-v.js} +9 -9
- package/dist/{img-IjqD_xWl.js → img-DhGApYG0.js} +1 -1
- package/dist/{labelUtils-Bgt85NUY.js → labelUtils-BXX2NzRe.js} +1 -1
- package/dist/{lib-C7t_vY8w.js → lib-Dql7cqyA.js} +200 -177
- package/dist/{package-NccReU84.js → package-DmsdiyeS.js} +1 -1
- package/dist/{pdf-HBji623H.js → pdf-Di5yPEw9.js} +1 -1
- package/dist/{render-common-CHj9aLwI.js → render-common-zoPh9a78.js} +2 -2
- 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/{useNestedProp-BfTgFMXF.js → useNestedProp-Chvyfpl-.js} +1 -1
- package/dist/{usePrinter-VVTuFI6H.js → usePrinter-DISD7q5m.js} +2 -2
- package/dist/utils.js +2 -2
- package/dist/{vue-data-ui-xQI9KcZd.js → vue-data-ui-DTj71yB7.js} +70 -70
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
- package/dist/{vue-ui-accordion-DuARUUdY.js → vue-ui-accordion-D4zsdacF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D-ggLbES.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
- package/dist/{vue-ui-annotator-MvDwnq7k.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
- package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
- package/dist/{vue-ui-bump-DiH9-DLV.js → vue-ui-bump-BkOtQNWe.js} +54 -54
- package/dist/{vue-ui-candlestick-B486ChH8.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
- package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
- package/dist/{vue-ui-chestnut-DGESmviK.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
- package/dist/{vue-ui-chord-DQJ7RuvS.js → vue-ui-chord-DQRBgVOx.js} +31 -31
- package/dist/{vue-ui-circle-pack-YXuSpTIB.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
- package/dist/{vue-ui-cursor-Dju_nWZh.js → vue-ui-cursor-BHyXRadA.js} +3 -3
- package/dist/{vue-ui-dag-C2f1v-IC.js → vue-ui-dag-CyVqaLbF.js} +75 -75
- package/dist/{vue-ui-dashboard-pNI0se0n.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
- package/dist/{vue-ui-digits-C5Z_lpSZ.js → vue-ui-digits-BBL8uERO.js} +3 -3
- package/dist/{vue-ui-donut-DZXYGFJc.js → vue-ui-donut-DcgUuefk.js} +101 -101
- package/dist/vue-ui-donut-DfiocufT.js +2413 -0
- package/dist/{vue-ui-donut-evolution-DQn-87Ak.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
- package/dist/{vue-ui-dumbbell-CDtBLV2m.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
- package/dist/{vue-ui-flow-B0L2gQ3k.js → vue-ui-flow-CoylrfnO.js} +40 -40
- package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
- package/dist/{vue-ui-galaxy-yF4pKrlD.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
- package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
- package/dist/{vue-ui-geo-CFz30xe0.js → vue-ui-geo-jR4P4pbt.js} +36 -36
- package/dist/{vue-ui-gizmo-ys9jjs02.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
- package/dist/{vue-ui-heatmap-qigx4Z5I.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
- package/dist/{vue-ui-hill-K3JKKF1b.js → vue-ui-hill-fFq7pm-g.js} +9 -9
- package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
- package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
- package/dist/{vue-ui-kpi-0W2GpUBQ.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
- package/dist/{vue-ui-label-CBM2b0Aq.js → vue-ui-label-BSgLalWD.js} +64 -64
- package/dist/{vue-ui-mini-loader-C-2BQ3hi.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
- package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
- package/dist/{vue-ui-mood-radar-VCVoA-i7.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
- package/dist/{vue-ui-nested-donuts-CFPhvIy3.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
- package/dist/{vue-ui-onion-BMucjktR.js → vue-ui-onion-B7oFulsQ.js} +119 -119
- package/dist/{vue-ui-parallel-coordinate-plot-BhahYf50.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
- package/dist/{vue-ui-quadrant-77idomwS.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
- package/dist/{vue-ui-quick-chart-CNKuNur5.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
- package/dist/{vue-ui-radar-CuT1AXHF.js → vue-ui-radar-Bzx69q8f.js} +311 -311
- package/dist/{vue-ui-rating-CTuSylET.js → vue-ui-rating-CimC9FQ9.js} +2 -2
- package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
- package/dist/{vue-ui-ridgeline-CijnGJ6-.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
- package/dist/{vue-ui-rings-DDGKIiGT.js → vue-ui-rings-qPL5Iwji.js} +327 -327
- package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
- package/dist/{vue-ui-skeleton-Clzzx8hc.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
- package/dist/{vue-ui-smiley-DILPVI14.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
- package/dist/{vue-ui-spark-trend-CYIyrTQj.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
- package/dist/{vue-ui-sparkbar-C2HcYmPm.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
- package/dist/{vue-ui-sparkgauge-BLJ0mImj.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
- package/dist/{vue-ui-sparkhistogram-1FYy_qM3.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
- package/dist/{vue-ui-sparkline-C11KKbIn.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
- package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
- package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
- package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
- package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
- package/dist/vue-ui-table-BQna1wL6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-Dj06PSQK.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
- package/dist/{vue-ui-table-sparkline-1h7A5F1N.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
- package/dist/{vue-ui-thermometer-CVKlj7fU.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
- package/dist/{vue-ui-timer-BWz6K56E.js → vue-ui-timer-CvHP4HoW.js} +5 -5
- package/dist/{vue-ui-tiremarks-D26MLo5F.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
- package/dist/{vue-ui-treemap-33VL-HnF.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
- package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
- package/dist/{vue-ui-wheel-BPbR_-t8.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
- package/dist/{vue-ui-word-cloud-RFcpvswb.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
- package/dist/{vue-ui-world-CseHQjz7.js → vue-ui-world-D0_2upjg.js} +116 -116
- package/dist/{vue-ui-xy-D_biv7Wg.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
- package/dist/{vue-ui-xy-C3UI9YIM.js → vue-ui-xy-D_5FfaH-.js} +423 -422
- package/dist/{vue-ui-xy-canvas-R1I0sffy.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-Cf5mJEzr.js +0 -1829
- package/dist/vue-ui-bullet-DWe51l3b.js +0 -700
- package/dist/vue-ui-carousel-table-BPNQQVsu.js +0 -467
- package/dist/vue-ui-donut-CaMaNvIF.js +0 -2413
- package/dist/vue-ui-funnel-G5nO77o5.js +0 -747
- package/dist/vue-ui-gauge-DA92q6HZ.js +0 -932
- package/dist/vue-ui-history-plot-DUoXwHLn.js +0 -1696
- package/dist/vue-ui-horizontal-bar-C51hv9PU.js +0 -1709
- package/dist/vue-ui-molecule-B1ChvZql.js +0 -929
- package/dist/vue-ui-relation-circle-DxONGvTM.js +0 -903
- package/dist/vue-ui-scatter-Cwlhv9y6.js +0 -2403
- package/dist/vue-ui-sparkstackbar-B4H_cgzW.js +0 -738
- package/dist/vue-ui-stackbar-CBOAAVtS.js +0 -2349
- package/dist/vue-ui-stackline-24PeB3yN.js +0 -2463
- package/dist/vue-ui-strip-plot-C3Q1lECl.js +0 -1738
- package/dist/vue-ui-table-DMJWplCT.js +0 -1352
- package/dist/vue-ui-waffle-DIFpyE2V.js +0 -1619
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { Fragment as
|
|
2
|
+
import { Lt as t, Pt as n, S as r, Ut as i, Wt as ee, X as a, Yt as te, Zt as o, ht as ne, i as s, nt as c, q as re, t as ie, w as ae } from "./lib-Dql7cqyA.js";
|
|
3
|
+
import { n as oe, t as l } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as u } from "./useConfig-CyCVHo81.js";
|
|
5
|
+
import { n as se, t as d } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as f } from "./useNestedProp-Chvyfpl-.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 y, mergeProps as b, nextTick as me, 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";
|
|
12
12
|
//#region src/components/vue-ui-sparkbar.vue
|
|
13
|
-
var
|
|
13
|
+
var j = /* @__PURE__ */ e({ default: () => R }), M = [
|
|
14
14
|
"onClick",
|
|
15
15
|
"onMouseenter",
|
|
16
16
|
"onMouseleave"
|
|
17
|
-
],
|
|
17
|
+
], N = {
|
|
18
18
|
key: 1,
|
|
19
19
|
class: "vue-ui-sparkbar-datapoint-value"
|
|
20
|
-
},
|
|
20
|
+
}, P = ["xmlns", "viewBox"], F = [
|
|
21
21
|
"height",
|
|
22
22
|
"width",
|
|
23
23
|
"fill",
|
|
24
24
|
"rx"
|
|
25
|
-
],
|
|
25
|
+
], I = [
|
|
26
26
|
"height",
|
|
27
27
|
"width",
|
|
28
28
|
"fill",
|
|
29
29
|
"rx"
|
|
30
|
-
],
|
|
30
|
+
], L = [
|
|
31
31
|
"height",
|
|
32
32
|
"width",
|
|
33
33
|
"fill",
|
|
34
34
|
"rx"
|
|
35
|
-
],
|
|
35
|
+
], _e = {
|
|
36
36
|
key: 2,
|
|
37
37
|
ref: "source",
|
|
38
38
|
dir: "auto"
|
|
39
|
-
},
|
|
39
|
+
}, R = {
|
|
40
40
|
__name: "vue-ui-sparkbar",
|
|
41
41
|
props: {
|
|
42
42
|
config: {
|
|
@@ -57,17 +57,17 @@ var A = /* @__PURE__ */ e({ default: () => L }), j = [
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
emits: ["selectDatapoint"],
|
|
60
|
-
setup(e, { emit:
|
|
61
|
-
let
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}),
|
|
60
|
+
setup(e, { emit: j }) {
|
|
61
|
+
let R = pe(() => import("./PackageVersion-5SWftabm.js").then((e) => e.t)), { vue_ui_sparkbar: ve } = u(), { isThemeValid: ye, warnInvalidTheme: be } = ce(), z = ue(), B = e, xe = k(), V = w(re()), H = w(K()), U = m(() => H.value.debug);
|
|
62
|
+
S(() => {
|
|
63
|
+
xe["chart-background"] && U.value && console.warn("VueUiSparkbar does not support the #chart-background slot.");
|
|
64
|
+
}), oe({
|
|
65
65
|
config: () => H.value,
|
|
66
|
-
dataset: () =>
|
|
66
|
+
dataset: () => B.dataset,
|
|
67
67
|
component: "VueUiSparkbar",
|
|
68
|
-
rules: [
|
|
68
|
+
rules: [l.noHint]
|
|
69
69
|
});
|
|
70
|
-
let Se =
|
|
70
|
+
let Se = m(() => o({
|
|
71
71
|
defaultConfig: { style: {
|
|
72
72
|
backgroundColor: "#99999930",
|
|
73
73
|
animation: { show: !1 },
|
|
@@ -79,11 +79,11 @@ var A = /* @__PURE__ */ e({ default: () => L }), j = [
|
|
|
79
79
|
bar: { gradient: { underlayerColor: "#6A6A6A" } }
|
|
80
80
|
} },
|
|
81
81
|
userConfig: H.value.skeletonConfig ?? {}
|
|
82
|
-
})), { loading: W, FINAL_DATASET: G, manualLoading: Ce } =
|
|
83
|
-
...
|
|
82
|
+
})), { loading: W, FINAL_DATASET: G, manualLoading: Ce } = se({
|
|
83
|
+
...D(B),
|
|
84
84
|
FINAL_CONFIG: H,
|
|
85
85
|
prepareConfig: K,
|
|
86
|
-
skeletonDataset:
|
|
86
|
+
skeletonDataset: B.config?.skeletonDataset ?? [
|
|
87
87
|
{
|
|
88
88
|
name: "_",
|
|
89
89
|
value: 21,
|
|
@@ -103,47 +103,47 @@ var A = /* @__PURE__ */ e({ default: () => L }), j = [
|
|
|
103
103
|
color: "#DBDBDB"
|
|
104
104
|
}
|
|
105
105
|
],
|
|
106
|
-
skeletonConfig:
|
|
106
|
+
skeletonConfig: o({
|
|
107
107
|
defaultConfig: H.value,
|
|
108
108
|
userConfig: Se.value
|
|
109
109
|
})
|
|
110
110
|
});
|
|
111
111
|
function K() {
|
|
112
|
-
let e =
|
|
113
|
-
userConfig:
|
|
114
|
-
defaultConfig:
|
|
115
|
-
}),
|
|
116
|
-
if (!
|
|
117
|
-
if (!
|
|
118
|
-
let
|
|
119
|
-
userConfig:
|
|
112
|
+
let e = f({
|
|
113
|
+
userConfig: B.config,
|
|
114
|
+
defaultConfig: ve
|
|
115
|
+
}), n = e.theme;
|
|
116
|
+
if (!n) return e;
|
|
117
|
+
if (!ye.value(e)) return be(e), e;
|
|
118
|
+
let r = f({
|
|
119
|
+
userConfig: de[n] || B.config,
|
|
120
120
|
defaultConfig: e
|
|
121
|
-
}),
|
|
122
|
-
userConfig:
|
|
123
|
-
defaultConfig:
|
|
121
|
+
}), i = f({
|
|
122
|
+
userConfig: B.config,
|
|
123
|
+
defaultConfig: r
|
|
124
124
|
});
|
|
125
125
|
return {
|
|
126
|
-
...
|
|
127
|
-
customPalette:
|
|
126
|
+
...i,
|
|
127
|
+
customPalette: i.customPalette.length ? i.customPalette : te[n] || t
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
|
-
|
|
130
|
+
A(() => B.config, (e) => {
|
|
131
131
|
H.value = K();
|
|
132
132
|
}, { deep: !0 });
|
|
133
|
-
let we =
|
|
133
|
+
let we = m(() => ae(H.value.customPalette)), q = w(G.value.map((e) => ({
|
|
134
134
|
...e,
|
|
135
135
|
value: H.value.style.animation.show ? 0 : e.value || 0,
|
|
136
136
|
formatter: e.formatter || null
|
|
137
|
-
}))), J =
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
}))), J = w(null);
|
|
138
|
+
S(async () => {
|
|
139
|
+
n(B.dataset) && c({
|
|
140
140
|
componentName: "VueUiSparkbar",
|
|
141
141
|
type: "dataset",
|
|
142
142
|
debug: U.value
|
|
143
143
|
}), Y();
|
|
144
144
|
});
|
|
145
145
|
function Y() {
|
|
146
|
-
if (H.value.style.animation.show && !
|
|
146
|
+
if (H.value.style.animation.show && !z.value) {
|
|
147
147
|
let e = H.value.style.animation.animationFrames, t = G.value.map((t, n) => t.value / e), n = G.value.map((e) => e.value || 0).reduce((e, t) => e + t, 0), r = 0;
|
|
148
148
|
function i() {
|
|
149
149
|
r += n / e, r < n ? (q.value = q.value.map((e, n) => ({
|
|
@@ -158,32 +158,32 @@ var A = /* @__PURE__ */ e({ default: () => L }), j = [
|
|
|
158
158
|
i();
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
A(() => G.value, async (e) => {
|
|
162
162
|
cancelAnimationFrame(J.value), q.value = G.value.map((e) => ({
|
|
163
163
|
...e,
|
|
164
|
-
value: H.value.style.animation.show && !
|
|
164
|
+
value: H.value.style.animation.show && !z.value ? 0 : e.value || 0,
|
|
165
165
|
formatter: e.formatter || null
|
|
166
|
-
})),
|
|
166
|
+
})), me(Y);
|
|
167
167
|
}, { deep: !0 });
|
|
168
|
-
let X =
|
|
168
|
+
let X = w({
|
|
169
169
|
width: 500,
|
|
170
170
|
height: 16
|
|
171
|
-
}), Te =
|
|
172
|
-
|
|
171
|
+
}), Te = m(() => Math.max(...G.value.map((e) => e.value))), Ee = m(() => (U.value && G.value.forEach((e, t) => {
|
|
172
|
+
ne({
|
|
173
173
|
datasetObject: e,
|
|
174
174
|
requiredAttributes: ["name", "value"]
|
|
175
175
|
}).forEach((e) => {
|
|
176
|
-
|
|
176
|
+
c({
|
|
177
177
|
componentName: "VueUiSparkbar",
|
|
178
178
|
type: "datasetSerieAttribute",
|
|
179
179
|
property: e,
|
|
180
180
|
index: t
|
|
181
181
|
});
|
|
182
182
|
});
|
|
183
|
-
}), q.value.map((e,
|
|
183
|
+
}), q.value.map((e, n) => ({
|
|
184
184
|
...e,
|
|
185
185
|
value: e.value || 0,
|
|
186
|
-
color:
|
|
186
|
+
color: r(e.color) || we.value[n] || t[n] || t[n % t.length]
|
|
187
187
|
}))));
|
|
188
188
|
function De(e) {
|
|
189
189
|
return e / Te.value;
|
|
@@ -194,7 +194,7 @@ var A = /* @__PURE__ */ e({ default: () => L }), j = [
|
|
|
194
194
|
function Q(e) {
|
|
195
195
|
return H.value.style.layout.independant && e.target || H.value.style.layout.target;
|
|
196
196
|
}
|
|
197
|
-
let Oe =
|
|
197
|
+
let Oe = j;
|
|
198
198
|
function ke(e, t) {
|
|
199
199
|
Oe("selectDatapoint", {
|
|
200
200
|
datapoint: e,
|
|
@@ -216,76 +216,76 @@ var A = /* @__PURE__ */ e({ default: () => L }), j = [
|
|
|
216
216
|
seriesIndex: t
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
|
-
let $ =
|
|
220
|
-
return (e,
|
|
219
|
+
let $ = m(() => H.value.style.bar.borderRadius == null ? X.value.height / 2 : Math.min(X.value.height / 2, H.value.style.bar.borderRadius));
|
|
220
|
+
return (e, t) => (C(), g("div", {
|
|
221
221
|
class: "vue-data-ui-component vue-ui-sparkbar",
|
|
222
|
-
style:
|
|
222
|
+
style: x({
|
|
223
223
|
width: "100%",
|
|
224
224
|
position: "relative",
|
|
225
225
|
fontFamily: H.value.style.fontFamily,
|
|
226
|
-
background:
|
|
226
|
+
background: B.backgroundOpacity === null ? H.value.style.backgroundColor : O(i)(H.value.style.backgroundColor, B.backgroundOpacity)
|
|
227
227
|
})
|
|
228
228
|
}, [
|
|
229
|
-
e.$slots.title ?
|
|
229
|
+
e.$slots.title ? T(e.$slots, "title", he(y({ title: {
|
|
230
230
|
...e.title,
|
|
231
231
|
title: H.value.style.title.text,
|
|
232
232
|
subtitle: H.value.style.title.subtitle.text
|
|
233
|
-
} })), void 0, void 0, 0) :
|
|
234
|
-
!e.$slots.title && H.value.style.title.text ? (
|
|
233
|
+
} })), void 0, void 0, 0) : h("", !0),
|
|
234
|
+
!e.$slots.title && H.value.style.title.text ? (C(), g("div", {
|
|
235
235
|
key: 1,
|
|
236
236
|
class: "vue-ui-sparkbar-title-container",
|
|
237
|
-
style:
|
|
237
|
+
style: x({
|
|
238
238
|
background: H.value.style.title.backgroundColor,
|
|
239
239
|
margin: H.value.style.title.margin,
|
|
240
240
|
textAlign: H.value.style.title.textAlign
|
|
241
241
|
})
|
|
242
|
-
}, [
|
|
242
|
+
}, [_("div", {
|
|
243
243
|
class: "vue-ui-sparkbar-title",
|
|
244
|
-
style:
|
|
244
|
+
style: x({
|
|
245
245
|
fontSize: H.value.style.title.fontSize + "px",
|
|
246
246
|
color: H.value.style.title.color,
|
|
247
247
|
fontWeight: H.value.style.title.bold ? "bold" : "normal"
|
|
248
248
|
})
|
|
249
|
-
},
|
|
249
|
+
}, E(H.value.style.title.text), 5), H.value.style.title.subtitle.text ? (C(), g("div", {
|
|
250
250
|
key: 0,
|
|
251
251
|
class: "vue-ui-sparkbar-subtitle",
|
|
252
|
-
style:
|
|
252
|
+
style: x({
|
|
253
253
|
fontSize: H.value.style.title.subtitle.fontSize + "px",
|
|
254
254
|
color: H.value.style.title.subtitle.color,
|
|
255
255
|
fontWeight: H.value.style.title.subtitle.bold ? "bold" : "normal"
|
|
256
256
|
})
|
|
257
|
-
},
|
|
258
|
-
(
|
|
259
|
-
style:
|
|
260
|
-
onClick: (e) => ke(
|
|
261
|
-
onMouseenter: (e) => Ae(
|
|
262
|
-
onMouseleave: (e) => je(
|
|
257
|
+
}, E(H.value.style.title.subtitle.text), 5)) : h("", !0)], 4)) : h("", !0),
|
|
258
|
+
(C(!0), g(p, null, ge(Ee.value, (t, n) => (C(), g("div", {
|
|
259
|
+
style: x(`display:flex !important;${["left", "right"].includes(H.value.style.labels.name.position) ? `flex-direction: ${H.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${H.value.style.gap}px !important;align-items:center;${O(G).length > 0 && n !== O(G).length - 1 ? "margin-bottom:6px" : ""}`),
|
|
260
|
+
onClick: (e) => ke(t, n),
|
|
261
|
+
onMouseenter: (e) => Ae(t, n),
|
|
262
|
+
onMouseleave: (e) => je(t, n)
|
|
263
263
|
}, [
|
|
264
|
-
|
|
265
|
-
...
|
|
266
|
-
target: Q(
|
|
267
|
-
valueLabel:
|
|
268
|
-
p:
|
|
269
|
-
v:
|
|
270
|
-
s:
|
|
271
|
-
r:
|
|
264
|
+
O(W) ? h("", !0) : T(e.$slots, "data-label", b({ ref_for: !0 }, { bar: {
|
|
265
|
+
...t,
|
|
266
|
+
target: Q(t),
|
|
267
|
+
valueLabel: O(s)(t.formatter, t.value, O(a)({
|
|
268
|
+
p: t.prefix || "",
|
|
269
|
+
v: t.value,
|
|
270
|
+
s: t.suffix || "",
|
|
271
|
+
r: t.rounding || 0
|
|
272
272
|
}), {
|
|
273
|
-
datapoint:
|
|
274
|
-
seriesIndex:
|
|
273
|
+
datapoint: t,
|
|
274
|
+
seriesIndex: n
|
|
275
275
|
}),
|
|
276
|
-
targetLabel:
|
|
277
|
-
p:
|
|
278
|
-
v: Q(
|
|
279
|
-
s:
|
|
280
|
-
r:
|
|
276
|
+
targetLabel: O(s)(t.formatter, Q(t), O(a)({
|
|
277
|
+
p: t.prefix || "",
|
|
278
|
+
v: Q(t),
|
|
279
|
+
s: t.suffix || "",
|
|
280
|
+
r: t.rounding || 0
|
|
281
281
|
}), {
|
|
282
|
-
datapoint:
|
|
283
|
-
seriesIndex:
|
|
282
|
+
datapoint: t,
|
|
283
|
+
seriesIndex: n
|
|
284
284
|
})
|
|
285
285
|
} }), void 0, void 0, 0),
|
|
286
|
-
!e.$slots["data-label"] ||
|
|
286
|
+
!e.$slots["data-label"] || O(W) ? (C(), g("div", {
|
|
287
287
|
key: 1,
|
|
288
|
-
style:
|
|
288
|
+
style: x({
|
|
289
289
|
display: "flex",
|
|
290
290
|
justifyContent: ["right", "top-right"].includes(H.value.style.labels.name.position) ? "flex-end" : ["top-center"].includes(H.value.style.labels.name.position) ? "center" : "flex-start",
|
|
291
291
|
alignItems: "center",
|
|
@@ -295,10 +295,10 @@ var A = /* @__PURE__ */ e({ default: () => L }), j = [
|
|
|
295
295
|
fontWeight: H.value.style.labels.name.bold ? "bold" : "normal",
|
|
296
296
|
flexWrap: "wrap"
|
|
297
297
|
})
|
|
298
|
-
}, [
|
|
298
|
+
}, [O(W) ? (C(), g("div", {
|
|
299
299
|
key: 0,
|
|
300
300
|
class: "vue-ui-sparkbar-skeleton-name",
|
|
301
|
-
style:
|
|
301
|
+
style: x({
|
|
302
302
|
width: "60px",
|
|
303
303
|
height: H.value.style.labels.fontSize + "px",
|
|
304
304
|
borderRadius: H.value.style.labels.fontSize / 4 + "px",
|
|
@@ -307,95 +307,95 @@ var A = /* @__PURE__ */ e({ default: () => L }), j = [
|
|
|
307
307
|
justifyContent: "space-between",
|
|
308
308
|
marginTop: "5px"
|
|
309
309
|
})
|
|
310
|
-
}, [
|
|
310
|
+
}, [_("div", { style: x({
|
|
311
311
|
height: "100%",
|
|
312
312
|
width: "40px",
|
|
313
313
|
borderRadius: H.value.style.labels.fontSize / 4 + "px",
|
|
314
314
|
backgroundColor: "#6A6A6A80"
|
|
315
|
-
}) }, null, 4),
|
|
315
|
+
}) }, null, 4), _("div", { style: x({
|
|
316
316
|
height: "100%",
|
|
317
317
|
width: "15px",
|
|
318
318
|
borderRadius: H.value.style.labels.fontSize / 4 + "px",
|
|
319
319
|
backgroundColor: "#6A6A6A80"
|
|
320
|
-
}) }, null, 4)], 4)) : (
|
|
321
|
-
|
|
322
|
-
H.value.style.labels.value.show ? (
|
|
320
|
+
}) }, null, 4)], 4)) : (C(), g(p, { key: 1 }, [
|
|
321
|
+
_("span", null, E(t.name), 1),
|
|
322
|
+
H.value.style.labels.value.show ? (C(), g("span", {
|
|
323
323
|
key: 0,
|
|
324
|
-
style:
|
|
324
|
+
style: x(`font-weight:${H.value.style.labels.value.bold ? "bold" : "normal"}`),
|
|
325
325
|
class: "vue-ui-sparkbar-datapoint-name"
|
|
326
|
-
}, ": " +
|
|
327
|
-
p:
|
|
328
|
-
v:
|
|
329
|
-
s:
|
|
330
|
-
r:
|
|
326
|
+
}, ": " + E(O(s)(t.formatter, t.value, O(a)({
|
|
327
|
+
p: t.prefix || "",
|
|
328
|
+
v: t.value,
|
|
329
|
+
s: t.suffix || "",
|
|
330
|
+
r: t.rounding || 0
|
|
331
331
|
}), {
|
|
332
|
-
datapoint:
|
|
333
|
-
seriesIndex:
|
|
334
|
-
})), 5)) :
|
|
335
|
-
H.value.style.layout.showTargetValue ? (
|
|
336
|
-
p:
|
|
337
|
-
v: Q(
|
|
338
|
-
s:
|
|
339
|
-
r:
|
|
332
|
+
datapoint: t,
|
|
333
|
+
seriesIndex: n
|
|
334
|
+
})), 5)) : h("", !0),
|
|
335
|
+
H.value.style.layout.showTargetValue ? (C(), g("span", N, E(" " + H.value.style.layout.targetValueText) + " " + E(O(s)(t.formatter, Q(t), O(a)({
|
|
336
|
+
p: t.prefix || "",
|
|
337
|
+
v: Q(t),
|
|
338
|
+
s: t.suffix || "",
|
|
339
|
+
r: t.rounding || 0
|
|
340
340
|
}), {
|
|
341
|
-
datapoint:
|
|
342
|
-
seriesIndex:
|
|
343
|
-
})), 1)) :
|
|
344
|
-
], 64))], 4)) :
|
|
345
|
-
(
|
|
341
|
+
datapoint: t,
|
|
342
|
+
seriesIndex: n
|
|
343
|
+
})), 1)) : h("", !0)
|
|
344
|
+
], 64))], 4)) : h("", !0),
|
|
345
|
+
(C(), g("svg", {
|
|
346
346
|
role: "img",
|
|
347
|
-
xmlns:
|
|
347
|
+
xmlns: O(ie),
|
|
348
348
|
viewBox: `0 0 ${X.value.width} ${X.value.height}`,
|
|
349
349
|
width: "100%"
|
|
350
350
|
}, [
|
|
351
|
-
|
|
352
|
-
|
|
351
|
+
v(O(R)),
|
|
352
|
+
_("defs", null, [v(le, {
|
|
353
353
|
t: "linear",
|
|
354
354
|
x1: "0%",
|
|
355
355
|
y1: "0%",
|
|
356
356
|
x2: "100%",
|
|
357
357
|
y2: "0%",
|
|
358
|
-
id: `sparkbar_gradient_${
|
|
358
|
+
id: `sparkbar_gradient_${n}_${V.value}`,
|
|
359
359
|
stops: [[
|
|
360
360
|
"0%",
|
|
361
|
-
|
|
361
|
+
O(i)(O(ee)(t.color, .03), 100 - H.value.style.bar.gradient.intensity),
|
|
362
362
|
1
|
|
363
363
|
], [
|
|
364
364
|
"100%",
|
|
365
|
-
|
|
365
|
+
t.color,
|
|
366
366
|
1
|
|
367
367
|
]]
|
|
368
368
|
}, null, 8, ["id", "stops"])]),
|
|
369
|
-
|
|
369
|
+
_("rect", {
|
|
370
370
|
height: X.value.height,
|
|
371
371
|
width: X.value.width,
|
|
372
372
|
x: 0,
|
|
373
373
|
y: 0,
|
|
374
|
-
fill:
|
|
374
|
+
fill: O(i)(H.value.style.gutter.backgroundColor, H.value.style.gutter.opacity),
|
|
375
375
|
rx: $.value
|
|
376
|
-
}, null, 8,
|
|
377
|
-
|
|
376
|
+
}, null, 8, F),
|
|
377
|
+
_("rect", {
|
|
378
378
|
height: X.value.height,
|
|
379
|
-
width: X.value.width * Z(
|
|
379
|
+
width: X.value.width * Z(t),
|
|
380
380
|
x: 0,
|
|
381
381
|
y: 0,
|
|
382
382
|
fill: H.value.style.bar.gradient.underlayerColor,
|
|
383
383
|
rx: $.value
|
|
384
|
-
}, null, 8,
|
|
385
|
-
|
|
384
|
+
}, null, 8, I),
|
|
385
|
+
_("rect", {
|
|
386
386
|
height: X.value.height,
|
|
387
|
-
width: X.value.width * Z(
|
|
387
|
+
width: X.value.width * Z(t),
|
|
388
388
|
x: 0,
|
|
389
389
|
y: 0,
|
|
390
|
-
fill: H.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${
|
|
390
|
+
fill: H.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${n}_${V.value})` : t.color,
|
|
391
391
|
rx: $.value
|
|
392
|
-
}, null, 8,
|
|
393
|
-
], 8,
|
|
394
|
-
], 44,
|
|
395
|
-
e.$slots.source ? (
|
|
396
|
-
|
|
392
|
+
}, null, 8, L)
|
|
393
|
+
], 8, P))
|
|
394
|
+
], 44, M))), 256)),
|
|
395
|
+
e.$slots.source ? (C(), g("div", _e, [T(e.$slots, "source")], 512)) : h("", !0),
|
|
396
|
+
O(W) ? (C(), fe(d, { key: 3 })) : h("", !0)
|
|
397
397
|
], 4));
|
|
398
398
|
}
|
|
399
399
|
};
|
|
400
400
|
//#endregion
|
|
401
|
-
export {
|
|
401
|
+
export { j as n, R as t };
|