vue-data-ui 3.1.18 → 3.1.19-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-BC5klzOh.js → Arrow-cyyFTTnm.js} +7 -7
- package/dist/{BaseDraggableDialog-CkjMZyIs.js → BaseDraggableDialog-Bf6A6G_f.js} +2 -2
- package/dist/{BaseIcon-BPiT94Lb.js → BaseIcon-D2f9w5Z5.js} +1 -1
- package/dist/{ColorPicker-bx5e2RB2.js → ColorPicker-gaAecgEC.js} +6 -6
- package/dist/{DataTable-CywujQw9.js → DataTable-xISHA7Pu.js} +2 -2
- package/dist/{Legend-h35dp0Qf.js → Legend-_Rv594VS.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CvnlQ378.js → NonSvgPenAndPaper-DiM4-9ju.js} +3 -3
- package/dist/{PackageVersion-BzGzkGiC.js → PackageVersion-B6W-zkH-.js} +3 -3
- package/dist/{PenAndPaper-Deh70G9d.js → PenAndPaper-CtDMyIvW.js} +3 -3
- package/dist/{Shape-sVxD_SDm.js → Shape-BDy56-wS.js} +1 -1
- package/dist/{Slicer-CQB967He.js → Slicer-BgpOhmb6.js} +31 -31
- package/dist/{SparkTooltip-DFRSPT3_.js → SparkTooltip-DOFGBHJ-.js} +1 -1
- package/dist/{Title-B_WMW2Bp.js → Title-pI68ZJsq.js} +1 -1
- package/dist/{Tooltip-Db9jy0Iu.js → Tooltip-Clf2K3CF.js} +1 -1
- package/dist/{UserOptions-CtECQwBN.js → UserOptions-Bn3u4JQu.js} +2 -2
- package/dist/components/arrow.js +5 -0
- package/dist/components/vue-ui-3d-bar.js +5 -0
- package/dist/components/vue-ui-accordion.js +5 -0
- package/dist/components/vue-ui-age-pyramid.js +5 -0
- package/dist/components/vue-ui-bullet.js +5 -0
- package/dist/components/vue-ui-candlestick.js +5 -0
- package/dist/components/vue-ui-carousel-table.js +5 -0
- package/dist/components/vue-ui-chestnut.js +5 -0
- package/dist/components/vue-ui-chord.js +5 -0
- package/dist/components/vue-ui-circle-pack.js +5 -0
- package/dist/components/vue-ui-cursor.js +5 -0
- package/dist/components/vue-ui-dashboard.js +5 -0
- package/dist/components/vue-ui-digits.js +5 -0
- package/dist/components/vue-ui-donut-evolution.js +5 -0
- package/dist/components/vue-ui-donut.js +5 -0
- package/dist/components/vue-ui-dumbbell.js +5 -0
- package/dist/components/vue-ui-flow.js +5 -0
- package/dist/components/vue-ui-funnel.js +5 -0
- package/dist/components/vue-ui-galaxy.js +5 -0
- package/dist/components/vue-ui-gauge.js +5 -0
- package/dist/components/vue-ui-gizmo.js +5 -0
- package/dist/components/vue-ui-heatmap.js +5 -0
- package/dist/components/vue-ui-history-plot.js +5 -0
- package/dist/components/vue-ui-horizontal-bar.js +5 -0
- package/dist/components/vue-ui-icon.js +5 -0
- package/dist/components/vue-ui-kpi.js +5 -0
- package/dist/components/vue-ui-mini-loader.js +5 -0
- package/dist/components/vue-ui-molecule.js +5 -0
- package/dist/components/vue-ui-mood-radar.js +5 -0
- package/dist/components/vue-ui-nested-donuts.js +5 -0
- package/dist/components/vue-ui-onion.js +5 -0
- package/dist/components/vue-ui-parallel-coordinate-plot.js +5 -0
- package/dist/components/vue-ui-pattern.js +5 -0
- package/dist/components/vue-ui-quadrant.js +5 -0
- package/dist/components/vue-ui-quick-chart.js +5 -0
- package/dist/components/vue-ui-radar.js +5 -0
- package/dist/components/vue-ui-rating.js +5 -0
- package/dist/components/vue-ui-relation-circle.js +5 -0
- package/dist/components/vue-ui-ridgeline.js +5 -0
- package/dist/components/vue-ui-rings.js +5 -0
- package/dist/components/vue-ui-scatter.js +5 -0
- package/dist/components/vue-ui-skeleton.js +5 -0
- package/dist/components/vue-ui-smiley.js +5 -0
- package/dist/components/vue-ui-spark-trend.js +5 -0
- package/dist/components/vue-ui-sparkbar.js +5 -0
- package/dist/components/vue-ui-sparkgauge.js +5 -0
- package/dist/components/vue-ui-sparkhistogram.js +5 -0
- package/dist/components/vue-ui-sparkline.js +5 -0
- package/dist/components/vue-ui-sparkstackbar.js +5 -0
- package/dist/components/vue-ui-stackbar.js +5 -0
- package/dist/components/vue-ui-strip-plot.js +5 -0
- package/dist/components/vue-ui-table-heatmap.js +5 -0
- package/dist/components/vue-ui-table-sparkline.js +5 -0
- package/dist/components/vue-ui-table.js +5 -0
- package/dist/components/vue-ui-thermometer.js +5 -0
- package/dist/components/vue-ui-timer.js +5 -0
- package/dist/components/vue-ui-tiremarks.js +5 -0
- package/dist/components/vue-ui-treemap.js +5 -0
- package/dist/components/vue-ui-vertical-bar.js +5 -0
- package/dist/components/vue-ui-waffle.js +5 -0
- package/dist/components/vue-ui-wheel.js +5 -0
- package/dist/components/vue-ui-word-cloud.js +5 -0
- package/dist/components/vue-ui-world.js +5 -0
- package/dist/components/vue-ui-xy-canvas.js +5 -0
- package/dist/components/vue-ui-xy.js +5 -0
- package/dist/{dom-to-png-BHpS3cMi.js → dom-to-png-CSg_eTqL.js} +1 -1
- package/dist/{img-BArHHegM.js → img-CH7J0fYg.js} +1 -1
- package/dist/lib-p5pfHmOX.js +1882 -0
- package/dist/{pdf-D1L3r23x.js → pdf-Wd2BQz4D.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/themes-D3cUNuKw.js +53 -0
- package/dist/types/arrow.d.ts +4 -0
- package/dist/types/vue-data-ui.d.ts +71 -21
- package/dist/types/vue-ui-3d-bar.d.ts +18 -0
- package/dist/types/vue-ui-accordion.d.ts +12 -0
- package/dist/types/vue-ui-age-pyramid.d.ts +21 -0
- package/dist/types/vue-ui-bullet.d.ts +16 -0
- package/dist/types/vue-ui-candlestick.d.ts +16 -0
- package/dist/types/vue-ui-carousel-table.d.ts +14 -0
- package/dist/types/vue-ui-chestnut.d.ts +17 -0
- package/dist/types/vue-ui-chord.d.ts +19 -0
- package/dist/types/vue-ui-circle-pack.d.ts +17 -0
- package/dist/types/vue-ui-cursor.d.ts +7 -0
- package/dist/types/vue-ui-dashboard.d.ts +14 -0
- package/dist/types/vue-ui-digits.d.ts +10 -0
- package/dist/types/vue-ui-donut-evolution.d.ts +17 -0
- package/dist/types/vue-ui-donut.d.ts +18 -0
- package/dist/types/vue-ui-dumbbell.d.ts +18 -0
- package/dist/types/vue-ui-flow.d.ts +18 -0
- package/dist/types/vue-ui-funnel.d.ts +15 -0
- package/dist/types/vue-ui-galaxy.d.ts +18 -0
- package/dist/types/vue-ui-gauge.d.ts +16 -0
- package/dist/types/vue-ui-gizmo.d.ts +14 -0
- package/dist/types/vue-ui-heatmap.d.ts +17 -0
- package/dist/types/vue-ui-history-plot.d.ts +19 -0
- package/dist/types/vue-ui-horizontal-bar.d.ts +19 -0
- package/dist/types/vue-ui-icon.d.ts +16 -0
- package/dist/types/vue-ui-kpi.d.ts +13 -0
- package/dist/types/vue-ui-mini-loader.d.ts +13 -0
- package/dist/types/vue-ui-molecule.d.ts +17 -0
- package/dist/types/vue-ui-mood-radar.d.ts +17 -0
- package/dist/types/vue-ui-nested-donuts.d.ts +18 -0
- package/dist/types/vue-ui-onion.d.ts +18 -0
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +20 -0
- package/dist/types/vue-ui-pattern.d.ts +17 -0
- package/dist/types/vue-ui-quadrant.d.ts +20 -0
- package/dist/types/vue-ui-quick-chart.d.ts +16 -0
- package/dist/types/vue-ui-radar.d.ts +22 -0
- package/dist/types/vue-ui-rating.d.ts +15 -0
- package/dist/types/vue-ui-relation-circle.d.ts +17 -0
- package/dist/types/vue-ui-ridgeline.d.ts +20 -0
- package/dist/types/vue-ui-rings.d.ts +17 -0
- package/dist/types/vue-ui-scatter.d.ts +19 -0
- package/dist/types/vue-ui-skeleton.d.ts +12 -0
- package/dist/types/vue-ui-smiley.d.ts +14 -0
- package/dist/types/vue-ui-spark-trend.d.ts +13 -0
- package/dist/types/vue-ui-sparkbar.d.ts +15 -0
- package/dist/types/vue-ui-sparkgauge.d.ts +14 -0
- package/dist/types/vue-ui-sparkhistogram.d.ts +15 -0
- package/dist/types/vue-ui-sparkline.d.ts +15 -0
- package/dist/types/vue-ui-sparkstackbar.d.ts +16 -0
- package/dist/types/vue-ui-stackbar.d.ts +18 -0
- package/dist/types/vue-ui-strip-plot.d.ts +19 -0
- package/dist/types/vue-ui-table-heatmap.d.ts +14 -0
- package/dist/types/vue-ui-table-sparkline.d.ts +14 -0
- package/dist/types/vue-ui-table.d.ts +17 -0
- package/dist/types/vue-ui-thermometer.d.ts +15 -0
- package/dist/types/vue-ui-timer.d.ts +12 -0
- package/dist/types/vue-ui-tiremarks.d.ts +15 -0
- package/dist/types/vue-ui-treemap.d.ts +18 -0
- package/dist/types/vue-ui-vertical-bar.d.ts +19 -0
- package/dist/types/vue-ui-waffle.d.ts +18 -0
- package/dist/types/vue-ui-wheel.d.ts +15 -0
- package/dist/types/vue-ui-word-cloud.d.ts +17 -0
- package/dist/types/vue-ui-world.d.ts +17 -0
- package/dist/types/vue-ui-xy-canvas.d.ts +15 -0
- package/dist/types/vue-ui-xy.d.ts +24 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DeqXeTNw.js → useAutoSizeLabelsInsideViewbox-VqESrzQg.js} +7 -7
- package/dist/useNestedProp-DF7e2h1z.js +6645 -0
- package/dist/{usePrinter-nFj0xF0a.js → usePrinter-Yeu5jOfm.js} +2 -2
- package/dist/{vue-data-ui-DcBYykse.js → vue-data-ui-DfcfqSDl.js} +64 -64
- package/dist/vue-data-ui.js +243 -85
- package/dist/{vue-ui-3d-bar-D4rc8PD3.js → vue-ui-3d-bar-DKkCWxob.js} +58 -57
- package/dist/{vue-ui-accordion-7cfJUVx5.js → vue-ui-accordion-D-L73-T2.js} +4 -4
- package/dist/{vue-ui-age-pyramid-BXMIUNB_.js → vue-ui-age-pyramid-gGF4DSOi.js} +28 -27
- package/dist/{vue-ui-annotator-aCDhQ-m2.js → vue-ui-annotator-SoAGIAm-.js} +7 -6
- package/dist/{vue-ui-bullet-Cd_iix-z.js → vue-ui-bullet-Coqi_swO.js} +28 -27
- package/dist/{vue-ui-candlestick-C-TTTgiW.js → vue-ui-candlestick-C78EYmhY.js} +32 -31
- package/dist/{vue-ui-carousel-table-C58J4zpm.js → vue-ui-carousel-table-B7i_eOe9.js} +25 -25
- package/dist/{vue-ui-chestnut-C7u6GW-T.js → vue-ui-chestnut-QzsKNF-J.js} +41 -40
- package/dist/{vue-ui-chord-DxLU3Fg1.js → vue-ui-chord-BxiWe3MD.js} +61 -60
- package/dist/{vue-ui-circle-pack--a_KE7qz.js → vue-ui-circle-pack-C3TZdbF1.js} +75 -74
- package/dist/{vue-ui-cursor-DJQWAIj8.js → vue-ui-cursor-0muOlHSh.js} +3 -3
- package/dist/{vue-ui-dashboard-CIACUYB-.js → vue-ui-dashboard-Dh0EyLe8.js} +68 -68
- package/dist/{vue-ui-digits-CLV8h-P8.js → vue-ui-digits-DOUNtmB0.js} +3 -3
- package/dist/{vue-ui-donut-sO6G5oor.js → vue-ui-donut-DTJCIEig.js} +39 -38
- package/dist/{vue-ui-donut-evolution-XGJvBQIm.js → vue-ui-donut-evolution-DYJmrFDC.js} +81 -80
- package/dist/{vue-ui-dumbbell-Bi11rDL7.js → vue-ui-dumbbell-COm32YHr.js} +97 -96
- package/dist/{vue-ui-flow-RP2v-aZJ.js → vue-ui-flow-BD2XeR-d.js} +127 -126
- package/dist/{vue-ui-funnel-TVQXGyw7.js → vue-ui-funnel-Cy9J1JpW.js} +39 -38
- package/dist/{vue-ui-galaxy-CUURaWgH.js → vue-ui-galaxy-KyUZ5tNb.js} +53 -52
- package/dist/{vue-ui-gauge-hTRlwARA.js → vue-ui-gauge-BpXYJd5z.js} +43 -42
- package/dist/{vue-ui-gizmo-CZIgBvWV.js → vue-ui-gizmo-DM3wSOOe.js} +6 -6
- package/dist/{vue-ui-heatmap-RKtFMgDP.js → vue-ui-heatmap-B2NzGPtL.js} +98 -97
- package/dist/{vue-ui-history-plot-fbTG7Mke.js → vue-ui-history-plot-BTnau6bc.js} +105 -104
- package/dist/{vue-ui-kpi-CfX-zUDS.js → vue-ui-kpi-D7zdt7-g.js} +15 -15
- package/dist/{vue-ui-mini-loader-C1nANuMy.js → vue-ui-mini-loader-CteWqKM_.js} +3 -3
- package/dist/{vue-ui-molecule-BU7T1ysb.js → vue-ui-molecule-8oQQTCN2.js} +54 -53
- package/dist/{vue-ui-mood-radar-Cb8cFWzE.js → vue-ui-mood-radar-B3ZrQSqP.js} +30 -29
- package/dist/{vue-ui-nested-donuts-DTZD8BTA.js → vue-ui-nested-donuts-BoUb_OX8.js} +69 -68
- package/dist/{vue-ui-onion-5xmlEUsJ.js → vue-ui-onion-xprTPjVq.js} +33 -32
- package/dist/{vue-ui-parallel-coordinate-plot-Wc0TbyJH.js → vue-ui-parallel-coordinate-plot-Cpzi3BO0.js} +61 -60
- package/dist/{vue-ui-pattern-DsYgSZWn.js → vue-ui-pattern-D5pNvoQp.js} +1 -1
- package/dist/{vue-ui-quadrant-BC99Cua7.js → vue-ui-quadrant-CHTnDwZ7.js} +35 -34
- package/dist/{vue-ui-quick-chart-Cbv2UcEu.js → vue-ui-quick-chart-zJyIT4di.js} +30 -29
- package/dist/{vue-ui-radar-B-ey_fDA.js → vue-ui-radar-B5QRDHJ1.js} +90 -89
- package/dist/{vue-ui-rating-BNCKLcCa.js → vue-ui-rating-CjoKP6-5.js} +9 -9
- package/dist/{vue-ui-relation-circle-CYFQcAgc.js → vue-ui-relation-circle-DStHH_sz.js} +44 -43
- package/dist/{vue-ui-ridgeline-B_6K1FTc.js → vue-ui-ridgeline-VI1I1k9W.js} +82 -81
- package/dist/{vue-ui-rings-D_BTgxYc.js → vue-ui-rings-D26TgYmU.js} +74 -73
- package/dist/{vue-ui-scatter-B69SYOfv.js → vue-ui-scatter-9CX5JEVI.js} +121 -120
- package/dist/{vue-ui-skeleton-CpkwgALO.js → vue-ui-skeleton-0yto3ZRt.js} +5 -5
- package/dist/{vue-ui-smiley-t16dEIoQ.js → vue-ui-smiley-YRRY-yQp.js} +28 -28
- package/dist/{vue-ui-spark-trend-DskdjYw4.js → vue-ui-spark-trend-13xDAi4U.js} +47 -46
- package/dist/{vue-ui-sparkbar-C-evQIq2.js → vue-ui-sparkbar-DBMeKvSW.js} +16 -15
- package/dist/{vue-ui-sparkgauge-DycVSHAs.js → vue-ui-sparkgauge-febkbzOk.js} +32 -31
- package/dist/{vue-ui-sparkhistogram-CZLnlSUD.js → vue-ui-sparkhistogram-rc9uWj4C.js} +22 -21
- package/dist/{vue-ui-sparkline-C1nZRVTa.js → vue-ui-sparkline-BpZKuk92.js} +131 -130
- package/dist/{vue-ui-sparkstackbar-CUUeuwAI.js → vue-ui-sparkstackbar-DuOsScHl.js} +28 -27
- package/dist/{vue-ui-stackbar-D27Wq8Y4.js → vue-ui-stackbar-BsdEyuPC.js} +77 -76
- package/dist/{vue-ui-strip-plot-D-srKJUr.js → vue-ui-strip-plot-Dem6Qr7N.js} +52 -51
- package/dist/{vue-ui-table-LcImk124.js → vue-ui-table-Dds0EE_Q.js} +9 -8
- package/dist/{vue-ui-table-heatmap-BfXe_f0K.js → vue-ui-table-heatmap-iu6l-6rW.js} +30 -29
- package/dist/{vue-ui-table-sparkline-DyrnPNGv.js → vue-ui-table-sparkline-DcHLIhbA.js} +20 -19
- package/dist/{vue-ui-thermometer-DxRDmz-L.js → vue-ui-thermometer-DZwSnX7w.js} +66 -65
- package/dist/{vue-ui-timer-Bbzb09O8.js → vue-ui-timer-BVmo70Ts.js} +31 -31
- package/dist/{vue-ui-tiremarks-DWy1Dkub.js → vue-ui-tiremarks-Cr6Fy7Sq.js} +30 -29
- package/dist/{vue-ui-treemap-C3Ek_E4n.js → vue-ui-treemap-DiKGxMUR.js} +32 -31
- package/dist/{vue-ui-vertical-bar-CV3Mc1cX.js → vue-ui-vertical-bar-D3_W8WLN.js} +54 -53
- package/dist/{vue-ui-waffle-D2mQJdcV.js → vue-ui-waffle-CoVrrxzt.js} +76 -75
- package/dist/{vue-ui-wheel-zbog7bII.js → vue-ui-wheel-Cwl-WsK2.js} +85 -84
- package/dist/{vue-ui-word-cloud-D9iZRkQP.js → vue-ui-word-cloud-L-58-uVD.js} +49 -48
- package/dist/{vue-ui-world-D5dR5VdK.js → vue-ui-world-CaA-eKMJ.js} +19 -19
- package/dist/{vue-ui-xy-Cll76_i9.js → vue-ui-xy-Bm2SYaTT.js} +135 -134
- package/dist/{vue-ui-xy-canvas-DJVXAfpL.js → vue-ui-xy-canvas-2Vg9eVqi.js} +166 -165
- package/package.json +14 -11
- package/dist/index-smzxfsyV.js +0 -8729
- package/dist/types/vue-data-ui.d.cts +0 -9435
- package/dist/useNestedProp-DeKmJzsE.js +0 -13
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineAsyncComponent as he, computed as h, ref as y, toRefs as Pe, watch as J, shallowRef as fe, onMounted as Re, onBeforeUnmount as ye, createElementBlock as c, openBlock as n, normalizeStyle as D, renderSlot as S, createCommentVNode as f, createBlock as pe, normalizeProps as ge, guardReactiveProps as me, createElementVNode as p, toDisplayString as
|
|
2
|
-
import {
|
|
3
|
-
import { u as Le } from "./useNestedProp-
|
|
4
|
-
import { t as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
1
|
+
import { defineAsyncComponent as he, computed as h, ref as y, toRefs as Pe, watch as J, shallowRef as fe, onMounted as Re, onBeforeUnmount as ye, createElementBlock as c, openBlock as n, normalizeStyle as D, renderSlot as S, createCommentVNode as f, createBlock as pe, normalizeProps as ge, guardReactiveProps as me, createElementVNode as p, toDisplayString as W, unref as s, createVNode as Fe, Fragment as Q, renderList as ee, withCtx as Ee, createTextVNode as Oe, nextTick as Be } from "vue";
|
|
2
|
+
import { c as Ge, t as je, D as be, a3 as te, o as ke, f as xe, g as Ue, i as T, a4 as Xe, a5 as Ye, X as qe, s as P, W as _e, V as Ze, a6 as we, a as ae, d as le, a7 as Ke } from "./lib-p5pfHmOX.js";
|
|
3
|
+
import { u as He, a as Le } from "./useNestedProp-DF7e2h1z.js";
|
|
4
|
+
import { t as Je, u as Qe } from "./useResponsive-DfdjqQps.js";
|
|
5
|
+
import { u as et } from "./useChartAccessibility-9icAAmYg.js";
|
|
6
|
+
import { u as tt, B as at } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { t as lt } from "./themes-D3cUNuKw.js";
|
|
8
|
+
import { u as ut } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
|
+
import { _ as ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
const st = ["id"], nt = ["xmlns", "viewBox"], rt = ["width", "height"], it = ["id"], vt = ["stop-color"], dt = ["stop-color"], ct = ["id"], ht = ["stop-color"], ft = ["stop-color"], yt = ["id"], pt = ["stop-color"], gt = ["stop-color"], mt = { key: 1 }, bt = ["d", "fill"], kt = ["d", "fill"], xt = ["d", "stroke", "stroke-width"], _t = ["d", "stroke", "stroke-width"], wt = ["x", "y", "width", "height", "fill", "rx"], Lt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], At = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], $t = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Nt = ["x", "y", "font-size", "font-weight", "fill"], Mt = ["x", "y", "height", "width", "onMouseenter", "onMouseleave", "onClick"], Ct = {
|
|
10
11
|
__name: "vue-ui-sparkline",
|
|
11
12
|
props: {
|
|
12
13
|
config: {
|
|
@@ -40,11 +41,11 @@ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["i
|
|
|
40
41
|
},
|
|
41
42
|
emits: ["hoverIndex", "selectDatapoint"],
|
|
42
43
|
setup($, { emit: Ae }) {
|
|
43
|
-
const $e = he(() => import("./PackageVersion-
|
|
44
|
-
function Ce(
|
|
45
|
-
return
|
|
44
|
+
const $e = he(() => import("./PackageVersion-B6W-zkH-.js")), Ne = he(() => import("./SparkTooltip-DOFGBHJ-.js")), { vue_ui_sparkline: Me } = He(), r = $, ue = h(() => Array.isArray(r.dataset) && r.dataset.length > 0), g = y(Ge()), R = y(null), oe = y(null), se = y(null), e = y(O());
|
|
45
|
+
function Ce(t) {
|
|
46
|
+
return Ke(t).map((a) => ({ period: "-", value: a }));
|
|
46
47
|
}
|
|
47
|
-
const { loading: F, FINAL_DATASET: N, manualLoading: E } =
|
|
48
|
+
const { loading: F, FINAL_DATASET: N, manualLoading: E } = tt({
|
|
48
49
|
...Pe(r),
|
|
49
50
|
FINAL_CONFIG: e,
|
|
50
51
|
prepareConfig: O,
|
|
@@ -54,7 +55,7 @@ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["i
|
|
|
54
55
|
});
|
|
55
56
|
},
|
|
56
57
|
skeletonDataset: Ce(12),
|
|
57
|
-
skeletonConfig:
|
|
58
|
+
skeletonConfig: je({
|
|
58
59
|
defaultConfig: e.value,
|
|
59
60
|
userConfig: {
|
|
60
61
|
style: {
|
|
@@ -71,79 +72,79 @@ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["i
|
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
})
|
|
74
|
-
}), { svgRef: ne } =
|
|
75
|
+
}), { svgRef: ne } = et({ config: e.value.style.title });
|
|
75
76
|
function O() {
|
|
76
|
-
const
|
|
77
|
+
const t = Le({
|
|
77
78
|
userConfig: r.config,
|
|
78
79
|
defaultConfig: Me
|
|
79
80
|
});
|
|
80
|
-
let
|
|
81
|
-
return
|
|
81
|
+
let a = {};
|
|
82
|
+
return t.theme ? a = {
|
|
82
83
|
...Le({
|
|
83
|
-
userConfig:
|
|
84
|
-
defaultConfig:
|
|
84
|
+
userConfig: lt.vue_ui_sparkline[t.theme] || r.config,
|
|
85
|
+
defaultConfig: t
|
|
85
86
|
})
|
|
86
|
-
} :
|
|
87
|
+
} : a = t, r.config && be(r.config, "style.scaleMin") ? a.style.scaleMin = r.config.style.scaleMin : a.style.scaleMin = null, r.config && be(r.config, "style.scaleMax") ? a.style.scaleMax = r.config.style.scaleMax : a.style.scaleMax = null, a;
|
|
87
88
|
}
|
|
88
|
-
const x = h(() =>
|
|
89
|
+
const x = h(() => te({
|
|
89
90
|
data: N.value,
|
|
90
91
|
threshold: e.value.downsample.threshold
|
|
91
92
|
}));
|
|
92
|
-
J(() => r.config, (
|
|
93
|
+
J(() => r.config, (t) => {
|
|
93
94
|
F.value || (e.value = O()), ie(), o.value.chartWidth = e.value.style.chartWidth;
|
|
94
|
-
}, { deep: !0 }), J(() => r.dataset, (
|
|
95
|
-
Array.isArray(
|
|
96
|
-
data: N.value.map((
|
|
97
|
-
...
|
|
98
|
-
value: [void 0].includes(
|
|
95
|
+
}, { deep: !0 }), J(() => r.dataset, (t) => {
|
|
96
|
+
Array.isArray(t) && t.length > 0 && (E.value = !1), m.value = te({
|
|
97
|
+
data: N.value.map((a) => ({
|
|
98
|
+
...a,
|
|
99
|
+
value: [void 0].includes(a.value) ? null : a.value
|
|
99
100
|
})),
|
|
100
101
|
threshold: e.value.downsample.threshold
|
|
101
102
|
});
|
|
102
103
|
}, { deep: !0 });
|
|
103
104
|
const m = y(Ie());
|
|
104
105
|
function Ie() {
|
|
105
|
-
return
|
|
106
|
-
data: N.value.map((
|
|
107
|
-
...
|
|
106
|
+
return te({
|
|
107
|
+
data: N.value.map((t) => e.value.style.animation.show && N.value.length > 1 ? {
|
|
108
|
+
...t,
|
|
108
109
|
value: null
|
|
109
110
|
} : {
|
|
110
|
-
...
|
|
111
|
-
value: [void 0].includes(
|
|
111
|
+
...t,
|
|
112
|
+
value: [void 0].includes(t.value) ? null : t.value
|
|
112
113
|
}),
|
|
113
114
|
threshold: e.value.downsample.threshold
|
|
114
115
|
});
|
|
115
116
|
}
|
|
116
117
|
const b = fe(null), _ = fe(null), B = y(!1), M = y(0), G = y([]), j = y(""), U = h(() => {
|
|
117
|
-
const
|
|
118
|
-
return `${
|
|
118
|
+
const a = (x.value || []).map((u) => `${u.period}::${Number.isFinite(u.value) ? u.value : 0}`).join("|"), l = e.value?.style?.animation || {};
|
|
119
|
+
return `${a}#${!!l.show}#${l.animationFrames || 0}`;
|
|
119
120
|
});
|
|
120
121
|
function V() {
|
|
121
|
-
M.value && (cancelAnimationFrame(M.value), M.value = 0), G.value.forEach((
|
|
122
|
+
M.value && (cancelAnimationFrame(M.value), M.value = 0), G.value.forEach((t) => clearTimeout(t)), G.value = [], B.value = !1;
|
|
122
123
|
}
|
|
123
124
|
function X() {
|
|
124
|
-
const
|
|
125
|
-
if (l && l === j.value && (B.value || m.value.length ===
|
|
125
|
+
const t = e.value?.style?.animation || {}, a = x.value || [], l = U.value;
|
|
126
|
+
if (l && l === j.value && (B.value || m.value.length === a.length))
|
|
126
127
|
return;
|
|
127
|
-
if (V(), !
|
|
128
|
-
m.value =
|
|
128
|
+
if (V(), !t.show || F.value || a.length <= 1) {
|
|
129
|
+
m.value = a, j.value = l;
|
|
129
130
|
return;
|
|
130
131
|
}
|
|
131
132
|
B.value = !0, j.value = l, m.value = [];
|
|
132
|
-
const u = Math.max(1, Number(
|
|
133
|
+
const u = Math.max(1, Number(t.animationFrames) || 1), K = Math.max(1, Math.floor(u / a.length));
|
|
133
134
|
let H = 0;
|
|
134
135
|
const ce = () => {
|
|
135
136
|
if (l !== U.value) {
|
|
136
137
|
V();
|
|
137
138
|
return;
|
|
138
139
|
}
|
|
139
|
-
if (H <
|
|
140
|
-
m.value.push(
|
|
141
|
-
const
|
|
140
|
+
if (H < a.length) {
|
|
141
|
+
m.value.push(a[H]);
|
|
142
|
+
const Te = setTimeout(() => {
|
|
142
143
|
M.value = requestAnimationFrame(ce);
|
|
143
144
|
}, K);
|
|
144
|
-
G.value.push(
|
|
145
|
+
G.value.push(Te), H += 1;
|
|
145
146
|
} else
|
|
146
|
-
m.value =
|
|
147
|
+
m.value = a, V();
|
|
147
148
|
};
|
|
148
149
|
M.value = requestAnimationFrame(ce);
|
|
149
150
|
}
|
|
@@ -160,31 +161,31 @@ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["i
|
|
|
160
161
|
componentName: "VueUiSparkline",
|
|
161
162
|
type: "dataset",
|
|
162
163
|
debug: re.value
|
|
163
|
-
}), E.value = !0) : r.dataset.forEach((
|
|
164
|
-
|
|
165
|
-
datasetObject:
|
|
164
|
+
}), E.value = !0) : r.dataset.forEach((t, a) => {
|
|
165
|
+
Ue({
|
|
166
|
+
datasetObject: t,
|
|
166
167
|
requiredAttributes: ["period", "value"]
|
|
167
168
|
}).forEach((l) => {
|
|
168
169
|
xe({
|
|
169
170
|
componentName: "VueUiSparkline",
|
|
170
171
|
type: "datasetSerieAttribute",
|
|
171
172
|
property: l,
|
|
172
|
-
index:
|
|
173
|
+
index: a,
|
|
173
174
|
debug: re.value
|
|
174
175
|
});
|
|
175
176
|
});
|
|
176
177
|
}), ke(r.dataset) || (E.value = e.value.loading), e.value.responsive) {
|
|
177
|
-
const
|
|
178
|
-
const { width:
|
|
178
|
+
const t = Je(() => {
|
|
179
|
+
const { width: a, height: l } = Qe({
|
|
179
180
|
chart: R.value,
|
|
180
181
|
title: e.value.style.title.show && r.showInfo ? oe.value : null,
|
|
181
182
|
source: se.value
|
|
182
183
|
});
|
|
183
184
|
requestAnimationFrame(() => {
|
|
184
|
-
o.value.width =
|
|
185
|
+
o.value.width = a, o.value.height = l, o.value.chartWidth = e.value.style.chartWidth / 500 * a, o.value.padding = r.forcedPadding / 500 * a;
|
|
185
186
|
});
|
|
186
187
|
});
|
|
187
|
-
b.value && (_.value && b.value.unobserve(_.value), b.value.disconnect()), b.value = new ResizeObserver(
|
|
188
|
+
b.value && (_.value && b.value.unobserve(_.value), b.value.disconnect()), b.value = new ResizeObserver(t), _.value = R.value.parentNode, b.value.observe(_.value);
|
|
188
189
|
}
|
|
189
190
|
}
|
|
190
191
|
ye(() => {
|
|
@@ -196,63 +197,63 @@ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["i
|
|
|
196
197
|
chartWidth: e.value.style.chartWidth,
|
|
197
198
|
padding: r.forcedPadding
|
|
198
199
|
}), Y = Ae, i = h(() => {
|
|
199
|
-
const { top:
|
|
200
|
+
const { top: t, right: a, bottom: l, left: u } = e.value.style.padding;
|
|
200
201
|
return {
|
|
201
|
-
top:
|
|
202
|
+
top: t,
|
|
202
203
|
left: u,
|
|
203
|
-
right: o.value.width -
|
|
204
|
+
right: o.value.width - a,
|
|
204
205
|
bottom: o.value.height - l,
|
|
205
206
|
start: r.showInfo && e.value.style.dataLabel.show && e.value.style.dataLabel.position === "left" ? o.value.width - o.value.chartWidth + u : o.value.padding + u,
|
|
206
|
-
width: r.showInfo && e.value.style.dataLabel.show ? o.value.chartWidth - u -
|
|
207
|
-
height: o.value.height -
|
|
207
|
+
width: r.showInfo && e.value.style.dataLabel.show ? o.value.chartWidth - u - a : o.value.width - o.value.padding - u - a,
|
|
208
|
+
height: o.value.height - t - l
|
|
208
209
|
};
|
|
209
|
-
}), q = h(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...m.value.map((
|
|
210
|
-
const
|
|
211
|
-
return Math.abs(
|
|
210
|
+
}), q = h(() => [null, void 0].includes(e.value.style.scaleMin) ? Math.min(...m.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMin), Se = h(() => [null, void 0].includes(e.value.style.scaleMax) ? Math.max(...m.value.map((t) => isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0)) : e.value.style.scaleMax), C = h(() => {
|
|
211
|
+
const t = q.value >= 0 ? 0 : q.value;
|
|
212
|
+
return Math.abs(t);
|
|
212
213
|
}), ve = h(() => Se.value + C.value), w = h(() => i.value.bottom - i.value.height * Z(C.value));
|
|
213
|
-
function Z(
|
|
214
|
-
return isNaN(
|
|
214
|
+
function Z(t) {
|
|
215
|
+
return isNaN(t / ve.value) ? 0 : t / ve.value;
|
|
215
216
|
}
|
|
216
|
-
const L = h(() => x.value.length - 1 || 1), z = h(() =>
|
|
217
|
-
values: x.value.map((
|
|
217
|
+
const L = h(() => x.value.length - 1 || 1), z = h(() => ut({
|
|
218
|
+
values: x.value.map((t) => t.period),
|
|
218
219
|
maxDatapoints: x.value.length,
|
|
219
220
|
formatter: e.value.style.dataLabel.datetimeFormatter,
|
|
220
221
|
start: 0,
|
|
221
222
|
end: x.value.length
|
|
222
|
-
})), d = h(() => m.value.map((
|
|
223
|
-
const l = isNaN(
|
|
223
|
+
})), d = h(() => m.value.map((t, a) => {
|
|
224
|
+
const l = isNaN(t.value) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t.value) ? 0 : t.value || 0, u = i.value.width / L.value;
|
|
224
225
|
return {
|
|
225
226
|
absoluteValue: l,
|
|
226
|
-
period: z.value && z.value[
|
|
227
|
+
period: z.value && z.value[a] && z.value[a].text ? z.value[a].text : t.period,
|
|
227
228
|
plotValue: l + C.value,
|
|
228
229
|
toMax: Z(l + C.value),
|
|
229
|
-
x: i.value.start +
|
|
230
|
+
x: i.value.start + a * u,
|
|
230
231
|
y: i.value.bottom - i.value.height * Z(l + C.value),
|
|
231
|
-
id: `plot_${g.value}_${
|
|
232
|
-
color: I.value ? e.value.style.bar.color : e.value.style.area.useGradient ?
|
|
232
|
+
id: `plot_${g.value}_${a}`,
|
|
233
|
+
color: I.value ? e.value.style.bar.color : e.value.style.area.useGradient ? T(e.value.style.line.color, 0.05 * (1 - a / L.value)) : e.value.style.line.color,
|
|
233
234
|
width: u
|
|
234
235
|
};
|
|
235
236
|
})), Ve = h(() => {
|
|
236
|
-
const
|
|
237
|
+
const t = { x: d.value[0].x || 0, y: (o.value.height || 0) - 6 }, a = { x: d.value[d.value.length - 1].x || 0, y: (o.value.height || 0) - 6 }, l = [];
|
|
237
238
|
return d.value.forEach((u) => {
|
|
238
239
|
l.push(`${u.x || 0},${u.y || 0} `);
|
|
239
|
-
}), [
|
|
240
|
+
}), [t.x, t.y, ...l, a.x, a.y].toString();
|
|
240
241
|
}), v = y(void 0), A = y(void 0);
|
|
241
|
-
function ze(
|
|
242
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint:
|
|
242
|
+
function ze(t, a) {
|
|
243
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), v.value = t, A.value || (A.value = t), Y("hoverIndex", { index: a });
|
|
243
244
|
}
|
|
244
|
-
function De(
|
|
245
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint:
|
|
245
|
+
function De(t, a) {
|
|
246
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), A.value = v.value, v.value = void 0, Y("hoverIndex", { index: void 0 });
|
|
246
247
|
}
|
|
247
248
|
const k = h(() => {
|
|
248
249
|
if (ue.value) {
|
|
249
|
-
const
|
|
250
|
+
const t = d.value.map((l) => l.absoluteValue), a = t.reduce((l, u) => l + u, 0);
|
|
250
251
|
return {
|
|
251
252
|
latest: d.value[d.value.length - 1] ? d.value[d.value.length - 1].absoluteValue : 0,
|
|
252
|
-
sum:
|
|
253
|
-
average:
|
|
254
|
-
median:
|
|
255
|
-
trend:
|
|
253
|
+
sum: a,
|
|
254
|
+
average: a / d.value.length,
|
|
255
|
+
median: Ye(t),
|
|
256
|
+
trend: Xe(d.value.map(({ x: l, y: u, absoluteValue: K }) => ({
|
|
256
257
|
x: l,
|
|
257
258
|
y: u,
|
|
258
259
|
value: K
|
|
@@ -267,17 +268,17 @@ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["i
|
|
|
267
268
|
trend: null
|
|
268
269
|
};
|
|
269
270
|
}), de = h(() => ue.value ? e.value.style.dataLabel.valueType === "latest" ? k.value.latest : e.value.style.dataLabel.valueType === "sum" ? k.value.sum : e.value.style.dataLabel.valueType === "average" ? k.value.average : 0 : 0), I = h(() => e.value.type && e.value.type === "bar");
|
|
270
|
-
function
|
|
271
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint:
|
|
271
|
+
function We(t, a) {
|
|
272
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a }), Y("selectDatapoint", { datapoint: t, index: a });
|
|
272
273
|
}
|
|
273
|
-
return (
|
|
274
|
+
return (t, a) => (n(), c("div", {
|
|
274
275
|
ref_key: "sparklineChart",
|
|
275
276
|
ref: R,
|
|
276
277
|
class: "vue-ui-sparkline",
|
|
277
278
|
id: g.value,
|
|
278
279
|
style: D(`width:100%;font-family:${e.value.style.fontFamily};`)
|
|
279
280
|
}, [
|
|
280
|
-
S(
|
|
281
|
+
S(t.$slots, "before", ge(me({
|
|
281
282
|
selected: v.value,
|
|
282
283
|
latest: k.value.latest,
|
|
283
284
|
sum: k.value.sum,
|
|
@@ -294,18 +295,18 @@ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["i
|
|
|
294
295
|
}, [
|
|
295
296
|
p("span", {
|
|
296
297
|
style: D(`padding:${e.value.style.title.textAlign === "left" ? "0 0 0 12px" : e.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`)
|
|
297
|
-
},
|
|
298
|
+
}, W(v.value ? v.value.period : e.value.style.title.text), 5)
|
|
298
299
|
], 4)) : f("", !0),
|
|
299
300
|
(n(), c("svg", {
|
|
300
301
|
ref_key: "svgRef",
|
|
301
302
|
ref: ne,
|
|
302
|
-
xmlns: s(
|
|
303
|
+
xmlns: s(qe),
|
|
303
304
|
viewBox: `0 0 ${o.value.width} ${o.value.height}`,
|
|
304
305
|
style: D(`background:${e.value.style.backgroundColor};overflow:visible`),
|
|
305
|
-
onMouseleave:
|
|
306
|
+
onMouseleave: a[0] || (a[0] = (l) => A.value = void 0)
|
|
306
307
|
}, [
|
|
307
308
|
Fe(s($e)),
|
|
308
|
-
|
|
309
|
+
t.$slots["chart-background"] ? (n(), c("foreignObject", {
|
|
309
310
|
key: 0,
|
|
310
311
|
x: 0,
|
|
311
312
|
y: 0,
|
|
@@ -315,8 +316,8 @@ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["i
|
|
|
315
316
|
pointerEvents: "none"
|
|
316
317
|
}
|
|
317
318
|
}, [
|
|
318
|
-
S(
|
|
319
|
-
], 8,
|
|
319
|
+
S(t.$slots, "chart-background", {}, void 0, !0)
|
|
320
|
+
], 8, rt)) : f("", !0),
|
|
320
321
|
p("defs", null, [
|
|
321
322
|
p("linearGradient", {
|
|
322
323
|
x1: "0%",
|
|
@@ -327,13 +328,13 @@ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["i
|
|
|
327
328
|
}, [
|
|
328
329
|
p("stop", {
|
|
329
330
|
offset: "0%",
|
|
330
|
-
"stop-color": s(P)(s(
|
|
331
|
-
}, null, 8,
|
|
331
|
+
"stop-color": s(P)(s(T)(e.value.style.area.color, 0.05), e.value.style.area.opacity)
|
|
332
|
+
}, null, 8, vt),
|
|
332
333
|
p("stop", {
|
|
333
334
|
offset: "100%",
|
|
334
335
|
"stop-color": s(P)(e.value.style.area.color, e.value.style.area.opacity)
|
|
335
|
-
}, null, 8,
|
|
336
|
-
], 8,
|
|
336
|
+
}, null, 8, dt)
|
|
337
|
+
], 8, it),
|
|
337
338
|
p("linearGradient", {
|
|
338
339
|
x2: "0%",
|
|
339
340
|
y2: "100%",
|
|
@@ -342,12 +343,12 @@ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["i
|
|
|
342
343
|
p("stop", {
|
|
343
344
|
offset: "0%",
|
|
344
345
|
"stop-color": e.value.style.bar.color
|
|
345
|
-
}, null, 8,
|
|
346
|
+
}, null, 8, ht),
|
|
346
347
|
p("stop", {
|
|
347
348
|
offset: "100%",
|
|
348
|
-
"stop-color": s(
|
|
349
|
-
}, null, 8,
|
|
350
|
-
], 8,
|
|
349
|
+
"stop-color": s(T)(e.value.style.bar.color, 0.05)
|
|
350
|
+
}, null, 8, ft)
|
|
351
|
+
], 8, ct),
|
|
351
352
|
p("linearGradient", {
|
|
352
353
|
x2: "0%",
|
|
353
354
|
y2: "100%",
|
|
@@ -355,24 +356,24 @@ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["i
|
|
|
355
356
|
}, [
|
|
356
357
|
p("stop", {
|
|
357
358
|
offset: "0%",
|
|
358
|
-
"stop-color": s(
|
|
359
|
-
}, null, 8,
|
|
359
|
+
"stop-color": s(T)(e.value.style.bar.color, 0.05)
|
|
360
|
+
}, null, 8, pt),
|
|
360
361
|
p("stop", {
|
|
361
362
|
offset: "100%",
|
|
362
363
|
"stop-color": e.value.style.bar.color
|
|
363
|
-
}, null, 8,
|
|
364
|
-
], 8,
|
|
364
|
+
}, null, 8, gt)
|
|
365
|
+
], 8, yt)
|
|
365
366
|
]),
|
|
366
|
-
e.value.style.area.show && !I.value && d.value[0] && d.value.length > 1 ? (n(), c("g",
|
|
367
|
+
e.value.style.area.show && !I.value && d.value[0] && d.value.length > 1 ? (n(), c("g", mt, [
|
|
367
368
|
e.value.style.line.smooth ? (n(), c("path", {
|
|
368
369
|
key: 0,
|
|
369
370
|
d: `M ${d.value[0].x},${i.value.bottom} ${s(_e)(d.value)} L ${d.value.at(-1).x},${i.value.bottom} Z`,
|
|
370
371
|
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${g.value})` : s(P)(e.value.style.area.color, e.value.style.area.opacity)
|
|
371
|
-
}, null, 8,
|
|
372
|
+
}, null, 8, bt)) : (n(), c("path", {
|
|
372
373
|
key: 1,
|
|
373
374
|
d: `M${Ve.value}Z`,
|
|
374
375
|
fill: e.value.style.area.useGradient ? `url(#sparkline_gradient_${g.value})` : s(P)(e.value.style.area.color, e.value.style.area.opacity)
|
|
375
|
-
}, null, 8,
|
|
376
|
+
}, null, 8, kt))
|
|
376
377
|
])) : f("", !0),
|
|
377
378
|
e.value.style.line.smooth && !I.value ? (n(), c("path", {
|
|
378
379
|
key: 2,
|
|
@@ -381,15 +382,15 @@ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["i
|
|
|
381
382
|
fill: "none",
|
|
382
383
|
"stroke-width": e.value.style.line.strokeWidth,
|
|
383
384
|
"stroke-linecap": "round"
|
|
384
|
-
}, null, 8,
|
|
385
|
+
}, null, 8, xt)) : f("", !0),
|
|
385
386
|
!e.value.style.line.smooth && !I.value ? (n(), c("path", {
|
|
386
387
|
key: 3,
|
|
387
|
-
d: `M ${s(
|
|
388
|
+
d: `M ${s(Ze)(d.value) || "0,0"}`,
|
|
388
389
|
stroke: e.value.style.line.color,
|
|
389
390
|
fill: "none",
|
|
390
391
|
"stroke-width": e.value.style.line.strokeWidth,
|
|
391
392
|
"stroke-linecap": "round"
|
|
392
|
-
}, null, 8,
|
|
393
|
+
}, null, 8, _t)) : f("", !0),
|
|
393
394
|
(n(!0), c(Q, null, ee(d.value, (l, u) => (n(), c("g", null, [
|
|
394
395
|
I.value ? (n(), c("rect", {
|
|
395
396
|
key: 0,
|
|
@@ -399,7 +400,7 @@ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["i
|
|
|
399
400
|
height: isNaN(Math.abs(l.y - w.value)) ? 0 : Math.abs(l.y - w.value),
|
|
400
401
|
fill: l.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${g.value})` : `url(#sparkline_bar_gradient_neg_${g.value})`,
|
|
401
402
|
rx: e.value.style.bar.borderRadius
|
|
402
|
-
}, null, 8,
|
|
403
|
+
}, null, 8, wt)) : f("", !0),
|
|
403
404
|
e.value.style.verticalIndicator.show && (v.value && l.id === v.value.id || $.selectedIndex === u) ? (n(), c("line", {
|
|
404
405
|
key: 1,
|
|
405
406
|
x1: l.x,
|
|
@@ -410,7 +411,7 @@ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["i
|
|
|
410
411
|
"stroke-width": e.value.style.verticalIndicator.strokeWidth,
|
|
411
412
|
"stroke-linecap": "round",
|
|
412
413
|
"stroke-dasharray": e.value.style.verticalIndicator.strokeDasharray || 0
|
|
413
|
-
}, null, 8,
|
|
414
|
+
}, null, 8, Lt)) : f("", !0)
|
|
414
415
|
]))), 256)),
|
|
415
416
|
q.value < 0 ? (n(), c("line", {
|
|
416
417
|
key: 4,
|
|
@@ -422,7 +423,7 @@ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["i
|
|
|
422
423
|
"stroke-dasharray": e.value.style.zeroLine.strokeWidth * 2,
|
|
423
424
|
"stroke-width": e.value.style.zeroLine.strokeWidth,
|
|
424
425
|
"stroke-linecap": "round"
|
|
425
|
-
}, null, 8,
|
|
426
|
+
}, null, 8, At)) : f("", !0),
|
|
426
427
|
e.value.style.plot.show ? (n(!0), c(Q, { key: 5 }, ee(d.value, (l, u) => (n(), c("g", null, [
|
|
427
428
|
v.value && l.id === v.value.id || $.selectedIndex === u || s(N).length === 1 ? (n(), c("circle", {
|
|
428
429
|
key: 0,
|
|
@@ -432,7 +433,7 @@ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["i
|
|
|
432
433
|
fill: l.color,
|
|
433
434
|
stroke: e.value.style.plot.stroke,
|
|
434
435
|
"stroke-width": e.value.style.plot.strokeWidth
|
|
435
|
-
}, null, 8, $
|
|
436
|
+
}, null, 8, $t)) : f("", !0)
|
|
436
437
|
]))), 256)) : f("", !0),
|
|
437
438
|
$.showInfo && e.value.style.dataLabel.show ? (n(), c("text", {
|
|
438
439
|
key: 6,
|
|
@@ -441,16 +442,16 @@ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["i
|
|
|
441
442
|
"font-size": e.value.style.dataLabel.fontSize,
|
|
442
443
|
"font-weight": e.value.style.dataLabel.bold ? "bold" : "normal",
|
|
443
444
|
fill: e.value.style.dataLabel.color
|
|
444
|
-
},
|
|
445
|
+
}, W(v.value ? s(ae)(
|
|
445
446
|
e.value.style.dataLabel.formatter,
|
|
446
447
|
v.value.absoluteValue,
|
|
447
448
|
s(le)({ p: e.value.style.dataLabel.prefix, v: v.value.absoluteValue, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue }),
|
|
448
449
|
{ datapoint: v.value }
|
|
449
|
-
) : s(
|
|
450
|
+
) : s(ae)(
|
|
450
451
|
e.value.style.dataLabel.formatter,
|
|
451
452
|
de.value,
|
|
452
453
|
s(le)({ p: e.value.style.dataLabel.prefix, v: de.value, s: e.value.style.dataLabel.suffix, r: e.value.style.dataLabel.roundingValue })
|
|
453
|
-
)), 9,
|
|
454
|
+
)), 9, Nt)) : f("", !0),
|
|
454
455
|
(n(!0), c(Q, null, ee(d.value, (l, u) => (n(), c("rect", {
|
|
455
456
|
x: l.x - (i.value.width / (L.value + 1) > o.value.padding ? o.value.padding : i.value.width / (L.value + 1)) / 2,
|
|
456
457
|
y: i.value.top - 6,
|
|
@@ -459,10 +460,10 @@ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["i
|
|
|
459
460
|
fill: "transparent",
|
|
460
461
|
onMouseenter: () => ze(l, u),
|
|
461
462
|
onMouseleave: () => De(l, u),
|
|
462
|
-
onClick: () =>
|
|
463
|
-
}, null, 40,
|
|
464
|
-
S(
|
|
465
|
-
], 44,
|
|
463
|
+
onClick: () => We(l, u)
|
|
464
|
+
}, null, 40, Mt))), 256)),
|
|
465
|
+
S(t.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
466
|
+
], 44, nt)),
|
|
466
467
|
v.value && e.value.style.tooltip.show ? (n(), pe(s(Ne), {
|
|
467
468
|
key: 1,
|
|
468
469
|
x: v.value.x,
|
|
@@ -480,8 +481,8 @@ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["i
|
|
|
480
481
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity
|
|
481
482
|
}, {
|
|
482
483
|
default: Ee(() => [
|
|
483
|
-
S(
|
|
484
|
-
Oe(
|
|
484
|
+
S(t.$slots, "tooltip", ge(me({ ...v.value })), () => [
|
|
485
|
+
Oe(W(v.value.period) + ": " + W(s(ae)(
|
|
485
486
|
e.value.style.dataLabel.formatter,
|
|
486
487
|
v.value.absoluteValue,
|
|
487
488
|
s(le)({
|
|
@@ -496,18 +497,18 @@ const sa = ["id"], na = ["xmlns", "viewBox"], ra = ["width", "height"], ia = ["i
|
|
|
496
497
|
]),
|
|
497
498
|
_: 3
|
|
498
499
|
}, 8, ["x", "y", "prevX", "prevY", "offsetY", "svgRef", "background", "color", "fontSize", "borderWidth", "borderColor", "borderRadius", "backgroundOpacity"])) : f("", !0),
|
|
499
|
-
|
|
500
|
+
t.$slots.source ? (n(), c("div", {
|
|
500
501
|
key: 2,
|
|
501
502
|
ref_key: "source",
|
|
502
503
|
ref: se,
|
|
503
504
|
dir: "auto"
|
|
504
505
|
}, [
|
|
505
|
-
S(
|
|
506
|
+
S(t.$slots, "source", {}, void 0, !0)
|
|
506
507
|
], 512)) : f("", !0),
|
|
507
|
-
s(F) ? (n(), pe(
|
|
508
|
-
], 12,
|
|
508
|
+
s(F) ? (n(), pe(at, { key: 3 })) : f("", !0)
|
|
509
|
+
], 12, st));
|
|
509
510
|
}
|
|
510
|
-
},
|
|
511
|
+
}, Ft = /* @__PURE__ */ ot(Ct, [["__scopeId", "data-v-9bb1ae10"]]);
|
|
511
512
|
export {
|
|
512
|
-
|
|
513
|
+
Ft as default
|
|
513
514
|
};
|