vue-data-ui 3.22.0 → 3.22.1
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-_pDGXl76.js → Arrow-BGhJI-qh.js} +1 -1
- package/dist/{BaseDraggableDialog-O8jn9Lvi.js → BaseDraggableDialog-a9xCKjW-.js} +2 -2
- package/dist/{BaseIcon-CWXbczu_.js → BaseIcon-DEtwcvEH.js} +1 -1
- package/dist/{BaseLegendToggle-CUYal8mC.js → BaseLegendToggle-B-lM0iV1.js} +1 -1
- package/dist/{BaseZoomControls-JwSGzoKi.js → BaseZoomControls-BjjT6vtB.js} +2 -2
- package/dist/{ColorPicker-CCqmzGGo.js → ColorPicker-DMLahA2S.js} +2 -2
- package/dist/{DataTable-G9aclxhk.js → DataTable-DJZgdnIn.js} +2 -2
- package/dist/{Legend-CAStwHdx.js → Legend-BVDhEEsC.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BLy8zMox.js → NonSvgPenAndPaper-Dwq_M6Bz.js} +13 -13
- package/dist/{PackageVersion-DxBQctV8.js → PackageVersion-_Dwp4NUr.js} +1 -1
- package/dist/{PenAndPaper-z1woaB1V.js → PenAndPaper-DJIIG6dv.js} +13 -13
- package/dist/{Shape-BubavoqO.js → Shape-C5OvuwII.js} +1 -1
- package/dist/{Slicer-JCOpjPU7.js → Slicer-ClR833cP.js} +2 -2
- package/dist/{SlicerPreview-BA_RDgVn.js → SlicerPreview-CAhqG_ZQ.js} +12 -12
- package/dist/{SparkTooltip-DMFXQmFi.js → SparkTooltip-DTzo8Sah.js} +6 -6
- package/dist/{Title-DH6G8_cZ.js → Title-CVYf1f8m.js} +1 -1
- package/dist/{Tooltip-979Ytd8R.js → Tooltip-BmGCBJuU.js} +1 -1
- package/dist/{UserOptions-rx9hUnOy.js → UserOptions-xqbNpHi2.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-CtV3uxDJ.js → dom-to-png-rjAIVHxa.js} +1 -1
- package/dist/exposedLib-CffbQxjN.js +19 -0
- package/dist/{img-C_RNNswI.js → img-BCAOkqfM.js} +1 -1
- package/dist/{labelUtils-Bycs-017.js → labelUtils-C0D1tjig.js} +1 -1
- package/dist/{lib-AJRHFE5U.js → lib-CXicicWN.js} +155 -126
- package/dist/{package-0oRlvBuX.js → package-CfgH43C9.js} +1 -1
- package/dist/{pdf-CdX23zf1.js → pdf-ChYv2jb6.js} +1 -1
- package/dist/{render-common-DSiH7qj-.js → render-common-B_81qHQA.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/types/vue-data-ui.d.ts +3 -8
- package/dist/{useAutoSizeLabelsInsideViewbox-kjVKQz36.js → useAutoSizeLabelsInsideViewbox-B4-0yo3K.js} +1 -1
- package/dist/{useConfig-Br1uzq_L.js → useConfig-C10cdg45.js} +2 -0
- package/dist/{useNestedProp-DtcXIg7n.js → useNestedProp-APyFoLCQ.js} +1 -1
- package/dist/{useObjectBindings-CxQ6A5pi.js → useObjectBindings-DSBOFB88.js} +1 -1
- package/dist/{usePrinter-6n2MzVyV.js → usePrinter-Dng0UK-G.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-DoViN_4r.js → vue-data-ui-DyFtIu5x.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-BONLasZK.js +1757 -0
- package/dist/{vue-ui-accordion-HvsT8_RM.js → vue-ui-accordion-Ck_u5Nro.js} +4 -4
- package/dist/vue-ui-age-pyramid-CESMhEwG.js +1238 -0
- package/dist/{vue-ui-annotator-7s5ly6XJ.js → vue-ui-annotator-DvpCTv7j.js} +60 -60
- package/dist/{vue-ui-bullet-B-bWGz6d.js → vue-ui-bullet-qdXPXPxt.js} +23 -23
- package/dist/{vue-ui-bump-DM-hF-AK.js → vue-ui-bump-LMO0-JMK.js} +400 -400
- package/dist/{vue-ui-candlestick-BfOvntqR.js → vue-ui-candlestick-ByWgbxR_.js} +50 -50
- package/dist/vue-ui-carousel-table-Clv65OZW.js +455 -0
- package/dist/vue-ui-chestnut-Dbxtt0EO.js +2010 -0
- package/dist/vue-ui-chord-DsCYzzLp.js +1391 -0
- package/dist/{vue-ui-circle-pack-BBaRLELd.js → vue-ui-circle-pack-DUn2l2nz.js} +44 -44
- package/dist/{vue-ui-cursor-DWlKtcab.js → vue-ui-cursor-CElckzVJ.js} +61 -61
- package/dist/{vue-ui-dag-BAKU4jBj.js → vue-ui-dag-B7a6P_58.js} +18 -18
- package/dist/{vue-ui-dashboard-DE4R55nU.js → vue-ui-dashboard-CuYXrIHK.js} +70 -70
- package/dist/{vue-ui-digits-B416Mj46.js → vue-ui-digits-CiRRs9Yh.js} +4 -4
- package/dist/{vue-ui-donut-BugVAUHv.js → vue-ui-donut-PedJo3bO.js} +474 -474
- package/dist/{vue-ui-donut-BuGSF4pM.js → vue-ui-donut-_EtEQwAW.js} +160 -160
- package/dist/vue-ui-donut-evolution-C9mV62bb.js +1510 -0
- package/dist/vue-ui-dumbbell-byV_cZ7p.js +1530 -0
- package/dist/{vue-ui-flow-BoEP6hmg.js → vue-ui-flow-DOLqQ6P4.js} +43 -43
- package/dist/vue-ui-funnel-CInvdUuT.js +777 -0
- package/dist/{vue-ui-galaxy-CB5F8Q-u.js → vue-ui-galaxy-DOeb6bP3.js} +301 -301
- package/dist/vue-ui-gauge-m2OemLTk.js +920 -0
- package/dist/{vue-ui-geo-BAy4kNv-.js → vue-ui-geo-CGw4_HqU.js} +22 -22
- package/dist/{vue-ui-gizmo-DjA8cqcl.js → vue-ui-gizmo-CavNggei.js} +4 -4
- package/dist/{vue-ui-heatmap-CMlxUI7Q.js → vue-ui-heatmap-BgBgDRa_.js} +95 -95
- package/dist/vue-ui-history-plot-jc1aVr7r.js +1554 -0
- package/dist/{vue-ui-horizontal-bar-XgzEVwOK.js → vue-ui-horizontal-bar-BkV41pJi.js} +264 -264
- package/dist/{vue-ui-kpi-B5Lu5U1S.js → vue-ui-kpi-DZAJA0gO.js} +4 -4
- package/dist/{vue-ui-mini-loader-CyYpLcrt.js → vue-ui-mini-loader-C29a9zHr.js} +3 -3
- package/dist/{vue-ui-molecule-DzpgAmZn.js → vue-ui-molecule-E7a7X-Tz.js} +181 -181
- package/dist/{vue-ui-mood-radar-DMgYQtOw.js → vue-ui-mood-radar-ww9uHX-0.js} +29 -29
- package/dist/{vue-ui-nested-donuts-BHX0QqvR.js → vue-ui-nested-donuts-BNvpHhXK.js} +211 -211
- package/dist/{vue-ui-onion-CYh7tdS0.js → vue-ui-onion-Cis7D9N3.js} +34 -34
- package/dist/{vue-ui-parallel-coordinate-plot-BTaG92hV.js → vue-ui-parallel-coordinate-plot-BnVXfomm.js} +40 -40
- package/dist/vue-ui-quadrant-DQ8rrBHV.js +1978 -0
- package/dist/{vue-ui-quick-chart-CHSUGLTx.js → vue-ui-quick-chart-B1xUyqD7.js} +358 -358
- package/dist/vue-ui-radar-D0y4BN8E.js +1281 -0
- package/dist/{vue-ui-rating-BoBLJm55.js → vue-ui-rating-DKurps0a.js} +34 -34
- package/dist/vue-ui-relation-circle-aanEwlBG.js +924 -0
- package/dist/{vue-ui-ridgeline-q_UhtM4M.js → vue-ui-ridgeline-DS_llqb5.js} +219 -219
- package/dist/{vue-ui-rings-VOjUZu2b.js → vue-ui-rings-CILfFp-q.js} +36 -36
- package/dist/{vue-ui-scatter-DETMofE2.js → vue-ui-scatter-CQqdNOLR.js} +75 -75
- package/dist/{vue-ui-skeleton-D36VILNm.js → vue-ui-skeleton-DpjFm7_n.js} +42 -42
- package/dist/{vue-ui-smiley-CPbUSUTQ.js → vue-ui-smiley-BKQMu9Dw.js} +17 -17
- package/dist/{vue-ui-spark-trend-XpEbgNeK.js → vue-ui-spark-trend-xsg-hyHs.js} +92 -92
- package/dist/{vue-ui-sparkbar-Dq1hnBhL.js → vue-ui-sparkbar-BwpOy0xT.js} +78 -78
- package/dist/{vue-ui-sparkgauge-CbAakuhB.js → vue-ui-sparkgauge-DgTkRohs.js} +38 -38
- package/dist/vue-ui-sparkhistogram-D72VDOlh.js +560 -0
- package/dist/vue-ui-sparkline-WG-oYip8.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-OprYrGQQ.js → vue-ui-sparkstackbar-BqAeq4Lb.js} +162 -162
- package/dist/{vue-ui-stackbar-Bt0FKlf7.js → vue-ui-stackbar-CVIF37k7.js} +67 -67
- package/dist/vue-ui-stackline-DX1AYpur.js +2398 -0
- package/dist/{vue-ui-strip-plot-DdzflSOm.js → vue-ui-strip-plot--fR31p0x.js} +49 -49
- package/dist/{vue-ui-table-BZbLau0d.js → vue-ui-table-DSE4d-Dx.js} +87 -87
- package/dist/{vue-ui-table-heatmap-DX80uRHe.js → vue-ui-table-heatmap-DKE7y65s.js} +17 -17
- package/dist/vue-ui-table-sparkline-KOk0iH56.js +712 -0
- package/dist/vue-ui-thermometer-FQvSBV4T.js +763 -0
- package/dist/{vue-ui-timer-smc39MBP.js → vue-ui-timer-BsSpuP2_.js} +6 -6
- package/dist/{vue-ui-tiremarks-MwPUc9H4.js → vue-ui-tiremarks-f85yEqZh.js} +19 -19
- package/dist/vue-ui-treemap-DdSJEMp-.js +1587 -0
- package/dist/vue-ui-waffle-BHsayx6v.js +1362 -0
- package/dist/{vue-ui-wheel-VQ5Sc_Kt.js → vue-ui-wheel-DerItN6D.js} +51 -51
- package/dist/{vue-ui-word-cloud-BqsUdsCY.js → vue-ui-word-cloud-DV-qLV17.js} +27 -27
- package/dist/{vue-ui-world-Dq9I3omC.js → vue-ui-world-DhH-_2IC.js} +445 -445
- package/dist/{vue-ui-xy-BRITAMZZ.js → vue-ui-xy-CuAsNLLv.js} +162 -162
- package/dist/{vue-ui-xy-D4D9tjiY.js → vue-ui-xy-DMoj6Y3F.js} +537 -534
- package/dist/{vue-ui-xy-canvas-CYQF5hVa.js → vue-ui-xy-canvas-CrzY1ni9.js} +65 -65
- package/package.json +2 -2
- package/dist/exposedLib-BJbE_A8E.js +0 -19
- package/dist/vue-ui-3d-bar-BUEcrSrc.js +0 -1757
- package/dist/vue-ui-age-pyramid-Zw5otO78.js +0 -1238
- package/dist/vue-ui-carousel-table-CrmVyfym.js +0 -455
- package/dist/vue-ui-chestnut-BQq65pNh.js +0 -2010
- package/dist/vue-ui-chord-BA2jFRMP.js +0 -1391
- package/dist/vue-ui-donut-evolution-C6fXP7QH.js +0 -1510
- package/dist/vue-ui-dumbbell-1K5kOirf.js +0 -1530
- package/dist/vue-ui-funnel-CheSqvyj.js +0 -777
- package/dist/vue-ui-gauge-Cjtovl1s.js +0 -920
- package/dist/vue-ui-history-plot-PkrNUPpp.js +0 -1554
- package/dist/vue-ui-quadrant-C00cEk5o.js +0 -1978
- package/dist/vue-ui-radar-jNxRTIur.js +0 -1281
- package/dist/vue-ui-relation-circle-Ne_rI2jS.js +0 -924
- package/dist/vue-ui-sparkhistogram-DpPjIA7n.js +0 -560
- package/dist/vue-ui-sparkline-DLay6Hog.js +0 -1513
- package/dist/vue-ui-stackline-CrUTz-k1.js +0 -2398
- package/dist/vue-ui-table-sparkline-C3_J575b.js +0 -707
- package/dist/vue-ui-thermometer-Bo32hwAO.js +0 -763
- package/dist/vue-ui-treemap-BNG7Zc04.js +0 -1587
- package/dist/vue-ui-waffle-D-9Ny9vN.js +0 -1362
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { c as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { computed as
|
|
2
|
+
import { Et as t, Ft as n, G as r, H as i, Ut as a, X as ee, i as o, k as te, m as ne, t as re, v as s, xt as c } from "./lib-CXicicWN.js";
|
|
3
|
+
import { t as ie } from "./useConfig-C10cdg45.js";
|
|
4
|
+
import { n as ae, t as oe } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
+
import { t as l } from "./useNestedProp-APyFoLCQ.js";
|
|
6
|
+
import { t as se } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
+
import { t as u } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
|
+
import { c as ce } from "./canvas-lib-BOP_HS11.js";
|
|
9
|
+
import { t as le } from "./useResponsive-BfnK0KxU.js";
|
|
10
|
+
import { t as ue } from "./usePrefersMotion-BC-CsqR1.js";
|
|
11
|
+
import { t as de } from "./useFitSvgText-CT3nmlaS.js";
|
|
12
|
+
import { t as fe } from "./vue_ui_spark_trend-DxVmpkmC.js";
|
|
13
|
+
import { computed as d, createBlock as pe, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as me, defineAsyncComponent as he, nextTick as h, normalizeStyle as ge, onMounted as _e, openBlock as g, ref as _, renderSlot as v, toDisplayString as y, toRefs as ve, unref as b, watch as x } from "vue";
|
|
14
14
|
//#region src/components/vue-ui-spark-trend.vue
|
|
15
15
|
var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"], be = ["id"], xe = ["xmlns", "viewBox"], Se = ["width", "height"], Ce = ["id"], we = ["stop-color"], Te = ["stop-color"], Ee = { key: 1 }, De = ["d", "fill"], Oe = ["d", "fill"], ke = [
|
|
16
16
|
"d",
|
|
@@ -46,7 +46,7 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
46
46
|
"font-size",
|
|
47
47
|
"fill",
|
|
48
48
|
"font-weight"
|
|
49
|
-
], C = /*#__PURE__*/
|
|
49
|
+
], C = /*#__PURE__*/ u({
|
|
50
50
|
__name: "vue-ui-spark-trend",
|
|
51
51
|
props: {
|
|
52
52
|
config: {
|
|
@@ -63,7 +63,7 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
setup(e) {
|
|
66
|
-
let
|
|
66
|
+
let u = he(() => import("./PackageVersion-_Dwp4NUr.js").then((e) => e.t)), { vue_ui_spark_trend: S } = ie(), { isThemeValid: C, warnInvalidTheme: Le } = se(), w = ue(), T = e, E = _(null), Re = _(null), ze = _(null), D = _(null), O = _(null), k = _(!1), A = _(null), j = _(i()), M = _(I()), Be = d(() => a({
|
|
67
67
|
defaultConfig: { style: {
|
|
68
68
|
animation: { show: !1 },
|
|
69
69
|
backgroundColor: "#99999930",
|
|
@@ -78,7 +78,7 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
78
78
|
}
|
|
79
79
|
} },
|
|
80
80
|
userConfig: M.value.skeletonConfig ?? {}
|
|
81
|
-
})), { loading: N, FINAL_DATASET: P, manualLoading: F } =
|
|
81
|
+
})), { loading: N, FINAL_DATASET: P, manualLoading: F } = ae({
|
|
82
82
|
...ve(T),
|
|
83
83
|
FINAL_CONFIG: M,
|
|
84
84
|
prepareConfig: I,
|
|
@@ -96,28 +96,28 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
96
96
|
144,
|
|
97
97
|
233
|
|
98
98
|
],
|
|
99
|
-
skeletonConfig:
|
|
99
|
+
skeletonConfig: a({
|
|
100
100
|
defaultConfig: M.value,
|
|
101
101
|
userConfig: Be.value
|
|
102
102
|
})
|
|
103
103
|
});
|
|
104
104
|
function I() {
|
|
105
|
-
let e =
|
|
105
|
+
let e = l({
|
|
106
106
|
userConfig: T.config,
|
|
107
107
|
defaultConfig: S
|
|
108
108
|
}), t = e.theme;
|
|
109
109
|
if (!t) return e;
|
|
110
110
|
if (!C.value(e)) return Le(e), e;
|
|
111
|
-
let n =
|
|
112
|
-
userConfig:
|
|
111
|
+
let n = l({
|
|
112
|
+
userConfig: fe[t] || T.config,
|
|
113
113
|
defaultConfig: e
|
|
114
114
|
});
|
|
115
|
-
return
|
|
115
|
+
return l({
|
|
116
116
|
userConfig: T.config,
|
|
117
117
|
defaultConfig: n
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
let L =
|
|
120
|
+
let L = d(() => c({
|
|
121
121
|
data: P.value,
|
|
122
122
|
threshold: M.value.downsample.threshold
|
|
123
123
|
}));
|
|
@@ -125,9 +125,9 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
125
125
|
M.value = I(), H.value = M.value.style.width, U.value = M.value.style.height, V();
|
|
126
126
|
}, { deep: !0 });
|
|
127
127
|
function R(e) {
|
|
128
|
-
return e.map((e) =>
|
|
128
|
+
return e.map((e) => s(e));
|
|
129
129
|
}
|
|
130
|
-
let z = _(
|
|
130
|
+
let z = _(c({
|
|
131
131
|
data: P.value,
|
|
132
132
|
threshold: M.value.downsample.threshold
|
|
133
133
|
}).map((e) => M.value.style.animation.show && !w.value || [
|
|
@@ -143,14 +143,14 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
143
143
|
Infinity,
|
|
144
144
|
-Infinity,
|
|
145
145
|
null
|
|
146
|
-
].includes(e) && !Number.isNaN(e) ? e : null), B(),
|
|
146
|
+
].includes(e) && !Number.isNaN(e) ? e : null), B(), h(() => $(".vue-ui-sparktrend-progress-label", 6));
|
|
147
147
|
}, {
|
|
148
148
|
deep: !0,
|
|
149
149
|
immediate: !0
|
|
150
150
|
}), x(() => JSON.stringify(T.dataset), () => {
|
|
151
|
-
A.value &&= (cancelAnimationFrame(A.value), null), F.value =
|
|
151
|
+
A.value &&= (cancelAnimationFrame(A.value), null), F.value = t(T.dataset);
|
|
152
152
|
let e = L.value;
|
|
153
|
-
z.value = M.value.style.animation.show && !w.value ? Array(e.length).fill(null) : e.map((e) => Number.isFinite(e) ? e : null), B(),
|
|
153
|
+
z.value = M.value.style.animation.show && !w.value ? Array(e.length).fill(null) : e.map((e) => Number.isFinite(e) ? e : null), B(), h(() => $(".vue-ui-sparktrend-progress-label", 6));
|
|
154
154
|
}, {
|
|
155
155
|
deep: !1,
|
|
156
156
|
immediate: !0
|
|
@@ -171,15 +171,15 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
171
171
|
_e(() => {
|
|
172
172
|
V();
|
|
173
173
|
});
|
|
174
|
-
let Ve =
|
|
174
|
+
let Ve = d(() => M.value.debug);
|
|
175
175
|
function V() {
|
|
176
|
-
if (
|
|
176
|
+
if (t(T.dataset) && (ee({
|
|
177
177
|
componentName: "VueUiSparkTrend",
|
|
178
178
|
type: "dataset",
|
|
179
179
|
debug: Ve.value
|
|
180
|
-
}), F.value = !0),
|
|
181
|
-
let e =
|
|
182
|
-
let { width: e, height: t } =
|
|
180
|
+
}), F.value = !0), t(T.dataset) || (F.value = !1), M.value.responsive) {
|
|
181
|
+
let e = ce(() => {
|
|
182
|
+
let { width: e, height: t } = le({
|
|
183
183
|
chart: E.value,
|
|
184
184
|
source: ze.value
|
|
185
185
|
});
|
|
@@ -191,17 +191,17 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
191
191
|
}
|
|
192
192
|
B(), $(".vue-ui-sparktrend-progress-label", 6);
|
|
193
193
|
}
|
|
194
|
-
let H = _(M.value.style.width), U = _(M.value.style.height), W =
|
|
194
|
+
let H = _(M.value.style.width), U = _(M.value.style.height), W = d(() => ({
|
|
195
195
|
height: U.value,
|
|
196
196
|
width: H.value
|
|
197
|
-
})), G =
|
|
197
|
+
})), G = d(() => ({
|
|
198
198
|
top: M.value.style.padding.top,
|
|
199
199
|
left: M.value.style.padding.left,
|
|
200
200
|
right: W.value.width - M.value.style.padding.right,
|
|
201
201
|
bottom: W.value.height - M.value.style.padding.bottom,
|
|
202
202
|
height: W.value.height - (M.value.style.padding.top + M.value.style.padding.bottom) - (M.value.style.dataLabel.show ? M.value.style.dataLabel.fontSize : 0),
|
|
203
203
|
width: W.value.width - (M.value.style.padding.left + M.value.style.padding.right)
|
|
204
|
-
})), K =
|
|
204
|
+
})), K = d(() => {
|
|
205
205
|
let e = R(L.value).filter(Number.isFinite);
|
|
206
206
|
if (!e.length) return {
|
|
207
207
|
max: 0,
|
|
@@ -216,7 +216,7 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
216
216
|
max: t,
|
|
217
217
|
min: n
|
|
218
218
|
};
|
|
219
|
-
}), He =
|
|
219
|
+
}), He = d(() => {
|
|
220
220
|
let e = L.value, t = e.length ? e[e.length - 1] : "x";
|
|
221
221
|
return [
|
|
222
222
|
j.value,
|
|
@@ -225,14 +225,14 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
225
225
|
M.value.downsample.threshold,
|
|
226
226
|
M.value.style.line.smooth ? "s" : "l"
|
|
227
227
|
].join("-");
|
|
228
|
-
}), q =
|
|
228
|
+
}), q = d(() => {
|
|
229
229
|
let e = K.value.min >= 0 ? 0 : K.value.min;
|
|
230
230
|
return Math.abs(e);
|
|
231
|
-
}), Ue =
|
|
231
|
+
}), Ue = d(() => K.value.max + q.value);
|
|
232
232
|
function We(e) {
|
|
233
233
|
return e / Ue.value;
|
|
234
234
|
}
|
|
235
|
-
let Ge =
|
|
235
|
+
let Ge = d(() => L.value.length), J = d(() => z.value.map((e, t) => {
|
|
236
236
|
let n = isNaN(e) || [
|
|
237
237
|
void 0,
|
|
238
238
|
null,
|
|
@@ -242,17 +242,17 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
242
242
|
-Infinity
|
|
243
243
|
].includes(e) ? 0 : e || 0;
|
|
244
244
|
return {
|
|
245
|
-
value:
|
|
246
|
-
absoluteValue:
|
|
247
|
-
plotValue:
|
|
245
|
+
value: s(e),
|
|
246
|
+
absoluteValue: s(n),
|
|
247
|
+
plotValue: s(n + q.value),
|
|
248
248
|
toMax: We(n + q.value),
|
|
249
|
-
x: G.value.left +
|
|
250
|
-
y: G.value.bottom -
|
|
249
|
+
x: G.value.left + s(t * (G.value.width / (Ge.value - 1))) - M.value.style.padding.right,
|
|
250
|
+
y: G.value.bottom - s(G.value.height * We(n + q.value))
|
|
251
251
|
};
|
|
252
|
-
})), Y =
|
|
252
|
+
})), Y = d(() => {
|
|
253
253
|
let e = R(L.value);
|
|
254
|
-
return M.value.style.trendLabel.trendType === "global" ?
|
|
255
|
-
}), X =
|
|
254
|
+
return M.value.style.trendLabel.trendType === "global" ? ne(e) : M.value.style.trendLabel.trendType === "n-1" && e.length > 1 ? (e.at(-1) / e.at(-2) - 1) * 100 : M.value.style.trendLabel.trendType === "lastToFirst" ? (e.at(-1) / e[0] - 1) * 100 : 0;
|
|
255
|
+
}), X = d(() => k.value || Y.value === 0 ? "neutral" : Y.value > 0 ? "positive" : "negative"), Z = d(() => M.value.style.arrow.colors[X.value]), Ke = d(() => {
|
|
256
256
|
let e = {
|
|
257
257
|
x: J.value[0].x,
|
|
258
258
|
y: W.value.height - 6
|
|
@@ -269,31 +269,31 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
269
269
|
t.x,
|
|
270
270
|
t.y
|
|
271
271
|
].toString();
|
|
272
|
-
}), qe =
|
|
272
|
+
}), qe = d(() => {
|
|
273
273
|
let e = [];
|
|
274
274
|
return J.value.forEach((t) => {
|
|
275
275
|
e.push(`${t.x},${t.y} `);
|
|
276
276
|
}), `M ${e.toString()}`;
|
|
277
|
-
}), Q =
|
|
277
|
+
}), Q = d(() => U.value / 2 - M.value.style.trendLabel.fontSize), { fitText: $ } = de({
|
|
278
278
|
svgRef: Re,
|
|
279
|
-
unitWidth:
|
|
279
|
+
unitWidth: d(() => G.value.left * .8),
|
|
280
280
|
fontSize: M.value.style.trendLabel.fontSize
|
|
281
|
-
}), Je =
|
|
281
|
+
}), Je = d(() => {
|
|
282
282
|
if (N.value || k.value) return "Trend chart loading";
|
|
283
|
-
let e = J.value?.at(-1),
|
|
283
|
+
let e = J.value?.at(-1), t = e?.value, n = r({
|
|
284
284
|
p: Y.value > 0 ? "+" : "",
|
|
285
285
|
v: Y.value,
|
|
286
286
|
s: "%",
|
|
287
287
|
r: M.value.style.trendLabel.rounding
|
|
288
|
-
}), i =
|
|
288
|
+
}), i = t == null ? "not available" : o(M.value.style.dataLabel.formatter, t, r({
|
|
289
289
|
p: M.value.style.dataLabel.prefix,
|
|
290
|
-
v:
|
|
290
|
+
v: t,
|
|
291
291
|
s: M.value.style.dataLabel.suffix,
|
|
292
292
|
r: M.value.style.dataLabel.rounding
|
|
293
293
|
}), { datapoint: e });
|
|
294
|
-
return `Progression ${X.value === "positive" ? `up ${
|
|
295
|
-
}), Ye =
|
|
296
|
-
return (e,
|
|
294
|
+
return `Progression ${X.value === "positive" ? `up ${n}` : X.value === "negative" ? `down ${n}` : `stable at ${n}`}. Last value ${i}.`;
|
|
295
|
+
}), Ye = d(() => `sparktrend-a11y-${j.value}`);
|
|
296
|
+
return (e, t) => (g(), p("div", {
|
|
297
297
|
ref_key: "sparkTrendChart",
|
|
298
298
|
ref: E,
|
|
299
299
|
class: "vue-data-ui-component vue-ui-spark-trend",
|
|
@@ -302,63 +302,63 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
302
302
|
role: "img",
|
|
303
303
|
"aria-describedby": Ye.value
|
|
304
304
|
}, [
|
|
305
|
-
|
|
305
|
+
m("p", {
|
|
306
306
|
id: Ye.value,
|
|
307
307
|
class: "sr-only",
|
|
308
308
|
"aria-live": "polite"
|
|
309
309
|
}, y(Je.value), 9, be),
|
|
310
|
-
(g(),
|
|
310
|
+
(g(), p("svg", {
|
|
311
311
|
key: He.value,
|
|
312
312
|
ref_key: "svgRef",
|
|
313
313
|
ref: Re,
|
|
314
|
-
xmlns: b(
|
|
314
|
+
xmlns: b(re),
|
|
315
315
|
viewBox: `0 0 ${W.value.width} ${W.value.height}`,
|
|
316
316
|
style: "width:100%;background:transparent;overflow:visible",
|
|
317
317
|
"aria-hidden": "true"
|
|
318
318
|
}, [
|
|
319
|
-
|
|
320
|
-
e.$slots["chart-background"] ? (g(),
|
|
319
|
+
me(b(u)),
|
|
320
|
+
e.$slots["chart-background"] ? (g(), p("foreignObject", {
|
|
321
321
|
key: 0,
|
|
322
322
|
x: 0,
|
|
323
323
|
y: 0,
|
|
324
324
|
width: W.value.width <= 0 ? 10 : W.value.width,
|
|
325
325
|
height: W.value.height <= 0 ? 10 : W.value.height,
|
|
326
326
|
style: { pointerEvents: "none" }
|
|
327
|
-
}, [v(e.$slots, "chart-background", {}, void 0, !0)], 8, Se)) :
|
|
328
|
-
|
|
327
|
+
}, [v(e.$slots, "chart-background", {}, void 0, !0)], 8, Se)) : f("", !0),
|
|
328
|
+
m("defs", null, [m("linearGradient", {
|
|
329
329
|
x1: "0%",
|
|
330
330
|
y1: "0%",
|
|
331
331
|
x2: "0%",
|
|
332
332
|
y2: "100%",
|
|
333
333
|
id: `pill_gradient_${j.value}`
|
|
334
|
-
}, [
|
|
334
|
+
}, [m("stop", {
|
|
335
335
|
offset: "0%",
|
|
336
|
-
"stop-color": b(
|
|
337
|
-
}, null, 8, we),
|
|
336
|
+
"stop-color": b(n)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity)
|
|
337
|
+
}, null, 8, we), m("stop", {
|
|
338
338
|
offset: "100%",
|
|
339
339
|
"stop-color": M.value.style.backgroundColor
|
|
340
340
|
}, null, 8, Te)], 8, Ce)]),
|
|
341
|
-
M.value.style.area.show && J.value[0] ? (g(),
|
|
341
|
+
M.value.style.area.show && J.value[0] ? (g(), p("g", Ee, [M.value.style.line.smooth ? (g(), p("path", {
|
|
342
342
|
key: 0,
|
|
343
|
-
d: `M ${J.value[0].x},${G.value.bottom} ${b(
|
|
344
|
-
fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : b(
|
|
343
|
+
d: `M ${J.value[0].x},${G.value.bottom} ${b(te)(J.value)} L ${J.value.at(-1).x},${G.value.bottom} Z`,
|
|
344
|
+
fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : b(n)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity),
|
|
345
345
|
stroke: "none"
|
|
346
|
-
}, null, 8, De)) : (g(),
|
|
346
|
+
}, null, 8, De)) : (g(), p("path", {
|
|
347
347
|
key: 1,
|
|
348
348
|
d: `M${Ke.value}Z`,
|
|
349
|
-
fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : b(
|
|
349
|
+
fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : b(n)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity),
|
|
350
350
|
stroke: "none"
|
|
351
|
-
}, null, 8, Oe))])) :
|
|
352
|
-
M.value.style.line.smooth && J.value.length ? (g(),
|
|
351
|
+
}, null, 8, Oe))])) : f("", !0),
|
|
352
|
+
M.value.style.line.smooth && J.value.length ? (g(), p("path", {
|
|
353
353
|
key: 2,
|
|
354
|
-
d: `M ${b(
|
|
354
|
+
d: `M ${b(te)(J.value)}`,
|
|
355
355
|
stroke: M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke,
|
|
356
356
|
fill: "none",
|
|
357
357
|
"stroke-width": M.value.style.line.strokeWidth,
|
|
358
358
|
"stroke-linecap": M.value.style.line.strokeLinecap,
|
|
359
359
|
"stroke-linejoin": M.value.style.line.strokeLinejoin
|
|
360
|
-
}, null, 8, ke)) :
|
|
361
|
-
!M.value.style.line.smooth && J.value.length ? (g(),
|
|
360
|
+
}, null, 8, ke)) : f("", !0),
|
|
361
|
+
!M.value.style.line.smooth && J.value.length ? (g(), p("path", {
|
|
362
362
|
key: 3,
|
|
363
363
|
d: qe.value,
|
|
364
364
|
stroke: M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke,
|
|
@@ -366,17 +366,17 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
366
366
|
"stroke-width": M.value.style.line.strokeWidth,
|
|
367
367
|
"stroke-linecap": M.value.style.line.strokeLinecap,
|
|
368
368
|
"stroke-linejoin": M.value.style.line.strokeLinejoin
|
|
369
|
-
}, null, 8, Ae)) :
|
|
370
|
-
b(N) ? (g(),
|
|
369
|
+
}, null, 8, Ae)) : f("", !0),
|
|
370
|
+
b(N) ? (g(), p("path", {
|
|
371
371
|
key: 4,
|
|
372
372
|
fill: "#6A6A6A",
|
|
373
373
|
d: `M ${G.value.left / 2 + 6}, ${Q.value + 7} ${G.value.left / 2 - 7}, ${Q.value} ${G.value.left / 2 - 7}, ${Q.value + 14} Z`
|
|
374
|
-
}, null, 8, je)) : (g(),
|
|
374
|
+
}, null, 8, je)) : (g(), p("path", {
|
|
375
375
|
key: 5,
|
|
376
376
|
fill: Z.value,
|
|
377
377
|
d: X.value === "positive" ? `M ${G.value.left / 2}, ${Q.value} ${G.value.left / 2 - 7}, ${Q.value + 12} ${G.value.left / 2 + 7}, ${Q.value + 12} Z` : X.value === "negative" ? `M ${G.value.left / 2}, ${Q.value + 12} ${G.value.left / 2 - 7}, ${Q.value} ${G.value.left / 2 + 7}, ${Q.value} Z` : `M ${G.value.left / 2 + 6}, ${Q.value + 7} ${G.value.left / 2 - 7}, ${Q.value} ${G.value.left / 2 - 7}, ${Q.value + 14} Z`
|
|
378
378
|
}, null, 8, Me)),
|
|
379
|
-
b(N) ? (g(),
|
|
379
|
+
b(N) ? (g(), p("rect", {
|
|
380
380
|
key: 6,
|
|
381
381
|
x: G.value.left / 2 - M.value.style.trendLabel.fontSize - 2,
|
|
382
382
|
y: U.value / 2 + M.value.style.trendLabel.fontSize - 2,
|
|
@@ -384,8 +384,8 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
384
384
|
height: M.value.style.trendLabel.fontSize,
|
|
385
385
|
fill: "#6A6A6A80",
|
|
386
386
|
rx: "3"
|
|
387
|
-
}, null, 8, Ne)) :
|
|
388
|
-
!k.value && !b(N) ? (g(),
|
|
387
|
+
}, null, 8, Ne)) : f("", !0),
|
|
388
|
+
!k.value && !b(N) ? (g(), p("text", {
|
|
389
389
|
key: 7,
|
|
390
390
|
class: "vue-ui-sparktrend-progress-label",
|
|
391
391
|
x: G.value.left / 2,
|
|
@@ -394,13 +394,13 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
394
394
|
fill: M.value.style.trendLabel.useColorTrend ? Z.value : M.value.style.trendLabel.color,
|
|
395
395
|
"font-size": M.value.style.trendLabel.fontSize,
|
|
396
396
|
"font-weight": M.value.style.trendLabel.bold ? "bold" : "normal"
|
|
397
|
-
}, y(b(
|
|
397
|
+
}, y(b(r)({
|
|
398
398
|
p: Y.value > 0 ? "+" : "",
|
|
399
399
|
v: Y.value,
|
|
400
400
|
s: "%",
|
|
401
401
|
r: M.value.style.trendLabel.rounding
|
|
402
|
-
})), 9, Pe)) :
|
|
403
|
-
J.value.length && J.value.at(-1).x !== void 0 ? (g(),
|
|
402
|
+
})), 9, Pe)) : f("", !0),
|
|
403
|
+
J.value.length && J.value.at(-1).x !== void 0 ? (g(), p("circle", {
|
|
404
404
|
key: 8,
|
|
405
405
|
stroke: M.value.style.backgroundColor,
|
|
406
406
|
"stroke-width": 2,
|
|
@@ -408,8 +408,8 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
408
408
|
cy: J.value.at(-1).y,
|
|
409
409
|
r: 4,
|
|
410
410
|
fill: b(N) ? "#6A6A6A" : Z.value
|
|
411
|
-
}, null, 8, Fe)) :
|
|
412
|
-
J.value.length && J.value.at(-1).x !== void 0 && M.value.style.dataLabel.show ? (g(),
|
|
411
|
+
}, null, 8, Fe)) : f("", !0),
|
|
412
|
+
J.value.length && J.value.at(-1).x !== void 0 && M.value.style.dataLabel.show ? (g(), p("text", {
|
|
413
413
|
key: 9,
|
|
414
414
|
"text-anchor": "middle",
|
|
415
415
|
x: J.value.at(-1).x,
|
|
@@ -417,20 +417,20 @@ var S = /* @__PURE__ */ e({ default: () => C }), ye = ["id", "aria-describedby"]
|
|
|
417
417
|
"font-size": M.value.style.dataLabel.fontSize,
|
|
418
418
|
fill: M.value.style.dataLabel.useColorTrend ? Z.value : M.value.style.dataLabel.color,
|
|
419
419
|
"font-weight": M.value.style.dataLabel.bold ? "bold" : "normal"
|
|
420
|
-
}, y(b(
|
|
420
|
+
}, y(b(o)(M.value.style.dataLabel.formatter, J.value.at(-1).value, b(r)({
|
|
421
421
|
p: M.value.style.dataLabel.prefix,
|
|
422
422
|
v: J.value.at(-1).value,
|
|
423
423
|
s: M.value.style.dataLabel.suffix,
|
|
424
424
|
r: M.value.style.dataLabel.rounding
|
|
425
|
-
}), { datapoint: J.value.at(-1) })), 9, Ie)) :
|
|
425
|
+
}), { datapoint: J.value.at(-1) })), 9, Ie)) : f("", !0)
|
|
426
426
|
], 8, xe)),
|
|
427
|
-
e.$slots.source ? (g(),
|
|
427
|
+
e.$slots.source ? (g(), p("div", {
|
|
428
428
|
key: 0,
|
|
429
429
|
ref_key: "source",
|
|
430
430
|
ref: ze,
|
|
431
431
|
dir: "auto"
|
|
432
|
-
}, [v(e.$slots, "source", {}, void 0, !0)], 512)) :
|
|
433
|
-
v(e.$slots, "skeleton", {}, () => [b(N) ? (g(),
|
|
432
|
+
}, [v(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
433
|
+
v(e.$slots, "skeleton", {}, () => [b(N) ? (g(), pe(oe, { key: 0 })) : f("", !0)], !0)
|
|
434
434
|
], 12, ye));
|
|
435
435
|
}
|
|
436
436
|
}, [["__scopeId", "data-v-90a4c498"]]);
|