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
|
@@ -0,0 +1,1147 @@
|
|
|
1
|
+
import { defineAsyncComponent as V, computed as y, ref as d, toRefs as aa, onMounted as la, watch as de, shallowRef as et, onBeforeUnmount as tt, watchEffect as at, openBlock as r, createElementBlock as c, normalizeStyle as x, normalizeClass as lt, createElementVNode as W, toDisplayString as B, createBlock as U, createCommentVNode as b, unref as h, withCtx as g, renderSlot as f, normalizeProps as $, guardReactiveProps as S, createSlots as ot, createVNode as Se, Fragment as L, renderList as T, mergeProps as Ae, resolveDynamicComponent as oa, createTextVNode as nt, nextTick as na } from "vue";
|
|
2
|
+
import { j as st, t as ut, m as sa, p as he, n as ua, o as rt, q as it, r as ra, s as ct, k as ia, l as ca, W as vt, a9 as R, c as va, b as da, I as ha, X as ya, Z as Te, a0 as fa, a1 as pa } from "./lib-DBptbyyI.js";
|
|
3
|
+
import { t as dt, u as ma } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ga } from "./useConfig-DO94Aj5s.js";
|
|
5
|
+
import { u as ba, B as ka } from "./BaseScanner-BhhkKVoj.js";
|
|
6
|
+
import { u as Ca } from "./usePrinter-CEpYU3r5.js";
|
|
7
|
+
import { u as wa } from "./useSvgExport-ByUukOZt.js";
|
|
8
|
+
import { u as Me } from "./useNestedProp-Bf5XFbs8.js";
|
|
9
|
+
import { u as La } from "./useThemeCheck-D1ZYXUwG.js";
|
|
10
|
+
import { u as xa } from "./useTimeLabels-C-A2uZKi.js";
|
|
11
|
+
import { u as $a } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
|
+
import { u as Sa } from "./useChartAccessibility-9icAAmYg.js";
|
|
13
|
+
import { u as Aa } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
14
|
+
import Ta from "./vue_ui_bump-CIht647H.js";
|
|
15
|
+
import Ma from "./Title-BeMKE1cj.js";
|
|
16
|
+
import { A as Pa } from "./A11yDataTable-KcVAX2cP.js";
|
|
17
|
+
import Ia from "./BaseDraggableDialog-CIb-iD9g.js";
|
|
18
|
+
import { _ as za } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
19
|
+
const Oa = ["id"], Ra = ["id"], _a = { style: { position: "relative" } }, Da = ["xmlns", "aria-describedby", "viewBox"], Na = ["x", "y", "width", "height"], Ha = ["d", "stroke", "stroke-width", "onMouseenter"], Ea = ["d", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Fa = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Va = ["x", "y", "fill", "font-size"], Wa = ["onMouseenter", "onMouseleave", "onClick"], Ba = ["x", "y", "fill", "font-size"], Ua = ["x", "y", "fill", "font-size", "font--weight", "innerHTML", "onMouseenter", "onMouseleave", "onClick"], Xa = ["x", "y", "fill", "font-size", "font--weight", "innerHTML", "onMouseenter", "onMouseleave", "onClick"], Ya = { key: 0 }, ja = { key: 1 }, qa = ["text-anchor", "font-size", "font-weight", "fill", "transform"], Ga = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], Ka = {
|
|
20
|
+
key: 0,
|
|
21
|
+
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
22
|
+
"data-dom-to-png-ignore": "",
|
|
23
|
+
"aria-hidden": "true"
|
|
24
|
+
}, Za = {
|
|
25
|
+
key: 5,
|
|
26
|
+
class: "vue-data-ui-watermark"
|
|
27
|
+
}, Ja = ["innerHTML"], Qa = {
|
|
28
|
+
__name: "vue-ui-bump",
|
|
29
|
+
props: {
|
|
30
|
+
config: {
|
|
31
|
+
type: Object,
|
|
32
|
+
default() {
|
|
33
|
+
return {};
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
dataset: {
|
|
37
|
+
type: Array,
|
|
38
|
+
default() {
|
|
39
|
+
return [];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
emits: ["copyAlt"],
|
|
44
|
+
setup(ht, { expose: yt, emit: ft }) {
|
|
45
|
+
const pt = V(() => import("./BaseIcon-Cb3zzG6s.js")), mt = V(() => import("./vue-ui-accordion-nvggWcGN.js")), gt = V(() => import("./DataTable-DT2kIdQ6.js")), bt = V(() => import("./PenAndPaper-Ct3qJ4lA.js")), kt = V(() => import("./UserOptions-rW2fRf3V.js")), Ct = V(() => import("./PackageVersion-DPO-OOVI.js")), { vue_ui_bump: wt } = ga(), { isThemeValid: Lt, warnInvalidTheme: xt } = La(), w = ht, $t = ft, le = y({
|
|
46
|
+
get() {
|
|
47
|
+
return !!w.dataset && w.dataset.length;
|
|
48
|
+
},
|
|
49
|
+
set(t) {
|
|
50
|
+
return t;
|
|
51
|
+
}
|
|
52
|
+
}), M = d(null), N = d(st()), Pe = d(0), Ie = d(null), ze = d(null), Oe = d(null), oe = d(!1), ye = d(!1), Re = d(0), St = d(0), X = d(null), fe = d(null), _e = d(!1), ne = d(!1), se = d(!1), p = d(null), pe = d(null), me = d(null), ge = d(null), P = d(null), be = d(!1), e = d(ke()), Y = y(() => e.value.userOptions.useCursorPointer), At = y(() => ut({
|
|
53
|
+
defaultConfig: {
|
|
54
|
+
userOptions: { show: !1 },
|
|
55
|
+
style: {
|
|
56
|
+
chart: {
|
|
57
|
+
backgroundColor: "#99999930",
|
|
58
|
+
layout: {
|
|
59
|
+
timeLabels: { show: !1 },
|
|
60
|
+
lines: {
|
|
61
|
+
coatingColor: "#4A4A4A"
|
|
62
|
+
},
|
|
63
|
+
plots: {
|
|
64
|
+
stroke: "#4A4A4A",
|
|
65
|
+
labels: {
|
|
66
|
+
show: !1,
|
|
67
|
+
displayedValue: "rank"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
nameLabels: {
|
|
71
|
+
useSerieColor: !0
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
userConfig: e.value.skeletonConfig ?? {}
|
|
78
|
+
})), { loading: ue, FINAL_DATASET: Tt, manualLoading: re } = ba({
|
|
79
|
+
...aa(w),
|
|
80
|
+
FINAL_CONFIG: e,
|
|
81
|
+
prepareConfig: ke,
|
|
82
|
+
skeletonDataset: w.config?.skeletonDataset ?? [
|
|
83
|
+
{ name: "————", values: [1, 1, 1, 2, 2, 2, 3, 3, 2, 2], color: "#4A4A4A" },
|
|
84
|
+
{ name: "————", values: [2, 2, 2, 1, 3, 3, 2, 2, 3, 3], color: "#6A6A6A" },
|
|
85
|
+
{ name: "————", values: [3, 3, 3, 3, 1, 1, 1, 1, 1, 1], color: "#8A8A8A" }
|
|
86
|
+
],
|
|
87
|
+
skeletonConfig: ut({
|
|
88
|
+
defaultConfig: e.value,
|
|
89
|
+
userConfig: At.value
|
|
90
|
+
})
|
|
91
|
+
});
|
|
92
|
+
la(We);
|
|
93
|
+
function ke() {
|
|
94
|
+
const t = Me({
|
|
95
|
+
userConfig: w.config,
|
|
96
|
+
defaultConfig: wt
|
|
97
|
+
});
|
|
98
|
+
let l = {};
|
|
99
|
+
const a = t.theme;
|
|
100
|
+
if (a)
|
|
101
|
+
if (!Lt.value(t))
|
|
102
|
+
xt(t), l = t;
|
|
103
|
+
else {
|
|
104
|
+
const o = Me({
|
|
105
|
+
userConfig: Ta[a] || w.config,
|
|
106
|
+
defaultConfig: t
|
|
107
|
+
});
|
|
108
|
+
l = {
|
|
109
|
+
...Me({
|
|
110
|
+
userConfig: w.config,
|
|
111
|
+
defaultConfig: o
|
|
112
|
+
}),
|
|
113
|
+
customPalette: t.customPalette.length ? t.customPalette : sa[a] || he
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
else
|
|
117
|
+
l = t;
|
|
118
|
+
return l;
|
|
119
|
+
}
|
|
120
|
+
const { userOptionsVisible: Ce, setUserOptionsVisibility: De, keepUserOptionState: Ne } = $a({ config: e.value }), { svgRef: j } = Sa({ config: e.value.style.chart.title });
|
|
121
|
+
function Mt() {
|
|
122
|
+
_e.value = !0, De(!0);
|
|
123
|
+
}
|
|
124
|
+
function Pt() {
|
|
125
|
+
De(!1), _e.value = !1;
|
|
126
|
+
}
|
|
127
|
+
const _ = d({
|
|
128
|
+
showTable: e.value.table.show
|
|
129
|
+
});
|
|
130
|
+
de(e, () => {
|
|
131
|
+
_.value = {
|
|
132
|
+
showTable: e.value.table.show
|
|
133
|
+
};
|
|
134
|
+
}, { immediate: !0 }), de(() => w.config, (t) => {
|
|
135
|
+
ue.value || (e.value = ke()), Ce.value = !e.value.userOptions.showOnChartHover, We(), Re.value += 1, St.value += 1, _.value.showTable = e.value.table.show, A.value.width = e.value.style.chart.width, A.value.height = e.value.style.chart.height, A.value.paddingRatio = {
|
|
136
|
+
top: e.value.style.chart.padding.top / e.value.style.chart.height,
|
|
137
|
+
right: e.value.style.chart.padding.right / e.value.style.chart.width,
|
|
138
|
+
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
139
|
+
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
140
|
+
};
|
|
141
|
+
}), de(() => w.dataset, (t) => {
|
|
142
|
+
Array.isArray(t) && t.length > 0 && (re.value = !1);
|
|
143
|
+
}, { deep: !0 });
|
|
144
|
+
const { isPrinting: we, isImaging: Le, generatePdf: He, generateImage: Ee } = Ca({
|
|
145
|
+
elementId: `bump_${N.value}`,
|
|
146
|
+
fileName: e.value.style.chart.title.text || "vue-ui-bump",
|
|
147
|
+
options: e.value.userOptions.print
|
|
148
|
+
}), It = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), A = d({
|
|
149
|
+
width: e.value.style.chart.width,
|
|
150
|
+
height: e.value.style.chart.height,
|
|
151
|
+
paddingRatio: {
|
|
152
|
+
top: e.value.style.chart.padding.top / e.value.style.chart.height,
|
|
153
|
+
right: e.value.style.chart.padding.right / e.value.style.chart.width,
|
|
154
|
+
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
155
|
+
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
156
|
+
}
|
|
157
|
+
}), zt = y(() => ua(e.value.customPalette)), I = et(null), H = et(null), Fe = d(null), Ve = y(() => !!e.value.debug);
|
|
158
|
+
function We() {
|
|
159
|
+
if (rt(w.dataset) ? (it({
|
|
160
|
+
componentName: "VueUiBump",
|
|
161
|
+
type: "dataset",
|
|
162
|
+
debug: Ve.value
|
|
163
|
+
}), re.value = !0) : w.dataset.forEach((t, l) => {
|
|
164
|
+
ra({
|
|
165
|
+
datasetObject: t,
|
|
166
|
+
requiredAttributes: ["name", "values"]
|
|
167
|
+
}).forEach((a) => {
|
|
168
|
+
le.value = !1, it({
|
|
169
|
+
componentName: "VueUiBump",
|
|
170
|
+
type: "datasetSerieAttribute",
|
|
171
|
+
property: a,
|
|
172
|
+
index: l,
|
|
173
|
+
debug: Ve.value
|
|
174
|
+
}), re.value = !0;
|
|
175
|
+
});
|
|
176
|
+
}), rt(w.dataset) || (re.value = e.value.loading), setTimeout(() => {
|
|
177
|
+
ye.value = !0;
|
|
178
|
+
}, 10), e.value.responsive) {
|
|
179
|
+
const t = dt(() => {
|
|
180
|
+
ye.value = !1;
|
|
181
|
+
const { width: l, height: a } = ma({
|
|
182
|
+
chart: M.value,
|
|
183
|
+
noTitle: ze.value,
|
|
184
|
+
title: e.value.style.chart.title.text ? Ie.value : null,
|
|
185
|
+
legend: null,
|
|
186
|
+
slicer: null,
|
|
187
|
+
source: Oe.value
|
|
188
|
+
});
|
|
189
|
+
requestAnimationFrame(() => {
|
|
190
|
+
A.value.width = l, A.value.height = a - 12, clearTimeout(Fe.value), Fe.value = setTimeout(() => {
|
|
191
|
+
ye.value = !0;
|
|
192
|
+
}, 10);
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
I.value && (H.value && I.value.unobserve(H.value), I.value.disconnect()), I.value = new ResizeObserver(t), H.value = M.value.parentNode, I.value.observe(H.value);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
tt(() => {
|
|
199
|
+
I.value && (H.value && I.value.unobserve(H.value), I.value.disconnect());
|
|
200
|
+
});
|
|
201
|
+
const ie = y(() => Tt.value.map((t, l) => {
|
|
202
|
+
const a = ct(t.color) || zt.value[l] || he[l] || he[l % he.length];
|
|
203
|
+
return {
|
|
204
|
+
...t,
|
|
205
|
+
absoluteIndex: l,
|
|
206
|
+
id: st(),
|
|
207
|
+
color: a
|
|
208
|
+
};
|
|
209
|
+
})), E = y(() => Math.max(...ie.value.map((t) => t.values.length)));
|
|
210
|
+
function Ot(t) {
|
|
211
|
+
const l = t.map(() => Array(E.value).fill(null));
|
|
212
|
+
for (let a = 0; a < E.value; a += 1) {
|
|
213
|
+
const o = t.map((n, s) => ({
|
|
214
|
+
seriesIndex: s,
|
|
215
|
+
value: n.values?.[a],
|
|
216
|
+
previousPosition: a > 0 ? l[s][a - 1] : s
|
|
217
|
+
})).filter((n) => Number.isFinite(n.value));
|
|
218
|
+
o.sort((n, s) => s.value !== n.value ? s.value - n.value : n.previousPosition - s.previousPosition);
|
|
219
|
+
for (let n = 0; n < o.length; n += 1) {
|
|
220
|
+
const s = o[n];
|
|
221
|
+
l[s.seriesIndex][a] = n;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return l;
|
|
225
|
+
}
|
|
226
|
+
function Rt() {
|
|
227
|
+
let t = 0;
|
|
228
|
+
return pe.value && (t = Array.from(pe.value.querySelectorAll("tspan")).reduce((a, o) => {
|
|
229
|
+
const n = o.getComputedTextLength();
|
|
230
|
+
return n > a ? n : a;
|
|
231
|
+
}, 0)), t;
|
|
232
|
+
}
|
|
233
|
+
function _t() {
|
|
234
|
+
let t = 0;
|
|
235
|
+
return me.value && (t = Array.from(me.value.querySelectorAll("tspan")).reduce((a, o) => {
|
|
236
|
+
const n = o.getComputedTextLength();
|
|
237
|
+
return n > a ? n : a;
|
|
238
|
+
}, 0)), t;
|
|
239
|
+
}
|
|
240
|
+
const Be = d(0), Dt = dt((t) => {
|
|
241
|
+
Be.value = t;
|
|
242
|
+
}, 100);
|
|
243
|
+
at((t) => {
|
|
244
|
+
const l = ge.value;
|
|
245
|
+
if (!l) return;
|
|
246
|
+
const a = new ResizeObserver((o) => {
|
|
247
|
+
Dt(o[0].contentRect.height);
|
|
248
|
+
});
|
|
249
|
+
a.observe(l), t(() => a.disconnect());
|
|
250
|
+
}), tt(() => {
|
|
251
|
+
Be.value = 0;
|
|
252
|
+
});
|
|
253
|
+
const Nt = y(() => {
|
|
254
|
+
const t = e.value.style.chart.layout.timeLabels;
|
|
255
|
+
if (!t.show) return 0;
|
|
256
|
+
const l = t.fontSize, a = t.rotation, o = Math.PI / 180 * a, n = q.value || [];
|
|
257
|
+
if (!n.length) return 0;
|
|
258
|
+
const s = n.reduce((te, ae) => {
|
|
259
|
+
const ve = String(ae?.text ?? "").split(`
|
|
260
|
+
`).length;
|
|
261
|
+
return Math.max(te, ve);
|
|
262
|
+
}, 1), u = n.reduce((te, ae) => {
|
|
263
|
+
const Qt = String(ae?.text ?? "").split(`
|
|
264
|
+
`).reduce((ea, ta) => Math.max(ea, ta.length), 0);
|
|
265
|
+
return Math.max(te, Qt);
|
|
266
|
+
}, 0), v = l * 1.3, m = s * v, k = u * l * (u === 1 ? 1 : 0.6), O = Math.abs(Math.sin(o)) * k + Math.abs(Math.cos(o)) * m, ee = l * 0.3;
|
|
267
|
+
return Math.max(0, O + Math.abs(t.offsetY) + ee);
|
|
268
|
+
}), i = y(() => {
|
|
269
|
+
const { height: t, width: l } = A.value, { right: a, left: o } = A.value.paddingRatio;
|
|
270
|
+
let n = Rt(), s = _t();
|
|
271
|
+
const u = e.value.style.chart.padding.top, v = l - l * a - s, m = l * o + n, k = l - l * a - l * o - n - s, O = t - u - e.value.style.chart.padding.bottom - Nt.value, ee = u + O, te = u + O, ae = Math.max(0, t), ve = Math.max(0, l);
|
|
272
|
+
return {
|
|
273
|
+
chartHeight: te,
|
|
274
|
+
chartWidth: ve,
|
|
275
|
+
top: u,
|
|
276
|
+
right: Math.max(0, v),
|
|
277
|
+
bottom: Math.max(0, ee),
|
|
278
|
+
left: Math.max(0, m),
|
|
279
|
+
width: Math.max(0, k),
|
|
280
|
+
height: Math.max(0, O),
|
|
281
|
+
unitH: Math.max(0, O) / ie.value.length,
|
|
282
|
+
unitW: Math.max(0, k) / E.value,
|
|
283
|
+
svgHeight: ae
|
|
284
|
+
};
|
|
285
|
+
}), C = y(() => {
|
|
286
|
+
if (!le.value && !ue.value) return [];
|
|
287
|
+
const t = Ot(ie.value);
|
|
288
|
+
return ie.value.map((l, a) => ({
|
|
289
|
+
...l,
|
|
290
|
+
positions: t[a]
|
|
291
|
+
})).map((l) => {
|
|
292
|
+
const a = l.positions.map((s, u) => {
|
|
293
|
+
const v = ia(
|
|
294
|
+
e.value.style.chart.layout.plots.labels.formatter,
|
|
295
|
+
l.values[u],
|
|
296
|
+
ca({
|
|
297
|
+
p: e.value.style.chart.layout.plots.labels.prefix,
|
|
298
|
+
v: l.values[u],
|
|
299
|
+
s: e.value.style.chart.layout.plots.labels.suffix,
|
|
300
|
+
r: e.value.style.chart.layout.plots.labels.rounding
|
|
301
|
+
})
|
|
302
|
+
);
|
|
303
|
+
return {
|
|
304
|
+
name: l.name,
|
|
305
|
+
id: l.id,
|
|
306
|
+
x: i.value.left + u * i.value.unitW + i.value.unitW / 2,
|
|
307
|
+
y: i.value.top + s * i.value.unitH + i.value.unitH / 2,
|
|
308
|
+
value: l.values[u],
|
|
309
|
+
displayValue: v,
|
|
310
|
+
rank: l.positions[u] + 1,
|
|
311
|
+
color: l.color,
|
|
312
|
+
labelColor: e.value.style.chart.layout.plots.labels.color === "auto" ? vt(l.color) : ct(e.value.style.chart.layout.plots.labels.color) ?? vt(l.color)
|
|
313
|
+
};
|
|
314
|
+
}), o = a.filter((s) => R(s.value)), n = e.value.style.chart.layout.lines.smooth ? va(o) : da(o);
|
|
315
|
+
return {
|
|
316
|
+
...l,
|
|
317
|
+
coordinates: a,
|
|
318
|
+
path: n
|
|
319
|
+
};
|
|
320
|
+
});
|
|
321
|
+
});
|
|
322
|
+
y(() => C.value.flatMap((t, l) => t.coordinates.map((a, o) => ({
|
|
323
|
+
...a,
|
|
324
|
+
pointIndex: o,
|
|
325
|
+
seriesIndex: l,
|
|
326
|
+
seriesId: t.id,
|
|
327
|
+
seriesName: t.name,
|
|
328
|
+
pointId: `${t.id}_${o}`
|
|
329
|
+
})).filter((a) => R(a.value))));
|
|
330
|
+
function Ue(t, l, a, o) {
|
|
331
|
+
const n = t.toSorted((u, v) => u.y - v.y);
|
|
332
|
+
for (let u = 1; u < n.length; u += 1) {
|
|
333
|
+
const v = n[u - 1], m = n[u];
|
|
334
|
+
m.y < v.y + l && (m.y = v.y + l);
|
|
335
|
+
}
|
|
336
|
+
const s = n.length - 1;
|
|
337
|
+
if (s >= 0 && n[s].y > o) {
|
|
338
|
+
n[s].y = o;
|
|
339
|
+
for (let u = s - 1; u >= 0; u -= 1) {
|
|
340
|
+
const v = n[u + 1], m = n[u];
|
|
341
|
+
m.y > v.y - l && (m.y = v.y - l);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
if (n.length && n[0].y < a) {
|
|
345
|
+
const u = a - n[0].y;
|
|
346
|
+
for (let v = 0; v < n.length; v += 1)
|
|
347
|
+
n[v].y += u;
|
|
348
|
+
}
|
|
349
|
+
return n;
|
|
350
|
+
}
|
|
351
|
+
const Xe = y(() => {
|
|
352
|
+
const t = [], l = [];
|
|
353
|
+
C.value.forEach((m) => {
|
|
354
|
+
const k = m.coordinates.filter((ee) => Number.isFinite(ee.rank));
|
|
355
|
+
if (!k.length) return;
|
|
356
|
+
t.push({ ...k[0] });
|
|
357
|
+
const O = k[k.length - 1];
|
|
358
|
+
l.push({ ...O });
|
|
359
|
+
});
|
|
360
|
+
const a = e.value.style.chart.layout.nameLabels.fontSize, o = a * 1.4, n = i.value.top + a, s = i.value.bottom - a, u = Ue(
|
|
361
|
+
l,
|
|
362
|
+
o,
|
|
363
|
+
n,
|
|
364
|
+
s
|
|
365
|
+
);
|
|
366
|
+
return {
|
|
367
|
+
left: Ue(
|
|
368
|
+
t,
|
|
369
|
+
o,
|
|
370
|
+
n,
|
|
371
|
+
s
|
|
372
|
+
),
|
|
373
|
+
right: u
|
|
374
|
+
};
|
|
375
|
+
});
|
|
376
|
+
function Ht(t) {
|
|
377
|
+
const l = e.value.style.chart.layout.plots.labels.fontSize * 0.4, a = t.displayValue, o = a.length * (e.value.style.chart.layout.plots.labels.fontSize * (a.length === 1 ? 1 : 0.6)), n = e.value.style.chart.layout.plots.labels.fontSize, s = o + l * 2, u = n + l * 2, v = t.x - s / 2, m = t.y - u / 2, k = e.value.style.chart.layout.plots.strokeWidth;
|
|
378
|
+
return {
|
|
379
|
+
x: v - k / 2,
|
|
380
|
+
y: m - k / 2,
|
|
381
|
+
width: s + k,
|
|
382
|
+
height: u + k,
|
|
383
|
+
fill: t.color,
|
|
384
|
+
stroke: e.value.style.chart.layout.plots.stroke,
|
|
385
|
+
"stroke-width": k,
|
|
386
|
+
rx: u / 2
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
const D = d([]);
|
|
390
|
+
let Ye = 0;
|
|
391
|
+
at(() => {
|
|
392
|
+
const t = ++Ye, l = e.value.style.chart.layout.timeLabels, a = l.values, o = l.datetimeFormatter, n = E.value;
|
|
393
|
+
if (!n || !Array.isArray(a) || a.length === 0) {
|
|
394
|
+
D.value = [];
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
397
|
+
(async () => {
|
|
398
|
+
const s = await xa({
|
|
399
|
+
values: a,
|
|
400
|
+
maxDatapoints: n,
|
|
401
|
+
formatter: o,
|
|
402
|
+
start: 0,
|
|
403
|
+
end: n
|
|
404
|
+
});
|
|
405
|
+
t === Ye && (D.value = s);
|
|
406
|
+
})();
|
|
407
|
+
});
|
|
408
|
+
const Et = y(() => {
|
|
409
|
+
const t = e.value.style.chart.layout.timeLabels.modulo;
|
|
410
|
+
return D.value.length ? Math.min(t, [...new Set(D.value.map((l) => l.text))].length) : t;
|
|
411
|
+
}), q = y(() => {
|
|
412
|
+
const t = e.value.style.chart.layout.timeLabels, l = D.value || [], a = D.value || [], o = 0, n = null, s = E.value, u = l.map((m) => m?.text ?? ""), v = a.map((m) => m?.text ?? "");
|
|
413
|
+
return ha(
|
|
414
|
+
!!t.showOnlyFirstAndLast,
|
|
415
|
+
!!t.showOnlyAtModulo,
|
|
416
|
+
Math.max(1, Et.value || 1),
|
|
417
|
+
u,
|
|
418
|
+
v,
|
|
419
|
+
o,
|
|
420
|
+
n,
|
|
421
|
+
s
|
|
422
|
+
);
|
|
423
|
+
}), Ft = y(() => A.value.width), Vt = y(() => A.value.height), Wt = y(() => ({
|
|
424
|
+
start: 0,
|
|
425
|
+
end: E.value
|
|
426
|
+
})), G = y(() => [...C.value].map((t) => {
|
|
427
|
+
const l = [...t.coordinates].filter((a) => R(a.value)).at(-1);
|
|
428
|
+
return {
|
|
429
|
+
...t,
|
|
430
|
+
navigationRank: l?.rank ?? Number.POSITIVE_INFINITY
|
|
431
|
+
};
|
|
432
|
+
}).sort((t, l) => t.navigationRank - l.navigationRank));
|
|
433
|
+
function Bt() {
|
|
434
|
+
P.value = null, be.value = !0;
|
|
435
|
+
}
|
|
436
|
+
function Ut() {
|
|
437
|
+
qe(), be.value = !1;
|
|
438
|
+
}
|
|
439
|
+
function je(t, l) {
|
|
440
|
+
const a = G.value.length;
|
|
441
|
+
return a ? t === null || t < 0 || t >= a ? 0 : l === "previous" ? (t - 1 + a) % a : (t + 1) % a : null;
|
|
442
|
+
}
|
|
443
|
+
function qe() {
|
|
444
|
+
if (P.value !== null) {
|
|
445
|
+
const t = G.value[P.value];
|
|
446
|
+
t && F(t);
|
|
447
|
+
}
|
|
448
|
+
P.value = null, p.value = null;
|
|
449
|
+
}
|
|
450
|
+
function Xt(t) {
|
|
451
|
+
if (!j.value || Z.value || document.activeElement !== j.value || !G.value.length) return;
|
|
452
|
+
const l = ["ArrowLeft", "ArrowUp"].includes(t.key), a = ["ArrowRight", "ArrowDown"].includes(t.key), o = t.key === "Enter" || t.key === " ", n = t.key === "Escape";
|
|
453
|
+
if (!l && !a && !o && !n) return;
|
|
454
|
+
if (t.preventDefault(), t.stopPropagation(), n) {
|
|
455
|
+
qe();
|
|
456
|
+
return;
|
|
457
|
+
}
|
|
458
|
+
if (o) {
|
|
459
|
+
if (P.value === null) return;
|
|
460
|
+
const v = G.value[P.value];
|
|
461
|
+
if (!v) return;
|
|
462
|
+
ce(v);
|
|
463
|
+
return;
|
|
464
|
+
}
|
|
465
|
+
let s = P.value;
|
|
466
|
+
s === null ? s = 0 : l ? s = je(s, "previous") : a && (s = je(s, "next"));
|
|
467
|
+
const u = G.value[s];
|
|
468
|
+
u && (P.value = s, z(u, u));
|
|
469
|
+
}
|
|
470
|
+
const K = y(() => ({
|
|
471
|
+
head: Q.value.head,
|
|
472
|
+
body: C.value.map((t) => [
|
|
473
|
+
t.name,
|
|
474
|
+
...t.coordinates.map((l) => R(l.value) ? `${l.displayValue} (${l.rank})` : "-")
|
|
475
|
+
]),
|
|
476
|
+
caption: e.value.a11y.translations.tableCaption,
|
|
477
|
+
notice: e.value.a11y.translations.tableAvailable
|
|
478
|
+
}));
|
|
479
|
+
Aa({
|
|
480
|
+
timeLabelsEls: ge,
|
|
481
|
+
timeLabels: D,
|
|
482
|
+
slicer: Wt,
|
|
483
|
+
configRef: e,
|
|
484
|
+
rotationPath: ["style", "chart", "layout", "timeLabels", "rotation"],
|
|
485
|
+
autoRotatePath: ["style", "chart", "layout", "timeLabels", "autoRotate", "enable"],
|
|
486
|
+
isAutoSize: !1,
|
|
487
|
+
width: Ft,
|
|
488
|
+
height: Vt,
|
|
489
|
+
rotation: e.value.style.chart.layout.timeLabels.autoRotate.angle
|
|
490
|
+
});
|
|
491
|
+
const Z = d(!1);
|
|
492
|
+
function xe() {
|
|
493
|
+
Z.value = !Z.value;
|
|
494
|
+
}
|
|
495
|
+
function Ge(t) {
|
|
496
|
+
oe.value = t, Pe.value += 1;
|
|
497
|
+
}
|
|
498
|
+
function Ke() {
|
|
499
|
+
_.value.showTable = !_.value.showTable;
|
|
500
|
+
}
|
|
501
|
+
de(() => _.value.showTable, (t) => {
|
|
502
|
+
e.value.table.show || (t && e.value.table.useDialog && X.value ? X.value.open() : "close" in X.value && X.value.close());
|
|
503
|
+
});
|
|
504
|
+
function Ze() {
|
|
505
|
+
_.value.showTable = !1, fe.value && fe.value.setTableIconState(!1);
|
|
506
|
+
}
|
|
507
|
+
function Yt() {
|
|
508
|
+
return C.value;
|
|
509
|
+
}
|
|
510
|
+
function $e(t = null) {
|
|
511
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ["", ...q.value.map((v) => v?.text ?? "")], o = C.value.map((v) => [
|
|
512
|
+
v.name,
|
|
513
|
+
...v.coordinates.map((m) => `${m.displayValue}`)
|
|
514
|
+
]), n = C.value.map((v) => [
|
|
515
|
+
v.name,
|
|
516
|
+
...v.coordinates.map((m) => `${m.rank}`)
|
|
517
|
+
]), s = l.concat([[e.value.table.columnNames.values]]).concat([a]).concat(o).concat([[""], [e.value.table.columnNames.ranking], [a]]).concat(n), u = fa(s);
|
|
518
|
+
t ? t(u) : pa({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-bump" });
|
|
519
|
+
}
|
|
520
|
+
const J = y(() => {
|
|
521
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = _.value.showTable;
|
|
522
|
+
return {
|
|
523
|
+
component: t ? Ia : mt,
|
|
524
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
525
|
+
props: t ? {
|
|
526
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
527
|
+
color: e.value.table.th.color,
|
|
528
|
+
headerColor: e.value.table.th.color,
|
|
529
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
530
|
+
isFullscreen: oe.value,
|
|
531
|
+
fullscreenParent: M.value,
|
|
532
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8),
|
|
533
|
+
isCursorPointer: Y.value
|
|
534
|
+
} : {
|
|
535
|
+
hideDetails: !0,
|
|
536
|
+
config: {
|
|
537
|
+
open: l,
|
|
538
|
+
maxHeight: 1e4,
|
|
539
|
+
body: {
|
|
540
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
541
|
+
color: e.value.style.chart.color
|
|
542
|
+
},
|
|
543
|
+
head: {
|
|
544
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
545
|
+
color: e.value.style.chart.color
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
};
|
|
550
|
+
}), Q = y(() => {
|
|
551
|
+
const t = [""].concat(q.value.map((n) => n.text)), l = C.value.map((n, s) => [
|
|
552
|
+
n.name,
|
|
553
|
+
...n.coordinates.map((u) => `${u.displayValue} (${u.rank})`)
|
|
554
|
+
]), a = {
|
|
555
|
+
th: {
|
|
556
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
557
|
+
color: e.value.table.th.color,
|
|
558
|
+
outline: e.value.table.th.outline
|
|
559
|
+
},
|
|
560
|
+
td: {
|
|
561
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
562
|
+
color: e.value.table.td.color,
|
|
563
|
+
outline: e.value.table.td.outline
|
|
564
|
+
},
|
|
565
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
566
|
+
}, o = [e.value.table.columnNames.series];
|
|
567
|
+
return { head: t, body: l, config: a, colNames: o };
|
|
568
|
+
}), jt = y(() => e.value.style.chart.backgroundColor), qt = y(() => e.value.style.chart.title), { exportSvg: Gt, getSvg: Kt } = wa({
|
|
569
|
+
svg: j,
|
|
570
|
+
title: qt,
|
|
571
|
+
legend: null,
|
|
572
|
+
legendItems: null,
|
|
573
|
+
backgroundColor: jt
|
|
574
|
+
});
|
|
575
|
+
async function Je({ isCb: t }) {
|
|
576
|
+
se.value = !0, await na();
|
|
577
|
+
try {
|
|
578
|
+
if (t) {
|
|
579
|
+
const { blob: l, url: a, text: o, dataUrl: n } = await Kt();
|
|
580
|
+
await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: n }));
|
|
581
|
+
} else
|
|
582
|
+
await Promise.resolve(Gt());
|
|
583
|
+
} finally {
|
|
584
|
+
se.value = !1;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
async function Zt({ scale: t = 2 } = {}) {
|
|
588
|
+
if (!M.value) return;
|
|
589
|
+
const { width: l, height: a } = M.value.getBoundingClientRect(), o = l / a, { imageUri: n, base64: s } = await img({ domElement: M.value, base64: !0, img: !0, scale: t });
|
|
590
|
+
return {
|
|
591
|
+
imageUri: n,
|
|
592
|
+
base64: s,
|
|
593
|
+
title: e.value.style.chart.title.text,
|
|
594
|
+
width: l,
|
|
595
|
+
height: a,
|
|
596
|
+
aspectRatio: o
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
function z(t, l) {
|
|
600
|
+
p.value = l.id, e.value.events.datapointEnter && e.value.events.datapointEnter({
|
|
601
|
+
datapoint: t,
|
|
602
|
+
seriesIndex: t?.pointIndex ?? null
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
function F(t, l) {
|
|
606
|
+
p.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({
|
|
607
|
+
datapoint: t,
|
|
608
|
+
seriesIndex: t?.pointIndex ?? null
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
function ce(t, l) {
|
|
612
|
+
e.value.events.datapointClick && e.value.events.datapointClick({
|
|
613
|
+
datapoint: t,
|
|
614
|
+
seriesIndex: t?.pointIndex ?? null
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
function Jt(t) {
|
|
618
|
+
if (t?.stage === "start") {
|
|
619
|
+
ne.value = !0;
|
|
620
|
+
return;
|
|
621
|
+
}
|
|
622
|
+
if (t?.stage === "end") {
|
|
623
|
+
ne.value = !1;
|
|
624
|
+
return;
|
|
625
|
+
}
|
|
626
|
+
Ee();
|
|
627
|
+
}
|
|
628
|
+
async function Qe() {
|
|
629
|
+
if ($t("copyAlt", {
|
|
630
|
+
config: e.value,
|
|
631
|
+
dataset: C.value
|
|
632
|
+
}), !e.value.userOptions.callbacks.altCopy) {
|
|
633
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
634
|
+
return;
|
|
635
|
+
}
|
|
636
|
+
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
637
|
+
config: e.value,
|
|
638
|
+
dataset: C.value
|
|
639
|
+
}));
|
|
640
|
+
}
|
|
641
|
+
return yt({
|
|
642
|
+
getData: Yt,
|
|
643
|
+
getImage: Zt,
|
|
644
|
+
generatePdf: He,
|
|
645
|
+
generateCsv: $e,
|
|
646
|
+
generateImage: Ee,
|
|
647
|
+
generateSvg: Je,
|
|
648
|
+
toggleTable: Ke,
|
|
649
|
+
toggleAnnotator: xe,
|
|
650
|
+
toggleFullscreen: Ge,
|
|
651
|
+
copyAlt: Qe
|
|
652
|
+
}), (t, l) => (r(), c("div", {
|
|
653
|
+
id: `bump_${N.value}`,
|
|
654
|
+
ref_key: "bumpChart",
|
|
655
|
+
ref: M,
|
|
656
|
+
class: lt({ "vue-data-ui-component": !0, "vue-ui-bump": !0, "vue-data-ui-wrapper-fullscreen": oe.value }),
|
|
657
|
+
style: x(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
658
|
+
onMouseenter: Mt,
|
|
659
|
+
onMouseleave: Pt
|
|
660
|
+
}, [
|
|
661
|
+
W("p", {
|
|
662
|
+
id: `chart-instructions-${N.value}`,
|
|
663
|
+
class: "sr-only"
|
|
664
|
+
}, B(e.value.a11y.translations.keyboardNavigation), 9, Ra),
|
|
665
|
+
K.value.body.length ? (r(), U(Pa, {
|
|
666
|
+
key: 0,
|
|
667
|
+
uid: N.value,
|
|
668
|
+
head: K.value.head,
|
|
669
|
+
body: K.value.body,
|
|
670
|
+
caption: K.value.caption,
|
|
671
|
+
notice: K.value.notice
|
|
672
|
+
}, null, 8, ["uid", "head", "body", "caption", "notice"])) : b("", !0),
|
|
673
|
+
e.value.userOptions.buttons.annotator ? (r(), U(h(bt), {
|
|
674
|
+
key: 1,
|
|
675
|
+
svgRef: h(j),
|
|
676
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
677
|
+
color: e.value.style.chart.color,
|
|
678
|
+
active: Z.value,
|
|
679
|
+
isCursorPointer: Y.value,
|
|
680
|
+
onClose: xe
|
|
681
|
+
}, {
|
|
682
|
+
"annotator-action-close": g(() => [
|
|
683
|
+
f(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
684
|
+
]),
|
|
685
|
+
"annotator-action-color": g(({ color: a }) => [
|
|
686
|
+
f(t.$slots, "annotator-action-color", $(S({ color: a })), void 0, !0)
|
|
687
|
+
]),
|
|
688
|
+
"annotator-action-draw": g(({ mode: a }) => [
|
|
689
|
+
f(t.$slots, "annotator-action-draw", $(S({ mode: a })), void 0, !0)
|
|
690
|
+
]),
|
|
691
|
+
"annotator-action-undo": g(({ disabled: a }) => [
|
|
692
|
+
f(t.$slots, "annotator-action-undo", $(S({ disabled: a })), void 0, !0)
|
|
693
|
+
]),
|
|
694
|
+
"annotator-action-redo": g(({ disabled: a }) => [
|
|
695
|
+
f(t.$slots, "annotator-action-redo", $(S({ disabled: a })), void 0, !0)
|
|
696
|
+
]),
|
|
697
|
+
"annotator-action-delete": g(({ disabled: a }) => [
|
|
698
|
+
f(t.$slots, "annotator-action-delete", $(S({ disabled: a })), void 0, !0)
|
|
699
|
+
]),
|
|
700
|
+
_: 3
|
|
701
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : b("", !0),
|
|
702
|
+
f(t.$slots, "userConfig", {}, void 0, !0),
|
|
703
|
+
It.value ? (r(), c("div", {
|
|
704
|
+
key: 2,
|
|
705
|
+
ref_key: "noTitle",
|
|
706
|
+
ref: ze,
|
|
707
|
+
class: "vue-data-ui-no-title-space",
|
|
708
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
709
|
+
}, null, 512)) : b("", !0),
|
|
710
|
+
e.value.style.chart.title.text ? (r(), c("div", {
|
|
711
|
+
key: 3,
|
|
712
|
+
ref_key: "chartTitle",
|
|
713
|
+
ref: Ie,
|
|
714
|
+
style: "width:100%;background:transparent;"
|
|
715
|
+
}, [
|
|
716
|
+
(r(), U(Ma, {
|
|
717
|
+
key: `title_${Re.value}`,
|
|
718
|
+
config: {
|
|
719
|
+
title: {
|
|
720
|
+
cy: "bump-title",
|
|
721
|
+
...e.value.style.chart.title
|
|
722
|
+
},
|
|
723
|
+
subtitle: {
|
|
724
|
+
cy: "bump-subtitle",
|
|
725
|
+
...e.value.style.chart.title.subtitle
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
}, null, 8, ["config"]))
|
|
729
|
+
], 512)) : b("", !0),
|
|
730
|
+
e.value.userOptions.show && le.value && (h(Ne) || h(Ce)) ? (r(), U(h(kt), {
|
|
731
|
+
ref_key: "userOptionsRef",
|
|
732
|
+
ref: fe,
|
|
733
|
+
key: `user_option_${Pe.value}`,
|
|
734
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
735
|
+
color: e.value.style.chart.color,
|
|
736
|
+
isPrinting: h(we),
|
|
737
|
+
isImaging: h(Le),
|
|
738
|
+
uid: N.value,
|
|
739
|
+
hasTooltip: !1,
|
|
740
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
741
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
742
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
743
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
744
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
745
|
+
hasLabel: !1,
|
|
746
|
+
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
747
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
748
|
+
isFullcreen: oe.value,
|
|
749
|
+
chartElement: M.value,
|
|
750
|
+
position: e.value.userOptions.position,
|
|
751
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
752
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
753
|
+
isAnnotation: Z.value,
|
|
754
|
+
callbacks: e.value.userOptions.callbacks,
|
|
755
|
+
printScale: e.value.userOptions.print.scale,
|
|
756
|
+
tableDialog: e.value.table.useDialog,
|
|
757
|
+
isCursorPointer: Y.value,
|
|
758
|
+
onToggleFullscreen: Ge,
|
|
759
|
+
onGeneratePdf: h(He),
|
|
760
|
+
onGenerateCsv: $e,
|
|
761
|
+
onGenerateImage: Jt,
|
|
762
|
+
onGenerateSvg: Je,
|
|
763
|
+
onToggleTable: Ke,
|
|
764
|
+
onToggleAnnotator: xe,
|
|
765
|
+
onCopyAlt: Qe,
|
|
766
|
+
style: x({
|
|
767
|
+
visibility: h(Ne) ? h(Ce) ? "visible" : "hidden" : "visible"
|
|
768
|
+
})
|
|
769
|
+
}, ot({ _: 2 }, [
|
|
770
|
+
t.$slots.menuIcon ? {
|
|
771
|
+
name: "menuIcon",
|
|
772
|
+
fn: g(({ isOpen: a, color: o }) => [
|
|
773
|
+
f(t.$slots, "menuIcon", $(S({ isOpen: a, color: o })), void 0, !0)
|
|
774
|
+
]),
|
|
775
|
+
key: "0"
|
|
776
|
+
} : void 0,
|
|
777
|
+
t.$slots.optionPdf ? {
|
|
778
|
+
name: "optionPdf",
|
|
779
|
+
fn: g(() => [
|
|
780
|
+
f(t.$slots, "optionPdf", {}, void 0, !0)
|
|
781
|
+
]),
|
|
782
|
+
key: "1"
|
|
783
|
+
} : void 0,
|
|
784
|
+
t.$slots.optionCsv ? {
|
|
785
|
+
name: "optionCsv",
|
|
786
|
+
fn: g(() => [
|
|
787
|
+
f(t.$slots, "optionCsv", {}, void 0, !0)
|
|
788
|
+
]),
|
|
789
|
+
key: "2"
|
|
790
|
+
} : void 0,
|
|
791
|
+
t.$slots.optionImg ? {
|
|
792
|
+
name: "optionImg",
|
|
793
|
+
fn: g(() => [
|
|
794
|
+
f(t.$slots, "optionImg", {}, void 0, !0)
|
|
795
|
+
]),
|
|
796
|
+
key: "3"
|
|
797
|
+
} : void 0,
|
|
798
|
+
t.$slots.optionSvg ? {
|
|
799
|
+
name: "optionSvg",
|
|
800
|
+
fn: g(() => [
|
|
801
|
+
f(t.$slots, "optionSvg", {}, void 0, !0)
|
|
802
|
+
]),
|
|
803
|
+
key: "4"
|
|
804
|
+
} : void 0,
|
|
805
|
+
t.$slots.optionTable ? {
|
|
806
|
+
name: "optionTable",
|
|
807
|
+
fn: g(() => [
|
|
808
|
+
f(t.$slots, "optionTable", {}, void 0, !0)
|
|
809
|
+
]),
|
|
810
|
+
key: "5"
|
|
811
|
+
} : void 0,
|
|
812
|
+
t.$slots.optionFullscreen ? {
|
|
813
|
+
name: "optionFullscreen",
|
|
814
|
+
fn: g(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
815
|
+
f(t.$slots, "optionFullscreen", $(S({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
816
|
+
]),
|
|
817
|
+
key: "6"
|
|
818
|
+
} : void 0,
|
|
819
|
+
t.$slots.optionAnnotator ? {
|
|
820
|
+
name: "optionAnnotator",
|
|
821
|
+
fn: g(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
822
|
+
f(t.$slots, "optionAnnotator", $(S({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
823
|
+
]),
|
|
824
|
+
key: "7"
|
|
825
|
+
} : void 0,
|
|
826
|
+
t.$slots.optionAltCopy ? {
|
|
827
|
+
name: "optionAltCopy",
|
|
828
|
+
fn: g(({ altCopy: a }) => [
|
|
829
|
+
f(t.$slots, "optionAltCopy", $(S({ altCopy: a })), void 0, !0)
|
|
830
|
+
]),
|
|
831
|
+
key: "8"
|
|
832
|
+
} : void 0
|
|
833
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasAltCopy", "hasFullscreen", "isFullcreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : b("", !0),
|
|
834
|
+
W("div", _a, [
|
|
835
|
+
(r(), c("svg", {
|
|
836
|
+
ref_key: "svgRef",
|
|
837
|
+
ref: j,
|
|
838
|
+
xmlns: h(ya),
|
|
839
|
+
"aria-describedby": `chart-instructions-${N.value}`,
|
|
840
|
+
viewBox: `0 0 ${i.value.chartWidth <= 0 ? 10 : i.value.chartWidth} ${i.value.svgHeight <= 0 ? 10 : i.value.svgHeight}`,
|
|
841
|
+
class: lt({ "vue-data-ui-loading": h(ue), "no-transition": !e.value.useCssAnimation, "with-transition": e.value.useCssAnimation }),
|
|
842
|
+
style: x(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`),
|
|
843
|
+
role: "img",
|
|
844
|
+
"aria-live": "polite",
|
|
845
|
+
preserveAspectRatio: "xMidYMid",
|
|
846
|
+
tabindex: "0",
|
|
847
|
+
onFocus: Bt,
|
|
848
|
+
onBlur: Ut,
|
|
849
|
+
onKeydown: Xt
|
|
850
|
+
}, [
|
|
851
|
+
Se(h(Ct)),
|
|
852
|
+
t.$slots["chart-background"] ? (r(), c("foreignObject", {
|
|
853
|
+
key: 0,
|
|
854
|
+
x: i.value.left,
|
|
855
|
+
y: i.value.top,
|
|
856
|
+
width: i.value.width <= 0 ? 10 : i.value.width,
|
|
857
|
+
height: i.value.height <= 0 ? 10 : i.value.height,
|
|
858
|
+
style: {
|
|
859
|
+
pointerEvents: "none"
|
|
860
|
+
}
|
|
861
|
+
}, [
|
|
862
|
+
f(t.$slots, "chart-background", {}, void 0, !0)
|
|
863
|
+
], 8, Na)) : b("", !0),
|
|
864
|
+
(r(!0), c(L, null, T(C.value, (a) => (r(), c(L, null, [
|
|
865
|
+
W("path", {
|
|
866
|
+
class: "transition-opacity",
|
|
867
|
+
d: `M${a.path}`,
|
|
868
|
+
stroke: e.value.style.chart.layout.lines.coatingColor,
|
|
869
|
+
"stroke-width": e.value.style.chart.layout.lines.strokeWidth + 2,
|
|
870
|
+
"stroke-linecap": "round",
|
|
871
|
+
"stroke-linejoin": "round",
|
|
872
|
+
fill: "none",
|
|
873
|
+
style: x({
|
|
874
|
+
opacity: p.value == null || p.value === a.id ? 1 : 0.1
|
|
875
|
+
}),
|
|
876
|
+
onMouseenter: (o) => p.value = a.id,
|
|
877
|
+
onMouseleave: l[0] || (l[0] = (o) => p.value = null)
|
|
878
|
+
}, null, 44, Ha),
|
|
879
|
+
W("path", {
|
|
880
|
+
class: "transition-opacity",
|
|
881
|
+
d: `M${a.path}`,
|
|
882
|
+
stroke: a.color,
|
|
883
|
+
"stroke-width": e.value.style.chart.layout.lines.strokeWidth,
|
|
884
|
+
"stroke-linecap": "round",
|
|
885
|
+
"stroke-linejoin": "round",
|
|
886
|
+
fill: "none",
|
|
887
|
+
style: x({
|
|
888
|
+
opacity: p.value == null || p.value === a.id ? 1 : 0.1
|
|
889
|
+
}),
|
|
890
|
+
onMouseenter: (o) => z(a, a),
|
|
891
|
+
onMouseleave: (o) => F(a),
|
|
892
|
+
onClick: (o) => ce(a)
|
|
893
|
+
}, null, 44, Ea)
|
|
894
|
+
], 64))), 256)),
|
|
895
|
+
(r(!0), c(L, null, T(C.value, (a) => (r(), c(L, null, [
|
|
896
|
+
e.value.style.chart.layout.plots.labels.displayedValue === "rank" ? (r(!0), c(L, { key: 0 }, T(a.coordinates, (o, n) => (r(), c("circle", {
|
|
897
|
+
class: "transition-opacity",
|
|
898
|
+
cx: o.x,
|
|
899
|
+
cy: o.y,
|
|
900
|
+
r: e.value.style.chart.layout.plots.radius,
|
|
901
|
+
fill: a.color,
|
|
902
|
+
stroke: e.value.style.chart.layout.plots.stroke,
|
|
903
|
+
"stroke-width": e.value.style.chart.layout.plots.strokeWidth,
|
|
904
|
+
style: x({
|
|
905
|
+
opacity: p.value == null || p.value === a.id ? 1 : 0.1
|
|
906
|
+
}),
|
|
907
|
+
onMouseenter: (s) => z({ ...o, pointIndex: n }, a),
|
|
908
|
+
onMouseleave: (s) => F({ ...o, pointIndex: n }),
|
|
909
|
+
onClick: (s) => z({ ...o, pointIndex: n }, a)
|
|
910
|
+
}, null, 44, Fa))), 256)) : b("", !0),
|
|
911
|
+
e.value.style.chart.layout.plots.labels.show && e.value.style.chart.layout.plots.labels.displayedValue === "rank" ? (r(!0), c(L, { key: 1 }, T(a.coordinates, (o) => (r(), c("text", {
|
|
912
|
+
class: "transition-opacity",
|
|
913
|
+
x: o.x,
|
|
914
|
+
y: o.y + e.value.style.chart.layout.plots.labels.fontSize / 3,
|
|
915
|
+
fill: o.labelColor,
|
|
916
|
+
"font-size": e.value.style.chart.layout.plots.labels.fontSize,
|
|
917
|
+
"text-anchor": "middle",
|
|
918
|
+
style: x({
|
|
919
|
+
userSelect: "none",
|
|
920
|
+
pointerEvents: "none",
|
|
921
|
+
opacity: p.value == null || p.value === a.id ? 1 : 0.1
|
|
922
|
+
})
|
|
923
|
+
}, B(o.rank), 13, Va))), 256)) : b("", !0),
|
|
924
|
+
e.value.style.chart.layout.plots.labels.displayedValue === "value" ? (r(!0), c(L, { key: 2 }, T(a.coordinates, (o) => (r(), c(L, null, [
|
|
925
|
+
h(R)(o.value) ? (r(), c("rect", Ae({
|
|
926
|
+
key: 0,
|
|
927
|
+
class: "transition-opacity"
|
|
928
|
+
}, { ref_for: !0 }, Ht(o), {
|
|
929
|
+
style: {
|
|
930
|
+
opacity: p.value == null || p.value === a.id ? 1 : 0.1
|
|
931
|
+
},
|
|
932
|
+
onMouseenter: (n) => z({ ...t.point, pointIndex: t.i }, a),
|
|
933
|
+
onMouseleave: (n) => F({ ...t.point, pointIndex: t.i }),
|
|
934
|
+
onClick: (n) => z({ ...t.point, pointIndex: t.i }, a)
|
|
935
|
+
}), null, 16, Wa)) : b("", !0),
|
|
936
|
+
h(R)(o.value) && e.value.style.chart.layout.plots.labels.show ? (r(), c("text", {
|
|
937
|
+
key: 1,
|
|
938
|
+
class: "transition-opacity",
|
|
939
|
+
x: o.x,
|
|
940
|
+
y: o.y + e.value.style.chart.layout.plots.labels.fontSize / 3,
|
|
941
|
+
fill: o.labelColor,
|
|
942
|
+
"font-size": e.value.style.chart.layout.plots.labels.fontSize,
|
|
943
|
+
"text-anchor": "middle",
|
|
944
|
+
style: x({
|
|
945
|
+
userSelect: "none",
|
|
946
|
+
pointerEvents: "none",
|
|
947
|
+
opacity: p.value == null || p.value === a.id ? 1 : 0.1
|
|
948
|
+
})
|
|
949
|
+
}, B(o.displayValue), 13, Ba)) : b("", !0)
|
|
950
|
+
], 64))), 256)) : b("", !0)
|
|
951
|
+
], 64))), 256)),
|
|
952
|
+
e.value.style.chart.layout.nameLabels.leftLabels.show ? (r(), c("g", {
|
|
953
|
+
key: 1,
|
|
954
|
+
ref_key: "labelsLeft",
|
|
955
|
+
ref: pe
|
|
956
|
+
}, [
|
|
957
|
+
(r(!0), c(L, null, T(Xe.value.left.filter((a) => h(R)(a.value)), (a, o) => (r(), c("text", {
|
|
958
|
+
class: "transition-opacity",
|
|
959
|
+
x: i.value.left,
|
|
960
|
+
y: a.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
|
|
961
|
+
fill: e.value.style.chart.layout.nameLabels.useSerieColor ? a.color : e.value.style.chart.layout.nameLabels.color,
|
|
962
|
+
"font-size": e.value.style.chart.layout.nameLabels.fontSize,
|
|
963
|
+
"font--weight": e.value.style.chart.layout.nameLabels.bold ? "bold" : "normal",
|
|
964
|
+
"text-anchor": "end",
|
|
965
|
+
innerHTML: h(Te)({
|
|
966
|
+
content: a.name,
|
|
967
|
+
fontSize: e.value.style.chart.layout.nameLabels.fontSize,
|
|
968
|
+
fill: e.value.style.chart.layout.nameLabels.useSerieColor ? a.color : e.value.style.chart.layout.nameLabels.color,
|
|
969
|
+
x: i.value.left - e.value.style.chart.layout.nameLabels.offsetX,
|
|
970
|
+
y: a.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
|
|
971
|
+
translateY: !0
|
|
972
|
+
}),
|
|
973
|
+
style: x({
|
|
974
|
+
opacity: p.value == null || p.value === a.id ? 1 : 0.1
|
|
975
|
+
}),
|
|
976
|
+
onMouseenter: (n) => z(a, a),
|
|
977
|
+
onMouseleave: (n) => F(a),
|
|
978
|
+
onClick: (n) => ce(a)
|
|
979
|
+
}, null, 44, Ua))), 256))
|
|
980
|
+
], 512)) : b("", !0),
|
|
981
|
+
e.value.style.chart.layout.nameLabels.rightLabels.show ? (r(), c("g", {
|
|
982
|
+
key: 2,
|
|
983
|
+
ref_key: "labelsRight",
|
|
984
|
+
ref: me
|
|
985
|
+
}, [
|
|
986
|
+
(r(!0), c(L, null, T(Xe.value.right.filter((a) => h(R)(a.value)), (a, o) => (r(), c("text", {
|
|
987
|
+
class: "transition-opacity",
|
|
988
|
+
x: i.value.right,
|
|
989
|
+
y: a.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
|
|
990
|
+
fill: e.value.style.chart.layout.nameLabels.useSerieColor ? a.color : e.value.style.chart.layout.nameLabels.color,
|
|
991
|
+
"font-size": e.value.style.chart.layout.nameLabels.fontSize,
|
|
992
|
+
"font--weight": e.value.style.chart.layout.nameLabels.bold ? "bold" : "normal",
|
|
993
|
+
"text-anchor": "start",
|
|
994
|
+
innerHTML: h(Te)({
|
|
995
|
+
content: a.name,
|
|
996
|
+
fontSize: e.value.style.chart.layout.nameLabels.fontSize,
|
|
997
|
+
fill: e.value.style.chart.layout.nameLabels.useSerieColor ? a.color : e.value.style.chart.layout.nameLabels.color,
|
|
998
|
+
x: i.value.right + e.value.style.chart.layout.nameLabels.offsetX,
|
|
999
|
+
y: a.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
|
|
1000
|
+
translateY: !0
|
|
1001
|
+
}),
|
|
1002
|
+
style: x({
|
|
1003
|
+
opacity: p.value == null || p.value === a.id ? 1 : 0.1
|
|
1004
|
+
}),
|
|
1005
|
+
onMouseenter: (n) => z(a, a),
|
|
1006
|
+
onMouseleave: (n) => F(a),
|
|
1007
|
+
onClick: (n) => ce(a)
|
|
1008
|
+
}, null, 44, Xa))), 256))
|
|
1009
|
+
], 512)) : b("", !0),
|
|
1010
|
+
e.value.style.chart.layout.timeLabels.show ? (r(), c("g", {
|
|
1011
|
+
key: 3,
|
|
1012
|
+
ref_key: "timeLabelsEls",
|
|
1013
|
+
ref: ge
|
|
1014
|
+
}, [
|
|
1015
|
+
t.$slots["time-label"] ? (r(), c("g", Ya, [
|
|
1016
|
+
(r(!0), c(L, null, T(q.value, (a, o) => (r(), c("g", null, [
|
|
1017
|
+
f(t.$slots, "time-label", Ae({ ref_for: !0 }, {
|
|
1018
|
+
x: i.value.unitW * o + i.value.unitW / 2 + i.value.left,
|
|
1019
|
+
y: i.value.chartHeight + e.value.style.chart.layout.timeLabels.offsetY,
|
|
1020
|
+
fontSize: e.value.style.chart.layout.timeLabels.fontSize,
|
|
1021
|
+
fill: e.value.style.chart.layout.timeLabels.color,
|
|
1022
|
+
transform: `translate(${i.value.unitW * o + i.value.unitW / 2 + i.value.left}, ${i.value.chartHeight + e.value.style.chart.layout.timeLabels.offsetY}), rotate(${e.value.style.chart.layout.timeLabels.rotation})`,
|
|
1023
|
+
absoluteIndex: a.absoluteIndex,
|
|
1024
|
+
content: a.text,
|
|
1025
|
+
textAnchor: e.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : e.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1026
|
+
show: !0
|
|
1027
|
+
}), void 0, !0)
|
|
1028
|
+
]))), 256))
|
|
1029
|
+
])) : (r(), c("g", ja, [
|
|
1030
|
+
(r(!0), c(L, null, T(q.value, (a, o) => (r(), c("g", null, [
|
|
1031
|
+
String(a.text).includes(`
|
|
1032
|
+
`) ? (r(), c("text", {
|
|
1033
|
+
key: o + "-multi",
|
|
1034
|
+
"text-anchor": e.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : e.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1035
|
+
"font-size": e.value.style.chart.layout.timeLabels.fontSize,
|
|
1036
|
+
fill: e.value.style.chart.layout.timeLabels.color,
|
|
1037
|
+
transform: `
|
|
1038
|
+
translate(
|
|
1039
|
+
${i.value.unitW * o + i.value.unitW / 2 + i.value.left},
|
|
1040
|
+
${i.value.chartHeight + e.value.style.chart.layout.timeLabels.fontSize * 1.3 + e.value.style.chart.layout.timeLabels.offsetY}
|
|
1041
|
+
),
|
|
1042
|
+
rotate(${e.value.style.chart.layout.timeLabels.rotation})
|
|
1043
|
+
`,
|
|
1044
|
+
innerHTML: h(Te)({
|
|
1045
|
+
content: String(a.text),
|
|
1046
|
+
fontSize: e.value.style.chart.layout.timeLabels.fontSize,
|
|
1047
|
+
fill: e.value.style.chart.layout.timeLabels.color,
|
|
1048
|
+
x: 0,
|
|
1049
|
+
y: 0
|
|
1050
|
+
})
|
|
1051
|
+
}, null, 8, Ga)) : (r(), c("text", {
|
|
1052
|
+
class: "vue-data-ui-time-label",
|
|
1053
|
+
key: o,
|
|
1054
|
+
"text-anchor": e.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : e.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1055
|
+
"font-size": e.value.style.chart.layout.timeLabels.fontSize,
|
|
1056
|
+
"font-weight": e.value.style.chart.layout.timeLabels.bold ? "bold" : "normal",
|
|
1057
|
+
fill: e.value.style.chart.layout.timeLabels.color,
|
|
1058
|
+
transform: `translate(${i.value.unitW * o + i.value.unitW / 2 + i.value.left}, ${i.value.chartHeight + e.value.style.chart.layout.timeLabels.offsetY}), rotate(${e.value.style.chart.layout.timeLabels.rotation})`
|
|
1059
|
+
}, B(a.text), 9, qa))
|
|
1060
|
+
]))), 256))
|
|
1061
|
+
]))
|
|
1062
|
+
], 512)) : b("", !0),
|
|
1063
|
+
f(t.$slots, "svg", {
|
|
1064
|
+
svg: {
|
|
1065
|
+
drawingArea: i.value,
|
|
1066
|
+
data: C.value,
|
|
1067
|
+
isPrintingImg: h(we) | h(Le) | ne.value,
|
|
1068
|
+
isPrintingSvg: se.value
|
|
1069
|
+
}
|
|
1070
|
+
}, void 0, !0)
|
|
1071
|
+
], 46, Da)),
|
|
1072
|
+
t.$slots.hint ? (r(), c("div", Ka, [
|
|
1073
|
+
f(t.$slots, "hint", $(S({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: be.value })), void 0, !0)
|
|
1074
|
+
])) : b("", !0)
|
|
1075
|
+
]),
|
|
1076
|
+
t.$slots.watermark ? (r(), c("div", Za, [
|
|
1077
|
+
f(t.$slots, "watermark", $(S({ isPrinting: h(we) || h(Le) || ne.value || se.value })), void 0, !0)
|
|
1078
|
+
])) : b("", !0),
|
|
1079
|
+
le.value && e.value.userOptions.buttons.table ? (r(), U(oa(J.value.component), Ae({ key: 6 }, J.value.props, {
|
|
1080
|
+
ref_key: "tableUnit",
|
|
1081
|
+
ref: X,
|
|
1082
|
+
onClose: Ze
|
|
1083
|
+
}), ot({
|
|
1084
|
+
content: g(() => [
|
|
1085
|
+
Se(h(gt), {
|
|
1086
|
+
colNames: Q.value.colNames,
|
|
1087
|
+
head: Q.value.head,
|
|
1088
|
+
body: Q.value.body,
|
|
1089
|
+
config: Q.value.config,
|
|
1090
|
+
title: e.value.table.useDialog ? "" : J.value.title,
|
|
1091
|
+
withCloseButton: !e.value.table.useDialog,
|
|
1092
|
+
isCursorPointer: Y.value,
|
|
1093
|
+
onClose: Ze
|
|
1094
|
+
}, {
|
|
1095
|
+
th: g(({ th: a }) => [
|
|
1096
|
+
W("div", { innerHTML: a }, null, 8, Ja)
|
|
1097
|
+
]),
|
|
1098
|
+
td: g(({ td: a }) => [
|
|
1099
|
+
nt(B(a), 1)
|
|
1100
|
+
]),
|
|
1101
|
+
_: 1
|
|
1102
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"])
|
|
1103
|
+
]),
|
|
1104
|
+
_: 2
|
|
1105
|
+
}, [
|
|
1106
|
+
e.value.table.useDialog ? {
|
|
1107
|
+
name: "title",
|
|
1108
|
+
fn: g(() => [
|
|
1109
|
+
nt(B(J.value.title), 1)
|
|
1110
|
+
]),
|
|
1111
|
+
key: "0"
|
|
1112
|
+
} : void 0,
|
|
1113
|
+
e.value.table.useDialog ? {
|
|
1114
|
+
name: "actions",
|
|
1115
|
+
fn: g(() => [
|
|
1116
|
+
W("button", {
|
|
1117
|
+
tabindex: "0",
|
|
1118
|
+
class: "vue-ui-user-options-button",
|
|
1119
|
+
onClick: l[1] || (l[1] = (a) => $e(e.value.userOptions.callbacks.csv)),
|
|
1120
|
+
style: x({ cursor: Y.value ? "pointer" : "default" })
|
|
1121
|
+
}, [
|
|
1122
|
+
Se(h(pt), {
|
|
1123
|
+
name: "fileCsv",
|
|
1124
|
+
stroke: J.value.props.color
|
|
1125
|
+
}, null, 8, ["stroke"])
|
|
1126
|
+
], 4)
|
|
1127
|
+
]),
|
|
1128
|
+
key: "1"
|
|
1129
|
+
} : void 0
|
|
1130
|
+
]), 1040)) : b("", !0),
|
|
1131
|
+
t.$slots.source ? (r(), c("div", {
|
|
1132
|
+
key: 7,
|
|
1133
|
+
ref_key: "source",
|
|
1134
|
+
ref: Oe,
|
|
1135
|
+
dir: "auto"
|
|
1136
|
+
}, [
|
|
1137
|
+
f(t.$slots, "source", {}, void 0, !0)
|
|
1138
|
+
], 512)) : b("", !0),
|
|
1139
|
+
f(t.$slots, "skeleton", {}, () => [
|
|
1140
|
+
h(ue) ? (r(), U(ka, { key: 0 })) : b("", !0)
|
|
1141
|
+
], !0)
|
|
1142
|
+
], 46, Oa));
|
|
1143
|
+
}
|
|
1144
|
+
}, gl = /* @__PURE__ */ za(Qa, [["__scopeId", "data-v-027add95"]]);
|
|
1145
|
+
export {
|
|
1146
|
+
gl as default
|
|
1147
|
+
};
|