vue-data-ui 3.25.4 → 3.25.6
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/README.md +13 -13
- package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
- package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
- package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
- package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
- package/dist/{ColorPicker-ZJrR3Olp.js → ColorPicker-CUy15T72.js} +102 -100
- package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
- package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-DS84BAOx.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
- package/dist/{PackageVersion-5SWftabm.js → PackageVersion-ur6jKRL5.js} +1 -1
- package/dist/{PenAndPaper-B_SdRSKH.js → PenAndPaper-KFzKlvbi.js} +20 -4
- package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
- package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-DmsdiyeS.js → package-Dx7M6sYy.js} +1 -1
- package/dist/{render-common-zoPh9a78.js → render-common-DETHvNhl.js} +1 -1
- 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 +80 -1
- package/dist/types/vue-ui-annotator.d.ts +58 -2
- package/dist/{useConfig-CyCVHo81.js → useConfig-CIQZ6_r7.js} +1339 -1313
- package/dist/{useObjectBindings-ByORl1rV.js → useObjectBindings---mHNfbS.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DTj71yB7.js → vue-data-ui-Dh3_EsHb.js} +70 -70
- package/dist/vue-data-ui.js +71 -71
- package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
- package/dist/{vue-ui-accordion-D4zsdacF.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
- package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
- package/dist/vue-ui-annotator-CTQHAPho.js +3325 -0
- package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
- package/dist/{vue-ui-bump-BkOtQNWe.js → vue-ui-bump-DhwySwgn.js} +382 -380
- package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
- package/dist/{vue-ui-carousel-table-CRgbs7jR.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
- package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
- package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
- package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
- package/dist/{vue-ui-cursor-BHyXRadA.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
- package/dist/{vue-ui-dag-CyVqaLbF.js → vue-ui-dag-C_inEafb.js} +794 -792
- package/dist/{vue-ui-dashboard-7I-7wvCP.js → vue-ui-dashboard-Bs2mBur5.js} +74 -72
- package/dist/{vue-ui-digits-BBL8uERO.js → vue-ui-digits-DwE4MoXI.js} +2 -2
- package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
- package/dist/{vue-ui-donut-DcgUuefk.js → vue-ui-donut-CbOSJmRu.js} +2 -2
- package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
- package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
- package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
- package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
- package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
- package/dist/vue-ui-gauge-DLDULH26.js +934 -0
- package/dist/{vue-ui-geo-jR4P4pbt.js → vue-ui-geo-DXIHhp-G.js} +431 -429
- package/dist/{vue-ui-gizmo-D6W86s9o.js → vue-ui-gizmo-PuURiePo.js} +2 -2
- package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
- package/dist/{vue-ui-hill-fFq7pm-g.js → vue-ui-hill-DqsVJkmO.js} +472 -470
- package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-D3Sft4kp.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +513 -511
- package/dist/{vue-ui-kpi-fzLsKlyE.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
- package/dist/{vue-ui-label-BSgLalWD.js → vue-ui-label-ClMQ5Gez.js} +1 -1
- package/dist/{vue-ui-mini-loader-BL2odRfu.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
- package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
- package/dist/{vue-ui-mood-radar-bvGx6XgG.js → vue-ui-mood-radar-Dd1qfUiu.js} +378 -376
- package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
- package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
- package/dist/{vue-ui-parallel-coordinate-plot-B_QJ4N9o.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +409 -407
- package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
- package/dist/{vue-ui-quick-chart-BFscCR59.js → vue-ui-quick-chart-BZq517pL.js} +8 -6
- package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
- package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
- package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
- package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
- package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
- package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
- package/dist/{vue-ui-skeleton-zmbcOVEf.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
- package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
- package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
- package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
- package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
- package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
- package/dist/{vue-ui-sparkline-Dv7XrEzO.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
- package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
- package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
- package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
- package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
- package/dist/{vue-ui-table-heatmap-Dv_ZKKm3.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
- package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
- package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
- package/dist/{vue-ui-thermometer-DytlLJ32.js → vue-ui-thermometer-D0_KsB-y.js} +194 -192
- package/dist/{vue-ui-timer-CvHP4HoW.js → vue-ui-timer-1Z2zginj.js} +153 -153
- package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
- package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
- package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
- package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
- package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
- package/dist/{vue-ui-world-D0_2upjg.js → vue-ui-world-BOBHo7-L.js} +526 -524
- package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
- package/dist/{vue-ui-xy-D_5FfaH-.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
- package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
- package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-CH8SpxS2.js +0 -1829
- package/dist/vue-ui-age-pyramid-B9MUVi75.js +0 -1241
- package/dist/vue-ui-annotator-CmlcWPIm.js +0 -2886
- package/dist/vue-ui-bullet-n8KNnDwh.js +0 -700
- package/dist/vue-ui-candlestick-Bxlvqk49.js +0 -1857
- package/dist/vue-ui-chestnut-ByDKbkG9.js +0 -2014
- package/dist/vue-ui-chord-DQRBgVOx.js +0 -1345
- package/dist/vue-ui-circle-pack-CBBc0HOe.js +0 -1633
- package/dist/vue-ui-donut-DfiocufT.js +0 -2413
- package/dist/vue-ui-donut-evolution-BoqO8By2.js +0 -1550
- package/dist/vue-ui-dumbbell-7M_oUQdi.js +0 -1529
- package/dist/vue-ui-flow-CoylrfnO.js +0 -1215
- package/dist/vue-ui-funnel-DaBYHWIC.js +0 -747
- package/dist/vue-ui-galaxy-BIebStQ3.js +0 -1083
- package/dist/vue-ui-gauge-CwdTmiRP.js +0 -932
- package/dist/vue-ui-heatmap-DXYlGwqR.js +0 -1553
- package/dist/vue-ui-history-plot-CgIELoD2.js +0 -1696
- package/dist/vue-ui-molecule-DeHWkkhy.js +0 -929
- package/dist/vue-ui-nested-donuts-CeAV2xPk.js +0 -1501
- package/dist/vue-ui-onion-B7oFulsQ.js +0 -1233
- package/dist/vue-ui-quadrant-DrKnz37q.js +0 -1965
- package/dist/vue-ui-radar-Bzx69q8f.js +0 -1372
- package/dist/vue-ui-rating-CimC9FQ9.js +0 -359
- package/dist/vue-ui-relation-circle-DIQYyDGb.js +0 -903
- package/dist/vue-ui-ridgeline-CPEnM45x.js +0 -1621
- package/dist/vue-ui-rings-qPL5Iwji.js +0 -1250
- package/dist/vue-ui-scatter-BB0ClTsU.js +0 -2403
- package/dist/vue-ui-smiley-DzPkCMN-.js +0 -376
- package/dist/vue-ui-spark-trend-Ciq7-k_q.js +0 -457
- package/dist/vue-ui-sparkbar-D1M7-naP.js +0 -401
- package/dist/vue-ui-sparkgauge-rsqaeR_n.js +0 -268
- package/dist/vue-ui-sparkhistogram-C4WXt2Ni.js +0 -589
- package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +0 -738
- package/dist/vue-ui-stackbar-C_hMnOLb.js +0 -2353
- package/dist/vue-ui-stackline-BHGi63lD.js +0 -2467
- package/dist/vue-ui-strip-plot-Cygpn-l8.js +0 -1738
- package/dist/vue-ui-table-BQna1wL6.js +0 -1352
- package/dist/vue-ui-table-sparkline-BCuimtk6.js +0 -738
- package/dist/vue-ui-tiremarks-BvjdZwgh.js +0 -538
- package/dist/vue-ui-treemap-C5OpqzSc.js +0 -1731
- package/dist/vue-ui-waffle-B7T_Zzan.js +0 -1619
- package/dist/vue-ui-wheel-D1B0k7IW.js +0 -871
- package/dist/vue-ui-word-cloud-C4pX6jop.js +0 -1708
- package/dist/vue-ui-xy-Ck41KYqF.js +0 -5281
- package/dist/vue-ui-xy-canvas-B_8Mu19r.js +0 -1824
|
@@ -0,0 +1,589 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { Pt as t, Ut as n, Wt as r, X as i, Zt as a, ht as o, i as s, nt as c, q as l, t as ee } from "./lib-Dql7cqyA.js";
|
|
3
|
+
import { n as u, t as d } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as f } from "./useConfig-CIQZ6_r7.js";
|
|
5
|
+
import { n as te, t as ne } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as p } from "./useNestedProp-Chvyfpl-.js";
|
|
7
|
+
import { t as re } from "./useThemeCheck-C43Tcqmk.js";
|
|
8
|
+
import { t as ie } from "./Shape-CIqU-p2F.js";
|
|
9
|
+
import { t as ae } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
10
|
+
import { l as oe, t as se } from "./useResponsive-ZtArZtUf.js";
|
|
11
|
+
import { t as m } from "./DefGrad-DVBqDjhO.js";
|
|
12
|
+
import { t as ce } from "./A11yDataTable-DdRsVULz.js";
|
|
13
|
+
import { t as le } from "./useChartAccessibility-DYqac8yF.js";
|
|
14
|
+
import { t as ue } from "./useFitSvgText-CXTzBplU.js";
|
|
15
|
+
import { t as de } from "./vue_ui_sparkhistogram-BRgvKUH6.js";
|
|
16
|
+
import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as fe, createVNode as pe, defineAsyncComponent as me, guardReactiveProps as he, nextTick as ge, normalizeClass as _e, normalizeProps as ve, normalizeStyle as x, onMounted as ye, openBlock as S, ref as C, renderList as w, renderSlot as T, toDisplayString as E, toRefs as be, unref as D, useCssVars as xe, watch as O } from "vue";
|
|
17
|
+
//#region src/components/vue-ui-sparkhistogram.vue
|
|
18
|
+
var k = /* @__PURE__ */ e({ default: () => A }), Se = ["id"], Ce = { key: 0 }, we = { key: 1 }, Te = { style: { position: "relative" } }, Ee = [
|
|
19
|
+
"xmlns",
|
|
20
|
+
"viewBox",
|
|
21
|
+
"aria-describedby"
|
|
22
|
+
], De = ["width", "height"], Oe = [
|
|
23
|
+
"height",
|
|
24
|
+
"width",
|
|
25
|
+
"fill",
|
|
26
|
+
"x",
|
|
27
|
+
"stroke",
|
|
28
|
+
"stroke-width",
|
|
29
|
+
"rx",
|
|
30
|
+
"stroke-dasharray"
|
|
31
|
+
], ke = { key: 1 }, Ae = [
|
|
32
|
+
"x",
|
|
33
|
+
"y",
|
|
34
|
+
"height",
|
|
35
|
+
"width",
|
|
36
|
+
"fill",
|
|
37
|
+
"stroke",
|
|
38
|
+
"stroke-width",
|
|
39
|
+
"rx"
|
|
40
|
+
], je = { key: 2 }, Me = [
|
|
41
|
+
"x",
|
|
42
|
+
"y",
|
|
43
|
+
"font-size",
|
|
44
|
+
"font-weight",
|
|
45
|
+
"fill"
|
|
46
|
+
], Ne = [
|
|
47
|
+
"x",
|
|
48
|
+
"y",
|
|
49
|
+
"font-size",
|
|
50
|
+
"fill"
|
|
51
|
+
], Pe = [
|
|
52
|
+
"x",
|
|
53
|
+
"y",
|
|
54
|
+
"font-size",
|
|
55
|
+
"fill"
|
|
56
|
+
], Fe = [
|
|
57
|
+
"height",
|
|
58
|
+
"width",
|
|
59
|
+
"x",
|
|
60
|
+
"onMouseover",
|
|
61
|
+
"onMouseleave",
|
|
62
|
+
"onClick"
|
|
63
|
+
], Ie = {
|
|
64
|
+
key: 0,
|
|
65
|
+
style: {
|
|
66
|
+
position: "absolute",
|
|
67
|
+
top: "100%",
|
|
68
|
+
left: "0",
|
|
69
|
+
width: "100%"
|
|
70
|
+
},
|
|
71
|
+
"data-dom-to-png-ignore": "",
|
|
72
|
+
"aria-hidden": "true"
|
|
73
|
+
}, A = /*#__PURE__*/ ae({
|
|
74
|
+
__name: "vue-ui-sparkhistogram",
|
|
75
|
+
props: {
|
|
76
|
+
config: {
|
|
77
|
+
type: Object,
|
|
78
|
+
default() {
|
|
79
|
+
return {};
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
dataset: {
|
|
83
|
+
type: Array,
|
|
84
|
+
default() {
|
|
85
|
+
return [];
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
emits: ["selectDatapoint"],
|
|
90
|
+
setup(e, { emit: ae }) {
|
|
91
|
+
xe((e) => ({ v1bbfae94: $e.value }));
|
|
92
|
+
let k = me(() => import("./PackageVersion-ur6jKRL5.js").then((e) => e.t)), { vue_ui_sparkhistogram: A } = f(), { isThemeValid: Le, warnInvalidTheme: Re } = re(), j = e, M = C(l()), N = C(null), ze = C(null), P = C(null), F = C(null), I = C(null), L = C(!1), R = C(null), z = C("pointer"), B = C(J()), V = g(() => B.value.style.labels), H = g(() => B.value.style.bars), U = g(() => B.value.style);
|
|
93
|
+
u({
|
|
94
|
+
config: () => B.value,
|
|
95
|
+
dataset: () => j.dataset,
|
|
96
|
+
component: "VueUiSparkHistogram",
|
|
97
|
+
rules: [d.singleSeries, {
|
|
98
|
+
test: (e) => e.length > 31,
|
|
99
|
+
message: [
|
|
100
|
+
"👀 The number of datapoints is > 31. For a more readable chart, consider:",
|
|
101
|
+
"",
|
|
102
|
+
"▶️ Using VueUiXy with a line series"
|
|
103
|
+
]
|
|
104
|
+
}]
|
|
105
|
+
});
|
|
106
|
+
let Be = g(() => a({
|
|
107
|
+
defaultConfig: { style: {
|
|
108
|
+
animation: { show: !1 },
|
|
109
|
+
backgroundColor: "#99999930"
|
|
110
|
+
} },
|
|
111
|
+
userConfig: B.value.skeletonConfig ?? {}
|
|
112
|
+
})), { loading: Ve, FINAL_DATASET: W, manualLoading: He } = te({
|
|
113
|
+
...be(j),
|
|
114
|
+
FINAL_CONFIG: B,
|
|
115
|
+
prepareConfig: J,
|
|
116
|
+
skeletonDataset: j.config?.skeletonDataset ?? [
|
|
117
|
+
{
|
|
118
|
+
value: 1,
|
|
119
|
+
intensity: .2,
|
|
120
|
+
color: "#CACACA"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
value: 2,
|
|
124
|
+
intensity: .3,
|
|
125
|
+
color: "#CACACA"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
value: 3,
|
|
129
|
+
intensity: .5,
|
|
130
|
+
color: "#CACACA"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
value: 5,
|
|
134
|
+
intensity: .7,
|
|
135
|
+
color: "#CACACA"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
value: 8,
|
|
139
|
+
intensity: .9,
|
|
140
|
+
color: "#CACACA"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
value: 13,
|
|
144
|
+
intensity: .95,
|
|
145
|
+
color: "#CACACA"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
value: 21,
|
|
149
|
+
intensity: 1,
|
|
150
|
+
color: "#CACACA"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
value: 13,
|
|
154
|
+
intensity: .95,
|
|
155
|
+
color: "#CACACA"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
value: 8,
|
|
159
|
+
intensity: .9,
|
|
160
|
+
color: "#CACACA"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
value: 5,
|
|
164
|
+
intensity: .7,
|
|
165
|
+
color: "#CACACA"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
value: 3,
|
|
169
|
+
intensity: .5,
|
|
170
|
+
color: "#CACACA"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
value: 2,
|
|
174
|
+
intensity: .3,
|
|
175
|
+
color: "#CACACA"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
value: 1,
|
|
179
|
+
intensity: .2,
|
|
180
|
+
color: "#CACACA"
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
skeletonConfig: a({
|
|
184
|
+
defaultConfig: B.value,
|
|
185
|
+
userConfig: Be.value
|
|
186
|
+
})
|
|
187
|
+
}), G = C(U.value.layout.width), K = C(U.value.layout.height), { svgRef: q } = le({ config: U.value.title });
|
|
188
|
+
function J() {
|
|
189
|
+
let e = p({
|
|
190
|
+
userConfig: j.config,
|
|
191
|
+
defaultConfig: A
|
|
192
|
+
}), t = e.theme;
|
|
193
|
+
if (!t) return e;
|
|
194
|
+
if (!Le.value(e)) return Re(e), e;
|
|
195
|
+
let n = p({
|
|
196
|
+
userConfig: de[t] || j.config,
|
|
197
|
+
defaultConfig: e
|
|
198
|
+
});
|
|
199
|
+
return p({
|
|
200
|
+
userConfig: j.config,
|
|
201
|
+
defaultConfig: n
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
ye(() => {
|
|
205
|
+
We();
|
|
206
|
+
});
|
|
207
|
+
let Ue = g(() => B.value.debug);
|
|
208
|
+
function We() {
|
|
209
|
+
if (t(j.dataset) ? c({
|
|
210
|
+
componentName: "VueUiSparkHistogram",
|
|
211
|
+
type: "dataset",
|
|
212
|
+
debug: Ue.value
|
|
213
|
+
}) : Ue.value && j.dataset.forEach((e, t) => {
|
|
214
|
+
o({
|
|
215
|
+
datasetObject: e,
|
|
216
|
+
requiredAttributes: ["value"]
|
|
217
|
+
}).forEach((e) => {
|
|
218
|
+
c({
|
|
219
|
+
componentName: "VueUiSparkHistogram",
|
|
220
|
+
type: "datasetSerieAttribute",
|
|
221
|
+
property: e,
|
|
222
|
+
index: t
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
}), B.value.responsive) {
|
|
226
|
+
let e = oe(() => {
|
|
227
|
+
let { width: e, height: t } = se({
|
|
228
|
+
chart: P.value,
|
|
229
|
+
title: U.value.title.text ? ze.value : null,
|
|
230
|
+
source: N.value
|
|
231
|
+
}), n = V.value.timeLabel.show ? V.value.timeLabel.fontSize * 2 : 0, r = V.value.valueLabel.show ? V.value.valueLabel.fontSize * 2 : 0;
|
|
232
|
+
requestAnimationFrame(() => {
|
|
233
|
+
G.value = Math.max(10, e), K.value = Math.max(10, t - 12 - n - r);
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect()), F.value = new ResizeObserver(e), I.value = P.value.parentNode, F.value.observe(I.value);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
O(() => j.config, (e) => {
|
|
240
|
+
B.value = J(), We();
|
|
241
|
+
}, { deep: !0 });
|
|
242
|
+
let Y = g(() => {
|
|
243
|
+
let e = V.value.timeLabel.show ? V.value.timeLabel.fontSize * 2 : 0, t = V.value.valueLabel.show ? V.value.valueLabel.fontSize * 2 : 0, n = K.value + e + t, r = G.value, i = U.value.layout.padding.top, a = n - U.value.layout.padding.bottom, o = U.value.layout.padding.left, s = r - U.value.layout.padding.right;
|
|
244
|
+
return {
|
|
245
|
+
bottom: a,
|
|
246
|
+
centerY: i + (n - i - U.value.layout.padding.bottom) / 2,
|
|
247
|
+
drawingHeight: n - U.value.layout.padding.top - U.value.layout.padding.bottom - e - t,
|
|
248
|
+
drawingWidth: r - U.value.layout.padding.left - U.value.layout.padding.right,
|
|
249
|
+
height: n,
|
|
250
|
+
left: o,
|
|
251
|
+
right: s,
|
|
252
|
+
top: i,
|
|
253
|
+
width: r
|
|
254
|
+
};
|
|
255
|
+
}), Ge = g(() => Math.max(...W.value.map((e) => Math.abs(e.value || 0))));
|
|
256
|
+
function Ke(e) {
|
|
257
|
+
return Math.abs(e) / Ge.value;
|
|
258
|
+
}
|
|
259
|
+
let X = g(() => W.value.map((e, t) => {
|
|
260
|
+
let r = Ke(e.value || 0), i = Y.value.drawingHeight * r, a = Y.value.drawingWidth / W.value.length, o = a * (H.value.gap / 100), s = a - o, c = Y.value.centerY - i / 2, l = Y.value.left + (o / 2 + t * a), ee = Y.value.left + t * a, u = e.intensity === void 0 ? 100 : Math.round(e.intensity * 100), d = e.color ? e.color : e.value >= 0 ? n(H.value.colors.positive, u) : n(H.value.colors.negative, u), f = e.color ? e.color : e.value >= 0 ? H.value.colors.positive : H.value.colors.negative, te = e.color ? `url(#gradient_datapoint_${t}_${M.value})` : e.value >= 0 ? `url(#gradient_positive_${t}_${M.value})` : `url(#gradient_negative_${t}_${M.value})`, ne = l + s / 2;
|
|
261
|
+
return {
|
|
262
|
+
...e,
|
|
263
|
+
color: d,
|
|
264
|
+
gradient: te,
|
|
265
|
+
height: i,
|
|
266
|
+
intensity: u,
|
|
267
|
+
proportion: r,
|
|
268
|
+
stroke: f,
|
|
269
|
+
textAnchor: ne,
|
|
270
|
+
trapX: ee,
|
|
271
|
+
unitWidth: a,
|
|
272
|
+
width: s,
|
|
273
|
+
x: l,
|
|
274
|
+
y: c
|
|
275
|
+
};
|
|
276
|
+
}));
|
|
277
|
+
function qe(e, t) {
|
|
278
|
+
return s(V.value.value.formatter, e.value, i({
|
|
279
|
+
p: V.value.value.prefix,
|
|
280
|
+
v: e.value,
|
|
281
|
+
s: V.value.value.suffix,
|
|
282
|
+
r: V.value.value.rounding
|
|
283
|
+
}), {
|
|
284
|
+
datapoint: e,
|
|
285
|
+
seriesIndex: t
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
let Z = C(null), Je = ae;
|
|
289
|
+
function Ye(e, t) {
|
|
290
|
+
Je("selectDatapoint", {
|
|
291
|
+
datapoint: e,
|
|
292
|
+
index: t
|
|
293
|
+
}), B.value.events.datapointClick && B.value.events.datapointClick({
|
|
294
|
+
datapoint: e,
|
|
295
|
+
seriesIndex: t
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
function Xe(e, t) {
|
|
299
|
+
z.value = "pointer", R.value = t, Z.value = t, B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
300
|
+
datapoint: e,
|
|
301
|
+
seriesIndex: t
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
function Ze(e, t) {
|
|
305
|
+
z.value !== "keyboard" && (Z.value = null, R.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
|
|
306
|
+
datapoint: e,
|
|
307
|
+
seriesIndex: t
|
|
308
|
+
}));
|
|
309
|
+
}
|
|
310
|
+
function Qe() {
|
|
311
|
+
z.value !== "keyboard" && (Z.value = null, R.value = null);
|
|
312
|
+
}
|
|
313
|
+
let $e = g(() => `${U.value.animation.speedMs}ms`), et = g(() => Y.value.drawingWidth / W.value.length * .9), { fitText: Q } = ue({
|
|
314
|
+
svgRef: q,
|
|
315
|
+
unitWidth: et
|
|
316
|
+
});
|
|
317
|
+
ye(async () => {
|
|
318
|
+
await ge(), Q(".vue-ui-sparkhistogram-top-label", V.value.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", V.value.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", V.value.timeLabel.minFontSize);
|
|
319
|
+
}), O([
|
|
320
|
+
G,
|
|
321
|
+
K,
|
|
322
|
+
() => W.value
|
|
323
|
+
], async () => {
|
|
324
|
+
await ge(), Q(".vue-ui-sparkhistogram-top-label", V.value.value.minFontSize), Q(".vue-ui-sparkhistogram-bottom-label", V.value.valueLabel.minFontSize), Q(".vue-ui-sparkhistogram-time-label", V.value.timeLabel.minFontSize);
|
|
325
|
+
});
|
|
326
|
+
function tt() {
|
|
327
|
+
L.value = !0;
|
|
328
|
+
}
|
|
329
|
+
function nt() {
|
|
330
|
+
L.value = !1, R.value = null, z.value = "pointer", Z.value = null;
|
|
331
|
+
}
|
|
332
|
+
function rt(e) {
|
|
333
|
+
if (!q.value || document.activeElement !== q.value || !X.value.length) return;
|
|
334
|
+
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
335
|
+
if (!t && !n && !r && !i) return;
|
|
336
|
+
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
337
|
+
R.value = null, Z.value = null, z.value = "pointer";
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
if (r) {
|
|
341
|
+
if (Z.value === null) return;
|
|
342
|
+
let e = X.value[Z.value];
|
|
343
|
+
if (!e) return;
|
|
344
|
+
Ye(e, Z.value);
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
z.value = "keyboard";
|
|
348
|
+
let a = R.value;
|
|
349
|
+
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)), R.value = a, Z.value = a;
|
|
350
|
+
let o = X.value[a];
|
|
351
|
+
B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
352
|
+
datapoint: o,
|
|
353
|
+
seriesIndex: a
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
let $ = g(() => ({
|
|
357
|
+
headers: [
|
|
358
|
+
B.value.a11y?.translations?.series ?? "Series",
|
|
359
|
+
B.value.a11y?.translations?.time ?? "Time",
|
|
360
|
+
B.value.a11y?.translations?.value ?? "Value",
|
|
361
|
+
B.value.a11y?.translations?.valueLabel ?? "Label"
|
|
362
|
+
],
|
|
363
|
+
rows: X.value.map((e, t) => [
|
|
364
|
+
t + 1,
|
|
365
|
+
e.timeLabel ?? "",
|
|
366
|
+
e.value ?? "",
|
|
367
|
+
e.valueLabel ?? ""
|
|
368
|
+
])
|
|
369
|
+
}));
|
|
370
|
+
return (e, t) => (S(), y("div", {
|
|
371
|
+
class: "vue-data-ui-component vue-ui-spark-histogram",
|
|
372
|
+
ref_key: "histogramChart",
|
|
373
|
+
ref: P,
|
|
374
|
+
style: x(`width:100%;background:${U.value.backgroundColor};font-family:${U.value.fontFamily}`),
|
|
375
|
+
onMouseleave: Qe
|
|
376
|
+
}, [
|
|
377
|
+
b("div", {
|
|
378
|
+
id: `chart-instructions-${M.value}`,
|
|
379
|
+
class: "sr-only"
|
|
380
|
+
}, [b("p", null, E(B.value.a11y.translations.keyboardNavigation), 1)], 8, Se),
|
|
381
|
+
$.value?.rows?.length ? (S(), _(ce, {
|
|
382
|
+
key: 0,
|
|
383
|
+
uid: M.value,
|
|
384
|
+
head: $.value.headers,
|
|
385
|
+
body: $.value.rows,
|
|
386
|
+
notice: B.value.a11y.translations.tableAvailable,
|
|
387
|
+
caption: B.value.a11y.translations.tableCaption
|
|
388
|
+
}, null, 8, [
|
|
389
|
+
"uid",
|
|
390
|
+
"head",
|
|
391
|
+
"body",
|
|
392
|
+
"notice",
|
|
393
|
+
"caption"
|
|
394
|
+
])) : v("", !0),
|
|
395
|
+
U.value.title.text ? (S(), y("div", {
|
|
396
|
+
key: 1,
|
|
397
|
+
ref_key: "chartTitle",
|
|
398
|
+
ref: ze,
|
|
399
|
+
style: x(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${U.value.title.margin};padding: 0 6px;text-align:${U.value.title.textAlign}`)
|
|
400
|
+
}, [b("div", { style: x(`font-size:${U.value.title.fontSize}px;color:${U.value.title.color};font-weight:${U.value.title.bold ? "bold" : "normal"}`) }, [
|
|
401
|
+
fe(E(U.value.title.text) + " ", 1),
|
|
402
|
+
Z.value === null ? v("", !0) : (S(), y("span", Ce, "- " + E(X.value[Z.value].timeLabel || "") + " " + E(D(s)(V.value.value.formatter, X.value[Z.value].value, D(i)({
|
|
403
|
+
p: V.value.value.prefix,
|
|
404
|
+
v: X.value[Z.value].value,
|
|
405
|
+
s: V.value.value.suffix,
|
|
406
|
+
r: V.value.value.rounding
|
|
407
|
+
}), {
|
|
408
|
+
datapoint: X.value[Z.value],
|
|
409
|
+
seriesIndex: Z.value
|
|
410
|
+
})), 1)),
|
|
411
|
+
![void 0, null].includes(Z.value) && ![null, void 0].includes(X.value[Z.value].valueLabel) ? (S(), y("span", we, E(` (${X.value[Z.value].valueLabel || 0})`), 1)) : v("", !0)
|
|
412
|
+
], 4), U.value.title.subtitle.text ? (S(), y("div", {
|
|
413
|
+
key: 0,
|
|
414
|
+
style: x(`font-size:${U.value.title.subtitle.fontSize}px;color:${U.value.title.subtitle.color};font-weight:${U.value.title.subtitle.bold ? "bold" : "normal"}`)
|
|
415
|
+
}, E(U.value.title.subtitle.text), 5)) : v("", !0)], 4)) : v("", !0),
|
|
416
|
+
b("div", Te, [(S(), y("svg", {
|
|
417
|
+
ref_key: "svgRef",
|
|
418
|
+
ref: q,
|
|
419
|
+
xmlns: D(ee),
|
|
420
|
+
viewBox: `0 0 ${Y.value.width} ${Y.value.height}`,
|
|
421
|
+
style: { overflow: "visible" },
|
|
422
|
+
"aria-describedby": `chart-instructions-${M.value}`,
|
|
423
|
+
tabindex: "0",
|
|
424
|
+
onFocus: tt,
|
|
425
|
+
onBlur: nt,
|
|
426
|
+
onKeydown: rt
|
|
427
|
+
}, [
|
|
428
|
+
pe(D(k)),
|
|
429
|
+
e.$slots["chart-background"] ? (S(), y("foreignObject", {
|
|
430
|
+
key: 0,
|
|
431
|
+
x: 0,
|
|
432
|
+
y: 0,
|
|
433
|
+
width: Y.value.width,
|
|
434
|
+
height: Y.value.height,
|
|
435
|
+
style: { pointerEvents: "none" }
|
|
436
|
+
}, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, De)) : v("", !0),
|
|
437
|
+
b("defs", null, [
|
|
438
|
+
(S(!0), y(h, null, w(X.value, (e, t) => (S(), _(m, {
|
|
439
|
+
t: "radial",
|
|
440
|
+
id: `gradient_positive_${t}_${M.value}`,
|
|
441
|
+
key: `gradient_positive_${t}_${M.value}`,
|
|
442
|
+
cy: "50%",
|
|
443
|
+
cx: "50%",
|
|
444
|
+
r: "50%",
|
|
445
|
+
fx: "50%",
|
|
446
|
+
fy: "50%",
|
|
447
|
+
stops: [[
|
|
448
|
+
"0%",
|
|
449
|
+
D(n)(D(r)(H.value.colors.positive, .05), e.intensity),
|
|
450
|
+
1
|
|
451
|
+
], [
|
|
452
|
+
"100%",
|
|
453
|
+
D(n)(H.value.colors.positive, e.intensity),
|
|
454
|
+
1
|
|
455
|
+
]]
|
|
456
|
+
}, null, 8, ["id", "stops"]))), 128)),
|
|
457
|
+
(S(!0), y(h, null, w(X.value, (e, t) => (S(), _(m, {
|
|
458
|
+
t: "radial",
|
|
459
|
+
id: `gradient_negative_${t}_${M.value}`,
|
|
460
|
+
key: `gradient_negative_${t}_${M.value}`,
|
|
461
|
+
cy: "50%",
|
|
462
|
+
cx: "50%",
|
|
463
|
+
r: "50%",
|
|
464
|
+
fx: "50%",
|
|
465
|
+
fy: "50%",
|
|
466
|
+
stops: [[
|
|
467
|
+
"0%",
|
|
468
|
+
D(n)(D(r)(H.value.colors.negative, .05), e.intensity),
|
|
469
|
+
1
|
|
470
|
+
], [
|
|
471
|
+
"100%",
|
|
472
|
+
D(n)(H.value.colors.negative, e.intensity),
|
|
473
|
+
1
|
|
474
|
+
]]
|
|
475
|
+
}, null, 8, ["id", "stops"]))), 128)),
|
|
476
|
+
(S(!0), y(h, null, w(X.value, (e, t) => (S(), _(m, {
|
|
477
|
+
t: "radial",
|
|
478
|
+
id: `gradient_datapoint_${t}_${M.value}`,
|
|
479
|
+
key: `gradient_datapoint_${t}_${M.value}`,
|
|
480
|
+
cy: "50%",
|
|
481
|
+
cx: "50%",
|
|
482
|
+
r: "50%",
|
|
483
|
+
fx: "50%",
|
|
484
|
+
fy: "50%",
|
|
485
|
+
stops: [[
|
|
486
|
+
"0%",
|
|
487
|
+
D(n)(D(r)(e.color, .05), e.intensity),
|
|
488
|
+
1
|
|
489
|
+
], [
|
|
490
|
+
"100%",
|
|
491
|
+
D(n)(e.color, e.intensity),
|
|
492
|
+
1
|
|
493
|
+
]]
|
|
494
|
+
}, null, 8, ["id", "stops"]))), 128))
|
|
495
|
+
]),
|
|
496
|
+
(S(!0), y(h, null, w(X.value, (e, t) => (S(), y("g", null, [Z.value !== null && Z.value === t ? (S(), y("rect", {
|
|
497
|
+
key: 0,
|
|
498
|
+
height: Y.value.height,
|
|
499
|
+
width: e.unitWidth,
|
|
500
|
+
fill: U.value.selector.fill,
|
|
501
|
+
x: e.trapX,
|
|
502
|
+
y: 0,
|
|
503
|
+
stroke: U.value.selector.stroke,
|
|
504
|
+
"stroke-width": U.value.selector.strokeWidth,
|
|
505
|
+
rx: U.value.selector.borderRadius,
|
|
506
|
+
"stroke-dasharray": U.value.selector.strokeDasharray
|
|
507
|
+
}, null, 8, Oe)) : v("", !0)]))), 256)),
|
|
508
|
+
!H.value.shape || H.value.shape === "square" ? (S(), y("g", ke, [(S(!0), y(h, null, w(X.value, (e, t) => (S(), y("rect", {
|
|
509
|
+
x: e.x,
|
|
510
|
+
y: e.y,
|
|
511
|
+
height: e.height,
|
|
512
|
+
width: e.width,
|
|
513
|
+
fill: H.value.colors.gradient.show ? e.gradient : e.color,
|
|
514
|
+
stroke: e.stroke,
|
|
515
|
+
"stroke-width": H.value.strokeWidth,
|
|
516
|
+
rx: `${H.value.borderRadius * e.proportion / 12}%`,
|
|
517
|
+
class: _e({ "vue-ui-sparkhistogram-shape": U.value.animation.show })
|
|
518
|
+
}, null, 10, Ae))), 256))])) : (S(), y("g", je, [(S(!0), y(h, null, w(X.value, (e, t) => (S(), _(ie, {
|
|
519
|
+
plot: {
|
|
520
|
+
x: e.x + e.width / 2,
|
|
521
|
+
y: e.y + e.height / 2
|
|
522
|
+
},
|
|
523
|
+
color: H.value.colors.gradient.show ? e.gradient : e.color,
|
|
524
|
+
shape: H.value.shape,
|
|
525
|
+
radius: Math.min(e.height * .4, e.width * .4),
|
|
526
|
+
class: _e({ "vue-ui-sparkhistogram-shape": U.value.animation.show })
|
|
527
|
+
}, null, 8, [
|
|
528
|
+
"plot",
|
|
529
|
+
"color",
|
|
530
|
+
"shape",
|
|
531
|
+
"radius",
|
|
532
|
+
"class"
|
|
533
|
+
]))), 256))])),
|
|
534
|
+
D(Ve) ? v("", !0) : (S(), y(h, { key: 3 }, [
|
|
535
|
+
(S(!0), y(h, null, w(X.value, (e, t) => (S(), y("g", null, [V.value.value.show ? (S(), y("text", {
|
|
536
|
+
key: 0,
|
|
537
|
+
class: "vue-ui-sparkhistogram-top-label",
|
|
538
|
+
"text-anchor": "middle",
|
|
539
|
+
x: e.textAnchor,
|
|
540
|
+
y: e.y - V.value.value.fontSize / 3 + V.value.value.offsetY,
|
|
541
|
+
"font-size": V.value.value.fontSize,
|
|
542
|
+
"font-weight": V.value.value.bold ? "bold" : "normal",
|
|
543
|
+
fill: V.value.value.color
|
|
544
|
+
}, E(qe(e, t)), 9, Me)) : v("", !0)]))), 256)),
|
|
545
|
+
(S(!0), y(h, null, w(X.value, (e, t) => (S(), y("g", null, [e.valueLabel && V.value.valueLabel.show ? (S(), y("text", {
|
|
546
|
+
key: 0,
|
|
547
|
+
class: "vue-ui-sparkhistogram-bottom-label",
|
|
548
|
+
x: e.textAnchor,
|
|
549
|
+
y: e.y + e.height + V.value.valueLabel.fontSize,
|
|
550
|
+
"font-size": V.value.valueLabel.fontSize,
|
|
551
|
+
"text-anchor": "middle",
|
|
552
|
+
fill: V.value.valueLabel.color
|
|
553
|
+
}, E(e.valueLabel), 9, Ne)) : v("", !0)]))), 256)),
|
|
554
|
+
(S(!0), y(h, null, w(X.value, (e, t) => (S(), y("g", null, [e.timeLabel && V.value.timeLabel.show ? (S(), y("text", {
|
|
555
|
+
key: 0,
|
|
556
|
+
class: "vue-ui-sparkhistogram-time-label",
|
|
557
|
+
x: e.textAnchor,
|
|
558
|
+
y: Y.value.height,
|
|
559
|
+
"font-size": V.value.timeLabel.fontSize,
|
|
560
|
+
fill: V.value.timeLabel.color,
|
|
561
|
+
"text-anchor": "middle"
|
|
562
|
+
}, E(e.timeLabel), 9, Pe)) : v("", !0)]))), 256))
|
|
563
|
+
], 64)),
|
|
564
|
+
(S(!0), y(h, null, w(X.value, (e, t) => (S(), y("g", null, [b("rect", {
|
|
565
|
+
height: Y.value.height,
|
|
566
|
+
width: e.unitWidth,
|
|
567
|
+
fill: "transparent",
|
|
568
|
+
x: e.trapX,
|
|
569
|
+
y: 0,
|
|
570
|
+
onMouseover: (n) => Xe(e, t),
|
|
571
|
+
onMouseleave: (n) => Ze(e, t),
|
|
572
|
+
onClick: () => Ye(e, t)
|
|
573
|
+
}, null, 40, Fe)]))), 256))
|
|
574
|
+
], 40, Ee)), e.$slots.hint ? (S(), y("div", Ie, [T(e.$slots, "hint", ve(he({
|
|
575
|
+
hint: B.value.a11y.translations.keyboardNavigation,
|
|
576
|
+
isVisible: L.value
|
|
577
|
+
})), void 0, !0)])) : v("", !0)]),
|
|
578
|
+
e.$slots.source ? (S(), y("div", {
|
|
579
|
+
key: 2,
|
|
580
|
+
ref_key: "source",
|
|
581
|
+
ref: N,
|
|
582
|
+
dir: "auto"
|
|
583
|
+
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : v("", !0),
|
|
584
|
+
T(e.$slots, "skeleton", {}, () => [D(Ve) ? (S(), _(ne, { key: 0 })) : v("", !0)], !0)
|
|
585
|
+
], 36));
|
|
586
|
+
}
|
|
587
|
+
}, [["__scopeId", "data-v-7c150626"]]);
|
|
588
|
+
//#endregion
|
|
589
|
+
export { k as n, A as t };
|