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,28 +1,29 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { j as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
|
|
1
|
+
import { useCssVars as st, defineAsyncComponent as Z, ref as d, computed as i, onMounted as at, toRefs as lt, watch as rt, openBlock as r, createElementBlock as u, unref as c, normalizeStyle as we, normalizeClass as V, createBlock as N, withCtx as f, renderSlot as h, normalizeProps as p, guardReactiveProps as k, createCommentVNode as v, createSlots as nt, createElementVNode as m, toDisplayString as ee, createVNode as ut, Fragment as Y, renderList as xe, nextTick as it } from "vue";
|
|
2
|
+
import { j as ct, t as Ce, o as vt, q as _e, r as ht, m as dt, p as I, n as ft, K as y, s as E, k as mt, l as yt, X as gt, u as pt } from "./lib-DBptbyyI.js";
|
|
3
|
+
import { t as kt, u as bt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as wt } from "./useConfig-DO94Aj5s.js";
|
|
5
|
+
import { u as xt, B as Ct } from "./BaseScanner-BhhkKVoj.js";
|
|
6
|
+
import { u as _t } from "./usePrinter-CEpYU3r5.js";
|
|
7
|
+
import { u as $t } from "./useSvgExport-ByUukOZt.js";
|
|
8
|
+
import { u as te } from "./useNestedProp-Bf5XFbs8.js";
|
|
9
|
+
import { u as At } from "./useThemeCheck-D1ZYXUwG.js";
|
|
10
|
+
import { u as Pt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as Ot } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import { u as It } from "./usePrefersMotion-CUKm8_t8.js";
|
|
13
|
+
import { u as St } from "./useAutoSizeLabelsInsideViewbox-DX7LdvFX.js";
|
|
14
|
+
import Ft from "./vue_ui_thermometer-BTmjRBH8.js";
|
|
15
|
+
import Tt from "./Title-BeMKE1cj.js";
|
|
16
|
+
import Mt from "./img-LXxMLmCg.js";
|
|
17
|
+
import { _ as Ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
const zt = ["id"], Wt = {
|
|
18
19
|
key: 1,
|
|
19
20
|
ref: "noTitle",
|
|
20
21
|
class: "vue-data-ui-no-title-space",
|
|
21
22
|
style: "height:36px; width: 100%;background:transparent"
|
|
22
|
-
},
|
|
23
|
+
}, Lt = ["xmlns", "viewBox", "aria-labelledby", "aria-describedby"], Rt = ["id"], Vt = ["id"], Nt = ["width", "height"], Yt = ["id"], Et = ["x", "y", "width", "height", "rx", "ry"], Ht = ["id"], qt = ["stop-color"], Dt = ["stop-color"], Gt = ["stop-color"], Bt = ["clip-path"], jt = ["x", "y", "height", "width"], Xt = ["x", "y", "height", "width", "fill"], Kt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Jt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Qt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], Zt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], eo = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], to = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], oo = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], so = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ao = ["x", "y", "height", "width"], lo = ["aria-label"], ro = ["x", "y", "height"], no = ["y", "x", "fill", "font-size", "font-weight"], uo = {
|
|
23
24
|
key: 4,
|
|
24
25
|
class: "vue-data-ui-watermark"
|
|
25
|
-
},
|
|
26
|
+
}, io = {
|
|
26
27
|
__name: "vue-ui-thermometer",
|
|
27
28
|
props: {
|
|
28
29
|
dataset: {
|
|
@@ -39,17 +40,17 @@ const Ot = ["id"], St = {
|
|
|
39
40
|
}
|
|
40
41
|
},
|
|
41
42
|
emits: ["copyAlt"],
|
|
42
|
-
setup(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
setup($e, { expose: Ae, emit: Pe }) {
|
|
44
|
+
st((o) => ({
|
|
45
|
+
v2c2fe85d: He.value,
|
|
46
|
+
v466eabd1: Ee.value,
|
|
47
|
+
v2eb1fe04: Ye.value
|
|
47
48
|
}));
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
const Oe = Z(() => import("./PackageVersion-DPO-OOVI.js")), Ie = Z(() => import("./PenAndPaper-Ct3qJ4lA.js")), Se = Z(() => import("./UserOptions-rW2fRf3V.js")), { vue_ui_thermometer: Fe } = wt(), { isThemeValid: Te, warnInvalidTheme: Me } = At(), Ue = It(), g = $e, ze = Pe, b = d(ct()), x = d(null), oe = d(0), se = d(0), ae = d(null), le = d(null), _ = d(null), S = d(null), F = d(!1), T = d(!1), We = i(() => !!g.dataset && Object.keys(g.dataset).length);
|
|
50
|
+
at(() => {
|
|
51
|
+
ue();
|
|
51
52
|
});
|
|
52
|
-
const e = d(
|
|
53
|
+
const e = d(G()), Le = d(e.value.style.chart.thermometer.width), H = d(e.value.style.chart.height), q = d(e.value.style.chart.width), re = i(() => e.value.userOptions.useCursorPointer), Re = i(() => Ce({
|
|
53
54
|
defaultConfig: {
|
|
54
55
|
userOptions: { show: !1 },
|
|
55
56
|
style: {
|
|
@@ -63,84 +64,84 @@ const Ot = ["id"], St = {
|
|
|
63
64
|
}
|
|
64
65
|
},
|
|
65
66
|
userConfig: e.value.skeletonConfig ?? {}
|
|
66
|
-
})), { loading:
|
|
67
|
-
...
|
|
67
|
+
})), { loading: M, FINAL_DATASET: n } = xt({
|
|
68
|
+
...lt(g),
|
|
68
69
|
FINAL_CONFIG: e,
|
|
69
|
-
prepareConfig:
|
|
70
|
-
skeletonDataset:
|
|
71
|
-
skeletonConfig:
|
|
70
|
+
prepareConfig: G,
|
|
71
|
+
skeletonDataset: g.config?.skeletonDataset ?? { value: 0, from: -100, to: 100, steps: 20, colors: { from: "#A1A1A1", to: "#CACACA" } },
|
|
72
|
+
skeletonConfig: Ce({
|
|
72
73
|
defaultConfig: e.value,
|
|
73
|
-
userConfig:
|
|
74
|
+
userConfig: Re.value
|
|
74
75
|
})
|
|
75
|
-
}),
|
|
76
|
-
function
|
|
77
|
-
if (
|
|
76
|
+
}), ne = i(() => !!e.value.debug);
|
|
77
|
+
function ue() {
|
|
78
|
+
if (vt(g.dataset) ? _e({
|
|
78
79
|
componentName: "VueUiThermometer",
|
|
79
80
|
type: "dataset",
|
|
80
|
-
debug:
|
|
81
|
-
}) :
|
|
82
|
-
datasetObject:
|
|
81
|
+
debug: ne.value
|
|
82
|
+
}) : ht({
|
|
83
|
+
datasetObject: g.dataset,
|
|
83
84
|
requiredAttributes: ["value", "from", "to"]
|
|
84
85
|
}).forEach((o) => {
|
|
85
|
-
|
|
86
|
+
_e({
|
|
86
87
|
componentName: "VueUiThermometer",
|
|
87
88
|
type: "datasetAttribute",
|
|
88
89
|
property: o,
|
|
89
|
-
debug:
|
|
90
|
+
debug: ne.value
|
|
90
91
|
});
|
|
91
92
|
}), e.value.responsive) {
|
|
92
|
-
const o =
|
|
93
|
-
const { width: a, height: t } =
|
|
94
|
-
chart:
|
|
95
|
-
title: e.value.style.title.text ?
|
|
96
|
-
source:
|
|
93
|
+
const o = kt(() => {
|
|
94
|
+
const { width: a, height: t } = bt({
|
|
95
|
+
chart: x.value,
|
|
96
|
+
title: e.value.style.title.text ? ae.value : null,
|
|
97
|
+
source: le.value
|
|
97
98
|
});
|
|
98
99
|
requestAnimationFrame(() => {
|
|
99
|
-
|
|
100
|
+
H.value = Math.max(0.1, t - 12), q.value = a, ye();
|
|
100
101
|
});
|
|
101
102
|
});
|
|
102
|
-
_.value && (
|
|
103
|
+
_.value && (S.value && _.value.unobserve(S.value), _.value.disconnect()), _.value = new ResizeObserver(o), S.value = x.value, _.value.observe(S.value);
|
|
103
104
|
}
|
|
104
|
-
|
|
105
|
+
ye();
|
|
105
106
|
}
|
|
106
|
-
const { userOptionsVisible:
|
|
107
|
-
function
|
|
108
|
-
const o =
|
|
109
|
-
userConfig:
|
|
110
|
-
defaultConfig:
|
|
107
|
+
const { userOptionsVisible: D, setUserOptionsVisibility: ie, keepUserOptionState: ce } = Pt({ config: e.value }), { svgRef: U } = Ot({ config: e.value.style.title });
|
|
108
|
+
function G() {
|
|
109
|
+
const o = te({
|
|
110
|
+
userConfig: g.config,
|
|
111
|
+
defaultConfig: Fe
|
|
111
112
|
}), a = o.theme;
|
|
112
113
|
if (!a) return o;
|
|
113
|
-
if (!
|
|
114
|
-
return
|
|
115
|
-
const t =
|
|
116
|
-
userConfig:
|
|
114
|
+
if (!Te.value(o))
|
|
115
|
+
return Me(o), o;
|
|
116
|
+
const t = te({
|
|
117
|
+
userConfig: Ft[a] || g.config,
|
|
117
118
|
defaultConfig: o
|
|
118
|
-
}), l =
|
|
119
|
-
userConfig:
|
|
119
|
+
}), l = te({
|
|
120
|
+
userConfig: g.config,
|
|
120
121
|
defaultConfig: t
|
|
121
122
|
});
|
|
122
123
|
return {
|
|
123
124
|
...l,
|
|
124
|
-
customPalette: l.customPalette.length ? l.customPalette :
|
|
125
|
+
customPalette: l.customPalette.length ? l.customPalette : dt[a] || I
|
|
125
126
|
};
|
|
126
127
|
}
|
|
127
|
-
|
|
128
|
-
e.value =
|
|
128
|
+
rt(() => g.config, (o) => {
|
|
129
|
+
e.value = G(), D.value = !e.value.userOptions.showOnChartHover, Le.value = e.value.style.chart.thermometer.width, H.value = e.value.style.chart.height, q.value = e.value.style.chart.width, ue(), se.value += 1;
|
|
129
130
|
}, { deep: !0 });
|
|
130
|
-
const { isPrinting: B, isImaging: j, generatePdf:
|
|
131
|
-
elementId: `thermometer__${
|
|
131
|
+
const { isPrinting: B, isImaging: j, generatePdf: ve, generateImage: he } = _t({
|
|
132
|
+
elementId: `thermometer__${b.value}`,
|
|
132
133
|
fileName: e.value.style.title.text || "vue-ui-thermometer",
|
|
133
134
|
options: e.value.userOptions.print
|
|
134
|
-
}),
|
|
135
|
+
}), Ve = i(() => e.value.userOptions.show && !e.value.style.title.text), z = i(() => ft(e.value.customPalette)), w = i(() => n.value.steps || 10);
|
|
135
136
|
function W(o, a, t) {
|
|
136
|
-
const l = [],
|
|
137
|
+
const l = [], C = de(o), P = de(a);
|
|
137
138
|
for (let O = 0; O < t; O += 1) {
|
|
138
|
-
const
|
|
139
|
-
l.push(
|
|
139
|
+
const Ze = X(C.red, P.red, O, t), et = X(C.green, P.green, O, t), tt = X(C.blue, P.blue, O, t), ot = `#${K(Ze)}${K(et)}${K(tt)}`;
|
|
140
|
+
l.push(ot);
|
|
140
141
|
}
|
|
141
142
|
return l;
|
|
142
143
|
}
|
|
143
|
-
function
|
|
144
|
+
function de(o) {
|
|
144
145
|
const a = o.slice(1);
|
|
145
146
|
return {
|
|
146
147
|
red: parseInt(a.slice(0, 2), 16),
|
|
@@ -154,8 +155,8 @@ const Ot = ["id"], St = {
|
|
|
154
155
|
function K(o) {
|
|
155
156
|
return o.toString(16).padStart(2, "0");
|
|
156
157
|
}
|
|
157
|
-
const s =
|
|
158
|
-
const o = Math.max(0.1,
|
|
158
|
+
const s = i(() => {
|
|
159
|
+
const o = Math.max(0.1, q.value), a = Math.max(0.1, H.value), t = e.value.style.chart.padding;
|
|
159
160
|
return {
|
|
160
161
|
width: o,
|
|
161
162
|
left: o / 2 - e.value.style.chart.thermometer.width / 2,
|
|
@@ -166,47 +167,47 @@ const Ot = ["id"], St = {
|
|
|
166
167
|
thermoHeight: a - t.top - t.bottom,
|
|
167
168
|
thermoWidth: e.value.style.chart.thermometer.width
|
|
168
169
|
};
|
|
169
|
-
}),
|
|
170
|
-
const o =
|
|
170
|
+
}), Ne = i(() => s.value), L = i(() => {
|
|
171
|
+
const o = y(n.value.from) < 0 ? Math.abs(y(n.value.from)) : y(n.value.from), a = y(n.value.to) < 0 ? Math.abs(y(n.value.to)) : y(n.value.to);
|
|
171
172
|
let t = 0;
|
|
172
|
-
return
|
|
173
|
-
}),
|
|
174
|
-
if (
|
|
175
|
-
if (!
|
|
176
|
-
return W(z.value[0] ||
|
|
177
|
-
if (!
|
|
178
|
-
return W(
|
|
173
|
+
return y(n.value.to) > 0 ? t = o + a : o > a ? t = o - a : t = a - o, (1 - (Math.abs(y(n.value.from)) + y(n.value.value)) / t) * s.value.thermoHeight;
|
|
174
|
+
}), Ye = i(() => `${L.value}px`), Ee = i(() => `${s.value.thermoHeight}px`), He = i(() => Ue.value ? "0ms" : `${e.value.style.chart.animation.speedMs}ms`), qe = i(() => {
|
|
175
|
+
if (n.value.colors) {
|
|
176
|
+
if (!n.value.colors.from)
|
|
177
|
+
return W(z.value[0] || I[0], E(n.value.colors.to), w.value || 10);
|
|
178
|
+
if (!n.value.colors.to)
|
|
179
|
+
return W(E(n.value.colors.from), z.value[1] || I[1], w.value || 10);
|
|
179
180
|
} else
|
|
180
|
-
return W(z.value[1] ||
|
|
181
|
-
return W(
|
|
182
|
-
}),
|
|
181
|
+
return W(z.value[1] || I[1], z.value[0] || I[0], w.value || 10);
|
|
182
|
+
return W(E(n.value.colors.from), E(n.value.colors.to), w.value || 10);
|
|
183
|
+
}), fe = i(() => {
|
|
183
184
|
const o = [];
|
|
184
185
|
let a = 0;
|
|
185
186
|
const t = s.value.thermoHeight;
|
|
186
|
-
for (let l = 0; l < t - 1; l += t /
|
|
187
|
+
for (let l = 0; l < t - 1; l += t / w.value)
|
|
187
188
|
o.push({
|
|
188
189
|
x: s.value.left,
|
|
189
190
|
y: s.value.top + l,
|
|
190
|
-
qYLess: s.value.top + l + t /
|
|
191
|
-
halfY: s.value.top + l + t /
|
|
192
|
-
qYMore: s.value.top + l + t /
|
|
193
|
-
color:
|
|
194
|
-
height: Math.max(0.1, t /
|
|
191
|
+
qYLess: s.value.top + l + t / w.value / 4,
|
|
192
|
+
halfY: s.value.top + l + t / w.value / 2,
|
|
193
|
+
qYMore: s.value.top + l + t / w.value / 4 * 3,
|
|
194
|
+
color: qe.value[a],
|
|
195
|
+
height: Math.max(0.1, t / w.value)
|
|
195
196
|
}), a += 1;
|
|
196
197
|
return o;
|
|
197
198
|
}), $ = d(!1);
|
|
198
|
-
function
|
|
199
|
-
$.value = o,
|
|
199
|
+
function me(o) {
|
|
200
|
+
$.value = o, oe.value += 1;
|
|
200
201
|
}
|
|
201
|
-
const
|
|
202
|
+
const R = d(!1);
|
|
202
203
|
function J() {
|
|
203
|
-
|
|
204
|
+
R.value = !R.value;
|
|
204
205
|
}
|
|
205
|
-
async function
|
|
206
|
-
if (!
|
|
207
|
-
const { width: a, height: t } =
|
|
206
|
+
async function De({ scale: o = 2 } = {}) {
|
|
207
|
+
if (!x.value) return;
|
|
208
|
+
const { width: a, height: t } = x.value.getBoundingClientRect(), l = a / t, { imageUri: C, base64: P } = await Mt({ domElement: x.value, base64: !0, img: !0, scale: o });
|
|
208
209
|
return {
|
|
209
|
-
imageUri:
|
|
210
|
+
imageUri: C,
|
|
210
211
|
base64: P,
|
|
211
212
|
title: e.value.style.title.text,
|
|
212
213
|
width: a,
|
|
@@ -214,111 +215,126 @@ const Ot = ["id"], St = {
|
|
|
214
215
|
aspectRatio: l
|
|
215
216
|
};
|
|
216
217
|
}
|
|
217
|
-
const A =
|
|
218
|
+
const A = i({
|
|
218
219
|
get: () => e.value.style.chart.label.fontSize,
|
|
219
220
|
set: (o) => o
|
|
220
|
-
}), { autoSizeLabels:
|
|
221
|
+
}), { autoSizeLabels: ye } = St({
|
|
221
222
|
svgRef: U,
|
|
222
223
|
fontSize: e.value.style.chart.label.fontSize,
|
|
223
224
|
minFontSize: e.value.style.chart.label.minFontSize,
|
|
224
225
|
sizeRef: A,
|
|
225
226
|
labelClass: ".vue-ui-thermometer-label"
|
|
226
|
-
}),
|
|
227
|
+
}), Ge = i(() => e.value.style.chart.backgroundColor), Be = i(() => e.value.style.title), { exportSvg: je, getSvg: Xe } = $t({
|
|
227
228
|
svg: U,
|
|
228
|
-
title:
|
|
229
|
-
backgroundColor:
|
|
229
|
+
title: Be,
|
|
230
|
+
backgroundColor: Ge
|
|
230
231
|
});
|
|
231
|
-
async function
|
|
232
|
-
|
|
232
|
+
async function ge({ isCb: o }) {
|
|
233
|
+
T.value = !0, await it();
|
|
233
234
|
try {
|
|
234
235
|
if (o) {
|
|
235
|
-
const { blob: a, url: t, text: l, dataUrl:
|
|
236
|
-
await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: a, url: t, text: l, dataUrl:
|
|
236
|
+
const { blob: a, url: t, text: l, dataUrl: C } = await Xe();
|
|
237
|
+
await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: a, url: t, text: l, dataUrl: C }));
|
|
237
238
|
} else
|
|
238
|
-
await Promise.resolve(
|
|
239
|
+
await Promise.resolve(je());
|
|
239
240
|
} finally {
|
|
240
|
-
|
|
241
|
+
T.value = !1;
|
|
241
242
|
}
|
|
242
243
|
}
|
|
243
|
-
function
|
|
244
|
+
function Ke(o) {
|
|
244
245
|
if (o?.stage === "start") {
|
|
245
|
-
|
|
246
|
+
F.value = !0;
|
|
246
247
|
return;
|
|
247
248
|
}
|
|
248
249
|
if (o?.stage === "end") {
|
|
249
|
-
|
|
250
|
+
F.value = !1;
|
|
250
251
|
return;
|
|
251
252
|
}
|
|
252
253
|
he();
|
|
253
254
|
}
|
|
254
|
-
async function
|
|
255
|
-
if (
|
|
255
|
+
async function pe() {
|
|
256
|
+
if (ze("copyAlt", {
|
|
256
257
|
config: e.value,
|
|
257
|
-
dataset:
|
|
258
|
+
dataset: n.value
|
|
258
259
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
259
260
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
260
261
|
return;
|
|
261
262
|
}
|
|
262
263
|
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
263
264
|
config: e.value,
|
|
264
|
-
dataset:
|
|
265
|
+
dataset: n.value
|
|
265
266
|
}));
|
|
266
267
|
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
const ke = i(() => `${b.value}-title`), be = i(() => `${b.value}-desc`), Q = i(() => mt(
|
|
269
|
+
e.value.style.chart.label.formatter,
|
|
270
|
+
n.value.value,
|
|
271
|
+
yt({
|
|
272
|
+
p: e.value.style.chart.label.prefix,
|
|
273
|
+
v: n.value.value,
|
|
274
|
+
s: e.value.style.chart.label.suffix,
|
|
275
|
+
r: e.value.style.chart.label.rounding
|
|
276
|
+
}),
|
|
277
|
+
{ datapoint: n.value }
|
|
278
|
+
)), Je = i(() => e.value.style.title.text || ""), Qe = i(() => {
|
|
279
|
+
if (M.value) return "...";
|
|
280
|
+
const o = y(n.value.from), a = y(n.value.to);
|
|
281
|
+
return `Thermometer value: ${Q.value}. Range: ${o} to ${a}.`;
|
|
282
|
+
});
|
|
283
|
+
return Ae({
|
|
284
|
+
getImage: De,
|
|
285
|
+
generatePdf: ve,
|
|
270
286
|
generateImage: he,
|
|
271
|
-
generateSvg:
|
|
287
|
+
generateSvg: ge,
|
|
272
288
|
toggleAnnotator: J,
|
|
273
|
-
toggleFullscreen:
|
|
274
|
-
copyAlt:
|
|
275
|
-
}), (o, a) => (r(),
|
|
289
|
+
toggleFullscreen: me,
|
|
290
|
+
copyAlt: pe
|
|
291
|
+
}), (o, a) => (r(), u("div", {
|
|
276
292
|
ref_key: "thermoChart",
|
|
277
|
-
ref:
|
|
293
|
+
ref: x,
|
|
278
294
|
class: V(`vue-data-ui-component vue-ui-thermometer ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
279
|
-
style:
|
|
280
|
-
id: `thermometer__${
|
|
281
|
-
onMouseenter: a[0] || (a[0] = () =>
|
|
282
|
-
onMouseleave: a[1] || (a[1] = () =>
|
|
295
|
+
style: we(`width:100%;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}`),
|
|
296
|
+
id: `thermometer__${b.value}`,
|
|
297
|
+
onMouseenter: a[0] || (a[0] = () => c(ie)(!0)),
|
|
298
|
+
onMouseleave: a[1] || (a[1] = () => c(ie)(!1))
|
|
283
299
|
}, [
|
|
284
|
-
e.value.userOptions.buttons.annotator ? (r(),
|
|
300
|
+
e.value.userOptions.buttons.annotator ? (r(), N(c(Ie), {
|
|
285
301
|
key: 0,
|
|
286
|
-
svgRef:
|
|
302
|
+
svgRef: c(U),
|
|
287
303
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
288
304
|
color: e.value.style.chart.color,
|
|
289
|
-
active:
|
|
290
|
-
isCursorPointer:
|
|
305
|
+
active: R.value,
|
|
306
|
+
isCursorPointer: re.value,
|
|
291
307
|
onClose: J
|
|
292
308
|
}, {
|
|
293
309
|
"annotator-action-close": f(() => [
|
|
294
|
-
|
|
310
|
+
h(o.$slots, "annotator-action-close", {}, void 0, !0)
|
|
295
311
|
]),
|
|
296
312
|
"annotator-action-color": f(({ color: t }) => [
|
|
297
|
-
|
|
313
|
+
h(o.$slots, "annotator-action-color", p(k({ color: t })), void 0, !0)
|
|
298
314
|
]),
|
|
299
315
|
"annotator-action-draw": f(({ mode: t }) => [
|
|
300
|
-
|
|
316
|
+
h(o.$slots, "annotator-action-draw", p(k({ mode: t })), void 0, !0)
|
|
301
317
|
]),
|
|
302
318
|
"annotator-action-undo": f(({ disabled: t }) => [
|
|
303
|
-
|
|
319
|
+
h(o.$slots, "annotator-action-undo", p(k({ disabled: t })), void 0, !0)
|
|
304
320
|
]),
|
|
305
321
|
"annotator-action-redo": f(({ disabled: t }) => [
|
|
306
|
-
|
|
322
|
+
h(o.$slots, "annotator-action-redo", p(k({ disabled: t })), void 0, !0)
|
|
307
323
|
]),
|
|
308
324
|
"annotator-action-delete": f(({ disabled: t }) => [
|
|
309
|
-
|
|
325
|
+
h(o.$slots, "annotator-action-delete", p(k({ disabled: t })), void 0, !0)
|
|
310
326
|
]),
|
|
311
327
|
_: 3
|
|
312
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) :
|
|
313
|
-
|
|
314
|
-
e.value.style.title.text ? (r(),
|
|
328
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : v("", !0),
|
|
329
|
+
Ve.value ? (r(), u("div", Wt, null, 512)) : v("", !0),
|
|
330
|
+
e.value.style.title.text ? (r(), u("div", {
|
|
315
331
|
key: 2,
|
|
316
332
|
ref_key: "chartTitle",
|
|
317
|
-
ref:
|
|
333
|
+
ref: ae,
|
|
318
334
|
style: "width:100%"
|
|
319
335
|
}, [
|
|
320
|
-
(r(),
|
|
321
|
-
key: `title_${
|
|
336
|
+
(r(), N(Tt, {
|
|
337
|
+
key: `title_${se.value}`,
|
|
322
338
|
config: {
|
|
323
339
|
title: {
|
|
324
340
|
cy: "thermometer-div-title",
|
|
@@ -330,15 +346,15 @@ const Ot = ["id"], St = {
|
|
|
330
346
|
}
|
|
331
347
|
}
|
|
332
348
|
}, null, 8, ["config"]))
|
|
333
|
-
], 512)) :
|
|
334
|
-
e.value.userOptions.show &&
|
|
349
|
+
], 512)) : v("", !0),
|
|
350
|
+
e.value.userOptions.show && We.value && (c(ce) || c(D)) ? (r(), N(c(Se), {
|
|
335
351
|
ref: "details",
|
|
336
|
-
key: `user_options_${
|
|
352
|
+
key: `user_options_${oe.value}`,
|
|
337
353
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
338
354
|
color: e.value.style.chart.color,
|
|
339
|
-
isImaging:
|
|
340
|
-
isPrinting:
|
|
341
|
-
uid:
|
|
355
|
+
isImaging: c(j),
|
|
356
|
+
isPrinting: c(B),
|
|
357
|
+
uid: b.value,
|
|
342
358
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
343
359
|
hasImg: e.value.userOptions.buttons.img,
|
|
344
360
|
hasSvg: e.value.userOptions.buttons.svg,
|
|
@@ -347,84 +363,88 @@ const Ot = ["id"], St = {
|
|
|
347
363
|
hasXls: !1,
|
|
348
364
|
isFullscreen: $.value,
|
|
349
365
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
350
|
-
chartElement:
|
|
366
|
+
chartElement: x.value,
|
|
351
367
|
position: e.value.userOptions.position,
|
|
352
368
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
353
|
-
isAnnotation:
|
|
369
|
+
isAnnotation: R.value,
|
|
354
370
|
callbacks: e.value.userOptions.callbacks,
|
|
355
371
|
printScale: e.value.userOptions.print.scale,
|
|
356
|
-
isCursorPointer:
|
|
357
|
-
onToggleFullscreen:
|
|
358
|
-
onGeneratePdf:
|
|
359
|
-
onGenerateImage:
|
|
360
|
-
onGenerateSvg:
|
|
372
|
+
isCursorPointer: re.value,
|
|
373
|
+
onToggleFullscreen: me,
|
|
374
|
+
onGeneratePdf: c(ve),
|
|
375
|
+
onGenerateImage: Ke,
|
|
376
|
+
onGenerateSvg: ge,
|
|
361
377
|
onToggleAnnotator: J,
|
|
362
|
-
onCopyAlt:
|
|
363
|
-
style:
|
|
364
|
-
visibility:
|
|
378
|
+
onCopyAlt: pe,
|
|
379
|
+
style: we({
|
|
380
|
+
visibility: c(ce) ? c(D) ? "visible" : "hidden" : "visible"
|
|
365
381
|
})
|
|
366
|
-
},
|
|
382
|
+
}, nt({ _: 2 }, [
|
|
367
383
|
o.$slots.menuIcon ? {
|
|
368
384
|
name: "menuIcon",
|
|
369
385
|
fn: f(({ isOpen: t, color: l }) => [
|
|
370
|
-
|
|
386
|
+
h(o.$slots, "menuIcon", p(k({ isOpen: t, color: l })), void 0, !0)
|
|
371
387
|
]),
|
|
372
388
|
key: "0"
|
|
373
389
|
} : void 0,
|
|
374
390
|
o.$slots.optionPdf ? {
|
|
375
391
|
name: "optionPdf",
|
|
376
392
|
fn: f(() => [
|
|
377
|
-
|
|
393
|
+
h(o.$slots, "optionPdf", {}, void 0, !0)
|
|
378
394
|
]),
|
|
379
395
|
key: "1"
|
|
380
396
|
} : void 0,
|
|
381
397
|
o.$slots.optionImg ? {
|
|
382
398
|
name: "optionImg",
|
|
383
399
|
fn: f(() => [
|
|
384
|
-
|
|
400
|
+
h(o.$slots, "optionImg", {}, void 0, !0)
|
|
385
401
|
]),
|
|
386
402
|
key: "2"
|
|
387
403
|
} : void 0,
|
|
388
404
|
o.$slots.optionSvg ? {
|
|
389
405
|
name: "optionSvg",
|
|
390
406
|
fn: f(() => [
|
|
391
|
-
|
|
407
|
+
h(o.$slots, "optionSvg", {}, void 0, !0)
|
|
392
408
|
]),
|
|
393
409
|
key: "3"
|
|
394
410
|
} : void 0,
|
|
395
411
|
o.$slots.optionFullscreen ? {
|
|
396
412
|
name: "optionFullscreen",
|
|
397
413
|
fn: f(({ toggleFullscreen: t, isFullscreen: l }) => [
|
|
398
|
-
|
|
414
|
+
h(o.$slots, "optionFullscreen", p(k({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
|
|
399
415
|
]),
|
|
400
416
|
key: "4"
|
|
401
417
|
} : void 0,
|
|
402
418
|
o.$slots.optionAnnotator ? {
|
|
403
419
|
name: "optionAnnotator",
|
|
404
420
|
fn: f(({ toggleAnnotator: t, isAnnotator: l }) => [
|
|
405
|
-
|
|
421
|
+
h(o.$slots, "optionAnnotator", p(k({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
|
|
406
422
|
]),
|
|
407
423
|
key: "5"
|
|
408
424
|
} : void 0,
|
|
409
425
|
o.$slots.optionAltCopy ? {
|
|
410
426
|
name: "optionAltCopy",
|
|
411
427
|
fn: f(({ altCopy: t }) => [
|
|
412
|
-
|
|
428
|
+
h(o.$slots, "optionAltCopy", p(k({ altCopy: t })), void 0, !0)
|
|
413
429
|
]),
|
|
414
430
|
key: "6"
|
|
415
431
|
} : void 0
|
|
416
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "hasAltCopy", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "isCursorPointer", "onGeneratePdf", "style"])) :
|
|
417
|
-
(r(),
|
|
432
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "hasAltCopy", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "isCursorPointer", "onGeneratePdf", "style"])) : v("", !0),
|
|
433
|
+
(r(), u("svg", {
|
|
418
434
|
ref_key: "svgRef",
|
|
419
435
|
ref: U,
|
|
420
|
-
xmlns:
|
|
436
|
+
xmlns: c(gt),
|
|
421
437
|
class: V({ "vue-data-ui-fullscreen--on": $.value, "vue-data-ui-fulscreen--off": !$.value }),
|
|
422
438
|
width: "100%",
|
|
423
439
|
viewBox: `0 0 ${s.value.width} ${s.value.height}`,
|
|
424
|
-
style: "background:transparent"
|
|
440
|
+
style: "background:transparent",
|
|
441
|
+
"aria-labelledby": ke.value,
|
|
442
|
+
"aria-describedby": be.value
|
|
425
443
|
}, [
|
|
426
|
-
|
|
427
|
-
|
|
444
|
+
m("title", { id: ke.value }, ee(Je.value), 9, Rt),
|
|
445
|
+
m("desc", { id: be.value }, ee(Qe.value), 9, Vt),
|
|
446
|
+
ut(c(Oe)),
|
|
447
|
+
o.$slots["chart-background"] ? (r(), u("foreignObject", {
|
|
428
448
|
key: 0,
|
|
429
449
|
x: 0,
|
|
430
450
|
y: 0,
|
|
@@ -434,65 +454,65 @@ const Ot = ["id"], St = {
|
|
|
434
454
|
pointerEvents: "none"
|
|
435
455
|
}
|
|
436
456
|
}, [
|
|
437
|
-
|
|
438
|
-
], 8,
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
id: `vueUiPill-${
|
|
457
|
+
h(o.$slots, "chart-background", {}, void 0, !0)
|
|
458
|
+
], 8, Nt)) : v("", !0),
|
|
459
|
+
m("defs", null, [
|
|
460
|
+
m("clipPath", {
|
|
461
|
+
id: `vueUiPill-${b.value}`,
|
|
442
462
|
clipPathUnits: "userSpaceOnUse"
|
|
443
463
|
}, [
|
|
444
|
-
|
|
464
|
+
m("rect", {
|
|
445
465
|
x: s.value.left,
|
|
446
466
|
y: s.value.top,
|
|
447
467
|
width: s.value.thermoWidth,
|
|
448
468
|
height: s.value.thermoHeight,
|
|
449
469
|
rx: s.value.thermoWidth / 2,
|
|
450
470
|
ry: s.value.thermoWidth / 2
|
|
451
|
-
}, null, 8,
|
|
452
|
-
], 8,
|
|
453
|
-
(r(!0),
|
|
454
|
-
id: `vueUiThermometerGradient_${l}_${
|
|
471
|
+
}, null, 8, Et)
|
|
472
|
+
], 8, Yt),
|
|
473
|
+
(r(!0), u(Y, null, xe(fe.value, (t, l) => (r(), u("linearGradient", {
|
|
474
|
+
id: `vueUiThermometerGradient_${l}_${b.value}`,
|
|
455
475
|
x1: "0%",
|
|
456
476
|
y1: "0%",
|
|
457
477
|
x2: "100%",
|
|
458
478
|
y2: "0%"
|
|
459
479
|
}, [
|
|
460
|
-
|
|
480
|
+
m("stop", {
|
|
461
481
|
offset: "0%",
|
|
462
482
|
"stop-color": t.color
|
|
463
|
-
}, null, 8,
|
|
464
|
-
|
|
483
|
+
}, null, 8, qt),
|
|
484
|
+
m("stop", {
|
|
465
485
|
offset: "50%",
|
|
466
|
-
"stop-color":
|
|
467
|
-
}, null, 8,
|
|
468
|
-
|
|
486
|
+
"stop-color": c(pt)(t.color, 100 - e.value.style.chart.graduations.gradient.intensity)
|
|
487
|
+
}, null, 8, Dt),
|
|
488
|
+
m("stop", {
|
|
469
489
|
offset: "100%",
|
|
470
490
|
"stop-color": t.color
|
|
471
|
-
}, null, 8,
|
|
472
|
-
], 8,
|
|
491
|
+
}, null, 8, Gt)
|
|
492
|
+
], 8, Ht))), 256))
|
|
473
493
|
]),
|
|
474
|
-
|
|
475
|
-
"clip-path": `url(#vueUiPill-${
|
|
494
|
+
m("g", {
|
|
495
|
+
"clip-path": `url(#vueUiPill-${b.value})`
|
|
476
496
|
}, [
|
|
477
|
-
|
|
497
|
+
m("rect", {
|
|
478
498
|
x: s.value.left,
|
|
479
499
|
y: s.value.top,
|
|
480
500
|
height: s.value.thermoHeight,
|
|
481
501
|
width: s.value.thermoWidth,
|
|
482
502
|
fill: "#FFFFFF"
|
|
483
|
-
}, null, 8,
|
|
484
|
-
(r(!0),
|
|
503
|
+
}, null, 8, jt),
|
|
504
|
+
(r(!0), u(Y, null, xe(fe.value, (t, l) => (r(), u("g", {
|
|
485
505
|
key: `graduation_${l}`
|
|
486
506
|
}, [
|
|
487
|
-
|
|
507
|
+
m("rect", {
|
|
488
508
|
x: t.x,
|
|
489
509
|
y: t.y,
|
|
490
510
|
height: t.height,
|
|
491
511
|
width: s.value.thermoWidth,
|
|
492
|
-
fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${l}_${
|
|
512
|
+
fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${l}_${b.value})` : t.color,
|
|
493
513
|
"shape-rendering": "crispEdges"
|
|
494
|
-
}, null, 8,
|
|
495
|
-
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (r(),
|
|
514
|
+
}, null, 8, Xt),
|
|
515
|
+
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (r(), u("line", {
|
|
496
516
|
key: 0,
|
|
497
517
|
x1: t.x,
|
|
498
518
|
x2: t.x + 10,
|
|
@@ -501,9 +521,9 @@ const Ot = ["id"], St = {
|
|
|
501
521
|
"stroke-width": e.value.style.chart.graduations.strokeWidth,
|
|
502
522
|
stroke: e.value.style.chart.graduations.stroke,
|
|
503
523
|
"stroke-linecap": "round"
|
|
504
|
-
}, null, 8,
|
|
505
|
-
e.value.style.chart.graduations.showIntermediate ? (r(),
|
|
506
|
-
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (r(),
|
|
524
|
+
}, null, 8, Kt)) : v("", !0),
|
|
525
|
+
e.value.style.chart.graduations.showIntermediate ? (r(), u(Y, { key: 1 }, [
|
|
526
|
+
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (r(), u("line", {
|
|
507
527
|
key: 0,
|
|
508
528
|
x1: t.x,
|
|
509
529
|
x2: t.x + 5,
|
|
@@ -512,8 +532,8 @@ const Ot = ["id"], St = {
|
|
|
512
532
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
513
533
|
stroke: e.value.style.chart.graduations.stroke,
|
|
514
534
|
"stroke-linecap": "round"
|
|
515
|
-
}, null, 8,
|
|
516
|
-
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (r(),
|
|
535
|
+
}, null, 8, Jt)) : v("", !0),
|
|
536
|
+
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (r(), u("line", {
|
|
517
537
|
key: 1,
|
|
518
538
|
x1: t.x,
|
|
519
539
|
x2: t.x + 2.5,
|
|
@@ -522,8 +542,8 @@ const Ot = ["id"], St = {
|
|
|
522
542
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
523
543
|
stroke: e.value.style.chart.graduations.stroke,
|
|
524
544
|
"stroke-linecap": "round"
|
|
525
|
-
}, null, 8,
|
|
526
|
-
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (r(),
|
|
545
|
+
}, null, 8, Qt)) : v("", !0),
|
|
546
|
+
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (r(), u("line", {
|
|
527
547
|
key: 2,
|
|
528
548
|
x1: t.x,
|
|
529
549
|
x2: t.x + 2.5,
|
|
@@ -532,9 +552,9 @@ const Ot = ["id"], St = {
|
|
|
532
552
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
533
553
|
stroke: e.value.style.chart.graduations.stroke,
|
|
534
554
|
"stroke-linecap": "round"
|
|
535
|
-
}, null, 8,
|
|
536
|
-
], 64)) :
|
|
537
|
-
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (r(),
|
|
555
|
+
}, null, 8, Zt)) : v("", !0)
|
|
556
|
+
], 64)) : v("", !0),
|
|
557
|
+
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (r(), u("line", {
|
|
538
558
|
key: 2,
|
|
539
559
|
x1: s.value.right,
|
|
540
560
|
x2: s.value.right - 10,
|
|
@@ -543,9 +563,9 @@ const Ot = ["id"], St = {
|
|
|
543
563
|
"stroke-width": e.value.style.chart.graduations.strokeWidth,
|
|
544
564
|
stroke: e.value.style.chart.graduations.stroke,
|
|
545
565
|
"stroke-linecap": "round"
|
|
546
|
-
}, null, 8,
|
|
547
|
-
e.value.style.chart.graduations.showIntermediate ? (r(),
|
|
548
|
-
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (r(),
|
|
566
|
+
}, null, 8, eo)) : v("", !0),
|
|
567
|
+
e.value.style.chart.graduations.showIntermediate ? (r(), u(Y, { key: 3 }, [
|
|
568
|
+
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (r(), u("line", {
|
|
549
569
|
key: 0,
|
|
550
570
|
x1: s.value.right,
|
|
551
571
|
x2: s.value.right - 5,
|
|
@@ -554,8 +574,8 @@ const Ot = ["id"], St = {
|
|
|
554
574
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
555
575
|
stroke: e.value.style.chart.graduations.stroke,
|
|
556
576
|
"stroke-linecap": "round"
|
|
557
|
-
}, null, 8,
|
|
558
|
-
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (r(),
|
|
577
|
+
}, null, 8, to)) : v("", !0),
|
|
578
|
+
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (r(), u("line", {
|
|
559
579
|
key: 1,
|
|
560
580
|
x1: s.value.right,
|
|
561
581
|
x2: s.value.right - 2.5,
|
|
@@ -564,8 +584,8 @@ const Ot = ["id"], St = {
|
|
|
564
584
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
565
585
|
stroke: e.value.style.chart.graduations.stroke,
|
|
566
586
|
"stroke-linecap": "round"
|
|
567
|
-
}, null, 8,
|
|
568
|
-
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (r(),
|
|
587
|
+
}, null, 8, oo)) : v("", !0),
|
|
588
|
+
e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (r(), u("line", {
|
|
569
589
|
key: 2,
|
|
570
590
|
x1: s.value.right,
|
|
571
591
|
x2: s.value.right - 2.5,
|
|
@@ -574,20 +594,25 @@ const Ot = ["id"], St = {
|
|
|
574
594
|
"stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
|
|
575
595
|
stroke: e.value.style.chart.graduations.stroke,
|
|
576
596
|
"stroke-linecap": "round"
|
|
577
|
-
}, null, 8,
|
|
578
|
-
], 64)) :
|
|
597
|
+
}, null, 8, so)) : v("", !0)
|
|
598
|
+
], 64)) : v("", !0)
|
|
579
599
|
]))), 128)),
|
|
580
|
-
|
|
600
|
+
m("rect", {
|
|
581
601
|
class: V({ "vue-ui-thermometer-temperature": e.value.style.chart.animation.use }),
|
|
582
602
|
x: s.value.left,
|
|
583
603
|
y: s.value.top,
|
|
584
604
|
height: L.value,
|
|
585
605
|
width: s.value.thermoWidth,
|
|
586
606
|
fill: "#FFFFFF66"
|
|
587
|
-
}, null, 10,
|
|
588
|
-
], 8,
|
|
589
|
-
e.value.style.chart.label.show ? (r(),
|
|
590
|
-
|
|
607
|
+
}, null, 10, ao)
|
|
608
|
+
], 8, Bt),
|
|
609
|
+
e.value.style.chart.label.show ? (r(), u("g", {
|
|
610
|
+
key: 1,
|
|
611
|
+
role: "status",
|
|
612
|
+
"aria-live": "polite",
|
|
613
|
+
"aria-label": c(M) ? "Loading data" : Q.value
|
|
614
|
+
}, [
|
|
615
|
+
c(M) ? (r(), u("rect", {
|
|
591
616
|
key: 0,
|
|
592
617
|
x: s.value.left - 60,
|
|
593
618
|
y: L.value + s.value.top - A.value / 2,
|
|
@@ -595,8 +620,9 @@ const Ot = ["id"], St = {
|
|
|
595
620
|
height: A.value,
|
|
596
621
|
fill: "#6A6A6A40",
|
|
597
622
|
rx: "3"
|
|
598
|
-
}, null, 8,
|
|
623
|
+
}, null, 8, ro)) : (r(), u("text", {
|
|
599
624
|
key: 1,
|
|
625
|
+
"aria-hidden": "true",
|
|
600
626
|
class: V({ "vue-ui-thermometer-temperature-value": e.value.style.chart.animation.use, "vue-ui-thermometer-label": !0 }),
|
|
601
627
|
y: L.value + s.value.top + A.value / 3,
|
|
602
628
|
x: s.value.left - 10,
|
|
@@ -604,43 +630,33 @@ const Ot = ["id"], St = {
|
|
|
604
630
|
fill: e.value.style.chart.label.color,
|
|
605
631
|
"font-size": A.value,
|
|
606
632
|
"font-weight": e.value.style.chart.label.bold ? "bold" : "normal"
|
|
607
|
-
},
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
u(vt)({
|
|
611
|
-
p: e.value.style.chart.label.prefix,
|
|
612
|
-
v: I.dataset.value,
|
|
613
|
-
s: e.value.style.chart.label.suffix,
|
|
614
|
-
r: e.value.style.chart.label.rounding
|
|
615
|
-
}),
|
|
616
|
-
{ datapoint: I.dataset }
|
|
617
|
-
)), 11, Qt))
|
|
618
|
-
])) : c("", !0),
|
|
619
|
-
v(o.$slots, "svg", {
|
|
633
|
+
}, ee(Q.value), 11, no))
|
|
634
|
+
], 8, lo)) : v("", !0),
|
|
635
|
+
h(o.$slots, "svg", {
|
|
620
636
|
svg: {
|
|
621
|
-
...
|
|
622
|
-
isPrintingImg:
|
|
623
|
-
isPrintingSvg:
|
|
637
|
+
...Ne.value,
|
|
638
|
+
isPrintingImg: c(B) | c(j) | F.value,
|
|
639
|
+
isPrintingSvg: T.value
|
|
624
640
|
}
|
|
625
641
|
}, void 0, !0)
|
|
626
|
-
], 10,
|
|
627
|
-
o.$slots.watermark ? (r(),
|
|
628
|
-
|
|
629
|
-
])) :
|
|
630
|
-
o.$slots.source ? (r(),
|
|
642
|
+
], 10, Lt)),
|
|
643
|
+
o.$slots.watermark ? (r(), u("div", uo, [
|
|
644
|
+
h(o.$slots, "watermark", p(k({ isPrinting: c(B) || c(j) || F.value || T.value })), void 0, !0)
|
|
645
|
+
])) : v("", !0),
|
|
646
|
+
o.$slots.source ? (r(), u("div", {
|
|
631
647
|
key: 5,
|
|
632
648
|
ref_key: "source",
|
|
633
|
-
ref:
|
|
649
|
+
ref: le,
|
|
634
650
|
dir: "auto"
|
|
635
651
|
}, [
|
|
636
|
-
|
|
637
|
-
], 512)) :
|
|
638
|
-
|
|
639
|
-
|
|
652
|
+
h(o.$slots, "source", {}, void 0, !0)
|
|
653
|
+
], 512)) : v("", !0),
|
|
654
|
+
h(o.$slots, "skeleton", {}, () => [
|
|
655
|
+
c(M) ? (r(), N(Ct, { key: 0 })) : v("", !0)
|
|
640
656
|
], !0)
|
|
641
|
-
], 46,
|
|
657
|
+
], 46, zt));
|
|
642
658
|
}
|
|
643
|
-
},
|
|
659
|
+
}, Oo = /* @__PURE__ */ Ut(io, [["__scopeId", "data-v-e2a33fa2"]]);
|
|
644
660
|
export {
|
|
645
|
-
|
|
661
|
+
Oo as default
|
|
646
662
|
};
|