vue-data-ui 3.1.18 → 3.1.19-next.0
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-DRpg18lg.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/universal.d.ts +1 -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/universal-registry-CL8g2COA.js +70 -0
- package/dist/universal.js +5 -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-h5C8hpE8.js +317 -0
- package/dist/vue-data-ui.js +243 -85
- package/dist/{vue-ui-3d-bar-D4rc8PD3.js → vue-ui-3d-bar-BZDLbeym.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-C1NMeWTB.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-G_Y2Ryof.js} +28 -27
- package/dist/{vue-ui-candlestick-C-TTTgiW.js → vue-ui-candlestick-9sHzdqr3.js} +32 -31
- package/dist/{vue-ui-carousel-table-C58J4zpm.js → vue-ui-carousel-table-CnGSgjPK.js} +25 -25
- package/dist/{vue-ui-chestnut-C7u6GW-T.js → vue-ui-chestnut-C_0Y77a9.js} +41 -40
- package/dist/{vue-ui-chord-DxLU3Fg1.js → vue-ui-chord-DqGoensA.js} +61 -60
- package/dist/{vue-ui-circle-pack--a_KE7qz.js → vue-ui-circle-pack-5L50If0h.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-2FyL5ac1.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-CWgiy7rq.js} +39 -38
- package/dist/{vue-ui-donut-evolution-XGJvBQIm.js → vue-ui-donut-evolution-DxH6i5aO.js} +81 -80
- package/dist/{vue-ui-dumbbell-Bi11rDL7.js → vue-ui-dumbbell-D7nhPGxL.js} +97 -96
- package/dist/{vue-ui-flow-RP2v-aZJ.js → vue-ui-flow-C8iSww9L.js} +127 -126
- package/dist/{vue-ui-funnel-TVQXGyw7.js → vue-ui-funnel-D3GZcM5e.js} +39 -38
- package/dist/{vue-ui-galaxy-CUURaWgH.js → vue-ui-galaxy-CUHEJHiw.js} +53 -52
- package/dist/{vue-ui-gauge-hTRlwARA.js → vue-ui-gauge-MM8rPNWR.js} +43 -42
- package/dist/{vue-ui-gizmo-CZIgBvWV.js → vue-ui-gizmo-CQ7XyocO.js} +6 -6
- package/dist/{vue-ui-heatmap-RKtFMgDP.js → vue-ui-heatmap-BT5orcuT.js} +98 -97
- package/dist/{vue-ui-history-plot-fbTG7Mke.js → vue-ui-history-plot-BCfEt867.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-DekqFbQ4.js} +54 -53
- package/dist/{vue-ui-mood-radar-Cb8cFWzE.js → vue-ui-mood-radar-CAC70QPW.js} +30 -29
- package/dist/{vue-ui-nested-donuts-DTZD8BTA.js → vue-ui-nested-donuts-BWj33o71.js} +69 -68
- package/dist/{vue-ui-onion-5xmlEUsJ.js → vue-ui-onion-Dq_XSxqp.js} +33 -32
- package/dist/{vue-ui-parallel-coordinate-plot-Wc0TbyJH.js → vue-ui-parallel-coordinate-plot-V6jytnl0.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-CmXgMy7I.js} +35 -34
- package/dist/{vue-ui-quick-chart-Cbv2UcEu.js → vue-ui-quick-chart-D2JQNfWU.js} +30 -29
- package/dist/{vue-ui-radar-B-ey_fDA.js → vue-ui-radar-BmmwGJaI.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-CcGD2bEJ.js} +44 -43
- package/dist/{vue-ui-ridgeline-B_6K1FTc.js → vue-ui-ridgeline-DIOGXJ9v.js} +82 -81
- package/dist/{vue-ui-rings-D_BTgxYc.js → vue-ui-rings-DS-YbQVr.js} +74 -73
- package/dist/{vue-ui-scatter-B69SYOfv.js → vue-ui-scatter-D8kUADP7.js} +121 -120
- package/dist/{vue-ui-skeleton-CpkwgALO.js → vue-ui-skeleton-FtA6-6zz.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-qt8UvEPc.js} +47 -46
- package/dist/{vue-ui-sparkbar-C-evQIq2.js → vue-ui-sparkbar-DgHvA8ra.js} +16 -15
- package/dist/{vue-ui-sparkgauge-DycVSHAs.js → vue-ui-sparkgauge-BpMUqIL6.js} +32 -31
- package/dist/{vue-ui-sparkhistogram-CZLnlSUD.js → vue-ui-sparkhistogram-IhGjmoUF.js} +22 -21
- package/dist/{vue-ui-sparkline-C1nZRVTa.js → vue-ui-sparkline-BSGiRpQ9.js} +131 -130
- package/dist/{vue-ui-sparkstackbar-CUUeuwAI.js → vue-ui-sparkstackbar-ZkUUbYr5.js} +28 -27
- package/dist/{vue-ui-stackbar-D27Wq8Y4.js → vue-ui-stackbar-DRKIeZ1O.js} +77 -76
- package/dist/{vue-ui-strip-plot-D-srKJUr.js → vue-ui-strip-plot-dMjWaIcs.js} +52 -51
- package/dist/{vue-ui-table-LcImk124.js → vue-ui-table-DKHtmqLd.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-mMpPAUon.js} +20 -19
- package/dist/{vue-ui-thermometer-DxRDmz-L.js → vue-ui-thermometer-xpHH3FWG.js} +66 -65
- package/dist/{vue-ui-timer-Bbzb09O8.js → vue-ui-timer-C4LZMTeg.js} +31 -31
- package/dist/{vue-ui-tiremarks-DWy1Dkub.js → vue-ui-tiremarks-KQmIXYf2.js} +30 -29
- package/dist/{vue-ui-treemap-C3Ek_E4n.js → vue-ui-treemap-a_Ub2bgB.js} +32 -31
- package/dist/{vue-ui-vertical-bar-CV3Mc1cX.js → vue-ui-vertical-bar-MWKYuUMN.js} +54 -53
- package/dist/{vue-ui-waffle-D2mQJdcV.js → vue-ui-waffle-CP6jUrto.js} +76 -75
- package/dist/{vue-ui-wheel-zbog7bII.js → vue-ui-wheel-B59kWUZd.js} +85 -84
- package/dist/{vue-ui-word-cloud-D9iZRkQP.js → vue-ui-word-cloud-DZnuhGEw.js} +49 -48
- package/dist/{vue-ui-world-D5dR5VdK.js → vue-ui-world-B6S7X6sr.js} +19 -19
- package/dist/{vue-ui-xy-Cll76_i9.js → vue-ui-xy-BjzutuG2.js} +135 -134
- package/dist/{vue-ui-xy-canvas-DJVXAfpL.js → vue-ui-xy-canvas-CSSVKhex.js} +166 -165
- package/package.json +19 -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
- package/dist/vue-data-ui-DcBYykse.js +0 -325
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as B } from "./useNestedProp-
|
|
3
|
-
import {
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
|
|
1
|
+
import { defineAsyncComponent as T, ref as b, toRefs as U, onMounted as N, computed as s, watch as M, createElementBlock as r, openBlock as u, normalizeStyle as g, createCommentVNode as d, createBlock as q, toDisplayString as k, unref as i, createVNode as P, createElementVNode as m, renderSlot as F, normalizeClass as V } from "vue";
|
|
2
|
+
import { u as X, a as B } from "./useNestedProp-DF7e2h1z.js";
|
|
3
|
+
import { c as Y, t as H, o as J, f as E, g as K, a2 as Q, X as W, a as Z, q as x, d as ee } from "./lib-p5pfHmOX.js";
|
|
4
|
+
import { u as te, B as ae } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as le } from "./useChartAccessibility-9icAAmYg.js";
|
|
6
|
+
import { t as oe } from "./themes-D3cUNuKw.js";
|
|
7
|
+
const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["stop-color"], re = ["stop-color"], ve = ["d", "stroke", "stroke-linecap"], ce = ["d", "stroke", "stroke-linecap", "stroke-dashoffset"], de = ["x", "y", "width", "height"], fe = ["x", "y", "font-size", "fill", "font-weight"], me = {
|
|
7
8
|
key: 2,
|
|
8
9
|
ref: "source",
|
|
9
10
|
dir: "auto"
|
|
10
|
-
},
|
|
11
|
+
}, xe = {
|
|
11
12
|
__name: "vue-ui-sparkgauge",
|
|
12
13
|
props: {
|
|
13
14
|
config: {
|
|
@@ -24,8 +25,8 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
|
|
|
24
25
|
}
|
|
25
26
|
},
|
|
26
27
|
setup(D) {
|
|
27
|
-
const O =
|
|
28
|
-
...
|
|
28
|
+
const O = T(() => import("./PackageVersion-DRpg18lg.js")), { vue_ui_sparkgauge: j } = X(), c = D, _ = b(Y()), e = b(p()), { loading: h, FINAL_DATASET: v } = te({
|
|
29
|
+
...U(c),
|
|
29
30
|
FINAL_CONFIG: e,
|
|
30
31
|
prepareConfig: p,
|
|
31
32
|
skeletonDataset: {
|
|
@@ -53,7 +54,7 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
|
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
56
|
})
|
|
56
|
-
}), { svgRef: I } =
|
|
57
|
+
}), { svgRef: I } = le({ config: { text: c.dataset?.title || "" } });
|
|
57
58
|
function p() {
|
|
58
59
|
const t = B({
|
|
59
60
|
userConfig: c.config,
|
|
@@ -61,7 +62,7 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
|
|
|
61
62
|
});
|
|
62
63
|
return t.theme ? {
|
|
63
64
|
...B({
|
|
64
|
-
userConfig:
|
|
65
|
+
userConfig: oe.vue_ui_sparkgauge[t.theme] || c.config,
|
|
65
66
|
defaultConfig: t
|
|
66
67
|
})
|
|
67
68
|
} : t;
|
|
@@ -71,11 +72,11 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
|
|
|
71
72
|
});
|
|
72
73
|
const w = s(() => e.value.debug);
|
|
73
74
|
function A() {
|
|
74
|
-
|
|
75
|
+
J(c.dataset) ? E({
|
|
75
76
|
componentName: "VueUiSparkgauge",
|
|
76
77
|
type: "dataset",
|
|
77
78
|
debug: w.value
|
|
78
|
-
}) :
|
|
79
|
+
}) : K({
|
|
79
80
|
datasetObject: c.dataset,
|
|
80
81
|
requiredAttributes: ["value", "min", "max"]
|
|
81
82
|
}).forEach((t) => {
|
|
@@ -115,29 +116,29 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
|
|
|
115
116
|
}
|
|
116
117
|
n();
|
|
117
118
|
}
|
|
118
|
-
const
|
|
119
|
+
const y = s(() => v.value.title ?? ""), L = s(() => {
|
|
119
120
|
const t = o.value.diff;
|
|
120
121
|
if (!isFinite(t) || t === 0) return 0;
|
|
121
122
|
const n = o.value.min, f = R.value;
|
|
122
123
|
return f >= 0 ? (f - n) / t : (Math.abs(n) - Math.abs(f)) / t;
|
|
123
|
-
}), S = s(() =>
|
|
124
|
+
}), S = s(() => Q(e.value.style.colors.min, e.value.style.colors.max, o.value.min, o.value.max, a.value)), z = s(() => e.value.style.dataLabel.autoColor ? S.value : e.value.style.dataLabel.color), G = s(() => e.value.style.track.autoColor ? S.value : e.value.style.track.color);
|
|
124
125
|
return (t, n) => (u(), r("div", {
|
|
125
126
|
class: "vue-ui-sparkgauge",
|
|
126
127
|
style: g(`font-family:${e.value.style.fontFamily};width: 100%; background:${e.value.style.background}`)
|
|
127
128
|
}, [
|
|
128
|
-
e.value.style.title.show &&
|
|
129
|
+
e.value.style.title.show && y.value && e.value.style.title.position === "top" ? (u(), r("div", {
|
|
129
130
|
key: 0,
|
|
130
131
|
class: "vue-data-ui-sparkgauge-label",
|
|
131
132
|
style: g(`font-size:${e.value.style.title.fontSize}px;text-align:${e.value.style.title.textAlign};font-weight:${e.value.style.title.bold ? "bold" : "normal"};color:${e.value.style.title.color}`)
|
|
132
|
-
}, k(
|
|
133
|
+
}, k(y.value), 5)) : d("", !0),
|
|
133
134
|
(u(), r("svg", {
|
|
134
135
|
ref_key: "svgRef",
|
|
135
136
|
ref: I,
|
|
136
|
-
xmlns: i(
|
|
137
|
+
xmlns: i(W),
|
|
137
138
|
viewBox: `0 0 ${l.value.width} ${l.value.height}`,
|
|
138
139
|
style: "overflow: visible; background:transparent; width:100%;"
|
|
139
140
|
}, [
|
|
140
|
-
|
|
141
|
+
P(i(O)),
|
|
141
142
|
t.$slots["chart-background"] && !i(h) ? (u(), r("foreignObject", {
|
|
142
143
|
key: 0,
|
|
143
144
|
x: 0,
|
|
@@ -150,25 +151,25 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
|
|
|
150
151
|
}, [
|
|
151
152
|
F(t.$slots, "chart-background")
|
|
152
153
|
], 8, ue)) : d("", !0),
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
m("defs", null, [
|
|
155
|
+
m("linearGradient", {
|
|
155
156
|
id: `gradient_${_.value}`,
|
|
156
157
|
x1: "-10%",
|
|
157
158
|
y1: "100%",
|
|
158
159
|
x2: "110%",
|
|
159
160
|
y2: "100%"
|
|
160
161
|
}, [
|
|
161
|
-
|
|
162
|
+
m("stop", {
|
|
162
163
|
offset: "0%",
|
|
163
164
|
"stop-color": e.value.style.colors.min
|
|
164
165
|
}, null, 8, ne),
|
|
165
|
-
|
|
166
|
+
m("stop", {
|
|
166
167
|
offset: "100%",
|
|
167
168
|
"stop-color": e.value.style.colors.max
|
|
168
169
|
}, null, 8, re)
|
|
169
170
|
], 8, ie)
|
|
170
171
|
]),
|
|
171
|
-
|
|
172
|
+
m("path", {
|
|
172
173
|
d: `M10 ${l.value.base} A 1 1 0 1 1 118 ${l.value.base}`,
|
|
173
174
|
stroke: e.value.style.gutter.color,
|
|
174
175
|
"stroke-width": 8,
|
|
@@ -203,10 +204,10 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
|
|
|
203
204
|
"font-size": e.value.style.dataLabel.fontSize,
|
|
204
205
|
fill: z.value,
|
|
205
206
|
"font-weight": e.value.style.dataLabel.bold ? "bold" : "normal"
|
|
206
|
-
}, k(i(
|
|
207
|
+
}, k(i(Z)(
|
|
207
208
|
e.value.style.dataLabel.formatter,
|
|
208
209
|
i(x)(a.value),
|
|
209
|
-
i(
|
|
210
|
+
i(ee)({
|
|
210
211
|
p: e.value.style.dataLabel.prefix,
|
|
211
212
|
v: i(x)(a.value),
|
|
212
213
|
s: e.value.style.dataLabel.suffix,
|
|
@@ -215,18 +216,18 @@ const se = ["xmlns", "viewBox"], ue = ["width", "height"], ie = ["id"], ne = ["s
|
|
|
215
216
|
{ datapoint: i(x)(a.value), color: z.value }
|
|
216
217
|
)), 9, fe))
|
|
217
218
|
], 8, se)),
|
|
218
|
-
e.value.style.title.show &&
|
|
219
|
+
e.value.style.title.show && y.value && e.value.style.title.position === "bottom" ? (u(), r("div", {
|
|
219
220
|
key: 1,
|
|
220
221
|
class: "vue-data-ui-sparkgauge-label",
|
|
221
222
|
style: g(`font-size:${e.value.style.title.fontSize}px;text-align:${e.value.style.title.textAlign};font-weight:${e.value.style.title.bold ? "bold" : "normal"};font-weight:${e.value.style.title.bold ? "bold" : "normal"};color:${e.value.style.title.color}`)
|
|
222
|
-
}, k(
|
|
223
|
-
t.$slots.source ? (u(), r("div",
|
|
223
|
+
}, k(y.value), 5)) : d("", !0),
|
|
224
|
+
t.$slots.source ? (u(), r("div", me, [
|
|
224
225
|
F(t.$slots, "source")
|
|
225
226
|
], 512)) : d("", !0),
|
|
226
|
-
i(h) ? (u(),
|
|
227
|
+
i(h) ? (u(), q(ae, { key: 3 })) : d("", !0)
|
|
227
228
|
], 4));
|
|
228
229
|
}
|
|
229
230
|
};
|
|
230
231
|
export {
|
|
231
|
-
|
|
232
|
+
xe as default
|
|
232
233
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { useCssVars as pe, computed as k, defineAsyncComponent as me, ref as y, toRefs as be, onMounted as U, watch as X, nextTick as j, createElementBlock as s, openBlock as a, normalizeStyle as S, createCommentVNode as c, createBlock as G, createElementVNode as g, createTextVNode as _e, toDisplayString as p, unref as n, createVNode as xe, renderSlot as q, Fragment as d, renderList as h, normalizeClass as Y } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { _ as
|
|
2
|
+
import { c as ke, t as Ce, o as Ae, f as P, g as we, s as m, a as J, d as K, X as $e, i as D } from "./lib-p5pfHmOX.js";
|
|
3
|
+
import { t as Le, u as ze } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Se, a as Q } from "./useNestedProp-DF7e2h1z.js";
|
|
5
|
+
import { u as Me, B as Fe } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as Ie } from "./useFitSvgText-2crs6Fv5.js";
|
|
7
|
+
import { u as Te } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import { _ as Ee } from "./Shape-BDy56-wS.js";
|
|
9
|
+
import { t as Ne } from "./themes-D3cUNuKw.js";
|
|
9
10
|
import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
11
|
const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width", "height"], Re = ["id"], Be = ["stop-color"], Ue = ["stop-color"], Xe = ["id"], je = ["stop-color"], Ge = ["stop-color"], qe = ["id"], Ye = ["stop-color"], Pe = ["stop-color"], Je = ["height", "width", "fill", "x", "stroke", "stroke-width", "rx", "stroke-dasharray"], Ke = { key: 1 }, Qe = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Ze = { key: 2 }, et = ["x", "y", "font-size", "font-weight", "fill"], tt = ["x", "y", "font-size", "fill"], lt = ["x", "y", "font-size", "fill"], at = ["height", "width", "x", "onMouseover", "onMouseleave", "onClick"], st = {
|
|
11
12
|
__name: "vue-ui-sparkhistogram",
|
|
@@ -28,7 +29,7 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
28
29
|
pe((l) => ({
|
|
29
30
|
c8e2d1ee: ve.value
|
|
30
31
|
}));
|
|
31
|
-
const te = me(() => import("./PackageVersion-
|
|
32
|
+
const te = me(() => import("./PackageVersion-DRpg18lg.js")), { vue_ui_sparkhistogram: le } = Se(), b = Z, _ = y(ke()), W = y(null), V = y(null), M = y(null), C = y(null), w = y(null), e = y(T()), { loading: H, FINAL_DATASET: A } = Me({
|
|
32
33
|
...be(b),
|
|
33
34
|
FINAL_CONFIG: e,
|
|
34
35
|
prepareConfig: T,
|
|
@@ -47,7 +48,7 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
47
48
|
{ value: 2, intensity: 0.3, color: "#CACACA" },
|
|
48
49
|
{ value: 1, intensity: 0.2, color: "#CACACA" }
|
|
49
50
|
],
|
|
50
|
-
skeletonConfig:
|
|
51
|
+
skeletonConfig: Ce({
|
|
51
52
|
defaultConfig: e.value,
|
|
52
53
|
userConfig: {
|
|
53
54
|
style: {
|
|
@@ -56,7 +57,7 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
})
|
|
59
|
-
}), F = y(e.value.style.layout.width), I = y(e.value.style.layout.height), { svgRef: O } =
|
|
60
|
+
}), F = y(e.value.style.layout.width), I = y(e.value.style.layout.height), { svgRef: O } = Te({ config: e.value.style.title });
|
|
60
61
|
function T() {
|
|
61
62
|
const l = Q({
|
|
62
63
|
userConfig: b.config,
|
|
@@ -64,7 +65,7 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
64
65
|
});
|
|
65
66
|
return l.theme ? {
|
|
66
67
|
...Q({
|
|
67
|
-
userConfig:
|
|
68
|
+
userConfig: Ne.vue_ui_sparkhistogram[l.theme] || b.config,
|
|
68
69
|
defaultConfig: l
|
|
69
70
|
})
|
|
70
71
|
} : l;
|
|
@@ -74,12 +75,12 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
74
75
|
});
|
|
75
76
|
const R = k(() => !!e.value.debug);
|
|
76
77
|
function B() {
|
|
77
|
-
if (
|
|
78
|
+
if (Ae(b.dataset) ? P({
|
|
78
79
|
componentName: "VueUiSparkHistogram",
|
|
79
80
|
type: "dataset",
|
|
80
81
|
debug: R.value
|
|
81
82
|
}) : b.dataset.forEach((l, o) => {
|
|
82
|
-
|
|
83
|
+
we({
|
|
83
84
|
datasetObject: l,
|
|
84
85
|
requiredAttributes: ["value"]
|
|
85
86
|
}).forEach((t) => {
|
|
@@ -92,8 +93,8 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
92
93
|
});
|
|
93
94
|
});
|
|
94
95
|
}), e.value.responsive) {
|
|
95
|
-
const l =
|
|
96
|
-
const { width: o, height: t } =
|
|
96
|
+
const l = Le(() => {
|
|
97
|
+
const { width: o, height: t } = ze({
|
|
97
98
|
chart: M.value,
|
|
98
99
|
title: e.value.style.title.text ? V.value : null,
|
|
99
100
|
source: W.value
|
|
@@ -166,7 +167,7 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
166
167
|
function re(l, o) {
|
|
167
168
|
r.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o });
|
|
168
169
|
}
|
|
169
|
-
const ve = k(() => `${e.value.style.animation.speedMs}ms`), ce = k(() => v.value.drawingWidth / A.value.length * 0.9), { fitText: x } =
|
|
170
|
+
const ve = k(() => `${e.value.style.animation.speedMs}ms`), ce = k(() => v.value.drawingWidth / A.value.length * 0.9), { fitText: x } = Ie({
|
|
170
171
|
svgRef: O,
|
|
171
172
|
unitWidth: ce
|
|
172
173
|
});
|
|
@@ -212,7 +213,7 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
212
213
|
(a(), s("svg", {
|
|
213
214
|
ref_key: "svgRef",
|
|
214
215
|
ref: O,
|
|
215
|
-
xmlns: n(
|
|
216
|
+
xmlns: n($e),
|
|
216
217
|
viewBox: `0 0 ${v.value.width} ${v.value.height}`,
|
|
217
218
|
style: { overflow: "visible" }
|
|
218
219
|
}, [
|
|
@@ -309,7 +310,7 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
309
310
|
class: Y({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
|
|
310
311
|
}, null, 10, Qe))), 256))
|
|
311
312
|
])) : (a(), s("g", Ze, [
|
|
312
|
-
(a(!0), s(d, null, h(u.value, (t, i) => (a(), G(
|
|
313
|
+
(a(!0), s(d, null, h(u.value, (t, i) => (a(), G(Ee, {
|
|
313
314
|
plot: { x: t.x + t.width / 2, y: t.y + t.height / 2 },
|
|
314
315
|
color: e.value.style.bars.colors.gradient.show ? t.gradient : t.color,
|
|
315
316
|
shape: e.value.style.bars.shape,
|
|
@@ -371,10 +372,10 @@ const We = { key: 0 }, Ve = { key: 1 }, He = ["xmlns", "viewBox"], Oe = ["width"
|
|
|
371
372
|
}, [
|
|
372
373
|
q(l.$slots, "source", {}, void 0, !0)
|
|
373
374
|
], 512)) : c("", !0),
|
|
374
|
-
n(H) ? (a(), G(
|
|
375
|
+
n(H) ? (a(), G(Fe, { key: 2 })) : c("", !0)
|
|
375
376
|
], 36));
|
|
376
377
|
}
|
|
377
|
-
},
|
|
378
|
+
}, ft = /* @__PURE__ */ De(st, [["__scopeId", "data-v-f8e879db"]]);
|
|
378
379
|
export {
|
|
379
|
-
|
|
380
|
+
ft as default
|
|
380
381
|
};
|