vue-data-ui 3.22.2 → 3.22.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-BGhJI-qh.js → Arrow-CgzmXCW_.js} +1 -1
- package/dist/{BaseDraggableDialog-a9xCKjW-.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
- package/dist/{BaseIcon-DEtwcvEH.js → BaseIcon-xBuW2jjI.js} +1 -1
- package/dist/{BaseLegendToggle-B-lM0iV1.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
- package/dist/{BaseZoomControls-BjjT6vtB.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
- package/dist/{ColorPicker-DMLahA2S.js → ColorPicker-Usv7badH.js} +2 -2
- package/dist/{DataTable-DJZgdnIn.js → DataTable-PidUPOit.js} +2 -2
- package/dist/Legend-DXOzbXb-.js +156 -0
- package/dist/{NonSvgPenAndPaper-Dwq_M6Bz.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
- package/dist/{PackageVersion-Dx81ZIAL.js → PackageVersion-Cm-3hwIF.js} +1 -1
- package/dist/{PenAndPaper-DJIIG6dv.js → PenAndPaper-ISUbDKXq.js} +11 -11
- package/dist/{Shape-C5OvuwII.js → Shape-BnF9aMPX.js} +3 -3
- package/dist/Slicer-hEvKOLw3.js +1145 -0
- package/dist/{SlicerPreview-CAhqG_ZQ.js → SlicerPreview-BDI-aCXE.js} +36 -35
- package/dist/{SparkTooltip-DTzo8Sah.js → SparkTooltip-DaWSTzfA.js} +1 -1
- package/dist/{Title-CVYf1f8m.js → Title-DDEEO-Nr.js} +1 -1
- package/dist/{Tooltip-BmGCBJuU.js → Tooltip-BhKov422.js} +1 -1
- package/dist/{UserOptions-xqbNpHi2.js → UserOptions-BxT1XHzN.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-rjAIVHxa.js → dom-to-png-ZOysoMwu.js} +1 -1
- package/dist/exposedLib-C2U48XK7.js +19 -0
- package/dist/img-B29J8tV5.js +129 -0
- package/dist/{labelUtils-C0D1tjig.js → labelUtils-BFcL_t-A.js} +1 -1
- package/dist/{lib-CXicicWN.js → lib-CuwHGt1j.js} +143 -124
- package/dist/{package-CILLITOI.js → package-CRlwXCDr.js} +1 -1
- package/dist/{pdf-ChYv2jb6.js → pdf-ymYt9Lee.js} +1 -1
- package/dist/{render-common-bMAFQ_qf.js → render-common-D6ny-Fwu.js} +22 -22
- 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 +69 -2
- package/dist/types/vue-ui-strip-plot.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-B4-0yo3K.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
- package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
- package/dist/{useNestedProp-APyFoLCQ.js → useNestedProp-BjkuFaz1.js} +1 -1
- package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
- package/dist/{usePrinter-Dng0UK-G.js → usePrinter-C0wAS8yc.js} +3 -3
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-DD-txoS1.js → vue-data-ui-DTWqd0R2.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +1757 -0
- package/dist/{vue-ui-accordion-Di_givzQ.js → vue-ui-accordion-B64IJyPU.js} +4 -4
- package/dist/{vue-ui-age-pyramid-CTwMfsqS.js → vue-ui-age-pyramid-e09oK-Fp.js} +289 -289
- package/dist/{vue-ui-annotator-tRkLFMQ9.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
- package/dist/vue-ui-bullet-tlj5_z_z.js +710 -0
- package/dist/{vue-ui-bump-BJ5O8Mps.js → vue-ui-bump-BD0Uq3As.js} +259 -259
- package/dist/vue-ui-candlestick-CZxsNGKS.js +1826 -0
- package/dist/{vue-ui-carousel-table-8s8BSy-K.js → vue-ui-carousel-table-ycbcmBKt.js} +122 -122
- package/dist/vue-ui-chestnut-CnEsjvh4.js +2010 -0
- package/dist/{vue-ui-chord-1BitQtEw.js → vue-ui-chord-BZhXsZXp.js} +53 -53
- package/dist/{vue-ui-circle-pack-DVMhDFKU.js → vue-ui-circle-pack-BPC6zUis.js} +46 -46
- package/dist/{vue-ui-cursor-D7yh10hX.js → vue-ui-cursor-DF_e5k1s.js} +4 -4
- package/dist/{vue-ui-dag--LFEAAf_.js → vue-ui-dag-BIo4-Oa8.js} +49 -49
- package/dist/{vue-ui-dashboard-COeO878g.js → vue-ui-dashboard-BEtF6UX2.js} +70 -70
- package/dist/{vue-ui-digits-C50FVr7C.js → vue-ui-digits-07IxTlNO.js} +4 -4
- package/dist/vue-ui-donut-C4FcvXm3.js +2410 -0
- package/dist/{vue-ui-donut-BzKXqQA2.js → vue-ui-donut-C5oRCxAO.js} +193 -193
- package/dist/{vue-ui-donut-evolution-lPkwit2C.js → vue-ui-donut-evolution-BSeyPC9k.js} +419 -419
- package/dist/{vue-ui-dumbbell-hlEfvbbf.js → vue-ui-dumbbell-Cykw4WYn.js} +341 -341
- package/dist/{vue-ui-flow-Bg_OSszc.js → vue-ui-flow-R_dLE1WS.js} +72 -72
- package/dist/vue-ui-funnel-Ct5xQdak.js +777 -0
- package/dist/vue-ui-galaxy-B5BkdIt5.js +1077 -0
- package/dist/vue-ui-gauge-AbzY-7Gg.js +920 -0
- package/dist/{vue-ui-geo-DtzXRvmx.js → vue-ui-geo-DVT9XEC3.js} +18 -18
- package/dist/{vue-ui-gizmo-hIFd7qck.js → vue-ui-gizmo-DJTRXao8.js} +62 -62
- package/dist/{vue-ui-heatmap-yPlwc3l_.js → vue-ui-heatmap-BCFId15K.js} +293 -293
- package/dist/vue-ui-history-plot-DCeroetw.js +1700 -0
- package/dist/{vue-ui-horizontal-bar-CJciNHpT.js → vue-ui-horizontal-bar-j3jszojt.js} +75 -75
- package/dist/{vue-ui-kpi-DmSe1QGb.js → vue-ui-kpi-DJjF6tcf.js} +12 -12
- package/dist/{vue-ui-mini-loader-CqxI6DwN.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
- package/dist/{vue-ui-molecule-w-94Uktn.js → vue-ui-molecule-2pfoR63d.js} +213 -213
- package/dist/{vue-ui-mood-radar-B3OGWGHR.js → vue-ui-mood-radar-DP_4LHfZ.js} +40 -40
- package/dist/{vue-ui-nested-donuts-Dv_yE5EV.js → vue-ui-nested-donuts-DFsLZEqx.js} +255 -255
- package/dist/{vue-ui-onion-BQbI0Vxd.js → vue-ui-onion-CzXx3Rme.js} +293 -293
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +1416 -0
- package/dist/{vue-ui-quadrant-BB7qdXK0.js → vue-ui-quadrant-Br_iZmcw.js} +57 -57
- package/dist/{vue-ui-quick-chart-CGDeo3Fx.js → vue-ui-quick-chart-CnIFPFPv.js} +654 -654
- package/dist/vue-ui-radar-CNwKFbHc.js +1281 -0
- package/dist/{vue-ui-rating-ChDwpol2.js → vue-ui-rating-CRziryE2.js} +22 -22
- package/dist/vue-ui-relation-circle-BVDIikGi.js +924 -0
- package/dist/{vue-ui-ridgeline-Cq8z57xB.js → vue-ui-ridgeline-Kw50zROq.js} +468 -468
- package/dist/vue-ui-rings-BDJyoWvT.js +1246 -0
- package/dist/vue-ui-scatter-DoL5Kh1Y.js +2413 -0
- package/dist/{vue-ui-skeleton-DJ5KAbfV.js → vue-ui-skeleton-BOHwJSdz.js} +22 -22
- package/dist/{vue-ui-smiley-fFrNX-Gl.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
- package/dist/{vue-ui-spark-trend-D6OBWxmg.js → vue-ui-spark-trend-OgSFIFh0.js} +24 -24
- package/dist/{vue-ui-sparkbar-CtCP8O44.js → vue-ui-sparkbar-D8FdqMB_.js} +35 -35
- package/dist/{vue-ui-sparkgauge-CZDkyViI.js → vue-ui-sparkgauge-CBpPbVkw.js} +56 -56
- package/dist/vue-ui-sparkhistogram-BQjbLa2k.js +560 -0
- package/dist/{vue-ui-sparkline-CJKE7Xcl.js → vue-ui-sparkline-BJfh5Lje.js} +200 -200
- package/dist/{vue-ui-sparkstackbar-BSV0M-2u.js → vue-ui-sparkstackbar-1WUQrqd7.js} +126 -126
- package/dist/vue-ui-stackbar-Dqs7_g8D.js +2329 -0
- package/dist/{vue-ui-stackline-DS_MPmc1.js → vue-ui-stackline-IRjugedp.js} +406 -388
- package/dist/vue-ui-strip-plot-B7D6Hk8R.js +1729 -0
- package/dist/{vue-ui-table-c1FPEwLM.js → vue-ui-table-Bqi9XNvY.js} +64 -64
- package/dist/{vue-ui-table-heatmap-CMQJXnP8.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
- package/dist/{vue-ui-table-sparkline-CAS9Pk60.js → vue-ui-table-sparkline-0Ffb2jdf.js} +19 -19
- package/dist/vue-ui-thermometer-Di5PXtEO.js +763 -0
- package/dist/{vue-ui-timer-CSP48eS-.js → vue-ui-timer-9CDcd-gP.js} +6 -6
- package/dist/{vue-ui-tiremarks-DJvXj1P3.js → vue-ui-tiremarks-BAQ-cCSq.js} +10 -10
- package/dist/vue-ui-treemap-CLOlWiDE.js +1587 -0
- package/dist/vue-ui-waffle-DG2IfACo.js +1362 -0
- package/dist/{vue-ui-wheel-CbL52G-w.js → vue-ui-wheel-BfXJFCjv.js} +29 -29
- package/dist/{vue-ui-word-cloud-BqOCyp7c.js → vue-ui-word-cloud-3NJy1z6d.js} +28 -28
- package/dist/{vue-ui-world-BkjzCcVh.js → vue-ui-world-vrGT5g1H.js} +127 -127
- package/dist/{vue-ui-xy-CVDNhnDY.js → vue-ui-xy-Cb7u46JN.js} +410 -410
- package/dist/{vue-ui-xy-DuwLRfr4.js → vue-ui-xy-Dg0wxSeC.js} +760 -760
- package/dist/{vue-ui-xy-canvas-CXqGVMeQ.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
- package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
- package/package.json +1 -1
- package/dist/Legend-BVDhEEsC.js +0 -115
- package/dist/Slicer-ClR833cP.js +0 -1144
- package/dist/exposedLib-CffbQxjN.js +0 -19
- package/dist/img-BCAOkqfM.js +0 -74
- package/dist/vue-ui-3d-bar-DxfNdF2e.js +0 -1757
- package/dist/vue-ui-bullet-9gtGJaGb.js +0 -710
- package/dist/vue-ui-candlestick-CJ_VVYbJ.js +0 -1826
- package/dist/vue-ui-chestnut-D3-ck2h2.js +0 -2010
- package/dist/vue-ui-donut-NHjQzFO5.js +0 -2410
- package/dist/vue-ui-funnel-B_bK0jJB.js +0 -777
- package/dist/vue-ui-galaxy-WVCUzcYc.js +0 -1077
- package/dist/vue-ui-gauge-Cqeko0wA.js +0 -920
- package/dist/vue-ui-history-plot-BGmcDg2w.js +0 -1554
- package/dist/vue-ui-parallel-coordinate-plot-ColST3Jj.js +0 -1416
- package/dist/vue-ui-radar-DqDn14DL.js +0 -1281
- package/dist/vue-ui-relation-circle-BvfZqcK0.js +0 -924
- package/dist/vue-ui-rings-Ds-sgNPK.js +0 -1246
- package/dist/vue-ui-scatter-BgOVUzQ3.js +0 -2413
- package/dist/vue-ui-sparkhistogram-DgruLf33.js +0 -560
- package/dist/vue-ui-stackbar-pnlYCnTj.js +0 -2270
- package/dist/vue-ui-strip-plot-DSKOrJZX.js +0 -1340
- package/dist/vue-ui-thermometer-w3eeJv9s.js +0 -763
- package/dist/vue-ui-treemap-BaOMXTR1.js +0 -1587
- package/dist/vue-ui-waffle-Bo22Ph8n.js +0 -1362
|
@@ -1,560 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Et as t, Ft as n, G as r, H as i, It as a, Ut as o, X as s, ct as c, i as l, t as u } from "./lib-CXicicWN.js";
|
|
3
|
-
import { t as d } from "./useConfig-Bf_EBbe3.js";
|
|
4
|
-
import { n as f, t as ee } from "./BaseScanner-DZvpgOjM.js";
|
|
5
|
-
import { t as p } from "./useNestedProp-APyFoLCQ.js";
|
|
6
|
-
import { t as te } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
|
-
import { t as ne } from "./Shape-C5OvuwII.js";
|
|
8
|
-
import { t as re } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
9
|
-
import { c as ie } from "./canvas-lib-BOP_HS11.js";
|
|
10
|
-
import { t as ae } from "./useResponsive-BfnK0KxU.js";
|
|
11
|
-
import { t as oe } from "./A11yDataTable-DdRsVULz.js";
|
|
12
|
-
import { t as se } from "./useChartAccessibility-DYqac8yF.js";
|
|
13
|
-
import { t as ce } from "./useFitSvgText-CT3nmlaS.js";
|
|
14
|
-
import { t as le } from "./vue_ui_sparkhistogram-BRgvKUH6.js";
|
|
15
|
-
import { Fragment as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as ue, createVNode as de, defineAsyncComponent as fe, guardReactiveProps as pe, nextTick as b, normalizeClass as x, normalizeProps as me, normalizeStyle as S, onMounted as C, openBlock as w, ref as T, renderList as E, renderSlot as D, toDisplayString as O, toRefs as he, unref as k, useCssVars as ge, watch as A } from "vue";
|
|
16
|
-
//#region src/components/vue-ui-sparkhistogram.vue
|
|
17
|
-
var j = /* @__PURE__ */ e({ default: () => M }), _e = ["id"], ve = { key: 0 }, ye = { key: 1 }, be = { style: { position: "relative" } }, xe = [
|
|
18
|
-
"xmlns",
|
|
19
|
-
"viewBox",
|
|
20
|
-
"aria-describedby"
|
|
21
|
-
], Se = ["width", "height"], Ce = ["id"], we = ["stop-color"], Te = ["stop-color"], Ee = ["id"], De = ["stop-color"], Oe = ["stop-color"], ke = ["id"], Ae = ["stop-color"], je = ["stop-color"], Me = [
|
|
22
|
-
"height",
|
|
23
|
-
"width",
|
|
24
|
-
"fill",
|
|
25
|
-
"x",
|
|
26
|
-
"stroke",
|
|
27
|
-
"stroke-width",
|
|
28
|
-
"rx",
|
|
29
|
-
"stroke-dasharray"
|
|
30
|
-
], Ne = { key: 1 }, Pe = [
|
|
31
|
-
"x",
|
|
32
|
-
"y",
|
|
33
|
-
"height",
|
|
34
|
-
"width",
|
|
35
|
-
"fill",
|
|
36
|
-
"stroke",
|
|
37
|
-
"stroke-width",
|
|
38
|
-
"rx"
|
|
39
|
-
], Fe = { key: 2 }, Ie = [
|
|
40
|
-
"x",
|
|
41
|
-
"y",
|
|
42
|
-
"font-size",
|
|
43
|
-
"font-weight",
|
|
44
|
-
"fill"
|
|
45
|
-
], Le = [
|
|
46
|
-
"x",
|
|
47
|
-
"y",
|
|
48
|
-
"font-size",
|
|
49
|
-
"fill"
|
|
50
|
-
], Re = [
|
|
51
|
-
"x",
|
|
52
|
-
"y",
|
|
53
|
-
"font-size",
|
|
54
|
-
"fill"
|
|
55
|
-
], ze = [
|
|
56
|
-
"height",
|
|
57
|
-
"width",
|
|
58
|
-
"x",
|
|
59
|
-
"onMouseover",
|
|
60
|
-
"onMouseleave",
|
|
61
|
-
"onClick"
|
|
62
|
-
], Be = {
|
|
63
|
-
key: 0,
|
|
64
|
-
style: {
|
|
65
|
-
position: "absolute",
|
|
66
|
-
top: "100%",
|
|
67
|
-
left: "0",
|
|
68
|
-
width: "100%"
|
|
69
|
-
},
|
|
70
|
-
"data-dom-to-png-ignore": "",
|
|
71
|
-
"aria-hidden": "true"
|
|
72
|
-
}, M = /*#__PURE__*/ re({
|
|
73
|
-
__name: "vue-ui-sparkhistogram",
|
|
74
|
-
props: {
|
|
75
|
-
config: {
|
|
76
|
-
type: Object,
|
|
77
|
-
default() {
|
|
78
|
-
return {};
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
dataset: {
|
|
82
|
-
type: Array,
|
|
83
|
-
default() {
|
|
84
|
-
return [];
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
emits: ["selectDatapoint"],
|
|
89
|
-
setup(e, { emit: re }) {
|
|
90
|
-
ge((e) => ({ v66b29b27: nt.value }));
|
|
91
|
-
let j = fe(() => import("./PackageVersion-Dx81ZIAL.js").then((e) => e.t)), { vue_ui_sparkhistogram: M } = d(), { isThemeValid: Ve, warnInvalidTheme: He } = te(), N = e, P = T(i()), F = T(null), I = T(null), L = T(null), R = T(null), z = T(null), B = T(!1), V = T(null), H = T("pointer"), U = T(J()), Ue = h(() => o({
|
|
92
|
-
defaultConfig: { style: {
|
|
93
|
-
animation: { show: !1 },
|
|
94
|
-
backgroundColor: "#99999930"
|
|
95
|
-
} },
|
|
96
|
-
userConfig: U.value.skeletonConfig ?? {}
|
|
97
|
-
})), { loading: We, FINAL_DATASET: W, manualLoading: Ge } = f({
|
|
98
|
-
...he(N),
|
|
99
|
-
FINAL_CONFIG: U,
|
|
100
|
-
prepareConfig: J,
|
|
101
|
-
skeletonDataset: N.config?.skeletonDataset ?? [
|
|
102
|
-
{
|
|
103
|
-
value: 1,
|
|
104
|
-
intensity: .2,
|
|
105
|
-
color: "#CACACA"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
value: 2,
|
|
109
|
-
intensity: .3,
|
|
110
|
-
color: "#CACACA"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
value: 3,
|
|
114
|
-
intensity: .5,
|
|
115
|
-
color: "#CACACA"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
value: 5,
|
|
119
|
-
intensity: .7,
|
|
120
|
-
color: "#CACACA"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
value: 8,
|
|
124
|
-
intensity: .9,
|
|
125
|
-
color: "#CACACA"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
value: 13,
|
|
129
|
-
intensity: .95,
|
|
130
|
-
color: "#CACACA"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
value: 21,
|
|
134
|
-
intensity: 1,
|
|
135
|
-
color: "#CACACA"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
value: 13,
|
|
139
|
-
intensity: .95,
|
|
140
|
-
color: "#CACACA"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
value: 8,
|
|
144
|
-
intensity: .9,
|
|
145
|
-
color: "#CACACA"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
value: 5,
|
|
149
|
-
intensity: .7,
|
|
150
|
-
color: "#CACACA"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
value: 3,
|
|
154
|
-
intensity: .5,
|
|
155
|
-
color: "#CACACA"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
value: 2,
|
|
159
|
-
intensity: .3,
|
|
160
|
-
color: "#CACACA"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
value: 1,
|
|
164
|
-
intensity: .2,
|
|
165
|
-
color: "#CACACA"
|
|
166
|
-
}
|
|
167
|
-
],
|
|
168
|
-
skeletonConfig: o({
|
|
169
|
-
defaultConfig: U.value,
|
|
170
|
-
userConfig: Ue.value
|
|
171
|
-
})
|
|
172
|
-
}), G = T(U.value.style.layout.width), K = T(U.value.style.layout.height), { svgRef: q } = se({ config: U.value.style.title });
|
|
173
|
-
function J() {
|
|
174
|
-
let e = p({
|
|
175
|
-
userConfig: N.config,
|
|
176
|
-
defaultConfig: M
|
|
177
|
-
}), t = e.theme;
|
|
178
|
-
if (!t) return e;
|
|
179
|
-
if (!Ve.value(e)) return He(e), e;
|
|
180
|
-
let n = p({
|
|
181
|
-
userConfig: le[t] || N.config,
|
|
182
|
-
defaultConfig: e
|
|
183
|
-
});
|
|
184
|
-
return p({
|
|
185
|
-
userConfig: N.config,
|
|
186
|
-
defaultConfig: n
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
C(() => {
|
|
190
|
-
qe();
|
|
191
|
-
});
|
|
192
|
-
let Ke = h(() => !!U.value.debug);
|
|
193
|
-
function qe() {
|
|
194
|
-
if (t(N.dataset) ? s({
|
|
195
|
-
componentName: "VueUiSparkHistogram",
|
|
196
|
-
type: "dataset",
|
|
197
|
-
debug: Ke.value
|
|
198
|
-
}) : N.dataset.forEach((e, t) => {
|
|
199
|
-
c({
|
|
200
|
-
datasetObject: e,
|
|
201
|
-
requiredAttributes: ["value"]
|
|
202
|
-
}).forEach((e) => {
|
|
203
|
-
s({
|
|
204
|
-
componentName: "VueUiSparkHistogram",
|
|
205
|
-
type: "datasetSerieAttribute",
|
|
206
|
-
property: e,
|
|
207
|
-
index: t,
|
|
208
|
-
debug: Ke.value
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
|
-
}), U.value.responsive) {
|
|
212
|
-
let e = ie(() => {
|
|
213
|
-
let { width: e, height: t } = ae({
|
|
214
|
-
chart: L.value,
|
|
215
|
-
title: U.value.style.title.text ? I.value : null,
|
|
216
|
-
source: F.value
|
|
217
|
-
}), n = U.value.style.labels.timeLabel.show ? U.value.style.labels.timeLabel.fontSize * 2 : 0, r = U.value.style.labels.valueLabel.show ? U.value.style.labels.valueLabel.fontSize * 2 : 0;
|
|
218
|
-
requestAnimationFrame(() => {
|
|
219
|
-
G.value = Math.max(10, e), K.value = Math.max(10, t - 12 - n - r);
|
|
220
|
-
});
|
|
221
|
-
});
|
|
222
|
-
R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect()), R.value = new ResizeObserver(e), z.value = L.value.parentNode, R.value.observe(z.value);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
A(() => N.config, (e) => {
|
|
226
|
-
U.value = J(), qe();
|
|
227
|
-
}, { deep: !0 });
|
|
228
|
-
let Y = h(() => {
|
|
229
|
-
let e = U.value.style.labels.timeLabel.show ? U.value.style.labels.timeLabel.fontSize * 2 : 0, t = U.value.style.labels.valueLabel.show ? U.value.style.labels.valueLabel.fontSize * 2 : 0, n = K.value + e + t, r = G.value, i = U.value.style.layout.padding.top, a = n - U.value.style.layout.padding.bottom, o = U.value.style.layout.padding.left, s = r - U.value.style.layout.padding.right;
|
|
230
|
-
return {
|
|
231
|
-
bottom: a,
|
|
232
|
-
centerY: i + (n - i - U.value.style.layout.padding.bottom) / 2,
|
|
233
|
-
drawingHeight: n - U.value.style.layout.padding.top - U.value.style.layout.padding.bottom - e - t,
|
|
234
|
-
drawingWidth: r - U.value.style.layout.padding.left - U.value.style.layout.padding.right,
|
|
235
|
-
height: n,
|
|
236
|
-
left: o,
|
|
237
|
-
right: s,
|
|
238
|
-
top: i,
|
|
239
|
-
width: r
|
|
240
|
-
};
|
|
241
|
-
}), Je = h(() => Math.max(...W.value.map((e) => Math.abs(e.value || 0))));
|
|
242
|
-
function Ye(e) {
|
|
243
|
-
return Math.abs(e) / Je.value;
|
|
244
|
-
}
|
|
245
|
-
let X = h(() => W.value.map((e, t) => {
|
|
246
|
-
let r = Ye(e.value || 0), i = Y.value.drawingHeight * r, a = Y.value.drawingWidth / W.value.length, o = a * (U.value.style.bars.gap / 100), s = a - o, c = Y.value.centerY - i / 2, l = Y.value.left + (o / 2 + t * a), u = Y.value.left + t * a, d = e.intensity === void 0 ? 100 : Math.round(e.intensity * 100), f = e.color ? e.color : e.value >= 0 ? n(U.value.style.bars.colors.positive, d) : n(U.value.style.bars.colors.negative, d), ee = e.color ? e.color : e.value >= 0 ? U.value.style.bars.colors.positive : U.value.style.bars.colors.negative, p = e.color ? `url(#gradient_datapoint_${t}_${P.value})` : e.value >= 0 ? `url(#gradient_positive_${t}_${P.value})` : `url(#gradient_negative_${t}_${P.value})`, te = l + s / 2;
|
|
247
|
-
return {
|
|
248
|
-
...e,
|
|
249
|
-
color: f,
|
|
250
|
-
gradient: p,
|
|
251
|
-
height: i,
|
|
252
|
-
intensity: d,
|
|
253
|
-
proportion: r,
|
|
254
|
-
stroke: ee,
|
|
255
|
-
textAnchor: te,
|
|
256
|
-
trapX: u,
|
|
257
|
-
unitWidth: a,
|
|
258
|
-
width: s,
|
|
259
|
-
x: l,
|
|
260
|
-
y: c
|
|
261
|
-
};
|
|
262
|
-
}));
|
|
263
|
-
function Xe(e, t) {
|
|
264
|
-
return l(U.value.style.labels.value.formatter, e.value, r({
|
|
265
|
-
p: U.value.style.labels.value.prefix,
|
|
266
|
-
v: e.value,
|
|
267
|
-
s: U.value.style.labels.value.suffix,
|
|
268
|
-
r: U.value.style.labels.value.rounding
|
|
269
|
-
}), {
|
|
270
|
-
datapoint: e,
|
|
271
|
-
seriesIndex: t
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
let Z = T(null), Ze = re;
|
|
275
|
-
function Qe(e, t) {
|
|
276
|
-
Ze("selectDatapoint", {
|
|
277
|
-
datapoint: e,
|
|
278
|
-
index: t
|
|
279
|
-
}), U.value.events.datapointClick && U.value.events.datapointClick({
|
|
280
|
-
datapoint: e,
|
|
281
|
-
seriesIndex: t
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
function $e(e, t) {
|
|
285
|
-
H.value = "pointer", V.value = t, Z.value = t, U.value.events.datapointEnter && U.value.events.datapointEnter({
|
|
286
|
-
datapoint: e,
|
|
287
|
-
seriesIndex: t
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
function et(e, t) {
|
|
291
|
-
H.value !== "keyboard" && (Z.value = null, V.value = null, U.value.events.datapointLeave && U.value.events.datapointLeave({
|
|
292
|
-
datapoint: e,
|
|
293
|
-
seriesIndex: t
|
|
294
|
-
}));
|
|
295
|
-
}
|
|
296
|
-
function tt() {
|
|
297
|
-
H.value !== "keyboard" && (Z.value = null, V.value = null);
|
|
298
|
-
}
|
|
299
|
-
let nt = h(() => `${U.value.style.animation.speedMs}ms`), { fitText: Q } = ce({
|
|
300
|
-
svgRef: q,
|
|
301
|
-
unitWidth: h(() => Y.value.drawingWidth / W.value.length * .9)
|
|
302
|
-
});
|
|
303
|
-
C(async () => {
|
|
304
|
-
await b(), Q(".vue-ui-sparkhistogram-top-label", U.value.style.labels.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", U.value.style.labels.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", U.value.style.labels.timeLabel.minFontSize);
|
|
305
|
-
}), A([
|
|
306
|
-
G,
|
|
307
|
-
K,
|
|
308
|
-
() => W.value
|
|
309
|
-
], async () => {
|
|
310
|
-
await b(), Q(".vue-ui-sparkhistogram-top-label", U.value.style.labels.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", U.value.style.labels.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", U.value.style.labels.timeLabel.minFontSize);
|
|
311
|
-
});
|
|
312
|
-
function rt() {
|
|
313
|
-
B.value = !0;
|
|
314
|
-
}
|
|
315
|
-
function it() {
|
|
316
|
-
B.value = !1, V.value = null, H.value = "pointer", Z.value = null;
|
|
317
|
-
}
|
|
318
|
-
function at(e) {
|
|
319
|
-
if (!q.value || document.activeElement !== q.value || !X.value.length) return;
|
|
320
|
-
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
321
|
-
if (!t && !n && !r && !i) return;
|
|
322
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
323
|
-
V.value = null, Z.value = null, H.value = "pointer";
|
|
324
|
-
return;
|
|
325
|
-
}
|
|
326
|
-
if (r) {
|
|
327
|
-
if (Z.value === null) return;
|
|
328
|
-
let e = X.value[Z.value];
|
|
329
|
-
if (!e) return;
|
|
330
|
-
Qe(e, Z.value);
|
|
331
|
-
return;
|
|
332
|
-
}
|
|
333
|
-
H.value = "keyboard";
|
|
334
|
-
let a = V.value;
|
|
335
|
-
a === null || a < 0 || a >= X.value.length ? a = n ? 0 : X.value.length - 1 : n ? (a += 1, a >= X.value.length && (a = 0)) : t && (--a, a < 0 && (a = X.value.length - 1)), V.value = a, Z.value = a;
|
|
336
|
-
let o = X.value[a];
|
|
337
|
-
U.value.events.datapointEnter && U.value.events.datapointEnter({
|
|
338
|
-
datapoint: o,
|
|
339
|
-
seriesIndex: a
|
|
340
|
-
});
|
|
341
|
-
}
|
|
342
|
-
let $ = h(() => ({
|
|
343
|
-
headers: [
|
|
344
|
-
U.value.a11y?.translations?.series ?? "Series",
|
|
345
|
-
U.value.a11y?.translations?.time ?? "Time",
|
|
346
|
-
U.value.a11y?.translations?.value ?? "Value",
|
|
347
|
-
U.value.a11y?.translations?.valueLabel ?? "Label"
|
|
348
|
-
],
|
|
349
|
-
rows: X.value.map((e, t) => [
|
|
350
|
-
t + 1,
|
|
351
|
-
e.timeLabel ?? "",
|
|
352
|
-
e.value ?? "",
|
|
353
|
-
e.valueLabel ?? ""
|
|
354
|
-
])
|
|
355
|
-
}));
|
|
356
|
-
return (e, t) => (w(), v("div", {
|
|
357
|
-
class: "vue-data-ui-component vue-ui-spark-histogram",
|
|
358
|
-
ref_key: "histogramChart",
|
|
359
|
-
ref: L,
|
|
360
|
-
style: S(`width:100%;background:${U.value.style.backgroundColor};font-family:${U.value.style.fontFamily}`),
|
|
361
|
-
onMouseleave: tt
|
|
362
|
-
}, [
|
|
363
|
-
y("div", {
|
|
364
|
-
id: `chart-instructions-${P.value}`,
|
|
365
|
-
class: "sr-only"
|
|
366
|
-
}, [y("p", null, O(U.value.a11y.translations.keyboardNavigation), 1)], 8, _e),
|
|
367
|
-
$.value?.rows?.length ? (w(), g(oe, {
|
|
368
|
-
key: 0,
|
|
369
|
-
uid: P.value,
|
|
370
|
-
head: $.value.headers,
|
|
371
|
-
body: $.value.rows,
|
|
372
|
-
notice: U.value.a11y.translations.tableAvailable,
|
|
373
|
-
caption: U.value.a11y.translations.tableCaption
|
|
374
|
-
}, null, 8, [
|
|
375
|
-
"uid",
|
|
376
|
-
"head",
|
|
377
|
-
"body",
|
|
378
|
-
"notice",
|
|
379
|
-
"caption"
|
|
380
|
-
])) : _("", !0),
|
|
381
|
-
U.value.style.title.text ? (w(), v("div", {
|
|
382
|
-
key: 1,
|
|
383
|
-
ref_key: "chartTitle",
|
|
384
|
-
ref: I,
|
|
385
|
-
style: S(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${U.value.style.title.margin};padding: 0 6px;text-align:${U.value.style.title.textAlign}`)
|
|
386
|
-
}, [y("div", { style: S(`font-size:${U.value.style.title.fontSize}px;color:${U.value.style.title.color};font-weight:${U.value.style.title.bold ? "bold" : "normal"}`) }, [
|
|
387
|
-
ue(O(U.value.style.title.text) + " ", 1),
|
|
388
|
-
Z.value === null ? _("", !0) : (w(), v("span", ve, "- " + O(X.value[Z.value].timeLabel || "") + " " + O(k(l)(U.value.style.labels.value.formatter, X.value[Z.value].value, k(r)({
|
|
389
|
-
p: U.value.style.labels.value.prefix,
|
|
390
|
-
v: X.value[Z.value].value,
|
|
391
|
-
s: U.value.style.labels.value.suffix,
|
|
392
|
-
r: U.value.style.labels.value.rounding
|
|
393
|
-
}), {
|
|
394
|
-
datapoint: X.value[Z.value],
|
|
395
|
-
seriesIndex: Z.value
|
|
396
|
-
})), 1)),
|
|
397
|
-
![void 0, null].includes(Z.value) && ![null, void 0].includes(X.value[Z.value].valueLabel) ? (w(), v("span", ye, O(` (${X.value[Z.value].valueLabel || 0})`), 1)) : _("", !0)
|
|
398
|
-
], 4), U.value.style.title.subtitle.text ? (w(), v("div", {
|
|
399
|
-
key: 0,
|
|
400
|
-
style: S(`font-size:${U.value.style.title.subtitle.fontSize}px;color:${U.value.style.title.subtitle.color};font-weight:${U.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
401
|
-
}, O(U.value.style.title.subtitle.text), 5)) : _("", !0)], 4)) : _("", !0),
|
|
402
|
-
y("div", be, [(w(), v("svg", {
|
|
403
|
-
ref_key: "svgRef",
|
|
404
|
-
ref: q,
|
|
405
|
-
xmlns: k(u),
|
|
406
|
-
viewBox: `0 0 ${Y.value.width} ${Y.value.height}`,
|
|
407
|
-
style: { overflow: "visible" },
|
|
408
|
-
"aria-describedby": `chart-instructions-${P.value}`,
|
|
409
|
-
tabindex: "0",
|
|
410
|
-
onFocus: rt,
|
|
411
|
-
onBlur: it,
|
|
412
|
-
onKeydown: at
|
|
413
|
-
}, [
|
|
414
|
-
de(k(j)),
|
|
415
|
-
e.$slots["chart-background"] ? (w(), v("foreignObject", {
|
|
416
|
-
key: 0,
|
|
417
|
-
x: 0,
|
|
418
|
-
y: 0,
|
|
419
|
-
width: Y.value.width,
|
|
420
|
-
height: Y.value.height,
|
|
421
|
-
style: { pointerEvents: "none" }
|
|
422
|
-
}, [D(e.$slots, "chart-background", {}, void 0, !0)], 8, Se)) : _("", !0),
|
|
423
|
-
y("defs", null, [
|
|
424
|
-
(w(!0), v(m, null, E(X.value, (e, t) => (w(), v("radialGradient", {
|
|
425
|
-
id: `gradient_positive_${t}_${P.value}`,
|
|
426
|
-
cy: "50%",
|
|
427
|
-
cx: "50%",
|
|
428
|
-
r: "50%",
|
|
429
|
-
fx: "50%",
|
|
430
|
-
fy: "50%"
|
|
431
|
-
}, [y("stop", {
|
|
432
|
-
offset: "0%",
|
|
433
|
-
"stop-color": k(n)(k(a)(U.value.style.bars.colors.positive, .05), e.intensity)
|
|
434
|
-
}, null, 8, we), y("stop", {
|
|
435
|
-
offset: "100%",
|
|
436
|
-
"stop-color": k(n)(U.value.style.bars.colors.positive, e.intensity)
|
|
437
|
-
}, null, 8, Te)], 8, Ce))), 256)),
|
|
438
|
-
(w(!0), v(m, null, E(X.value, (e, t) => (w(), v("radialGradient", {
|
|
439
|
-
id: `gradient_negative_${t}_${P.value}`,
|
|
440
|
-
cy: "50%",
|
|
441
|
-
cx: "50%",
|
|
442
|
-
r: "50%",
|
|
443
|
-
fx: "50%",
|
|
444
|
-
fy: "50%"
|
|
445
|
-
}, [y("stop", {
|
|
446
|
-
offset: "0%",
|
|
447
|
-
"stop-color": k(n)(k(a)(U.value.style.bars.colors.negative, .05), e.intensity)
|
|
448
|
-
}, null, 8, De), y("stop", {
|
|
449
|
-
offset: "100%",
|
|
450
|
-
"stop-color": k(n)(U.value.style.bars.colors.negative, e.intensity)
|
|
451
|
-
}, null, 8, Oe)], 8, Ee))), 256)),
|
|
452
|
-
(w(!0), v(m, null, E(X.value, (e, t) => (w(), v("radialGradient", {
|
|
453
|
-
id: `gradient_datapoint_${t}_${P.value}`,
|
|
454
|
-
cy: "50%",
|
|
455
|
-
cx: "50%",
|
|
456
|
-
r: "50%",
|
|
457
|
-
fx: "50%",
|
|
458
|
-
fy: "50%"
|
|
459
|
-
}, [y("stop", {
|
|
460
|
-
offset: "0%",
|
|
461
|
-
"stop-color": k(n)(k(a)(e.color, .05), e.intensity)
|
|
462
|
-
}, null, 8, Ae), y("stop", {
|
|
463
|
-
offset: "100%",
|
|
464
|
-
"stop-color": k(n)(e.color, e.intensity)
|
|
465
|
-
}, null, 8, je)], 8, ke))), 256))
|
|
466
|
-
]),
|
|
467
|
-
(w(!0), v(m, null, E(X.value, (e, t) => (w(), v("g", null, [Z.value !== null && Z.value === t ? (w(), v("rect", {
|
|
468
|
-
key: 0,
|
|
469
|
-
height: Y.value.height,
|
|
470
|
-
width: e.unitWidth,
|
|
471
|
-
fill: U.value.style.selector.fill,
|
|
472
|
-
x: e.trapX,
|
|
473
|
-
y: 0,
|
|
474
|
-
stroke: U.value.style.selector.stroke,
|
|
475
|
-
"stroke-width": U.value.style.selector.strokeWidth,
|
|
476
|
-
rx: U.value.style.selector.borderRadius,
|
|
477
|
-
"stroke-dasharray": U.value.style.selector.strokeDasharray
|
|
478
|
-
}, null, 8, Me)) : _("", !0)]))), 256)),
|
|
479
|
-
!U.value.style.bars.shape || U.value.style.bars.shape === "square" ? (w(), v("g", Ne, [(w(!0), v(m, null, E(X.value, (e, t) => (w(), v("rect", {
|
|
480
|
-
x: e.x,
|
|
481
|
-
y: e.y,
|
|
482
|
-
height: e.height,
|
|
483
|
-
width: e.width,
|
|
484
|
-
fill: U.value.style.bars.colors.gradient.show ? e.gradient : e.color,
|
|
485
|
-
stroke: e.stroke,
|
|
486
|
-
"stroke-width": U.value.style.bars.strokeWidth,
|
|
487
|
-
rx: `${U.value.style.bars.borderRadius * e.proportion / 12}%`,
|
|
488
|
-
class: x({ "vue-ui-sparkhistogram-shape": U.value.style.animation.show })
|
|
489
|
-
}, null, 10, Pe))), 256))])) : (w(), v("g", Fe, [(w(!0), v(m, null, E(X.value, (e, t) => (w(), g(ne, {
|
|
490
|
-
plot: {
|
|
491
|
-
x: e.x + e.width / 2,
|
|
492
|
-
y: e.y + e.height / 2
|
|
493
|
-
},
|
|
494
|
-
color: U.value.style.bars.colors.gradient.show ? e.gradient : e.color,
|
|
495
|
-
shape: U.value.style.bars.shape,
|
|
496
|
-
radius: Math.min(e.height * .4, e.width * .4),
|
|
497
|
-
class: x({ "vue-ui-sparkhistogram-shape": U.value.style.animation.show })
|
|
498
|
-
}, null, 8, [
|
|
499
|
-
"plot",
|
|
500
|
-
"color",
|
|
501
|
-
"shape",
|
|
502
|
-
"radius",
|
|
503
|
-
"class"
|
|
504
|
-
]))), 256))])),
|
|
505
|
-
k(We) ? _("", !0) : (w(), v(m, { key: 3 }, [
|
|
506
|
-
(w(!0), v(m, null, E(X.value, (e, t) => (w(), v("g", null, [U.value.style.labels.value.show ? (w(), v("text", {
|
|
507
|
-
key: 0,
|
|
508
|
-
class: "vue-ui-sparkhistogram-top-label",
|
|
509
|
-
"text-anchor": "middle",
|
|
510
|
-
x: e.textAnchor,
|
|
511
|
-
y: e.y - U.value.style.labels.value.fontSize / 3 + U.value.style.labels.value.offsetY,
|
|
512
|
-
"font-size": U.value.style.labels.value.fontSize,
|
|
513
|
-
"font-weight": U.value.style.labels.value.bold ? "bold" : "normal",
|
|
514
|
-
fill: U.value.style.labels.value.color
|
|
515
|
-
}, O(Xe(e, t)), 9, Ie)) : _("", !0)]))), 256)),
|
|
516
|
-
(w(!0), v(m, null, E(X.value, (e, t) => (w(), v("g", null, [e.valueLabel && U.value.style.labels.valueLabel.show ? (w(), v("text", {
|
|
517
|
-
key: 0,
|
|
518
|
-
class: "vue-ui-sparkhistogram-bottom-label",
|
|
519
|
-
x: e.textAnchor,
|
|
520
|
-
y: e.y + e.height + U.value.style.labels.valueLabel.fontSize,
|
|
521
|
-
"font-size": U.value.style.labels.valueLabel.fontSize,
|
|
522
|
-
"text-anchor": "middle",
|
|
523
|
-
fill: U.value.style.labels.valueLabel.color
|
|
524
|
-
}, O(e.valueLabel), 9, Le)) : _("", !0)]))), 256)),
|
|
525
|
-
(w(!0), v(m, null, E(X.value, (e, t) => (w(), v("g", null, [e.timeLabel && U.value.style.labels.timeLabel.show ? (w(), v("text", {
|
|
526
|
-
key: 0,
|
|
527
|
-
class: "vue-ui-sparkhistogram-time-label",
|
|
528
|
-
x: e.textAnchor,
|
|
529
|
-
y: Y.value.height,
|
|
530
|
-
"font-size": U.value.style.labels.timeLabel.fontSize,
|
|
531
|
-
fill: U.value.style.labels.timeLabel.color,
|
|
532
|
-
"text-anchor": "middle"
|
|
533
|
-
}, O(e.timeLabel), 9, Re)) : _("", !0)]))), 256))
|
|
534
|
-
], 64)),
|
|
535
|
-
(w(!0), v(m, null, E(X.value, (e, t) => (w(), v("g", null, [y("rect", {
|
|
536
|
-
height: Y.value.height,
|
|
537
|
-
width: e.unitWidth,
|
|
538
|
-
fill: "transparent",
|
|
539
|
-
x: e.trapX,
|
|
540
|
-
y: 0,
|
|
541
|
-
onMouseover: (n) => $e(e, t),
|
|
542
|
-
onMouseleave: (n) => et(e, t),
|
|
543
|
-
onClick: () => Qe(e, t)
|
|
544
|
-
}, null, 40, ze)]))), 256))
|
|
545
|
-
], 40, xe)), e.$slots.hint ? (w(), v("div", Be, [D(e.$slots, "hint", me(pe({
|
|
546
|
-
hint: U.value.a11y.translations.keyboardNavigation,
|
|
547
|
-
isVisible: B.value
|
|
548
|
-
})), void 0, !0)])) : _("", !0)]),
|
|
549
|
-
e.$slots.source ? (w(), v("div", {
|
|
550
|
-
key: 2,
|
|
551
|
-
ref_key: "source",
|
|
552
|
-
ref: F,
|
|
553
|
-
dir: "auto"
|
|
554
|
-
}, [D(e.$slots, "source", {}, void 0, !0)], 512)) : _("", !0),
|
|
555
|
-
D(e.$slots, "skeleton", {}, () => [k(We) ? (w(), g(ee, { key: 0 })) : _("", !0)], !0)
|
|
556
|
-
], 36));
|
|
557
|
-
}
|
|
558
|
-
}, [["__scopeId", "data-v-8a87ff32"]]);
|
|
559
|
-
//#endregion
|
|
560
|
-
export { j as n, M as t };
|