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,22 +1,23 @@
|
|
|
1
|
-
import { defineAsyncComponent 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
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
|
|
1
|
+
import { defineAsyncComponent as J, computed as r, ref as c, toRefs as Ke, watch as be, onMounted as We, openBlock as i, createElementBlock as v, unref as n, normalizeStyle as Q, normalizeClass as Z, createBlock as G, withCtx as f, renderSlot as u, normalizeProps as m, guardReactiveProps as k, createCommentVNode as w, createSlots as Je, createElementVNode as Ce, toDisplayString as ee, createVNode as Qe, Fragment as we, renderList as $e, nextTick as Ze } from "vue";
|
|
2
|
+
import { j as et, t as Ae, K as tt, o as at, q as ot, v as Pe, k as lt, l as nt, X as st } from "./lib-DBptbyyI.js";
|
|
3
|
+
import { t as rt, u as it } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ut } from "./useConfig-DO94Aj5s.js";
|
|
5
|
+
import { u as ct, B as vt } from "./BaseScanner-BhhkKVoj.js";
|
|
6
|
+
import { u as dt } from "./usePrinter-CEpYU3r5.js";
|
|
7
|
+
import { u as ht } from "./useSvgExport-ByUukOZt.js";
|
|
8
|
+
import { u as te } from "./useNestedProp-Bf5XFbs8.js";
|
|
9
|
+
import { u as ft } from "./useThemeCheck-D1ZYXUwG.js";
|
|
10
|
+
import { u as gt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as pt } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import { u as yt } from "./usePrefersMotion-CUKm8_t8.js";
|
|
13
|
+
import mt from "./vue_ui_tiremarks-DBotWfi8.js";
|
|
14
|
+
import kt from "./Title-BeMKE1cj.js";
|
|
15
|
+
import bt from "./img-LXxMLmCg.js";
|
|
16
|
+
import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const wt = ["id"], $t = ["xmlns", "viewBox", "aria-labelledby", "aria-describedby"], At = ["id"], Pt = ["id"], _t = ["width", "height"], Ot = { key: 1 }, St = ["d", "stroke-width", "stroke"], xt = { key: 2 }, It = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], Tt = ["aria-label"], zt = ["x", "y", "height"], Ft = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Nt = {
|
|
17
18
|
key: 4,
|
|
18
19
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
20
|
+
}, Rt = {
|
|
20
21
|
__name: "vue-ui-tiremarks",
|
|
21
22
|
props: {
|
|
22
23
|
config: {
|
|
@@ -33,8 +34,8 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
|
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
emits: ["copyAlt"],
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
37
|
+
setup(_e, { expose: Oe, emit: Se }) {
|
|
38
|
+
const xe = J(() => import("./PenAndPaper-Ct3qJ4lA.js")), Ie = J(() => import("./UserOptions-rW2fRf3V.js")), Te = J(() => import("./PackageVersion-DPO-OOVI.js")), { vue_ui_tiremarks: ze } = ut(), { isThemeValid: Fe, warnInvalidTheme: Ne } = ft(), j = yt(), b = _e, Re = Se, Me = r(() => !!b.dataset && Object.keys(b.dataset).length), O = c(et()), _ = c(null), Ee = c(null), ae = c(null), oe = c(null), le = c(0), ne = c(0), S = c(null), z = c(null), F = c(!1), N = c(!1), e = c(X()), se = r(() => e.value.userOptions.useCursorPointer), De = r(() => Ae({
|
|
38
39
|
defaultConfig: {
|
|
39
40
|
userOptions: { show: !1 },
|
|
40
41
|
style: {
|
|
@@ -52,83 +53,83 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
|
|
|
52
53
|
}
|
|
53
54
|
},
|
|
54
55
|
userConfig: e.value.skeletonConfig ?? {}
|
|
55
|
-
})), { loading:
|
|
56
|
-
...
|
|
56
|
+
})), { loading: R, FINAL_DATASET: x } = ct({
|
|
57
|
+
...Ke(b),
|
|
57
58
|
FINAL_CONFIG: e,
|
|
58
|
-
prepareConfig:
|
|
59
|
+
prepareConfig: X,
|
|
59
60
|
skeletonDataset: b.config?.skeletonDataset ?? { percentage: 50 },
|
|
60
|
-
skeletonConfig:
|
|
61
|
+
skeletonConfig: Ae({
|
|
61
62
|
defaultConfig: e.value,
|
|
62
|
-
userConfig:
|
|
63
|
+
userConfig: De.value
|
|
63
64
|
})
|
|
64
|
-
}), { userOptionsVisible:
|
|
65
|
-
function
|
|
66
|
-
const t =
|
|
65
|
+
}), { userOptionsVisible: H, setUserOptionsVisibility: re, keepUserOptionState: ie } = gt({ config: e.value }), { svgRef: V } = pt({ config: e.value.style.chart.title });
|
|
66
|
+
function X() {
|
|
67
|
+
const t = te({
|
|
67
68
|
userConfig: b.config,
|
|
68
|
-
defaultConfig:
|
|
69
|
+
defaultConfig: ze
|
|
69
70
|
}), o = t.theme;
|
|
70
71
|
if (!o) return t;
|
|
71
|
-
if (!
|
|
72
|
-
return
|
|
73
|
-
const a =
|
|
74
|
-
userConfig:
|
|
72
|
+
if (!Fe.value(t))
|
|
73
|
+
return Ne(t), t;
|
|
74
|
+
const a = te({
|
|
75
|
+
userConfig: mt[o] || b.config,
|
|
75
76
|
defaultConfig: t
|
|
76
77
|
});
|
|
77
|
-
return
|
|
78
|
+
return te({
|
|
78
79
|
userConfig: b.config,
|
|
79
80
|
defaultConfig: a
|
|
80
81
|
});
|
|
81
82
|
}
|
|
82
|
-
|
|
83
|
-
e.value =
|
|
83
|
+
be(() => b.config, (t) => {
|
|
84
|
+
e.value = X(), H.value = !e.value.userOptions.showOnChartHover, D.value = e.value.style.chart.width, L.value = e.value.style.chart.height, de(), ne.value += 1;
|
|
84
85
|
}, { deep: !0 });
|
|
85
|
-
const { isPrinting:
|
|
86
|
-
elementId:
|
|
86
|
+
const { isPrinting: q, isImaging: Y, generatePdf: ue, generateImage: ce } = dt({
|
|
87
|
+
elementId: O.value,
|
|
87
88
|
fileName: e.value.style.chart.title.text || "vue-ui-tiremarks",
|
|
88
89
|
options: e.value.userOptions.print
|
|
89
|
-
}),
|
|
90
|
-
|
|
91
|
-
e.value.style.chart.animation.use ?
|
|
92
|
-
}, { deep: !0 }),
|
|
93
|
-
|
|
90
|
+
}), Le = r(() => e.value.userOptions.show && !e.value.style.chart.title.text), d = c(e.value.style.chart.animation.use && !j.value ? 0 : tt(x.value.percentage));
|
|
91
|
+
be(() => x.value, (t) => {
|
|
92
|
+
e.value.style.chart.animation.use && !j.value ? ve(t.percentage) : d.value = t.percentage || 0;
|
|
93
|
+
}, { deep: !0 }), We(() => {
|
|
94
|
+
de();
|
|
94
95
|
});
|
|
95
|
-
function
|
|
96
|
+
function ve(t) {
|
|
96
97
|
let o = e.value.style.chart.animation.speed;
|
|
97
|
-
const a = Math.abs(t -
|
|
98
|
+
const a = Math.abs(t - d.value) / (o * 120);
|
|
98
99
|
function l() {
|
|
99
|
-
|
|
100
|
+
d.value < t ? d.value = Math.min(d.value + a, t) : d.value > t && (d.value = Math.max(d.value - a, t)), d.value !== t && requestAnimationFrame(l);
|
|
100
101
|
}
|
|
101
102
|
l();
|
|
102
103
|
}
|
|
103
|
-
const
|
|
104
|
-
function
|
|
105
|
-
if (
|
|
104
|
+
const Ue = r(() => !!e.value.debug);
|
|
105
|
+
function de() {
|
|
106
|
+
if (at(b.dataset) && ot({
|
|
106
107
|
componentName: "VueUiTiremarks",
|
|
107
108
|
type: "dataset",
|
|
108
|
-
debug:
|
|
109
|
+
debug: Ue.value
|
|
109
110
|
}), e.value.responsive) {
|
|
110
|
-
const t =
|
|
111
|
-
const { width: o, height: a } =
|
|
112
|
-
chart:
|
|
113
|
-
title: e.value.style.chart.title.text ?
|
|
114
|
-
source:
|
|
111
|
+
const t = rt(() => {
|
|
112
|
+
const { width: o, height: a } = it({
|
|
113
|
+
chart: _.value,
|
|
114
|
+
title: e.value.style.chart.title.text ? ae.value : null,
|
|
115
|
+
source: oe.value
|
|
115
116
|
});
|
|
116
117
|
requestAnimationFrame(() => {
|
|
117
|
-
|
|
118
|
+
D.value = Math.max(0.1, o), L.value = Math.max(0.1, a - 12);
|
|
118
119
|
});
|
|
119
120
|
});
|
|
120
|
-
S.value && (z.value && S.value.unobserve(z.value), S.value.disconnect()), S.value = new ResizeObserver(t), z.value =
|
|
121
|
+
S.value && (z.value && S.value.unobserve(z.value), S.value.disconnect()), S.value = new ResizeObserver(t), z.value = _.value.parentNode, S.value.observe(z.value);
|
|
121
122
|
}
|
|
122
|
-
|
|
123
|
+
ve(x.value.percentage || 0);
|
|
123
124
|
}
|
|
124
|
-
const
|
|
125
|
+
const M = r(() => e.value.style.chart.layout.display === "vertical"), h = r(() => {
|
|
125
126
|
const t = e.value.style.chart.percentage.show, o = {
|
|
126
127
|
top: t ? 48 : 12,
|
|
127
128
|
left: t ? 64 : 16,
|
|
128
129
|
right: t ? 64 : 16,
|
|
129
130
|
bottom: t ? 48 : 12
|
|
130
131
|
};
|
|
131
|
-
return
|
|
132
|
+
return M.value ? {
|
|
132
133
|
top: e.value.style.chart.percentage.verticalPosition === "top" ? o.top : 3,
|
|
133
134
|
left: 3,
|
|
134
135
|
right: 3,
|
|
@@ -139,10 +140,10 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
|
|
|
139
140
|
left: e.value.style.chart.percentage.horizontalPosition === "left" ? o.left : 16,
|
|
140
141
|
right: e.value.style.chart.percentage.horizontalPosition === "right" ? o.right : 10
|
|
141
142
|
};
|
|
142
|
-
}),
|
|
143
|
-
height:
|
|
144
|
-
width:
|
|
145
|
-
})),
|
|
143
|
+
}), E = r(() => Object.values(h.value).reduce((t, o) => t + o, 0)), D = c(e.value.style.chart.width), L = c(e.value.style.chart.height), s = r(() => ({
|
|
144
|
+
height: L.value,
|
|
145
|
+
width: D.value
|
|
146
|
+
})), he = r(() => ({
|
|
146
147
|
horizontal: {
|
|
147
148
|
x: y.value.x + (e.value.style.chart.percentage.horizontalPosition === "left" ? 6 : 3),
|
|
148
149
|
y: s.value.height / 2 - y.value.fontSize / 2
|
|
@@ -151,43 +152,43 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
|
|
|
151
152
|
x: s.value.width / 2 - 20,
|
|
152
153
|
y: y.value.y - y.value.fontSize / 2
|
|
153
154
|
}
|
|
154
|
-
})[e.value.style.chart.layout.display]), g =
|
|
155
|
-
mark: (s.value.height -
|
|
156
|
-
space: (s.value.height -
|
|
155
|
+
})[e.value.style.chart.layout.display]), g = r(() => M.value ? {
|
|
156
|
+
mark: (s.value.height - E.value) / 100 * 0.5,
|
|
157
|
+
space: (s.value.height - E.value) / 100 * 0.5
|
|
157
158
|
} : {
|
|
158
|
-
mark: (s.value.width -
|
|
159
|
-
space: (s.value.width -
|
|
160
|
-
}),
|
|
159
|
+
mark: (s.value.width - E.value) / 100 * 0.5,
|
|
160
|
+
space: (s.value.width - E.value) / 100 * 0.5
|
|
161
|
+
}), fe = r(() => {
|
|
161
162
|
const t = [];
|
|
162
163
|
for (let a = 0; a < 100; a += 1) {
|
|
163
|
-
const l = e.value.style.chart.layout.ticks.gradient.show ?
|
|
164
|
-
if (
|
|
165
|
-
const C = e.value.style.chart.layout.crescendo ? (100 - a) * (s.value.width - h.value.left - h.value.right) / 100 / 3 : 0, p = h.value.left + 4 + C, $ = s.value.width - h.value.right - 4 - C, A = s.value.height - h.value.bottom - a * g.value.mark - a * g.value.space - g.value.mark, P = s.value.height - h.value.bottom - a * g.value.mark - a * g.value.space - g.value.mark,
|
|
164
|
+
const l = e.value.style.chart.layout.ticks.gradient.show ? Pe(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
|
|
165
|
+
if (M.value) {
|
|
166
|
+
const C = e.value.style.chart.layout.crescendo ? (100 - a) * (s.value.width - h.value.left - h.value.right) / 100 / 3 : 0, p = h.value.left + 4 + C, $ = s.value.width - h.value.right - 4 - C, A = s.value.height - h.value.bottom - a * g.value.mark - a * g.value.space - g.value.mark, P = s.value.height - h.value.bottom - a * g.value.mark - a * g.value.space - g.value.mark, I = ($ - p) / e.value.style.chart.layout.curveAngleX, T = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
|
|
166
167
|
t.push({
|
|
167
168
|
x1: p,
|
|
168
169
|
x2: $,
|
|
169
170
|
y1: A,
|
|
170
171
|
y2: P,
|
|
171
|
-
curve: `M ${p} ${A} C ${p +
|
|
172
|
+
curve: `M ${p} ${A} C ${p + I} ${A - T}, ${$ - I} ${P - T}, ${$} ${P}`,
|
|
172
173
|
color: l
|
|
173
174
|
});
|
|
174
175
|
} else {
|
|
175
|
-
const C = e.value.style.chart.layout.crescendo ? (100 - a) * (s.value.height - h.value.top - h.value.bottom) / 100 / 3 : 0, p = h.value.left + a * g.value.mark + a * g.value.space - g.value.mark, $ = p, A = h.value.top + 4 + C, P = s.value.height - h.value.bottom - 4 - C,
|
|
176
|
+
const C = e.value.style.chart.layout.crescendo ? (100 - a) * (s.value.height - h.value.top - h.value.bottom) / 100 / 3 : 0, p = h.value.left + a * g.value.mark + a * g.value.space - g.value.mark, $ = p, A = h.value.top + 4 + C, P = s.value.height - h.value.bottom - 4 - C, I = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), T = (P - A) / e.value.style.chart.layout.curveAngleX;
|
|
176
177
|
t.push({
|
|
177
178
|
x1: p,
|
|
178
179
|
x2: $,
|
|
179
180
|
y1: A,
|
|
180
181
|
y2: P,
|
|
181
|
-
curve: `M ${p} ${A} C ${p +
|
|
182
|
+
curve: `M ${p} ${A} C ${p + I} ${A + T}, ${$ + I} ${P - T}, ${$} ${P}`,
|
|
182
183
|
color: l
|
|
183
184
|
});
|
|
184
185
|
}
|
|
185
186
|
}
|
|
186
187
|
return t;
|
|
187
|
-
}), y =
|
|
188
|
+
}), y = r(() => {
|
|
188
189
|
let t, o, a;
|
|
189
190
|
const l = e.value.style.chart.percentage.fontSize / 3;
|
|
190
|
-
return
|
|
191
|
+
return M.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = s.value.width / 2, o = h.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = s.value.width / 2, o = s.value.height - h.value.bottom / 2 + l, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, o = s.value.height / 2 + l, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = s.value.width - h.value.right + 8, o = s.value.height / 2 + l, a = "start"), {
|
|
191
192
|
x: t,
|
|
192
193
|
y: o,
|
|
193
194
|
textAnchor: a,
|
|
@@ -195,17 +196,17 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
|
|
|
195
196
|
fontSize: e.value.style.chart.percentage.fontSize,
|
|
196
197
|
fill: e.value.style.chart.percentage.color
|
|
197
198
|
};
|
|
198
|
-
}), U =
|
|
199
|
-
function
|
|
200
|
-
U.value = t,
|
|
199
|
+
}), U = c(!1);
|
|
200
|
+
function ge(t) {
|
|
201
|
+
U.value = t, le.value += 1;
|
|
201
202
|
}
|
|
202
|
-
const
|
|
203
|
-
function
|
|
204
|
-
|
|
203
|
+
const B = c(!1);
|
|
204
|
+
function K() {
|
|
205
|
+
B.value = !B.value;
|
|
205
206
|
}
|
|
206
|
-
async function
|
|
207
|
-
if (!
|
|
208
|
-
const { width: o, height: a } =
|
|
207
|
+
async function Be({ scale: t = 2 } = {}) {
|
|
208
|
+
if (!_.value) return;
|
|
209
|
+
const { width: o, height: a } = _.value.getBoundingClientRect(), l = o / a, { imageUri: C, base64: p } = await bt({ domElement: _.value, base64: !0, img: !0, scale: t });
|
|
209
210
|
return {
|
|
210
211
|
imageUri: C,
|
|
211
212
|
base64: p,
|
|
@@ -215,72 +216,81 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
|
|
|
215
216
|
aspectRatio: l
|
|
216
217
|
};
|
|
217
218
|
}
|
|
218
|
-
const
|
|
219
|
-
svg:
|
|
220
|
-
title:
|
|
221
|
-
backgroundColor:
|
|
219
|
+
const Ge = r(() => e.value.style.chart.backgroundColor), je = r(() => e.value.style.chart.title), { exportSvg: He, getSvg: Ve } = ht({
|
|
220
|
+
svg: V,
|
|
221
|
+
title: je,
|
|
222
|
+
backgroundColor: Ge
|
|
222
223
|
});
|
|
223
|
-
async function
|
|
224
|
-
|
|
224
|
+
async function pe({ isCb: t }) {
|
|
225
|
+
N.value = !0, await Ze();
|
|
225
226
|
try {
|
|
226
227
|
if (t) {
|
|
227
|
-
const { blob: o, url: a, text: l, dataUrl: C } = await
|
|
228
|
+
const { blob: o, url: a, text: l, dataUrl: C } = await Ve();
|
|
228
229
|
await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: o, url: a, text: l, dataUrl: C }));
|
|
229
230
|
} else
|
|
230
|
-
await Promise.resolve(
|
|
231
|
+
await Promise.resolve(He());
|
|
231
232
|
} finally {
|
|
232
|
-
|
|
233
|
+
N.value = !1;
|
|
233
234
|
}
|
|
234
235
|
}
|
|
235
|
-
function
|
|
236
|
+
function Xe(t) {
|
|
236
237
|
if (t?.stage === "start") {
|
|
237
|
-
|
|
238
|
+
F.value = !0;
|
|
238
239
|
return;
|
|
239
240
|
}
|
|
240
241
|
if (t?.stage === "end") {
|
|
241
|
-
|
|
242
|
+
F.value = !1;
|
|
242
243
|
return;
|
|
243
244
|
}
|
|
244
|
-
|
|
245
|
+
ce();
|
|
245
246
|
}
|
|
246
|
-
async function
|
|
247
|
-
if (
|
|
247
|
+
async function ye() {
|
|
248
|
+
if (Re("copyAlt", {
|
|
248
249
|
config: e.value,
|
|
249
|
-
dataset:
|
|
250
|
+
dataset: x.value
|
|
250
251
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
251
252
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
252
253
|
return;
|
|
253
254
|
}
|
|
254
255
|
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
255
256
|
config: e.value,
|
|
256
|
-
dataset:
|
|
257
|
+
dataset: x.value
|
|
257
258
|
}));
|
|
258
259
|
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
260
|
+
const me = r(() => `${O.value}-title`), ke = r(() => `${O.value}-desc`), W = r(() => lt(
|
|
261
|
+
e.value.style.chart.percentage.formatter,
|
|
262
|
+
d.value,
|
|
263
|
+
nt({
|
|
264
|
+
v: d.value,
|
|
265
|
+
s: "%",
|
|
266
|
+
r: e.value.style.chart.percentage.rounding
|
|
267
|
+
})
|
|
268
|
+
)), qe = r(() => e.value.style.chart.title.text || ""), Ye = r(() => R.value ? "Loading data" : `Value: ${W.value}`);
|
|
269
|
+
return Oe({
|
|
270
|
+
getImage: Be,
|
|
271
|
+
generatePdf: ue,
|
|
272
|
+
generateImage: ce,
|
|
273
|
+
generateSvg: pe,
|
|
274
|
+
toggleAnnotator: K,
|
|
275
|
+
toggleFullscreen: ge,
|
|
276
|
+
copyAlt: ye
|
|
277
|
+
}), (t, o) => (i(), v("div", {
|
|
268
278
|
ref_key: "tiremarksChart",
|
|
269
|
-
ref:
|
|
270
|
-
class:
|
|
271
|
-
style:
|
|
272
|
-
id:
|
|
273
|
-
onMouseenter: o[0] || (o[0] = () => n(
|
|
274
|
-
onMouseleave: o[1] || (o[1] = () => n(
|
|
279
|
+
ref: _,
|
|
280
|
+
class: Z(`vue-data-ui-component vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
281
|
+
style: Q(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
282
|
+
id: O.value,
|
|
283
|
+
onMouseenter: o[0] || (o[0] = () => n(re)(!0)),
|
|
284
|
+
onMouseleave: o[1] || (o[1] = () => n(re)(!1))
|
|
275
285
|
}, [
|
|
276
|
-
e.value.userOptions.buttons.annotator ? (
|
|
286
|
+
e.value.userOptions.buttons.annotator ? (i(), G(n(xe), {
|
|
277
287
|
key: 0,
|
|
278
|
-
svgRef: n(
|
|
288
|
+
svgRef: n(V),
|
|
279
289
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
280
290
|
color: e.value.style.chart.color,
|
|
281
|
-
active:
|
|
282
|
-
isCursorPointer:
|
|
283
|
-
onClose:
|
|
291
|
+
active: B.value,
|
|
292
|
+
isCursorPointer: se.value,
|
|
293
|
+
onClose: K
|
|
284
294
|
}, {
|
|
285
295
|
"annotator-action-close": f(() => [
|
|
286
296
|
u(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
@@ -302,21 +312,21 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
|
|
|
302
312
|
]),
|
|
303
313
|
_: 3
|
|
304
314
|
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : w("", !0),
|
|
305
|
-
|
|
315
|
+
Le.value ? (i(), v("div", {
|
|
306
316
|
key: 1,
|
|
307
317
|
ref_key: "noTitle",
|
|
308
|
-
ref:
|
|
318
|
+
ref: Ee,
|
|
309
319
|
class: "vue-data-ui-no-title-space",
|
|
310
320
|
style: "height:36px; width: 100%;background:transparent"
|
|
311
321
|
}, null, 512)) : w("", !0),
|
|
312
|
-
e.value.style.chart.title.text ? (
|
|
322
|
+
e.value.style.chart.title.text ? (i(), v("div", {
|
|
313
323
|
key: 2,
|
|
314
324
|
ref_key: "chartTitle",
|
|
315
|
-
ref:
|
|
325
|
+
ref: ae,
|
|
316
326
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
317
327
|
}, [
|
|
318
|
-
(
|
|
319
|
-
key: `title_${
|
|
328
|
+
(i(), G(kt, {
|
|
329
|
+
key: `title_${ne.value}`,
|
|
320
330
|
config: {
|
|
321
331
|
title: {
|
|
322
332
|
cy: "wheel-title",
|
|
@@ -329,14 +339,14 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
|
|
|
329
339
|
}
|
|
330
340
|
}, null, 8, ["config"]))
|
|
331
341
|
], 512)) : w("", !0),
|
|
332
|
-
e.value.userOptions.show &&
|
|
342
|
+
e.value.userOptions.show && Me.value && (n(ie) || n(H)) ? (i(), G(n(Ie), {
|
|
333
343
|
ref: "details",
|
|
334
|
-
key: `user_options_${
|
|
344
|
+
key: `user_options_${le.value}`,
|
|
335
345
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
336
346
|
color: e.value.style.chart.color,
|
|
337
|
-
isPrinting: n(
|
|
338
|
-
isImaging: n(
|
|
339
|
-
uid:
|
|
347
|
+
isPrinting: n(q),
|
|
348
|
+
isImaging: n(Y),
|
|
349
|
+
uid: O.value,
|
|
340
350
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
341
351
|
hasImg: e.value.userOptions.buttons.img,
|
|
342
352
|
hasSvg: e.value.userOptions.buttons.svg,
|
|
@@ -345,23 +355,23 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
|
|
|
345
355
|
hasXls: !1,
|
|
346
356
|
isFullscreen: U.value,
|
|
347
357
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
348
|
-
chartElement:
|
|
358
|
+
chartElement: _.value,
|
|
349
359
|
position: e.value.userOptions.position,
|
|
350
360
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
351
|
-
isAnnotation:
|
|
361
|
+
isAnnotation: B.value,
|
|
352
362
|
callbacks: e.value.userOptions.callbacks,
|
|
353
363
|
printScale: e.value.userOptions.print.scale,
|
|
354
|
-
isCursorPointer:
|
|
355
|
-
onToggleFullscreen:
|
|
356
|
-
onGeneratePdf: n(
|
|
357
|
-
onGenerateImage:
|
|
358
|
-
onGenerateSvg:
|
|
359
|
-
onToggleAnnotator:
|
|
360
|
-
onCopyAlt:
|
|
361
|
-
style:
|
|
362
|
-
visibility: n(
|
|
364
|
+
isCursorPointer: se.value,
|
|
365
|
+
onToggleFullscreen: ge,
|
|
366
|
+
onGeneratePdf: n(ue),
|
|
367
|
+
onGenerateImage: Xe,
|
|
368
|
+
onGenerateSvg: pe,
|
|
369
|
+
onToggleAnnotator: K,
|
|
370
|
+
onCopyAlt: ye,
|
|
371
|
+
style: Q({
|
|
372
|
+
visibility: n(ie) ? n(H) ? "visible" : "hidden" : "visible"
|
|
363
373
|
})
|
|
364
|
-
},
|
|
374
|
+
}, Je({ _: 2 }, [
|
|
365
375
|
t.$slots.menuIcon ? {
|
|
366
376
|
name: "menuIcon",
|
|
367
377
|
fn: f(({ isOpen: a, color: l }) => [
|
|
@@ -412,16 +422,21 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
|
|
|
412
422
|
key: "6"
|
|
413
423
|
} : void 0
|
|
414
424
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "hasAltCopy", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "isCursorPointer", "onGeneratePdf", "style"])) : w("", !0),
|
|
415
|
-
(
|
|
425
|
+
(i(), v("svg", {
|
|
416
426
|
ref_key: "svgRef",
|
|
417
|
-
ref:
|
|
418
|
-
xmlns: n(
|
|
419
|
-
class:
|
|
420
|
-
viewBox: `0 0 ${
|
|
421
|
-
style:
|
|
427
|
+
ref: V,
|
|
428
|
+
xmlns: n(st),
|
|
429
|
+
class: Z({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
|
|
430
|
+
viewBox: `0 0 ${D.value} ${L.value}`,
|
|
431
|
+
style: Q(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`),
|
|
432
|
+
role: "img",
|
|
433
|
+
"aria-labelledby": me.value,
|
|
434
|
+
"aria-describedby": ke.value
|
|
422
435
|
}, [
|
|
423
|
-
|
|
424
|
-
|
|
436
|
+
Ce("title", { id: me.value }, ee(qe.value), 9, At),
|
|
437
|
+
Ce("desc", { id: ke.value }, ee(Ye.value), 9, Pt),
|
|
438
|
+
Qe(n(Te)),
|
|
439
|
+
t.$slots["chart-background"] ? (i(), v("foreignObject", {
|
|
425
440
|
key: 0,
|
|
426
441
|
x: 0,
|
|
427
442
|
y: 0,
|
|
@@ -432,79 +447,77 @@ const ft = ["id"], gt = ["xmlns", "viewBox"], pt = ["width", "height"], yt = { k
|
|
|
432
447
|
}
|
|
433
448
|
}, [
|
|
434
449
|
u(t.$slots, "chart-background", {}, void 0, !0)
|
|
435
|
-
], 8,
|
|
436
|
-
e.value.style.chart.layout.curved ? (
|
|
437
|
-
(
|
|
450
|
+
], 8, _t)) : w("", !0),
|
|
451
|
+
e.value.style.chart.layout.curved ? (i(), v("g", Ot, [
|
|
452
|
+
(i(!0), v(we, null, $e(fe.value, (a, l) => (i(), v("path", {
|
|
438
453
|
d: a.curve,
|
|
439
454
|
"stroke-width": g.value.mark,
|
|
440
|
-
stroke:
|
|
455
|
+
stroke: d.value >= l ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
441
456
|
"stroke-linecap": "round",
|
|
442
457
|
fill: "none",
|
|
443
|
-
class:
|
|
444
|
-
}, null, 10,
|
|
445
|
-
])) : (
|
|
446
|
-
(
|
|
458
|
+
class: Z({ "vue-ui-tick-animated": e.value.style.chart.animation.use && !n(j) && l <= d.value })
|
|
459
|
+
}, null, 10, St))), 256))
|
|
460
|
+
])) : (i(), v("g", xt, [
|
|
461
|
+
(i(!0), v(we, null, $e(fe.value, (a, l) => (i(), v("line", {
|
|
447
462
|
x1: a.x1,
|
|
448
463
|
y1: a.y1,
|
|
449
464
|
x2: a.x2,
|
|
450
465
|
y2: a.y2,
|
|
451
466
|
"stroke-width": g.value.mark,
|
|
452
|
-
stroke:
|
|
467
|
+
stroke: d.value >= l ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
453
468
|
"stroke-linecap": "round"
|
|
454
|
-
}, null, 8,
|
|
469
|
+
}, null, 8, It))), 256))
|
|
455
470
|
])),
|
|
456
|
-
e.value.style.chart.percentage.show ? (
|
|
457
|
-
|
|
471
|
+
e.value.style.chart.percentage.show ? (i(), v("g", {
|
|
472
|
+
key: 3,
|
|
473
|
+
role: "status",
|
|
474
|
+
"aria-live": "polite",
|
|
475
|
+
"aria-label": n(R) ? "..." : `${W.value}`
|
|
476
|
+
}, [
|
|
477
|
+
n(R) ? (i(), v("rect", {
|
|
458
478
|
key: 0,
|
|
459
|
-
x:
|
|
460
|
-
y:
|
|
479
|
+
x: he.value.x,
|
|
480
|
+
y: he.value.y,
|
|
461
481
|
width: 40,
|
|
462
482
|
height: y.value.fontSize,
|
|
463
483
|
fill: "#6A6A6A80",
|
|
464
484
|
rx: 3
|
|
465
|
-
}, null, 8,
|
|
485
|
+
}, null, 8, zt)) : (i(), v("text", {
|
|
466
486
|
key: 1,
|
|
487
|
+
"aria-hidden": "true",
|
|
467
488
|
x: y.value.x,
|
|
468
489
|
y: y.value.y,
|
|
469
490
|
"font-size": y.value.fontSize,
|
|
470
|
-
fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? n(
|
|
491
|
+
fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? n(Pe)(e.value.style.chart.layout.activeColor, d.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
|
|
471
492
|
"font-weight": y.value.bold ? "bold" : "normal",
|
|
472
493
|
"text-anchor": y.value.textAnchor
|
|
473
|
-
},
|
|
474
|
-
|
|
475
|
-
v.value,
|
|
476
|
-
n(Ze)({
|
|
477
|
-
v: v.value,
|
|
478
|
-
s: "%",
|
|
479
|
-
r: e.value.style.chart.percentage.rounding
|
|
480
|
-
})
|
|
481
|
-
)), 9, $t))
|
|
482
|
-
])) : w("", !0),
|
|
494
|
+
}, ee(W.value), 9, Ft))
|
|
495
|
+
], 8, Tt)) : w("", !0),
|
|
483
496
|
u(t.$slots, "svg", {
|
|
484
497
|
svg: {
|
|
485
498
|
...s.value,
|
|
486
|
-
isPrintingImg: n(
|
|
487
|
-
isPrintingSvg:
|
|
499
|
+
isPrintingImg: n(q) | n(Y) | F.value,
|
|
500
|
+
isPrintingSvg: N.value
|
|
488
501
|
}
|
|
489
502
|
}, void 0, !0)
|
|
490
|
-
], 14,
|
|
491
|
-
t.$slots.watermark ? (
|
|
492
|
-
u(t.$slots, "watermark", m(k({ isPrinting: n(
|
|
503
|
+
], 14, $t)),
|
|
504
|
+
t.$slots.watermark ? (i(), v("div", Nt, [
|
|
505
|
+
u(t.$slots, "watermark", m(k({ isPrinting: n(q) || n(Y) || F.value || N.value })), void 0, !0)
|
|
493
506
|
])) : w("", !0),
|
|
494
|
-
t.$slots.source ? (
|
|
507
|
+
t.$slots.source ? (i(), v("div", {
|
|
495
508
|
key: 5,
|
|
496
509
|
ref_key: "source",
|
|
497
|
-
ref:
|
|
510
|
+
ref: oe,
|
|
498
511
|
dir: "auto"
|
|
499
512
|
}, [
|
|
500
513
|
u(t.$slots, "source", {}, void 0, !0)
|
|
501
514
|
], 512)) : w("", !0),
|
|
502
515
|
u(t.$slots, "skeleton", {}, () => [
|
|
503
|
-
n(
|
|
516
|
+
n(R) ? (i(), G(vt, { key: 0 })) : w("", !0)
|
|
504
517
|
], !0)
|
|
505
|
-
], 46,
|
|
518
|
+
], 46, wt));
|
|
506
519
|
}
|
|
507
|
-
},
|
|
520
|
+
}, Qt = /* @__PURE__ */ Ct(Rt, [["__scopeId", "data-v-ed01b8e6"]]);
|
|
508
521
|
export {
|
|
509
|
-
|
|
522
|
+
Qt as default
|
|
510
523
|
};
|