vue-data-ui 3.25.11 → 3.25.13
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-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
- package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
- package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
- package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
- package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
- package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
- package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
- package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
- package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
- package/dist/{PackageVersion-CEvZNFTz.js → PackageVersion-D5QkTJQU.js} +1 -1
- package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
- package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
- package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
- package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
- package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
- package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
- package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
- package/dist/exposedLib-BBtjpydc.js +28 -0
- package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
- package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
- package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
- package/dist/{package-B10eQN5L.js → package-Cmcke8zR.js} +1 -1
- package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
- package/dist/{render-common-CZ6-MONw.js → render-common-CG1wuHZY.js} +16 -16
- 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 +6 -0
- package/dist/{useConfig-D32D002m.js → useConfig-C2uy4ltq.js} +2 -0
- package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
- package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-CEuNiBIT.js} +1 -1
- package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
- package/dist/utils.js +13 -13
- package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-BVzA0tEV.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-Ckauu3d4.js} +536 -536
- package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-yHZMJLaY.js} +4 -4
- package/dist/vue-ui-age-pyramid-BczIt1-U.js +1305 -0
- package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BGB6K6u0.js} +60 -60
- package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-BoTsLccZ.js} +84 -84
- package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-B5ztSSQO.js} +105 -105
- package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-BJtdA4Yu.js} +98 -98
- package/dist/vue-ui-carousel-table-D-3KSWok.js +467 -0
- package/dist/vue-ui-chestnut-W2l-W0_e.js +2016 -0
- package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-BFPQsMj8.js} +63 -63
- package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-BtPc1BR3.js} +50 -50
- package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-CpNOiwkt.js} +61 -61
- package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-i-zPwLcN.js} +44 -44
- package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-DtaW9a2P.js} +70 -70
- package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-BIlec9af.js} +4 -4
- package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-Bgf-n95J.js} +551 -551
- package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-CJlBEyxu.js} +203 -203
- package/dist/vue-ui-donut-evolution-C0BKntfL.js +1552 -0
- package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-C112YLkC.js} +87 -87
- package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-j4bDg9Zd.js} +99 -99
- package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-CVHpfBCW.js} +40 -40
- package/dist/vue-ui-galaxy-ChGpUWh8.js +1097 -0
- package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-Cp00vXfG.js} +190 -190
- package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-B4hDk5NO.js} +12 -12
- package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D6nCCsS4.js} +54 -54
- package/dist/vue-ui-heatmap-scVJc1cw.js +1606 -0
- package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-DnYUHGAK.js} +21 -21
- package/dist/vue-ui-history-plot-C5qAMaaW.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-nEG4uvpv.js} +85 -85
- package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-DOxId6xg.js} +12 -12
- package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-BDKY7BI7.js} +4 -4
- package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-BknVs9VJ.js} +3 -3
- package/dist/vue-ui-molecule-_x232mMu.js +941 -0
- package/dist/vue-ui-mood-radar-D-F4855V.js +1111 -0
- package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-0E5IllFW.js} +481 -481
- package/dist/vue-ui-onion-Eip0S1H7.js +1247 -0
- package/dist/vue-ui-parallel-coordinate-plot-DO0sQdJw.js +1444 -0
- package/dist/vue-ui-quadrant-CA0ClWfL.js +1979 -0
- package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-D-VuAoll.js} +169 -169
- package/dist/vue-ui-radar-BTD7Y0Ps.js +1386 -0
- package/dist/vue-ui-rating-C_Qj6gnP.js +359 -0
- package/dist/vue-ui-relation-circle-CcxLBVFV.js +905 -0
- package/dist/vue-ui-ridgeline-BZrzbbhb.js +1630 -0
- package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-CO48GOP2.js} +78 -78
- package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-DrxUgZbQ.js} +136 -136
- package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-CeKjW4MX.js} +510 -510
- package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-BvRwx69s.js} +6 -6
- package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-DnujGRyt.js} +96 -96
- package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-Cd_uhYGD.js} +113 -113
- package/dist/vue-ui-sparkgauge-hT31YEtt.js +268 -0
- package/dist/vue-ui-sparkhistogram-PKlTYhKA.js +589 -0
- package/dist/vue-ui-sparkline-BSu1uRvP.js +1610 -0
- package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-R0ij2vi1.js} +183 -183
- package/dist/vue-ui-stackbar-BrzzkGFk.js +2369 -0
- package/dist/vue-ui-stackline-zEX3gR3y.js +2483 -0
- package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-DR3N56rS.js} +253 -253
- package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bg6BeLrf.js} +117 -117
- package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-C1b1Pcp8.js} +95 -95
- package/dist/vue-ui-table-sparkline-CkVXyequ.js +738 -0
- package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CqkaMF7Z.js} +23 -23
- package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CgJvNwBv.js} +13 -13
- package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-B078YJ9M.js} +30 -30
- package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-Cfjf8mDl.js} +77 -77
- package/dist/vue-ui-waffle-BZIcPa0l.js +1633 -0
- package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CPTm8AHn.js} +185 -185
- package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-DnGblUwj.js} +46 -46
- package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-KkcpeKqp.js} +133 -133
- package/dist/vue-ui-xy-C6lVqZnx.js +5367 -0
- package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-ClCV7xA5.js} +169 -169
- package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-BlpCbXKR.js} +435 -435
- package/package.json +1 -1
- package/dist/exposedLib-CG3aXJ-v.js +0 -28
- package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
- package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
- package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
- package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
- package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
- package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
- package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
- package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
- package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
- package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
- package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
- package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
- package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
- package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
- package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
- package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
- package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
- package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
- package/dist/vue-ui-sparkline-BF0Fdo6v.js +0 -1587
- package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
- package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
- package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
- package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
- package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
|
@@ -1,589 +0,0 @@
|
|
|
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-D32D002m.js";
|
|
5
|
-
import { n as te, t as ne } from "./BaseScanner-Dzc8VT3j.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-CEvZNFTz.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 };
|