vue-data-ui 3.15.12 → 3.16.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/README.md +132 -59
- package/dist/A11yDataTable-KcVAX2cP.js +54 -0
- package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
- package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
- package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
- package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
- package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
- package/dist/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
- package/dist/Legend-CS7Xo5LK.js +101 -0
- package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
- package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
- package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
- package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
- package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
- package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
- package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
- package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
- package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
- package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
- package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
- package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
- package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +59 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
- package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
- package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
- package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
- package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
- package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
- package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
- package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
- package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
- package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
- package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
- package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
- package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
- package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
- package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
- package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
- package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
- package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
- package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
- package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
- package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
- package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
- package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
- package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
- package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
- package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
- package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
- package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
- package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
- package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
- package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
- package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
- package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
- package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
- package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
- package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
- package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
- package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
- package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
- package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
- package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
- package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
- package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
- package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
- package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
- package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
- package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
- package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
- package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
- package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
- package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
- package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
- package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
- package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
- package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
- package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
- package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
- package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
- package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
- package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
- package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
- package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
- package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
- package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
- package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
- package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
- package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
- package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
- package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
- package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
- package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
- package/package.json +2 -2
- package/dist/ColorPicker-j0ySewhI.js +0 -244
- package/dist/Legend-1LMMsPxL.js +0 -90
- package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
- package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
- package/dist/vue-ui-bump-C_fKharc.js +0 -1059
- package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
- package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
- package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
- package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
- package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
- package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
- package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
- package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
- package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
- package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
- package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
- package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
- package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
- package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
- package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
- package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
- package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
- package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
- package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
- package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
- package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
- package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
- package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
- package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
- package/dist/vue-ui-rings-80ZUki42.js +0 -1083
- package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
- package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
- package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
- package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
- package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
- package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
- package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
- package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
- package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
- package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
- package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
- package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
- package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
- package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
- package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
|
@@ -1,396 +0,0 @@
|
|
|
1
|
-
import { useCssVars as ke, defineAsyncComponent as Ce, ref as h, computed as _, toRefs as xe, onMounted as q, watch as G, nextTick as Y, openBlock as a, createElementBlock as s, normalizeStyle as M, createElementVNode as g, createTextVNode as Ae, toDisplayString as b, unref as n, createCommentVNode as d, createVNode as we, renderSlot as H, Fragment as y, renderList as f, normalizeClass as P, createBlock as J } from "vue";
|
|
2
|
-
import { j as Le, t as K, o as $e, q as Q, r as ze, u as m, k as Z, l as ee, X as Se, v as V } from "./lib-GwPnJSrY.js";
|
|
3
|
-
import { t as Me, u as Te } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Fe } from "./useConfig-CIgyKZ6R.js";
|
|
5
|
-
import { u as Ie, B as De } from "./BaseScanner-BhhkKVoj.js";
|
|
6
|
-
import { u as Ee } from "./useFitSvgText-2crs6Fv5.js";
|
|
7
|
-
import { u as W } from "./useNestedProp-BBT0mbHh.js";
|
|
8
|
-
import { u as Ne } from "./useThemeCheck-D1ZYXUwG.js";
|
|
9
|
-
import { u as He } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
-
import { _ as Ve } from "./Shape-CSyWYgXc.js";
|
|
11
|
-
import We from "./vue_ui_sparkhistogram-GBdzIVvS.js";
|
|
12
|
-
import { _ as Oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const Re = { key: 0 }, Be = { key: 1 }, je = ["xmlns", "viewBox"], Ue = ["width", "height"], Xe = ["id"], qe = ["stop-color"], Ge = ["stop-color"], Ye = ["id"], Pe = ["stop-color"], Je = ["stop-color"], Ke = ["id"], Qe = ["stop-color"], Ze = ["stop-color"], et = ["height", "width", "fill", "x", "stroke", "stroke-width", "rx", "stroke-dasharray"], tt = { key: 1 }, lt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], at = { key: 2 }, st = ["x", "y", "font-size", "font-weight", "fill"], ot = ["x", "y", "font-size", "fill"], it = ["x", "y", "font-size", "fill"], ut = ["height", "width", "x", "onMouseover", "onMouseleave", "onClick"], nt = {
|
|
14
|
-
__name: "vue-ui-sparkhistogram",
|
|
15
|
-
props: {
|
|
16
|
-
config: {
|
|
17
|
-
type: Object,
|
|
18
|
-
default() {
|
|
19
|
-
return {};
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
dataset: {
|
|
23
|
-
type: Array,
|
|
24
|
-
default() {
|
|
25
|
-
return [];
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
emits: ["selectDatapoint"],
|
|
30
|
-
setup(te, { emit: le }) {
|
|
31
|
-
ke((l) => ({
|
|
32
|
-
v028d39bc: fe.value
|
|
33
|
-
}));
|
|
34
|
-
const ae = Ce(() => import("./PackageVersion-DN9d0ME5.js")), { vue_ui_sparkhistogram: se } = Fe(), { isThemeValid: oe, warnInvalidTheme: ie } = Ne(), p = te, k = h(Le()), O = h(null), R = h(null), T = h(null), x = h(null), L = h(null), e = h(D()), ue = _(() => K({
|
|
35
|
-
defaultConfig: {
|
|
36
|
-
style: {
|
|
37
|
-
animation: { show: !1 },
|
|
38
|
-
backgroundColor: "#99999930"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
userConfig: e.value.skeletonConfig ?? {}
|
|
42
|
-
})), { loading: B, FINAL_DATASET: A } = Ie({
|
|
43
|
-
...xe(p),
|
|
44
|
-
FINAL_CONFIG: e,
|
|
45
|
-
prepareConfig: D,
|
|
46
|
-
skeletonDataset: p.config?.skeletonDataset ?? [
|
|
47
|
-
{ value: 1, intensity: 0.2, color: "#CACACA" },
|
|
48
|
-
{ value: 2, intensity: 0.3, color: "#CACACA" },
|
|
49
|
-
{ value: 3, intensity: 0.5, color: "#CACACA" },
|
|
50
|
-
{ value: 5, intensity: 0.7, color: "#CACACA" },
|
|
51
|
-
{ value: 8, intensity: 0.9, color: "#CACACA" },
|
|
52
|
-
{ value: 13, intensity: 0.95, color: "#CACACA" },
|
|
53
|
-
{ value: 21, intensity: 1, color: "#CACACA" },
|
|
54
|
-
{ value: 13, intensity: 0.95, color: "#CACACA" },
|
|
55
|
-
{ value: 8, intensity: 0.9, color: "#CACACA" },
|
|
56
|
-
{ value: 5, intensity: 0.7, color: "#CACACA" },
|
|
57
|
-
{ value: 3, intensity: 0.5, color: "#CACACA" },
|
|
58
|
-
{ value: 2, intensity: 0.3, color: "#CACACA" },
|
|
59
|
-
{ value: 1, intensity: 0.2, color: "#CACACA" }
|
|
60
|
-
],
|
|
61
|
-
skeletonConfig: K({
|
|
62
|
-
defaultConfig: e.value,
|
|
63
|
-
userConfig: ue.value
|
|
64
|
-
})
|
|
65
|
-
}), F = h(e.value.style.layout.width), I = h(e.value.style.layout.height), { svgRef: j } = He({ config: e.value.style.title });
|
|
66
|
-
function D() {
|
|
67
|
-
const l = W({
|
|
68
|
-
userConfig: p.config,
|
|
69
|
-
defaultConfig: se
|
|
70
|
-
}), o = l.theme;
|
|
71
|
-
if (!o) return l;
|
|
72
|
-
if (!oe.value(l))
|
|
73
|
-
return ie(l), l;
|
|
74
|
-
const t = W({
|
|
75
|
-
userConfig: We[o] || p.config,
|
|
76
|
-
defaultConfig: l
|
|
77
|
-
});
|
|
78
|
-
return W({
|
|
79
|
-
userConfig: p.config,
|
|
80
|
-
defaultConfig: t
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
q(() => {
|
|
84
|
-
X();
|
|
85
|
-
});
|
|
86
|
-
const U = _(() => !!e.value.debug);
|
|
87
|
-
function X() {
|
|
88
|
-
if ($e(p.dataset) ? Q({
|
|
89
|
-
componentName: "VueUiSparkHistogram",
|
|
90
|
-
type: "dataset",
|
|
91
|
-
debug: U.value
|
|
92
|
-
}) : p.dataset.forEach((l, o) => {
|
|
93
|
-
ze({
|
|
94
|
-
datasetObject: l,
|
|
95
|
-
requiredAttributes: ["value"]
|
|
96
|
-
}).forEach((t) => {
|
|
97
|
-
Q({
|
|
98
|
-
componentName: "VueUiSparkHistogram",
|
|
99
|
-
type: "datasetSerieAttribute",
|
|
100
|
-
property: t,
|
|
101
|
-
index: o,
|
|
102
|
-
debug: U.value
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
}), e.value.responsive) {
|
|
106
|
-
const l = Me(() => {
|
|
107
|
-
const { width: o, height: t } = Te({
|
|
108
|
-
chart: T.value,
|
|
109
|
-
title: e.value.style.title.text ? R.value : null,
|
|
110
|
-
source: O.value
|
|
111
|
-
}), i = e.value.style.labels.timeLabel.show ? e.value.style.labels.timeLabel.fontSize * 2 : 0, c = e.value.style.labels.valueLabel.show ? e.value.style.labels.valueLabel.fontSize * 2 : 0;
|
|
112
|
-
requestAnimationFrame(() => {
|
|
113
|
-
F.value = Math.max(10, o), I.value = Math.max(10, t - 12 - i - c);
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
|
-
x.value && (L.value && x.value.unobserve(L.value), x.value.disconnect()), x.value = new ResizeObserver(l), L.value = T.value.parentNode, x.value.observe(L.value);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
G(() => p.config, (l) => {
|
|
120
|
-
e.value = D(), X();
|
|
121
|
-
}, { deep: !0 });
|
|
122
|
-
const v = _(() => {
|
|
123
|
-
const l = e.value.style.labels.timeLabel.show ? e.value.style.labels.timeLabel.fontSize * 2 : 0, o = e.value.style.labels.valueLabel.show ? e.value.style.labels.valueLabel.fontSize * 2 : 0, t = I.value + l + o, i = F.value, c = e.value.style.layout.padding.top, $ = t - e.value.style.layout.padding.bottom, z = e.value.style.layout.padding.left, E = i - e.value.style.layout.padding.right, S = c + (t - c - e.value.style.layout.padding.bottom) / 2, N = t - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - l - o, w = i - e.value.style.layout.padding.left - e.value.style.layout.padding.right;
|
|
124
|
-
return {
|
|
125
|
-
bottom: $,
|
|
126
|
-
centerY: S,
|
|
127
|
-
drawingHeight: N,
|
|
128
|
-
drawingWidth: w,
|
|
129
|
-
height: t,
|
|
130
|
-
left: z,
|
|
131
|
-
right: E,
|
|
132
|
-
top: c,
|
|
133
|
-
width: i
|
|
134
|
-
};
|
|
135
|
-
}), ne = _(() => Math.max(...A.value.map((l) => Math.abs(l.value || 0))));
|
|
136
|
-
function re(l) {
|
|
137
|
-
return Math.abs(l) / ne.value;
|
|
138
|
-
}
|
|
139
|
-
const u = _(() => A.value.map((l, o) => {
|
|
140
|
-
const t = re(l.value || 0), i = v.value.drawingHeight * t, c = v.value.drawingWidth / A.value.length, $ = c * (e.value.style.bars.gap / 100), z = c - $, E = v.value.centerY - i / 2, S = v.value.left + ($ / 2 + o * c), N = v.value.left + o * c, w = typeof l.intensity > "u" ? 100 : Math.round(l.intensity * 100), pe = l.color ? l.color : l.value >= 0 ? m(e.value.style.bars.colors.positive, w) : m(e.value.style.bars.colors.negative, w), be = l.color ? l.color : l.value >= 0 ? e.value.style.bars.colors.positive : e.value.style.bars.colors.negative, me = l.color ? `url(#gradient_datapoint_${o}_${k.value})` : l.value >= 0 ? `url(#gradient_positive_${o}_${k.value})` : `url(#gradient_negative_${o}_${k.value})`, _e = S + z / 2;
|
|
141
|
-
return {
|
|
142
|
-
...l,
|
|
143
|
-
color: pe,
|
|
144
|
-
gradient: me,
|
|
145
|
-
height: i,
|
|
146
|
-
intensity: w,
|
|
147
|
-
proportion: t,
|
|
148
|
-
stroke: be,
|
|
149
|
-
textAnchor: _e,
|
|
150
|
-
trapX: N,
|
|
151
|
-
unitWidth: c,
|
|
152
|
-
width: z,
|
|
153
|
-
x: S,
|
|
154
|
-
y: E
|
|
155
|
-
};
|
|
156
|
-
}));
|
|
157
|
-
function ve(l, o) {
|
|
158
|
-
return Z(
|
|
159
|
-
e.value.style.labels.value.formatter,
|
|
160
|
-
l.value,
|
|
161
|
-
ee({
|
|
162
|
-
p: e.value.style.labels.value.prefix,
|
|
163
|
-
v: l.value,
|
|
164
|
-
s: e.value.style.labels.value.suffix,
|
|
165
|
-
r: e.value.style.labels.value.rounding
|
|
166
|
-
}),
|
|
167
|
-
{ datapoint: l, seriesIndex: o }
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
const r = h(null), ce = le;
|
|
171
|
-
function de(l, o) {
|
|
172
|
-
ce("selectDatapoint", { datapoint: l, index: o }), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: o });
|
|
173
|
-
}
|
|
174
|
-
function ye(l, o) {
|
|
175
|
-
r.value = o, e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: o });
|
|
176
|
-
}
|
|
177
|
-
function he(l, o) {
|
|
178
|
-
r.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o });
|
|
179
|
-
}
|
|
180
|
-
const fe = _(() => `${e.value.style.animation.speedMs}ms`), ge = _(() => v.value.drawingWidth / A.value.length * 0.9), { fitText: C } = Ee({
|
|
181
|
-
svgRef: j,
|
|
182
|
-
unitWidth: ge
|
|
183
|
-
});
|
|
184
|
-
return q(async () => {
|
|
185
|
-
await Y(), C(".vue-ui-sparkhistogram-top-label", e.value.style.labels.value.minFontSize), C(".vue-ui-sparkhistogram-bottom-label", e.value.style.labels.valueLabel.minFontSize), C(".vue-ui-sparkhistogram-time-label", e.value.style.labels.timeLabel.minFontSize);
|
|
186
|
-
}), G([F, I, () => A.value], async () => {
|
|
187
|
-
await Y(), C(".vue-ui-sparkhistogram-top-label", e.value.style.labels.value.minFontSize), C(".vue-ui-sparkhistogram-bottom-label", e.value.style.labels.valueLabel.minFontSize), C(".vue-ui-sparkhistogram-time-label", e.value.style.labels.timeLabel.minFontSize);
|
|
188
|
-
}), (l, o) => (a(), s("div", {
|
|
189
|
-
class: "vue-data-ui-component vue-ui-spark-histogram",
|
|
190
|
-
ref_key: "histogramChart",
|
|
191
|
-
ref: T,
|
|
192
|
-
style: M(`width:100%;background:${e.value.style.backgroundColor};font-family:${e.value.style.fontFamily}`),
|
|
193
|
-
onMouseleave: o[0] || (o[0] = (t) => r.value = null)
|
|
194
|
-
}, [
|
|
195
|
-
e.value.style.title.text ? (a(), s("div", {
|
|
196
|
-
key: 0,
|
|
197
|
-
ref_key: "chartTitle",
|
|
198
|
-
ref: R,
|
|
199
|
-
style: M(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${e.value.style.title.margin};padding: 0 6px;text-align:${e.value.style.title.textAlign}`)
|
|
200
|
-
}, [
|
|
201
|
-
g("div", {
|
|
202
|
-
style: M(`font-size:${e.value.style.title.fontSize}px;color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"}`)
|
|
203
|
-
}, [
|
|
204
|
-
Ae(b(e.value.style.title.text) + " ", 1),
|
|
205
|
-
r.value !== null ? (a(), s("span", Re, "- " + b(u.value[r.value].timeLabel || "") + " " + b(n(Z)(
|
|
206
|
-
e.value.style.labels.value.formatter,
|
|
207
|
-
u.value[r.value].value,
|
|
208
|
-
n(ee)({
|
|
209
|
-
p: e.value.style.labels.value.prefix,
|
|
210
|
-
v: u.value[r.value].value,
|
|
211
|
-
s: e.value.style.labels.value.suffix,
|
|
212
|
-
r: e.value.style.labels.value.rounding
|
|
213
|
-
}),
|
|
214
|
-
{ datapoint: u.value[r.value], seriesIndex: r.value }
|
|
215
|
-
)), 1)) : d("", !0),
|
|
216
|
-
![void 0, null].includes(r.value) && ![null, void 0].includes(u.value[r.value].valueLabel) ? (a(), s("span", Be, b(` (${u.value[r.value].valueLabel || 0})`), 1)) : d("", !0)
|
|
217
|
-
], 4),
|
|
218
|
-
e.value.style.title.subtitle.text ? (a(), s("div", {
|
|
219
|
-
key: 0,
|
|
220
|
-
style: M(`font-size:${e.value.style.title.subtitle.fontSize}px;color:${e.value.style.title.subtitle.color};font-weight:${e.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
221
|
-
}, b(e.value.style.title.subtitle.text), 5)) : d("", !0)
|
|
222
|
-
], 4)) : d("", !0),
|
|
223
|
-
(a(), s("svg", {
|
|
224
|
-
ref_key: "svgRef",
|
|
225
|
-
ref: j,
|
|
226
|
-
xmlns: n(Se),
|
|
227
|
-
viewBox: `0 0 ${v.value.width} ${v.value.height}`,
|
|
228
|
-
style: { overflow: "visible" }
|
|
229
|
-
}, [
|
|
230
|
-
we(n(ae)),
|
|
231
|
-
l.$slots["chart-background"] ? (a(), s("foreignObject", {
|
|
232
|
-
key: 0,
|
|
233
|
-
x: 0,
|
|
234
|
-
y: 0,
|
|
235
|
-
width: v.value.width,
|
|
236
|
-
height: v.value.height,
|
|
237
|
-
style: {
|
|
238
|
-
pointerEvents: "none"
|
|
239
|
-
}
|
|
240
|
-
}, [
|
|
241
|
-
H(l.$slots, "chart-background", {}, void 0, !0)
|
|
242
|
-
], 8, Ue)) : d("", !0),
|
|
243
|
-
g("defs", null, [
|
|
244
|
-
(a(!0), s(y, null, f(u.value, (t, i) => (a(), s("radialGradient", {
|
|
245
|
-
id: `gradient_positive_${i}_${k.value}`,
|
|
246
|
-
cy: "50%",
|
|
247
|
-
cx: "50%",
|
|
248
|
-
r: "50%",
|
|
249
|
-
fx: "50%",
|
|
250
|
-
fy: "50%"
|
|
251
|
-
}, [
|
|
252
|
-
g("stop", {
|
|
253
|
-
offset: "0%",
|
|
254
|
-
"stop-color": n(m)(n(V)(e.value.style.bars.colors.positive, 0.05), t.intensity)
|
|
255
|
-
}, null, 8, qe),
|
|
256
|
-
g("stop", {
|
|
257
|
-
offset: "100%",
|
|
258
|
-
"stop-color": n(m)(e.value.style.bars.colors.positive, t.intensity)
|
|
259
|
-
}, null, 8, Ge)
|
|
260
|
-
], 8, Xe))), 256)),
|
|
261
|
-
(a(!0), s(y, null, f(u.value, (t, i) => (a(), s("radialGradient", {
|
|
262
|
-
id: `gradient_negative_${i}_${k.value}`,
|
|
263
|
-
cy: "50%",
|
|
264
|
-
cx: "50%",
|
|
265
|
-
r: "50%",
|
|
266
|
-
fx: "50%",
|
|
267
|
-
fy: "50%"
|
|
268
|
-
}, [
|
|
269
|
-
g("stop", {
|
|
270
|
-
offset: "0%",
|
|
271
|
-
"stop-color": n(m)(n(V)(e.value.style.bars.colors.negative, 0.05), t.intensity)
|
|
272
|
-
}, null, 8, Pe),
|
|
273
|
-
g("stop", {
|
|
274
|
-
offset: "100%",
|
|
275
|
-
"stop-color": n(m)(e.value.style.bars.colors.negative, t.intensity)
|
|
276
|
-
}, null, 8, Je)
|
|
277
|
-
], 8, Ye))), 256)),
|
|
278
|
-
(a(!0), s(y, null, f(u.value, (t, i) => (a(), s("radialGradient", {
|
|
279
|
-
id: `gradient_datapoint_${i}_${k.value}`,
|
|
280
|
-
cy: "50%",
|
|
281
|
-
cx: "50%",
|
|
282
|
-
r: "50%",
|
|
283
|
-
fx: "50%",
|
|
284
|
-
fy: "50%"
|
|
285
|
-
}, [
|
|
286
|
-
g("stop", {
|
|
287
|
-
offset: "0%",
|
|
288
|
-
"stop-color": n(m)(n(V)(t.color, 0.05), t.intensity)
|
|
289
|
-
}, null, 8, Qe),
|
|
290
|
-
g("stop", {
|
|
291
|
-
offset: "100%",
|
|
292
|
-
"stop-color": n(m)(t.color, t.intensity)
|
|
293
|
-
}, null, 8, Ze)
|
|
294
|
-
], 8, Ke))), 256))
|
|
295
|
-
]),
|
|
296
|
-
(a(!0), s(y, null, f(u.value, (t, i) => (a(), s("g", null, [
|
|
297
|
-
r.value !== null && r.value === i ? (a(), s("rect", {
|
|
298
|
-
key: 0,
|
|
299
|
-
height: v.value.height,
|
|
300
|
-
width: t.unitWidth,
|
|
301
|
-
fill: e.value.style.selector.fill,
|
|
302
|
-
x: t.trapX,
|
|
303
|
-
y: 0,
|
|
304
|
-
stroke: e.value.style.selector.stroke,
|
|
305
|
-
"stroke-width": e.value.style.selector.strokeWidth,
|
|
306
|
-
rx: e.value.style.selector.borderRadius,
|
|
307
|
-
"stroke-dasharray": e.value.style.selector.strokeDasharray
|
|
308
|
-
}, null, 8, et)) : d("", !0)
|
|
309
|
-
]))), 256)),
|
|
310
|
-
!e.value.style.bars.shape || e.value.style.bars.shape === "square" ? (a(), s("g", tt, [
|
|
311
|
-
(a(!0), s(y, null, f(u.value, (t, i) => (a(), s("rect", {
|
|
312
|
-
x: t.x,
|
|
313
|
-
y: t.y,
|
|
314
|
-
height: t.height,
|
|
315
|
-
width: t.width,
|
|
316
|
-
fill: e.value.style.bars.colors.gradient.show ? t.gradient : t.color,
|
|
317
|
-
stroke: t.stroke,
|
|
318
|
-
"stroke-width": e.value.style.bars.strokeWidth,
|
|
319
|
-
rx: `${e.value.style.bars.borderRadius * t.proportion / 12}%`,
|
|
320
|
-
class: P({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
|
|
321
|
-
}, null, 10, lt))), 256))
|
|
322
|
-
])) : (a(), s("g", at, [
|
|
323
|
-
(a(!0), s(y, null, f(u.value, (t, i) => (a(), J(Ve, {
|
|
324
|
-
plot: { x: t.x + t.width / 2, y: t.y + t.height / 2 },
|
|
325
|
-
color: e.value.style.bars.colors.gradient.show ? t.gradient : t.color,
|
|
326
|
-
shape: e.value.style.bars.shape,
|
|
327
|
-
radius: Math.min(t.height * 0.4, t.width * 0.4),
|
|
328
|
-
class: P({ "vue-ui-sparkhistogram-shape": e.value.style.animation.show })
|
|
329
|
-
}, null, 8, ["plot", "color", "shape", "radius", "class"]))), 256))
|
|
330
|
-
])),
|
|
331
|
-
n(B) ? d("", !0) : (a(), s(y, { key: 3 }, [
|
|
332
|
-
(a(!0), s(y, null, f(u.value, (t, i) => (a(), s("g", null, [
|
|
333
|
-
e.value.style.labels.value.show ? (a(), s("text", {
|
|
334
|
-
key: 0,
|
|
335
|
-
class: "vue-ui-sparkhistogram-top-label",
|
|
336
|
-
"text-anchor": "middle",
|
|
337
|
-
x: t.textAnchor,
|
|
338
|
-
y: t.y - e.value.style.labels.value.fontSize / 3 + e.value.style.labels.value.offsetY,
|
|
339
|
-
"font-size": e.value.style.labels.value.fontSize,
|
|
340
|
-
"font-weight": e.value.style.labels.value.bold ? "bold" : "normal",
|
|
341
|
-
fill: e.value.style.labels.value.color
|
|
342
|
-
}, b(ve(t, i)), 9, st)) : d("", !0)
|
|
343
|
-
]))), 256)),
|
|
344
|
-
(a(!0), s(y, null, f(u.value, (t, i) => (a(), s("g", null, [
|
|
345
|
-
t.valueLabel && e.value.style.labels.valueLabel.show ? (a(), s("text", {
|
|
346
|
-
key: 0,
|
|
347
|
-
class: "vue-ui-sparkhistogram-bottom-label",
|
|
348
|
-
x: t.textAnchor,
|
|
349
|
-
y: t.y + t.height + e.value.style.labels.valueLabel.fontSize,
|
|
350
|
-
"font-size": e.value.style.labels.valueLabel.fontSize,
|
|
351
|
-
"text-anchor": "middle",
|
|
352
|
-
fill: e.value.style.labels.valueLabel.color
|
|
353
|
-
}, b(t.valueLabel), 9, ot)) : d("", !0)
|
|
354
|
-
]))), 256)),
|
|
355
|
-
(a(!0), s(y, null, f(u.value, (t, i) => (a(), s("g", null, [
|
|
356
|
-
t.timeLabel && e.value.style.labels.timeLabel.show ? (a(), s("text", {
|
|
357
|
-
key: 0,
|
|
358
|
-
class: "vue-ui-sparkhistogram-time-label",
|
|
359
|
-
x: t.textAnchor,
|
|
360
|
-
y: v.value.height,
|
|
361
|
-
"font-size": e.value.style.labels.timeLabel.fontSize,
|
|
362
|
-
fill: e.value.style.labels.timeLabel.color,
|
|
363
|
-
"text-anchor": "middle"
|
|
364
|
-
}, b(t.timeLabel), 9, it)) : d("", !0)
|
|
365
|
-
]))), 256))
|
|
366
|
-
], 64)),
|
|
367
|
-
(a(!0), s(y, null, f(u.value, (t, i) => (a(), s("g", null, [
|
|
368
|
-
g("rect", {
|
|
369
|
-
height: v.value.height,
|
|
370
|
-
width: t.unitWidth,
|
|
371
|
-
fill: "transparent",
|
|
372
|
-
x: t.trapX,
|
|
373
|
-
y: 0,
|
|
374
|
-
onMouseover: (c) => ye(t, i),
|
|
375
|
-
onMouseleave: (c) => he(t, i),
|
|
376
|
-
onClick: () => de(t, i)
|
|
377
|
-
}, null, 40, ut)
|
|
378
|
-
]))), 256))
|
|
379
|
-
], 8, je)),
|
|
380
|
-
l.$slots.source ? (a(), s("div", {
|
|
381
|
-
key: 1,
|
|
382
|
-
ref_key: "source",
|
|
383
|
-
ref: O,
|
|
384
|
-
dir: "auto"
|
|
385
|
-
}, [
|
|
386
|
-
H(l.$slots, "source", {}, void 0, !0)
|
|
387
|
-
], 512)) : d("", !0),
|
|
388
|
-
H(l.$slots, "skeleton", {}, () => [
|
|
389
|
-
n(B) ? (a(), J(De, { key: 0 })) : d("", !0)
|
|
390
|
-
], !0)
|
|
391
|
-
], 36));
|
|
392
|
-
}
|
|
393
|
-
}, kt = /* @__PURE__ */ Oe(nt, [["__scopeId", "data-v-4e8765cf"]]);
|
|
394
|
-
export {
|
|
395
|
-
kt as default
|
|
396
|
-
};
|