vue-data-ui 3.22.7 → 3.22.9
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-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-Av7Uxq5V.js} +2 -2
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-trvJ26nz.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-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-ByOT60IK.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.js} +20 -20
- 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/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-ub3fCh6P.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
- package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
- package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
- package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
- package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
- package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
- package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
- package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule--kK1JfnP.js +931 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
- package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
- package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
- package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
- package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
- package/dist/vue-ui-rings-J990vNbX.js +1252 -0
- package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
- package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
- package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
- package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
- package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
- package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
- package/package.json +1 -1
- package/dist/BaseIcon-_-BX7be3.js +0 -502
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
- package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
- package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
- package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
- package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
- package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -1,438 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Ct as t, Gt as n, Lt as r, Ot as i, Q as a, W as ee, i as o, j as te, m as ne, q as s, t as re, v as c } from "./lib-EAmk-PgA.js";
|
|
3
|
-
import { t as ie } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { n as ae, t as oe } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
-
import { t as l } from "./useNestedProp-D8XqxgOU.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
|
-
//#region src/components/vue-ui-spark-trend.vue
|
|
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
|
-
"d",
|
|
17
|
-
"stroke",
|
|
18
|
-
"stroke-width",
|
|
19
|
-
"stroke-linecap",
|
|
20
|
-
"stroke-linejoin"
|
|
21
|
-
], Ae = [
|
|
22
|
-
"d",
|
|
23
|
-
"stroke",
|
|
24
|
-
"stroke-width",
|
|
25
|
-
"stroke-linecap",
|
|
26
|
-
"stroke-linejoin"
|
|
27
|
-
], je = ["d"], Me = ["fill", "d"], Ne = [
|
|
28
|
-
"x",
|
|
29
|
-
"y",
|
|
30
|
-
"width",
|
|
31
|
-
"height"
|
|
32
|
-
], Pe = [
|
|
33
|
-
"x",
|
|
34
|
-
"y",
|
|
35
|
-
"fill",
|
|
36
|
-
"font-size",
|
|
37
|
-
"font-weight"
|
|
38
|
-
], Fe = [
|
|
39
|
-
"stroke",
|
|
40
|
-
"cx",
|
|
41
|
-
"cy",
|
|
42
|
-
"fill"
|
|
43
|
-
], Ie = [
|
|
44
|
-
"x",
|
|
45
|
-
"y",
|
|
46
|
-
"font-size",
|
|
47
|
-
"fill",
|
|
48
|
-
"font-weight"
|
|
49
|
-
], C = /*#__PURE__*/ u({
|
|
50
|
-
__name: "vue-ui-spark-trend",
|
|
51
|
-
props: {
|
|
52
|
-
config: {
|
|
53
|
-
type: Object,
|
|
54
|
-
default() {
|
|
55
|
-
return {};
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
dataset: {
|
|
59
|
-
type: Array,
|
|
60
|
-
default() {
|
|
61
|
-
return [];
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
setup(e) {
|
|
66
|
-
let u = he(() => import("./PackageVersion-Dse0n05o.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 = _(ee()), M = _(I()), Be = d(() => n({
|
|
67
|
-
defaultConfig: { style: {
|
|
68
|
-
animation: { show: !1 },
|
|
69
|
-
backgroundColor: "#99999930",
|
|
70
|
-
line: {
|
|
71
|
-
stroke: "#6A6A6A",
|
|
72
|
-
useColorTrend: !1
|
|
73
|
-
},
|
|
74
|
-
dataLabel: {
|
|
75
|
-
show: !1,
|
|
76
|
-
useColorTrend: !1,
|
|
77
|
-
color: "#6A6A6A"
|
|
78
|
-
}
|
|
79
|
-
} },
|
|
80
|
-
userConfig: M.value.skeletonConfig ?? {}
|
|
81
|
-
})), { loading: N, FINAL_DATASET: P, manualLoading: F } = ae({
|
|
82
|
-
...ve(T),
|
|
83
|
-
FINAL_CONFIG: M,
|
|
84
|
-
prepareConfig: I,
|
|
85
|
-
skeletonDataset: T.config?.skeletonDataset ?? [
|
|
86
|
-
1,
|
|
87
|
-
2,
|
|
88
|
-
3,
|
|
89
|
-
5,
|
|
90
|
-
8,
|
|
91
|
-
13,
|
|
92
|
-
21,
|
|
93
|
-
34,
|
|
94
|
-
55,
|
|
95
|
-
89,
|
|
96
|
-
144,
|
|
97
|
-
233
|
|
98
|
-
],
|
|
99
|
-
skeletonConfig: n({
|
|
100
|
-
defaultConfig: M.value,
|
|
101
|
-
userConfig: Be.value
|
|
102
|
-
})
|
|
103
|
-
});
|
|
104
|
-
function I() {
|
|
105
|
-
let e = l({
|
|
106
|
-
userConfig: T.config,
|
|
107
|
-
defaultConfig: S
|
|
108
|
-
}), t = e.theme;
|
|
109
|
-
if (!t) return e;
|
|
110
|
-
if (!C.value(e)) return Le(e), e;
|
|
111
|
-
let n = l({
|
|
112
|
-
userConfig: fe[t] || T.config,
|
|
113
|
-
defaultConfig: e
|
|
114
|
-
});
|
|
115
|
-
return l({
|
|
116
|
-
userConfig: T.config,
|
|
117
|
-
defaultConfig: n
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
let L = d(() => t({
|
|
121
|
-
data: P.value,
|
|
122
|
-
threshold: M.value.downsample.threshold
|
|
123
|
-
}));
|
|
124
|
-
x(() => T.config, (e) => {
|
|
125
|
-
M.value = I(), H.value = M.value.style.width, U.value = M.value.style.height, V();
|
|
126
|
-
}, { deep: !0 });
|
|
127
|
-
function R(e) {
|
|
128
|
-
return e.map((e) => c(e));
|
|
129
|
-
}
|
|
130
|
-
let z = _(t({
|
|
131
|
-
data: P.value,
|
|
132
|
-
threshold: M.value.downsample.threshold
|
|
133
|
-
}).map((e) => M.value.style.animation.show && !w.value || [
|
|
134
|
-
void 0,
|
|
135
|
-
Infinity,
|
|
136
|
-
-Infinity,
|
|
137
|
-
null,
|
|
138
|
-
NaN
|
|
139
|
-
].includes(e) ? null : e));
|
|
140
|
-
x(L, (e) => {
|
|
141
|
-
A.value &&= (cancelAnimationFrame(A.value), null), M.value.style.animation.show && !w.value ? z.value = Array(e.length).fill(null) : z.value = e.map((e) => ![
|
|
142
|
-
void 0,
|
|
143
|
-
Infinity,
|
|
144
|
-
-Infinity,
|
|
145
|
-
null
|
|
146
|
-
].includes(e) && !Number.isNaN(e) ? e : null), B(), h(() => $(".vue-ui-sparktrend-progress-label", 6));
|
|
147
|
-
}, {
|
|
148
|
-
deep: !0,
|
|
149
|
-
immediate: !0
|
|
150
|
-
}), x(() => JSON.stringify(T.dataset), () => {
|
|
151
|
-
A.value &&= (cancelAnimationFrame(A.value), null), F.value = i(T.dataset);
|
|
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(), h(() => $(".vue-ui-sparktrend-progress-label", 6));
|
|
154
|
-
}, {
|
|
155
|
-
deep: !1,
|
|
156
|
-
immediate: !0
|
|
157
|
-
});
|
|
158
|
-
function B() {
|
|
159
|
-
let e = 1e3 / M.value.style.animation.animationFrames, t = performance.now();
|
|
160
|
-
if (!N.value && M.value.style.animation.show && !w.value && M.value.style.animation.animationFrames && P.value.length > 1) {
|
|
161
|
-
z.value = [];
|
|
162
|
-
let n = 0;
|
|
163
|
-
function r() {
|
|
164
|
-
k.value = !0;
|
|
165
|
-
let i = performance.now(), a = i - t;
|
|
166
|
-
a > e ? (t = i - a % e, n < L.value.length ? (z.value.push(L.value[n]), n += 1, A.value = requestAnimationFrame(r)) : (cancelAnimationFrame(A.value), z.value = R(L.value), k.value = !1, $(".vue-ui-sparktrend-progress-label", 6))) : A.value = requestAnimationFrame(r);
|
|
167
|
-
}
|
|
168
|
-
r();
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
_e(() => {
|
|
172
|
-
V();
|
|
173
|
-
});
|
|
174
|
-
let Ve = d(() => M.value.debug);
|
|
175
|
-
function V() {
|
|
176
|
-
if (i(T.dataset) && (a({
|
|
177
|
-
componentName: "VueUiSparkTrend",
|
|
178
|
-
type: "dataset",
|
|
179
|
-
debug: Ve.value
|
|
180
|
-
}), F.value = !0), i(T.dataset) || (F.value = !1), M.value.responsive) {
|
|
181
|
-
let e = ce(() => {
|
|
182
|
-
let { width: e, height: t } = le({
|
|
183
|
-
chart: E.value,
|
|
184
|
-
source: ze.value
|
|
185
|
-
});
|
|
186
|
-
requestAnimationFrame(() => {
|
|
187
|
-
H.value = e, U.value = t;
|
|
188
|
-
});
|
|
189
|
-
});
|
|
190
|
-
D.value && (O.value && D.value.unobserve(O.value), D.value.disconnect()), D.value = new ResizeObserver(e), O.value = E.value.parentNode, D.value.observe(O.value);
|
|
191
|
-
}
|
|
192
|
-
B(), $(".vue-ui-sparktrend-progress-label", 6);
|
|
193
|
-
}
|
|
194
|
-
let H = _(M.value.style.width), U = _(M.value.style.height), W = d(() => ({
|
|
195
|
-
height: U.value,
|
|
196
|
-
width: H.value
|
|
197
|
-
})), G = d(() => ({
|
|
198
|
-
top: M.value.style.padding.top,
|
|
199
|
-
left: M.value.style.padding.left,
|
|
200
|
-
right: W.value.width - M.value.style.padding.right,
|
|
201
|
-
bottom: W.value.height - M.value.style.padding.bottom,
|
|
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
|
-
width: W.value.width - (M.value.style.padding.left + M.value.style.padding.right)
|
|
204
|
-
})), K = d(() => {
|
|
205
|
-
let e = R(L.value).filter(Number.isFinite);
|
|
206
|
-
if (!e.length) return {
|
|
207
|
-
max: 0,
|
|
208
|
-
min: 0
|
|
209
|
-
};
|
|
210
|
-
let t = e[0], n = e[0];
|
|
211
|
-
for (let r = 1; r < e.length; r++) {
|
|
212
|
-
let i = e[r];
|
|
213
|
-
i > t && (t = i), i < n && (n = i);
|
|
214
|
-
}
|
|
215
|
-
return {
|
|
216
|
-
max: t,
|
|
217
|
-
min: n
|
|
218
|
-
};
|
|
219
|
-
}), He = d(() => {
|
|
220
|
-
let e = L.value, t = e.length ? e[e.length - 1] : "x";
|
|
221
|
-
return [
|
|
222
|
-
j.value,
|
|
223
|
-
e.length,
|
|
224
|
-
Number.isFinite(t) ? t : "x",
|
|
225
|
-
M.value.downsample.threshold,
|
|
226
|
-
M.value.style.line.smooth ? "s" : "l"
|
|
227
|
-
].join("-");
|
|
228
|
-
}), q = d(() => {
|
|
229
|
-
let e = K.value.min >= 0 ? 0 : K.value.min;
|
|
230
|
-
return Math.abs(e);
|
|
231
|
-
}), Ue = d(() => K.value.max + q.value);
|
|
232
|
-
function We(e) {
|
|
233
|
-
return e / Ue.value;
|
|
234
|
-
}
|
|
235
|
-
let Ge = d(() => L.value.length), J = d(() => z.value.map((e, t) => {
|
|
236
|
-
let n = isNaN(e) || [
|
|
237
|
-
void 0,
|
|
238
|
-
null,
|
|
239
|
-
"NaN",
|
|
240
|
-
NaN,
|
|
241
|
-
Infinity,
|
|
242
|
-
-Infinity
|
|
243
|
-
].includes(e) ? 0 : e || 0;
|
|
244
|
-
return {
|
|
245
|
-
value: c(e),
|
|
246
|
-
absoluteValue: c(n),
|
|
247
|
-
plotValue: c(n + q.value),
|
|
248
|
-
toMax: We(n + q.value),
|
|
249
|
-
x: G.value.left + c(t * (G.value.width / (Ge.value - 1))) - M.value.style.padding.right,
|
|
250
|
-
y: G.value.bottom - c(G.value.height * We(n + q.value))
|
|
251
|
-
};
|
|
252
|
-
})), Y = d(() => {
|
|
253
|
-
let e = R(L.value);
|
|
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
|
-
let e = {
|
|
257
|
-
x: J.value[0].x,
|
|
258
|
-
y: W.value.height - 6
|
|
259
|
-
}, t = {
|
|
260
|
-
x: J.value[J.value.length - 1].x,
|
|
261
|
-
y: W.value.height - 6
|
|
262
|
-
}, n = [];
|
|
263
|
-
return J.value.forEach((e) => {
|
|
264
|
-
n.push(`${e.x},${e.y} `);
|
|
265
|
-
}), [
|
|
266
|
-
e.x,
|
|
267
|
-
e.y,
|
|
268
|
-
...n,
|
|
269
|
-
t.x,
|
|
270
|
-
t.y
|
|
271
|
-
].toString();
|
|
272
|
-
}), qe = d(() => {
|
|
273
|
-
let e = [];
|
|
274
|
-
return J.value.forEach((t) => {
|
|
275
|
-
e.push(`${t.x},${t.y} `);
|
|
276
|
-
}), `M ${e.toString()}`;
|
|
277
|
-
}), Q = d(() => U.value / 2 - M.value.style.trendLabel.fontSize), { fitText: $ } = de({
|
|
278
|
-
svgRef: Re,
|
|
279
|
-
unitWidth: d(() => G.value.left * .8),
|
|
280
|
-
fontSize: M.value.style.trendLabel.fontSize
|
|
281
|
-
}), Je = d(() => {
|
|
282
|
-
if (N.value || k.value) return "Trend chart loading";
|
|
283
|
-
let e = J.value?.at(-1), t = e?.value, n = s({
|
|
284
|
-
p: Y.value > 0 ? "+" : "",
|
|
285
|
-
v: Y.value,
|
|
286
|
-
s: "%",
|
|
287
|
-
r: M.value.style.trendLabel.rounding
|
|
288
|
-
}), r = t == null ? "not available" : o(M.value.style.dataLabel.formatter, t, s({
|
|
289
|
-
p: M.value.style.dataLabel.prefix,
|
|
290
|
-
v: t,
|
|
291
|
-
s: M.value.style.dataLabel.suffix,
|
|
292
|
-
r: M.value.style.dataLabel.rounding
|
|
293
|
-
}), { datapoint: e });
|
|
294
|
-
return `Progression ${X.value === "positive" ? `up ${n}` : X.value === "negative" ? `down ${n}` : `stable at ${n}`}. Last value ${r}.`;
|
|
295
|
-
}), Ye = d(() => `sparktrend-a11y-${j.value}`);
|
|
296
|
-
return (e, t) => (g(), p("div", {
|
|
297
|
-
ref_key: "sparkTrendChart",
|
|
298
|
-
ref: E,
|
|
299
|
-
class: "vue-data-ui-component vue-ui-spark-trend",
|
|
300
|
-
id: j.value,
|
|
301
|
-
style: ge(`width:100%;font-family:${M.value.style.fontFamily};background:${M.value.style.backgroundColor}`),
|
|
302
|
-
role: "img",
|
|
303
|
-
"aria-describedby": Ye.value
|
|
304
|
-
}, [
|
|
305
|
-
m("p", {
|
|
306
|
-
id: Ye.value,
|
|
307
|
-
class: "sr-only",
|
|
308
|
-
"aria-live": "polite"
|
|
309
|
-
}, y(Je.value), 9, be),
|
|
310
|
-
(g(), p("svg", {
|
|
311
|
-
key: He.value,
|
|
312
|
-
ref_key: "svgRef",
|
|
313
|
-
ref: Re,
|
|
314
|
-
xmlns: b(re),
|
|
315
|
-
viewBox: `0 0 ${W.value.width} ${W.value.height}`,
|
|
316
|
-
style: "width:100%;background:transparent;overflow:visible",
|
|
317
|
-
"aria-hidden": "true"
|
|
318
|
-
}, [
|
|
319
|
-
me(b(u)),
|
|
320
|
-
e.$slots["chart-background"] ? (g(), p("foreignObject", {
|
|
321
|
-
key: 0,
|
|
322
|
-
x: 0,
|
|
323
|
-
y: 0,
|
|
324
|
-
width: W.value.width <= 0 ? 10 : W.value.width,
|
|
325
|
-
height: W.value.height <= 0 ? 10 : W.value.height,
|
|
326
|
-
style: { pointerEvents: "none" }
|
|
327
|
-
}, [v(e.$slots, "chart-background", {}, void 0, !0)], 8, Se)) : f("", !0),
|
|
328
|
-
m("defs", null, [m("linearGradient", {
|
|
329
|
-
x1: "0%",
|
|
330
|
-
y1: "0%",
|
|
331
|
-
x2: "0%",
|
|
332
|
-
y2: "100%",
|
|
333
|
-
id: `pill_gradient_${j.value}`
|
|
334
|
-
}, [m("stop", {
|
|
335
|
-
offset: "0%",
|
|
336
|
-
"stop-color": b(r)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity)
|
|
337
|
-
}, null, 8, we), m("stop", {
|
|
338
|
-
offset: "100%",
|
|
339
|
-
"stop-color": M.value.style.backgroundColor
|
|
340
|
-
}, null, 8, Te)], 8, Ce)]),
|
|
341
|
-
M.value.style.area.show && J.value[0] ? (g(), p("g", Ee, [M.value.style.line.smooth ? (g(), p("path", {
|
|
342
|
-
key: 0,
|
|
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(r)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity),
|
|
345
|
-
stroke: "none"
|
|
346
|
-
}, null, 8, De)) : (g(), p("path", {
|
|
347
|
-
key: 1,
|
|
348
|
-
d: `M${Ke.value}Z`,
|
|
349
|
-
fill: M.value.style.area.useGradient ? `url(#pill_gradient_${j.value})` : b(r)(M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke, M.value.style.area.opacity),
|
|
350
|
-
stroke: "none"
|
|
351
|
-
}, null, 8, Oe))])) : f("", !0),
|
|
352
|
-
M.value.style.line.smooth && J.value.length ? (g(), p("path", {
|
|
353
|
-
key: 2,
|
|
354
|
-
d: `M ${b(te)(J.value)}`,
|
|
355
|
-
stroke: M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke,
|
|
356
|
-
fill: "none",
|
|
357
|
-
"stroke-width": M.value.style.line.strokeWidth,
|
|
358
|
-
"stroke-linecap": M.value.style.line.strokeLinecap,
|
|
359
|
-
"stroke-linejoin": M.value.style.line.strokeLinejoin
|
|
360
|
-
}, null, 8, ke)) : f("", !0),
|
|
361
|
-
!M.value.style.line.smooth && J.value.length ? (g(), p("path", {
|
|
362
|
-
key: 3,
|
|
363
|
-
d: qe.value,
|
|
364
|
-
stroke: M.value.style.line.useColorTrend ? Z.value : M.value.style.line.stroke,
|
|
365
|
-
fill: "none",
|
|
366
|
-
"stroke-width": M.value.style.line.strokeWidth,
|
|
367
|
-
"stroke-linecap": M.value.style.line.strokeLinecap,
|
|
368
|
-
"stroke-linejoin": M.value.style.line.strokeLinejoin
|
|
369
|
-
}, null, 8, Ae)) : f("", !0),
|
|
370
|
-
b(N) ? (g(), p("path", {
|
|
371
|
-
key: 4,
|
|
372
|
-
fill: "#6A6A6A",
|
|
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(), p("path", {
|
|
375
|
-
key: 5,
|
|
376
|
-
fill: Z.value,
|
|
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
|
-
}, null, 8, Me)),
|
|
379
|
-
b(N) ? (g(), p("rect", {
|
|
380
|
-
key: 6,
|
|
381
|
-
x: G.value.left / 2 - M.value.style.trendLabel.fontSize - 2,
|
|
382
|
-
y: U.value / 2 + M.value.style.trendLabel.fontSize - 2,
|
|
383
|
-
width: M.value.style.trendLabel.fontSize * 2,
|
|
384
|
-
height: M.value.style.trendLabel.fontSize,
|
|
385
|
-
fill: "#6A6A6A80",
|
|
386
|
-
rx: "3"
|
|
387
|
-
}, null, 8, Ne)) : f("", !0),
|
|
388
|
-
!k.value && !b(N) ? (g(), p("text", {
|
|
389
|
-
key: 7,
|
|
390
|
-
class: "vue-ui-sparktrend-progress-label",
|
|
391
|
-
x: G.value.left / 2,
|
|
392
|
-
y: U.value / 2 + M.value.style.trendLabel.fontSize * 2,
|
|
393
|
-
"text-anchor": "middle",
|
|
394
|
-
fill: M.value.style.trendLabel.useColorTrend ? Z.value : M.value.style.trendLabel.color,
|
|
395
|
-
"font-size": M.value.style.trendLabel.fontSize,
|
|
396
|
-
"font-weight": M.value.style.trendLabel.bold ? "bold" : "normal"
|
|
397
|
-
}, y(b(s)({
|
|
398
|
-
p: Y.value > 0 ? "+" : "",
|
|
399
|
-
v: Y.value,
|
|
400
|
-
s: "%",
|
|
401
|
-
r: M.value.style.trendLabel.rounding
|
|
402
|
-
})), 9, Pe)) : f("", !0),
|
|
403
|
-
J.value.length && J.value.at(-1).x !== void 0 ? (g(), p("circle", {
|
|
404
|
-
key: 8,
|
|
405
|
-
stroke: M.value.style.backgroundColor,
|
|
406
|
-
"stroke-width": 2,
|
|
407
|
-
cx: J.value.at(-1).x,
|
|
408
|
-
cy: J.value.at(-1).y,
|
|
409
|
-
r: 4,
|
|
410
|
-
fill: b(N) ? "#6A6A6A" : Z.value
|
|
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
|
-
key: 9,
|
|
414
|
-
"text-anchor": "middle",
|
|
415
|
-
x: J.value.at(-1).x,
|
|
416
|
-
y: J.value.at(-1).y - M.value.style.dataLabel.fontSize / 1.5,
|
|
417
|
-
"font-size": M.value.style.dataLabel.fontSize,
|
|
418
|
-
fill: M.value.style.dataLabel.useColorTrend ? Z.value : M.value.style.dataLabel.color,
|
|
419
|
-
"font-weight": M.value.style.dataLabel.bold ? "bold" : "normal"
|
|
420
|
-
}, y(b(o)(M.value.style.dataLabel.formatter, J.value.at(-1).value, b(s)({
|
|
421
|
-
p: M.value.style.dataLabel.prefix,
|
|
422
|
-
v: J.value.at(-1).value,
|
|
423
|
-
s: M.value.style.dataLabel.suffix,
|
|
424
|
-
r: M.value.style.dataLabel.rounding
|
|
425
|
-
}), { datapoint: J.value.at(-1) })), 9, Ie)) : f("", !0)
|
|
426
|
-
], 8, xe)),
|
|
427
|
-
e.$slots.source ? (g(), p("div", {
|
|
428
|
-
key: 0,
|
|
429
|
-
ref_key: "source",
|
|
430
|
-
ref: ze,
|
|
431
|
-
dir: "auto"
|
|
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
|
-
], 12, ye));
|
|
435
|
-
}
|
|
436
|
-
}, [["__scopeId", "data-v-90a4c498"]]);
|
|
437
|
-
//#endregion
|
|
438
|
-
export { S as n, C as t };
|