vue-data-ui 3.25.5 → 3.25.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
- package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
- package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
- package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
- package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
- package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
- package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
- package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-ur6jKRL5.js} +1 -1
- package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
- package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
- package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.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-hill.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-label.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/{package-ta2JoIjx.js → package-Dx7M6sYy.js} +1 -1
- package/dist/{render-common-bvOuxfN3.js → render-common-DETHvNhl.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +10 -0
- package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
- package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-Dh3_EsHb.js} +70 -70
- package/dist/vue-data-ui.js +71 -71
- package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
- package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
- package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
- package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
- package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
- package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DhwySwgn.js} +380 -380
- package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
- package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
- package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
- package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
- package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
- package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
- package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-C_inEafb.js} +792 -792
- package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-Bs2mBur5.js} +67 -67
- package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-DwE4MoXI.js} +2 -2
- package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
- package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-CbOSJmRu.js} +2 -2
- package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
- package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
- package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
- package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
- package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
- package/dist/vue-ui-gauge-DLDULH26.js +934 -0
- package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-DXIHhp-G.js} +429 -429
- package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-PuURiePo.js} +2 -2
- package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
- package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-DqsVJkmO.js} +470 -470
- package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +511 -511
- package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
- package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
- package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
- package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
- package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-Dd1qfUiu.js} +376 -376
- package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
- package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
- package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +407 -407
- package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
- package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BZq517pL.js} +4 -4
- package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
- package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
- package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
- package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
- package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
- package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
- package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
- package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
- package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
- package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
- package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
- package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
- package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
- package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
- package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
- package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
- package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
- package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
- package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
- package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
- package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-D0_KsB-y.js} +192 -192
- package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-1Z2zginj.js} +153 -153
- package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
- package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
- package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
- package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
- package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
- package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-BOBHo7-L.js} +524 -524
- package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
- package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
- package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
- package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
- package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
- package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
- package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
- package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
- package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
- package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
- package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
- package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
- package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
- package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
- package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
- package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
- package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
- package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
- package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
- package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
- package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
- package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
- package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
- package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
- package/dist/vue-ui-rating-CBdDXL80.js +0 -359
- package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
- package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
- package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
- package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
- package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
- package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
- package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
- package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
- package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
- package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
- package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
- package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
- package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
- package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
- package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
- package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
- package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
- package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
- package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
- package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
- package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
- package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
|
@@ -2,7 +2,7 @@ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
|
2
2
|
import { $ as t, D as n, Et as r, G as i, Lt as a, P as o, Pt as s, S as c, V as l, X as u, Yt as ee, Zt as te, c as ne, ht as re, i as ie, nt as ae, q as oe, r as se, t as ce, w as le } from "./lib-Dql7cqyA.js";
|
|
3
3
|
import { n as ue, t as de } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as fe } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
-
import { t as pe } from "./useConfig-
|
|
5
|
+
import { t as pe } from "./useConfig-CIQZ6_r7.js";
|
|
6
6
|
import { t as me } from "./usePrinter-DISD7q5m.js";
|
|
7
7
|
import { n as he, t as ge } from "./BaseScanner-DZvpgOjM.js";
|
|
8
8
|
import { t as _e } from "./useNestedProp-Chvyfpl-.js";
|
|
@@ -16,7 +16,7 @@ import { t as Te } from "./A11yDataTable-DdRsVULz.js";
|
|
|
16
16
|
import { t as Ee } from "./useUserOptionState-DK-_1ddE.js";
|
|
17
17
|
import { t as De } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
18
|
import { t as Oe } from "./vue_ui_bump-Vl-zYAtG.js";
|
|
19
|
-
import { t as ke } from "./BaseDraggableDialog-
|
|
19
|
+
import { t as ke } from "./BaseDraggableDialog-Gm4Q30j0.js";
|
|
20
20
|
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Ae, createTextVNode as je, createVNode as Me, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Ne, normalizeClass as Pe, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Fe, onMounted as Ie, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Le, shallowRef as Re, toDisplayString as T, toRefs as ze, unref as E, watch as Be, watchEffect as Ve, withCtx as D } from "vue";
|
|
21
21
|
//#region src/components/vue-ui-bump.vue
|
|
22
22
|
var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge = { style: { position: "relative" } }, Ke = [
|
|
@@ -128,16 +128,16 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
128
128
|
},
|
|
129
129
|
emits: ["copyAlt"],
|
|
130
130
|
setup(e, { expose: Se, emit: He }) {
|
|
131
|
-
let ct = _(() => import("./BaseIcon-
|
|
131
|
+
let ct = _(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), lt = _(() => import("./vue-ui-accordion-BSmBUjwZ.js").then((e) => e.n)), ut = _(() => import("./DataTable-oiM9uWrQ.js")), dt = _(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), ft = _(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), pt = _(() => import("./PackageVersion-ur6jKRL5.js").then((e) => e.t)), { vue_ui_bump: mt } = pe(), { isThemeValid: ht, warnInvalidTheme: gt } = ve(), O = e, _t = He, vt = f({
|
|
132
132
|
get() {
|
|
133
133
|
return !!O.dataset && O.dataset.length;
|
|
134
134
|
},
|
|
135
135
|
set(e) {
|
|
136
136
|
return e;
|
|
137
137
|
}
|
|
138
|
-
}), k = S(null), A = S(oe()), yt = S(0), bt = S(null), xt = S(null), St = S(null),
|
|
138
|
+
}), k = S(null), A = S(oe()), yt = S(0), bt = S(null), xt = S(null), St = S(null), Ct = S(!1), wt = S(!1), Tt = S(0), Et = S(0), j = S(null), Dt = S(null), Ot = S(!1), M = S(null), kt = S(null), At = S(null), jt = S(null), N = S(null), Mt = S(!1), P = S(Lt()), F = f(() => P.value.style.chart.layout.plots), I = f(() => P.value.style.chart.layout), L = f(() => P.value.style.chart), R = f(() => P.value.userOptions);
|
|
139
139
|
ue({
|
|
140
|
-
config: () =>
|
|
140
|
+
config: () => P.value,
|
|
141
141
|
dataset: () => O.dataset,
|
|
142
142
|
component: "VueUiBump",
|
|
143
143
|
rules: [
|
|
@@ -172,7 +172,7 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
172
172
|
}
|
|
173
173
|
]
|
|
174
174
|
});
|
|
175
|
-
let
|
|
175
|
+
let z = f(() => P.value.userOptions.useCursorPointer), Nt = f(() => te({
|
|
176
176
|
defaultConfig: {
|
|
177
177
|
userOptions: { show: !1 },
|
|
178
178
|
style: { chart: {
|
|
@@ -191,11 +191,11 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
191
191
|
}
|
|
192
192
|
} }
|
|
193
193
|
},
|
|
194
|
-
userConfig:
|
|
195
|
-
})), { loading:
|
|
194
|
+
userConfig: P.value.skeletonConfig ?? {}
|
|
195
|
+
})), { loading: Pt, FINAL_DATASET: Ft, manualLoading: It } = he({
|
|
196
196
|
...ze(O),
|
|
197
|
-
FINAL_CONFIG:
|
|
198
|
-
prepareConfig:
|
|
197
|
+
FINAL_CONFIG: P,
|
|
198
|
+
prepareConfig: Lt,
|
|
199
199
|
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
200
200
|
{
|
|
201
201
|
name: "————",
|
|
@@ -247,12 +247,12 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
247
247
|
}
|
|
248
248
|
],
|
|
249
249
|
skeletonConfig: te({
|
|
250
|
-
defaultConfig:
|
|
251
|
-
userConfig:
|
|
250
|
+
defaultConfig: P.value,
|
|
251
|
+
userConfig: Nt.value
|
|
252
252
|
})
|
|
253
253
|
});
|
|
254
|
-
Ie(
|
|
255
|
-
function
|
|
254
|
+
Ie(Zt);
|
|
255
|
+
function Lt() {
|
|
256
256
|
let e = _e({
|
|
257
257
|
userConfig: O.config,
|
|
258
258
|
defaultConfig: mt
|
|
@@ -275,46 +275,46 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
275
275
|
} else t = e;
|
|
276
276
|
return t;
|
|
277
277
|
}
|
|
278
|
-
let { userOptionsVisible:
|
|
279
|
-
function Bt() {
|
|
280
|
-
Dt.value = !0, Rt(!0);
|
|
281
|
-
}
|
|
278
|
+
let { userOptionsVisible: Rt, setUserOptionsVisibility: zt, keepUserOptionState: Bt } = Ee({ config: P.value }), { svgRef: B } = De({ config: L.value.title });
|
|
282
279
|
function Vt() {
|
|
283
|
-
|
|
280
|
+
Ot.value = !0, zt(!0);
|
|
281
|
+
}
|
|
282
|
+
function Ht() {
|
|
283
|
+
zt(!1), Ot.value = !1;
|
|
284
284
|
}
|
|
285
|
-
let
|
|
286
|
-
Be(
|
|
287
|
-
|
|
285
|
+
let V = S({ showTable: P.value.table.show });
|
|
286
|
+
Be(P, () => {
|
|
287
|
+
V.value = { showTable: P.value.table.show };
|
|
288
288
|
}, { immediate: !0 }), Be(() => O.config, (e) => {
|
|
289
|
-
|
|
290
|
-
top:
|
|
291
|
-
right:
|
|
292
|
-
bottom:
|
|
293
|
-
left:
|
|
289
|
+
Pt.value || (P.value = Lt()), Rt.value = !P.value.userOptions.showOnChartHover, Zt(), Tt.value += 1, Et.value += 1, V.value.showTable = P.value.table.show, H.value.width = L.value.width, H.value.height = L.value.height, H.value.paddingRatio = {
|
|
290
|
+
top: L.value.padding.top / L.value.height,
|
|
291
|
+
right: L.value.padding.right / L.value.width,
|
|
292
|
+
bottom: L.value.padding.bottom / L.value.height,
|
|
293
|
+
left: L.value.padding.left / L.value.width
|
|
294
294
|
};
|
|
295
295
|
}), Be(() => O.dataset, (e) => {
|
|
296
|
-
Array.isArray(e) && e.length > 0 && (
|
|
296
|
+
Array.isArray(e) && e.length > 0 && (It.value = !1);
|
|
297
297
|
}, { deep: !0 });
|
|
298
|
-
let { isPrinting:
|
|
298
|
+
let { isPrinting: Ut, isImaging: Wt, generatePdf: Gt, generateImage: Kt } = me({
|
|
299
299
|
elementId: `bump_${A.value}`,
|
|
300
|
-
fileName:
|
|
301
|
-
options:
|
|
302
|
-
}),
|
|
303
|
-
width:
|
|
304
|
-
height:
|
|
300
|
+
fileName: L.value.title.text || "vue-ui-bump",
|
|
301
|
+
options: P.value.userOptions.print
|
|
302
|
+
}), qt = f(() => P.value.userOptions.show && !L.value.title.text), H = S({
|
|
303
|
+
width: L.value.width,
|
|
304
|
+
height: L.value.height,
|
|
305
305
|
paddingRatio: {
|
|
306
|
-
top:
|
|
307
|
-
right:
|
|
308
|
-
bottom:
|
|
309
|
-
left:
|
|
306
|
+
top: L.value.padding.top / L.value.height,
|
|
307
|
+
right: L.value.padding.right / L.value.width,
|
|
308
|
+
bottom: L.value.padding.bottom / L.value.height,
|
|
309
|
+
left: L.value.padding.left / L.value.width
|
|
310
310
|
}
|
|
311
|
-
}),
|
|
312
|
-
function
|
|
311
|
+
}), Jt = f(() => le(P.value.customPalette)), U = Re(null), W = Re(null), Yt = S(null), Xt = f(() => P.value.debug);
|
|
312
|
+
function Zt() {
|
|
313
313
|
if (s(O.dataset) ? (ae({
|
|
314
314
|
componentName: "VueUiBump",
|
|
315
315
|
type: "dataset",
|
|
316
|
-
debug:
|
|
317
|
-
}),
|
|
316
|
+
debug: Xt.value
|
|
317
|
+
}), It.value = !0) : O.dataset.forEach((e, t) => {
|
|
318
318
|
re({
|
|
319
319
|
datasetObject: e,
|
|
320
320
|
requiredAttributes: ["name", "values"]
|
|
@@ -324,46 +324,46 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
324
324
|
type: "datasetSerieAttribute",
|
|
325
325
|
property: e,
|
|
326
326
|
index: t,
|
|
327
|
-
debug:
|
|
328
|
-
}),
|
|
327
|
+
debug: Xt.value
|
|
328
|
+
}), It.value = !0;
|
|
329
329
|
});
|
|
330
|
-
}), s(O.dataset) || (
|
|
331
|
-
|
|
332
|
-
}, 10),
|
|
330
|
+
}), s(O.dataset) || (It.value = P.value.loading), setTimeout(() => {
|
|
331
|
+
wt.value = !0;
|
|
332
|
+
}, 10), P.value.responsive) {
|
|
333
333
|
let e = Ce(() => {
|
|
334
|
-
|
|
334
|
+
wt.value = !1;
|
|
335
335
|
let { width: e, height: t } = we({
|
|
336
336
|
chart: k.value,
|
|
337
337
|
noTitle: xt.value,
|
|
338
|
-
title:
|
|
338
|
+
title: L.value.title.text ? bt.value : null,
|
|
339
339
|
legend: null,
|
|
340
340
|
slicer: null,
|
|
341
341
|
source: St.value
|
|
342
342
|
});
|
|
343
343
|
requestAnimationFrame(() => {
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
H.value.width = e, H.value.height = t - 12, clearTimeout(Yt.value), Yt.value = setTimeout(() => {
|
|
345
|
+
wt.value = !0;
|
|
346
346
|
}, 10);
|
|
347
347
|
});
|
|
348
348
|
});
|
|
349
|
-
|
|
349
|
+
U.value && (W.value && U.value.unobserve(W.value), U.value.disconnect()), U.value = new ResizeObserver(e), W.value = k.value.parentNode, U.value.observe(W.value);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
Fe(() => {
|
|
353
|
-
|
|
353
|
+
U.value && (W.value && U.value.unobserve(W.value), U.value.disconnect());
|
|
354
354
|
});
|
|
355
|
-
let
|
|
356
|
-
let n = c(e.color) ||
|
|
355
|
+
let Qt = f(() => Ft.value.map((e, t) => {
|
|
356
|
+
let n = c(e.color) || Jt.value[t] || a[t] || a[t % a.length];
|
|
357
357
|
return {
|
|
358
358
|
...e,
|
|
359
359
|
absoluteIndex: t,
|
|
360
360
|
id: oe(),
|
|
361
361
|
color: n
|
|
362
362
|
};
|
|
363
|
-
})),
|
|
364
|
-
function
|
|
365
|
-
let t = e.map(() => Array(
|
|
366
|
-
for (let n = 0; n <
|
|
363
|
+
})), G = f(() => Math.max(...Qt.value.map((e) => e.values.length)));
|
|
364
|
+
function $t(e) {
|
|
365
|
+
let t = e.map(() => Array(G.value).fill(null));
|
|
366
|
+
for (let n = 0; n < G.value; n += 1) {
|
|
367
367
|
let r = e.map((e, r) => ({
|
|
368
368
|
seriesIndex: r,
|
|
369
369
|
value: e.values?.[n],
|
|
@@ -377,37 +377,37 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
377
377
|
}
|
|
378
378
|
return t;
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function en() {
|
|
381
381
|
let e = 0;
|
|
382
|
-
return
|
|
382
|
+
return kt.value && (e = Array.from(kt.value.querySelectorAll("tspan")).reduce((e, t) => {
|
|
383
383
|
let n = t.getComputedTextLength();
|
|
384
384
|
return n > e ? n : e;
|
|
385
385
|
}, 0)), e;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function tn() {
|
|
388
388
|
let e = 0;
|
|
389
|
-
return
|
|
389
|
+
return At.value && (e = Array.from(At.value.querySelectorAll("tspan")).reduce((e, t) => {
|
|
390
390
|
let n = t.getComputedTextLength();
|
|
391
391
|
return n > e ? n : e;
|
|
392
392
|
}, 0)), e;
|
|
393
393
|
}
|
|
394
|
-
let
|
|
395
|
-
|
|
394
|
+
let nn = S(0), rn = Ce((e) => {
|
|
395
|
+
nn.value = e;
|
|
396
396
|
}, 100);
|
|
397
397
|
Ve((e) => {
|
|
398
|
-
let t =
|
|
398
|
+
let t = jt.value;
|
|
399
399
|
if (!t) return;
|
|
400
400
|
let n = new ResizeObserver((e) => {
|
|
401
|
-
|
|
401
|
+
rn(e[0].contentRect.height);
|
|
402
402
|
});
|
|
403
403
|
n.observe(t), e(() => n.disconnect());
|
|
404
404
|
}), Fe(() => {
|
|
405
|
-
|
|
405
|
+
nn.value = 0;
|
|
406
406
|
});
|
|
407
|
-
let
|
|
408
|
-
let e =
|
|
407
|
+
let an = f(() => {
|
|
408
|
+
let e = I.value.timeLabels;
|
|
409
409
|
if (!e.show) return 0;
|
|
410
|
-
let t = e.fontSize, n = e.rotation, r = Math.PI / 180 * n, i =
|
|
410
|
+
let t = e.fontSize, n = e.rotation, r = Math.PI / 180 * n, i = Y.value || [];
|
|
411
411
|
if (!i.length) return 0;
|
|
412
412
|
let a = i.reduce((e, t) => {
|
|
413
413
|
let n = String(t?.text ?? "").split("\n").length;
|
|
@@ -417,8 +417,8 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
417
417
|
return Math.max(e, n);
|
|
418
418
|
}, 0), s = t * 1.3 * a, c = o * t * (o === 1 ? 1 : .6), l = Math.abs(Math.sin(r)) * c + Math.abs(Math.cos(r)) * s, u = t * .3;
|
|
419
419
|
return Math.max(0, l + Math.abs(e.offsetY) + u);
|
|
420
|
-
}),
|
|
421
|
-
let { height: e, width: t } =
|
|
420
|
+
}), K = f(() => {
|
|
421
|
+
let { height: e, width: t } = H.value, { right: n, left: r } = H.value.paddingRatio, i = en(), a = tn(), o = L.value.padding.top, s = t - t * n - a, c = t * r + i, l = t - t * n - t * r - i - a, u = e - o - L.value.padding.bottom - an.value, ee = o + u, te = o + u, ne = Math.max(0, e);
|
|
422
422
|
return {
|
|
423
423
|
chartHeight: te,
|
|
424
424
|
chartWidth: Math.max(0, t),
|
|
@@ -428,36 +428,36 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
428
428
|
left: Math.max(0, c),
|
|
429
429
|
width: Math.max(0, l),
|
|
430
430
|
height: Math.max(0, u),
|
|
431
|
-
unitH: Math.max(0, u) /
|
|
432
|
-
unitW: Math.max(0, l) /
|
|
431
|
+
unitH: Math.max(0, u) / Qt.value.length,
|
|
432
|
+
unitW: Math.max(0, l) / G.value,
|
|
433
433
|
svgHeight: ne
|
|
434
434
|
};
|
|
435
|
-
}),
|
|
436
|
-
if (!vt.value && !
|
|
437
|
-
let e = Qt
|
|
438
|
-
return
|
|
435
|
+
}), q = f(() => {
|
|
436
|
+
if (!vt.value && !Pt.value) return [];
|
|
437
|
+
let e = $t(Qt.value);
|
|
438
|
+
return Qt.value.map((t, n) => ({
|
|
439
439
|
...t,
|
|
440
440
|
positions: e[n]
|
|
441
441
|
})).map((e) => {
|
|
442
442
|
let t = e.positions.map((t, n) => {
|
|
443
|
-
let r = ie(F.value.
|
|
444
|
-
p: F.value.
|
|
443
|
+
let r = ie(F.value.labels.formatter, e.values[n], u({
|
|
444
|
+
p: F.value.labels.prefix,
|
|
445
445
|
v: e.values[n],
|
|
446
|
-
s: F.value.
|
|
447
|
-
r: F.value.
|
|
446
|
+
s: F.value.labels.suffix,
|
|
447
|
+
r: F.value.labels.rounding
|
|
448
448
|
}));
|
|
449
449
|
return {
|
|
450
450
|
name: e.name,
|
|
451
451
|
id: e.id,
|
|
452
|
-
x:
|
|
453
|
-
y:
|
|
452
|
+
x: K.value.left + n * K.value.unitW + K.value.unitW / 2,
|
|
453
|
+
y: K.value.top + t * K.value.unitH + K.value.unitH / 2,
|
|
454
454
|
value: e.values[n],
|
|
455
455
|
displayValue: r,
|
|
456
456
|
rank: e.positions[n] + 1,
|
|
457
457
|
color: e.color,
|
|
458
|
-
labelColor: F.value.
|
|
458
|
+
labelColor: F.value.labels.color === "auto" ? se(e.color) : c(F.value.labels.color) ?? se(e.color)
|
|
459
459
|
};
|
|
460
|
-
}), n = t.filter((e) => r(e.value)), i =
|
|
460
|
+
}), n = t.filter((e) => r(e.value)), i = I.value.lines.smooth ? o(n) : l(n);
|
|
461
461
|
return {
|
|
462
462
|
...e,
|
|
463
463
|
coordinates: t,
|
|
@@ -465,7 +465,7 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
465
465
|
};
|
|
466
466
|
});
|
|
467
467
|
});
|
|
468
|
-
f(() =>
|
|
468
|
+
f(() => q.value.flatMap((e, t) => e.coordinates.map((n, r) => ({
|
|
469
469
|
...n,
|
|
470
470
|
pointIndex: r,
|
|
471
471
|
seriesIndex: t,
|
|
@@ -473,7 +473,7 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
473
473
|
seriesName: e.name,
|
|
474
474
|
pointId: `${e.id}_${r}`
|
|
475
475
|
})).filter((e) => r(e.value))));
|
|
476
|
-
function
|
|
476
|
+
function on(e, t, n, r) {
|
|
477
477
|
let i = e.toSorted((e, t) => e.y - t.y);
|
|
478
478
|
for (let e = 1; e < i.length; e += 1) {
|
|
479
479
|
let n = i[e - 1], r = i[e];
|
|
@@ -493,39 +493,39 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
493
493
|
}
|
|
494
494
|
return i;
|
|
495
495
|
}
|
|
496
|
-
let
|
|
496
|
+
let sn = f(() => {
|
|
497
497
|
let e = [], t = [];
|
|
498
|
-
|
|
498
|
+
q.value.forEach((n) => {
|
|
499
499
|
let r = n.coordinates.filter((e) => Number.isFinite(e.rank));
|
|
500
500
|
if (!r.length) return;
|
|
501
501
|
e.push({ ...r[0] });
|
|
502
502
|
let i = r[r.length - 1];
|
|
503
503
|
t.push({ ...i });
|
|
504
504
|
});
|
|
505
|
-
let n =
|
|
505
|
+
let n = I.value.nameLabels.fontSize, r = n * 1.4, i = K.value.top + n, a = K.value.bottom - n, o = on(t, r, i, a);
|
|
506
506
|
return {
|
|
507
|
-
left:
|
|
507
|
+
left: on(e, r, i, a),
|
|
508
508
|
right: o
|
|
509
509
|
};
|
|
510
510
|
});
|
|
511
|
-
function
|
|
512
|
-
let t = F.value.
|
|
511
|
+
function cn(e) {
|
|
512
|
+
let t = F.value.labels.fontSize * .4, n = e.displayValue, r = n.length * (F.value.labels.fontSize * (n.length === 1 ? 1 : .6)), i = F.value.labels.fontSize, a = r + t * 2, o = i + t * 2, s = e.x - a / 2, c = e.y - o / 2, l = F.value.strokeWidth;
|
|
513
513
|
return {
|
|
514
514
|
x: s - l / 2,
|
|
515
515
|
y: c - l / 2,
|
|
516
516
|
width: a + l,
|
|
517
517
|
height: o + l,
|
|
518
518
|
fill: e.color,
|
|
519
|
-
stroke: F.value.
|
|
519
|
+
stroke: F.value.stroke,
|
|
520
520
|
"stroke-width": l,
|
|
521
521
|
rx: o / 2
|
|
522
522
|
};
|
|
523
523
|
}
|
|
524
|
-
let
|
|
524
|
+
let J = S([]), ln = 0;
|
|
525
525
|
Ve(() => {
|
|
526
|
-
let e = ++
|
|
526
|
+
let e = ++ln, t = I.value.timeLabels, n = t.values, r = t.datetimeFormatter, i = G.value;
|
|
527
527
|
if (!i || !Array.isArray(n) || n.length === 0) {
|
|
528
|
-
|
|
528
|
+
J.value = [];
|
|
529
529
|
return;
|
|
530
530
|
}
|
|
531
531
|
(async () => {
|
|
@@ -536,70 +536,70 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
536
536
|
start: 0,
|
|
537
537
|
end: i
|
|
538
538
|
});
|
|
539
|
-
e ===
|
|
539
|
+
e === ln && (J.value = t);
|
|
540
540
|
})();
|
|
541
541
|
});
|
|
542
|
-
let
|
|
543
|
-
let e =
|
|
542
|
+
let Y = f(() => {
|
|
543
|
+
let e = I.value.timeLabels, t = J.value || [], n = J.value || [], r = G.value, i = t.map((e) => e?.text ?? ""), a = n.map((e) => e?.text ?? "");
|
|
544
544
|
return ne(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Number(e.modulo) || 1), i, a, 0, null, r);
|
|
545
|
-
}),
|
|
545
|
+
}), un = f(() => H.value.width), dn = f(() => H.value.height), fn = f(() => ({
|
|
546
546
|
start: 0,
|
|
547
|
-
end:
|
|
548
|
-
})),
|
|
547
|
+
end: G.value
|
|
548
|
+
})), X = f(() => [...q.value].map((e) => {
|
|
549
549
|
let t = [...e.coordinates].filter((e) => r(e.value)).at(-1);
|
|
550
550
|
return {
|
|
551
551
|
...e,
|
|
552
552
|
navigationRank: t?.rank ?? Infinity
|
|
553
553
|
};
|
|
554
554
|
}).sort((e, t) => e.navigationRank - t.navigationRank));
|
|
555
|
-
function fn() {
|
|
556
|
-
P.value = null, jt.value = !0;
|
|
557
|
-
}
|
|
558
555
|
function pn() {
|
|
559
|
-
|
|
556
|
+
N.value = null, Mt.value = !0;
|
|
557
|
+
}
|
|
558
|
+
function mn() {
|
|
559
|
+
gn(), Mt.value = !1;
|
|
560
560
|
}
|
|
561
|
-
function
|
|
562
|
-
let n =
|
|
561
|
+
function hn(e, t) {
|
|
562
|
+
let n = X.value.length;
|
|
563
563
|
return n ? e === null || e < 0 || e >= n ? 0 : t === "previous" ? (e - 1 + n) % n : (e + 1) % n : null;
|
|
564
564
|
}
|
|
565
|
-
function
|
|
566
|
-
if (
|
|
567
|
-
let e =
|
|
565
|
+
function gn() {
|
|
566
|
+
if (N.value !== null) {
|
|
567
|
+
let e = X.value[N.value];
|
|
568
568
|
e && $(e, e);
|
|
569
569
|
}
|
|
570
|
-
|
|
570
|
+
N.value = null, M.value = null;
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
if (!
|
|
572
|
+
function _n(e) {
|
|
573
|
+
if (!B.value || vn.value || document.activeElement !== B.value || !X.value.length) return;
|
|
574
574
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
575
575
|
if (!t && !n && !r && !i) return;
|
|
576
576
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
577
|
-
|
|
577
|
+
gn();
|
|
578
578
|
return;
|
|
579
579
|
}
|
|
580
580
|
if (r) {
|
|
581
|
-
if (
|
|
582
|
-
let e =
|
|
581
|
+
if (N.value === null) return;
|
|
582
|
+
let e = X.value[N.value];
|
|
583
583
|
if (!e) return;
|
|
584
|
-
|
|
584
|
+
Pn(e, e);
|
|
585
585
|
return;
|
|
586
586
|
}
|
|
587
|
-
let a =
|
|
588
|
-
a === null ? a = 0 : t ? a =
|
|
589
|
-
let o =
|
|
590
|
-
o && (
|
|
587
|
+
let a = N.value;
|
|
588
|
+
a === null ? a = 0 : t ? a = hn(a, "previous") : n && (a = hn(a, "next"));
|
|
589
|
+
let o = X.value[a];
|
|
590
|
+
o && (N.value = a, Q(o, o));
|
|
591
591
|
}
|
|
592
|
-
let
|
|
593
|
-
head:
|
|
594
|
-
body:
|
|
595
|
-
caption:
|
|
596
|
-
notice:
|
|
592
|
+
let Z = f(() => ({
|
|
593
|
+
head: En.value.head,
|
|
594
|
+
body: q.value.map((e) => [e.name, ...e.coordinates.map((e) => r(e.value) ? `${e.displayValue} (${e.rank})` : "-")]),
|
|
595
|
+
caption: P.value.a11y.translations.tableCaption,
|
|
596
|
+
notice: P.value.a11y.translations.tableAvailable
|
|
597
597
|
}));
|
|
598
598
|
be({
|
|
599
|
-
timeLabelsEls:
|
|
600
|
-
timeLabels:
|
|
601
|
-
slicer:
|
|
602
|
-
configRef:
|
|
599
|
+
timeLabelsEls: jt,
|
|
600
|
+
timeLabels: J,
|
|
601
|
+
slicer: fn,
|
|
602
|
+
configRef: P,
|
|
603
603
|
rotationPath: [
|
|
604
604
|
"style",
|
|
605
605
|
"chart",
|
|
@@ -616,101 +616,101 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
616
616
|
"enable"
|
|
617
617
|
],
|
|
618
618
|
isAutoSize: !1,
|
|
619
|
-
width:
|
|
620
|
-
height:
|
|
621
|
-
rotation:
|
|
619
|
+
width: un,
|
|
620
|
+
height: dn,
|
|
621
|
+
rotation: I.value.timeLabels.autoRotate.angle
|
|
622
622
|
});
|
|
623
|
-
let
|
|
624
|
-
function
|
|
625
|
-
|
|
623
|
+
let vn = S(!1);
|
|
624
|
+
function yn() {
|
|
625
|
+
vn.value = !vn.value;
|
|
626
626
|
}
|
|
627
|
-
function
|
|
628
|
-
|
|
627
|
+
function bn(e) {
|
|
628
|
+
Ct.value = e, yt.value += 1;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
631
|
-
|
|
630
|
+
function xn() {
|
|
631
|
+
V.value.showTable = !V.value.showTable;
|
|
632
632
|
}
|
|
633
|
-
Be(() =>
|
|
634
|
-
|
|
633
|
+
Be(() => V.value.showTable, (e) => {
|
|
634
|
+
P.value.table.show || (e && P.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
635
635
|
});
|
|
636
|
-
function
|
|
637
|
-
|
|
636
|
+
function Sn() {
|
|
637
|
+
V.value.showTable = !1, Dt.value && Dt.value.setTableIconState(!1);
|
|
638
638
|
}
|
|
639
|
-
function
|
|
640
|
-
return
|
|
639
|
+
function Cn() {
|
|
640
|
+
return q.value;
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function wn(e = null) {
|
|
643
643
|
let r = [
|
|
644
|
-
[
|
|
645
|
-
[
|
|
644
|
+
[L.value.title.text],
|
|
645
|
+
[L.value.title.subtitle.text],
|
|
646
646
|
[""]
|
|
647
|
-
], i = ["", ...
|
|
647
|
+
], i = ["", ...Y.value.map((e) => e?.text ?? "")], a = q.value.map((e) => [e.name, ...e.coordinates.map((e) => `${e.displayValue}`)]), o = q.value.map((e) => [e.name, ...e.coordinates.map((e) => `${e.rank}`)]), s = r.concat([[P.value.table.columnNames.values]]).concat([i]).concat(a).concat([
|
|
648
648
|
[""],
|
|
649
|
-
[
|
|
649
|
+
[P.value.table.columnNames.ranking],
|
|
650
650
|
[i]
|
|
651
651
|
]).concat(o), c = n(s);
|
|
652
652
|
e ? e(c) : t({
|
|
653
653
|
csvContent: c,
|
|
654
|
-
title:
|
|
654
|
+
title: L.value.title.text || "vue-ui-bump"
|
|
655
655
|
});
|
|
656
656
|
}
|
|
657
|
-
let
|
|
658
|
-
let e =
|
|
657
|
+
let Tn = f(() => {
|
|
658
|
+
let e = P.value.table.useDialog && !P.value.table.show, t = V.value.showTable;
|
|
659
659
|
return {
|
|
660
660
|
component: e ? ke : lt,
|
|
661
|
-
title: `${
|
|
661
|
+
title: `${L.value.title.text}${L.value.title.subtitle.text ? `: ${L.value.title.subtitle.text}` : ""}`,
|
|
662
662
|
props: e ? {
|
|
663
|
-
backgroundColor:
|
|
664
|
-
color:
|
|
665
|
-
headerColor:
|
|
666
|
-
headerBg:
|
|
667
|
-
isFullscreen:
|
|
663
|
+
backgroundColor: P.value.table.th.backgroundColor,
|
|
664
|
+
color: P.value.table.th.color,
|
|
665
|
+
headerColor: P.value.table.th.color,
|
|
666
|
+
headerBg: P.value.table.th.backgroundColor,
|
|
667
|
+
isFullscreen: Ct.value,
|
|
668
668
|
fullscreenParent: k.value,
|
|
669
669
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
670
|
-
isCursorPointer:
|
|
670
|
+
isCursorPointer: z.value
|
|
671
671
|
} : {
|
|
672
672
|
hideDetails: !0,
|
|
673
673
|
config: {
|
|
674
674
|
open: t,
|
|
675
675
|
maxHeight: 1e4,
|
|
676
676
|
body: {
|
|
677
|
-
backgroundColor:
|
|
678
|
-
color:
|
|
677
|
+
backgroundColor: L.value.backgroundColor,
|
|
678
|
+
color: L.value.color
|
|
679
679
|
},
|
|
680
680
|
head: {
|
|
681
|
-
backgroundColor:
|
|
682
|
-
color:
|
|
681
|
+
backgroundColor: L.value.backgroundColor,
|
|
682
|
+
color: L.value.color
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
686
|
};
|
|
687
|
-
}),
|
|
688
|
-
head: [""].concat(
|
|
689
|
-
body:
|
|
687
|
+
}), En = f(() => ({
|
|
688
|
+
head: [""].concat(Y.value.map((e) => e.text)),
|
|
689
|
+
body: q.value.map((e, t) => [e.name, ...e.coordinates.map((e) => `${e.displayValue} (${e.rank})`)]),
|
|
690
690
|
config: {
|
|
691
691
|
th: {
|
|
692
|
-
backgroundColor:
|
|
693
|
-
color:
|
|
694
|
-
outline:
|
|
692
|
+
backgroundColor: P.value.table.th.backgroundColor,
|
|
693
|
+
color: P.value.table.th.color,
|
|
694
|
+
outline: P.value.table.th.outline
|
|
695
695
|
},
|
|
696
696
|
td: {
|
|
697
|
-
backgroundColor:
|
|
698
|
-
color:
|
|
699
|
-
outline:
|
|
697
|
+
backgroundColor: P.value.table.td.backgroundColor,
|
|
698
|
+
color: P.value.table.td.color,
|
|
699
|
+
outline: P.value.table.td.outline
|
|
700
700
|
},
|
|
701
|
-
breakpoint:
|
|
701
|
+
breakpoint: P.value.table.responsiveBreakpoint
|
|
702
702
|
},
|
|
703
|
-
colNames: [
|
|
704
|
-
})),
|
|
705
|
-
svg:
|
|
706
|
-
title:
|
|
703
|
+
colNames: [P.value.table.columnNames.series]
|
|
704
|
+
})), Dn = f(() => L.value.backgroundColor), On = f(() => L.value.title), { isCallbackImaging: kn, isCallbackSvg: An, generateSvg: jn, onGenerateImage: Mn } = ye({
|
|
705
|
+
svg: B,
|
|
706
|
+
title: On,
|
|
707
707
|
legend: null,
|
|
708
708
|
legendItems: null,
|
|
709
|
-
backgroundColor:
|
|
710
|
-
getSvgCallback: () =>
|
|
711
|
-
generateImage:
|
|
709
|
+
backgroundColor: Dn,
|
|
710
|
+
getSvgCallback: () => P.value.userOptions.callbacks.svg,
|
|
711
|
+
generateImage: Kt
|
|
712
712
|
});
|
|
713
|
-
async function
|
|
713
|
+
async function Nn({ scale: e = 2 } = {}) {
|
|
714
714
|
if (!k.value) return;
|
|
715
715
|
let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await img({
|
|
716
716
|
domElement: k.value,
|
|
@@ -721,54 +721,54 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
721
721
|
return {
|
|
722
722
|
imageUri: i,
|
|
723
723
|
base64: a,
|
|
724
|
-
title:
|
|
724
|
+
title: L.value.title.text,
|
|
725
725
|
width: t,
|
|
726
726
|
height: n,
|
|
727
727
|
aspectRatio: r
|
|
728
728
|
};
|
|
729
729
|
}
|
|
730
730
|
function Q(e, t) {
|
|
731
|
-
|
|
731
|
+
M.value = t.id, P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
732
732
|
datapoint: e,
|
|
733
733
|
seriesIndex: e?.pointIndex ?? null
|
|
734
734
|
});
|
|
735
735
|
}
|
|
736
736
|
function $(e, t) {
|
|
737
|
-
|
|
737
|
+
M.value = null, P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
738
738
|
datapoint: e,
|
|
739
739
|
seriesIndex: e?.pointIndex ?? null
|
|
740
740
|
});
|
|
741
741
|
}
|
|
742
|
-
function
|
|
743
|
-
|
|
742
|
+
function Pn(e, t) {
|
|
743
|
+
P.value.events.datapointClick && P.value.events.datapointClick({
|
|
744
744
|
datapoint: e,
|
|
745
745
|
seriesIndex: e?.pointIndex ?? null
|
|
746
746
|
});
|
|
747
747
|
}
|
|
748
|
-
async function
|
|
748
|
+
async function Fn() {
|
|
749
749
|
if (_t("copyAlt", {
|
|
750
|
-
config:
|
|
751
|
-
dataset:
|
|
752
|
-
}), !
|
|
750
|
+
config: P.value,
|
|
751
|
+
dataset: q.value
|
|
752
|
+
}), !P.value.userOptions.callbacks.altCopy) {
|
|
753
753
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
754
754
|
return;
|
|
755
755
|
}
|
|
756
|
-
await Promise.resolve(
|
|
757
|
-
config:
|
|
758
|
-
dataset:
|
|
756
|
+
await Promise.resolve(P.value.userOptions.callbacks.altCopy({
|
|
757
|
+
config: P.value,
|
|
758
|
+
dataset: q.value
|
|
759
759
|
}));
|
|
760
760
|
}
|
|
761
761
|
return Se({
|
|
762
|
-
getData:
|
|
763
|
-
getImage:
|
|
764
|
-
generatePdf:
|
|
765
|
-
generateCsv:
|
|
766
|
-
generateImage:
|
|
767
|
-
generateSvg:
|
|
768
|
-
toggleTable:
|
|
769
|
-
toggleAnnotator:
|
|
770
|
-
toggleFullscreen:
|
|
771
|
-
copyAlt:
|
|
762
|
+
getData: Cn,
|
|
763
|
+
getImage: Nn,
|
|
764
|
+
generatePdf: Gt,
|
|
765
|
+
generateCsv: wn,
|
|
766
|
+
generateImage: Kt,
|
|
767
|
+
generateSvg: jn,
|
|
768
|
+
toggleTable: xn,
|
|
769
|
+
toggleAnnotator: yn,
|
|
770
|
+
toggleFullscreen: bn,
|
|
771
|
+
copyAlt: Fn
|
|
772
772
|
}), (e, t) => (x(), h("div", {
|
|
773
773
|
id: `bump_${A.value}`,
|
|
774
774
|
ref_key: "bumpChart",
|
|
@@ -776,23 +776,23 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
776
776
|
class: Pe({
|
|
777
777
|
"vue-data-ui-component": !0,
|
|
778
778
|
"vue-ui-bump": !0,
|
|
779
|
-
"vue-data-ui-wrapper-fullscreen":
|
|
779
|
+
"vue-data-ui-wrapper-fullscreen": Ct.value
|
|
780
780
|
}),
|
|
781
|
-
style: b(`background:${
|
|
782
|
-
onMouseenter:
|
|
783
|
-
onMouseleave:
|
|
781
|
+
style: b(`background:${L.value.backgroundColor};color:${L.value.color};font-family:${P.value.style.fontFamily}; position: relative; ${P.value.responsive ? "height: 100%" : ""}`),
|
|
782
|
+
onMouseenter: Vt,
|
|
783
|
+
onMouseleave: Ht
|
|
784
784
|
}, [
|
|
785
785
|
g("p", {
|
|
786
786
|
id: `chart-instructions-${A.value}`,
|
|
787
787
|
class: "sr-only"
|
|
788
|
-
}, T(
|
|
789
|
-
|
|
788
|
+
}, T(P.value.a11y.translations.keyboardNavigation), 9, We),
|
|
789
|
+
Z.value.body.length ? (x(), p(Te, {
|
|
790
790
|
key: 0,
|
|
791
791
|
uid: A.value,
|
|
792
|
-
head:
|
|
793
|
-
body:
|
|
794
|
-
caption:
|
|
795
|
-
notice:
|
|
792
|
+
head: Z.value.head,
|
|
793
|
+
body: Z.value.body,
|
|
794
|
+
caption: Z.value.caption,
|
|
795
|
+
notice: Z.value.notice
|
|
796
796
|
}, null, 8, [
|
|
797
797
|
"uid",
|
|
798
798
|
"head",
|
|
@@ -800,15 +800,15 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
800
800
|
"caption",
|
|
801
801
|
"notice"
|
|
802
802
|
])) : m("", !0),
|
|
803
|
-
|
|
803
|
+
R.value.buttons.annotator ? (x(), p(E(dt), {
|
|
804
804
|
key: 1,
|
|
805
|
-
svgRef: E(
|
|
806
|
-
backgroundColor:
|
|
807
|
-
color:
|
|
808
|
-
active:
|
|
809
|
-
isCursorPointer:
|
|
810
|
-
palette:
|
|
811
|
-
onClose:
|
|
805
|
+
svgRef: E(B),
|
|
806
|
+
backgroundColor: L.value.backgroundColor,
|
|
807
|
+
color: L.value.color,
|
|
808
|
+
active: vn.value,
|
|
809
|
+
isCursorPointer: z.value,
|
|
810
|
+
palette: R.value.annotatorPalette,
|
|
811
|
+
onClose: yn
|
|
812
812
|
}, {
|
|
813
813
|
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
814
814
|
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(v({ color: t })), void 0, !0)]),
|
|
@@ -826,68 +826,68 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
826
826
|
"palette"
|
|
827
827
|
])) : m("", !0),
|
|
828
828
|
w(e.$slots, "userConfig", {}, void 0, !0),
|
|
829
|
-
|
|
829
|
+
qt.value ? (x(), h("div", {
|
|
830
830
|
key: 2,
|
|
831
831
|
ref_key: "noTitle",
|
|
832
832
|
ref: xt,
|
|
833
833
|
class: "vue-data-ui-no-title-space",
|
|
834
834
|
style: "height:36px; width: 100%;background:transparent"
|
|
835
835
|
}, null, 512)) : m("", !0),
|
|
836
|
-
|
|
836
|
+
L.value.title.text ? (x(), h("div", {
|
|
837
837
|
key: 3,
|
|
838
838
|
ref_key: "chartTitle",
|
|
839
839
|
ref: bt,
|
|
840
840
|
style: "width:100%;background:transparent;"
|
|
841
841
|
}, [(x(), p(xe, {
|
|
842
|
-
key: `title_${
|
|
842
|
+
key: `title_${Tt.value}`,
|
|
843
843
|
config: {
|
|
844
844
|
title: {
|
|
845
845
|
cy: "bump-title",
|
|
846
|
-
...
|
|
846
|
+
...L.value.title
|
|
847
847
|
},
|
|
848
848
|
subtitle: {
|
|
849
849
|
cy: "bump-subtitle",
|
|
850
|
-
...
|
|
850
|
+
...L.value.title.subtitle
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
853
|
}, null, 8, ["config"]))], 512)) : m("", !0),
|
|
854
|
-
|
|
854
|
+
R.value.show && vt.value && (E(Bt) || E(Rt)) ? (x(), p(E(ft), {
|
|
855
855
|
ref_key: "userOptionsRef",
|
|
856
|
-
ref:
|
|
856
|
+
ref: Dt,
|
|
857
857
|
key: `user_option_${yt.value}`,
|
|
858
|
-
backgroundColor:
|
|
859
|
-
color:
|
|
860
|
-
isPrinting: E(
|
|
861
|
-
isImaging: E(
|
|
858
|
+
backgroundColor: L.value.backgroundColor,
|
|
859
|
+
color: L.value.color,
|
|
860
|
+
isPrinting: E(Ut),
|
|
861
|
+
isImaging: E(Wt),
|
|
862
862
|
uid: A.value,
|
|
863
863
|
hasTooltip: !1,
|
|
864
|
-
hasPdf:
|
|
865
|
-
hasImg:
|
|
866
|
-
hasSvg:
|
|
867
|
-
hasXls:
|
|
868
|
-
hasTable:
|
|
864
|
+
hasPdf: R.value.buttons.pdf,
|
|
865
|
+
hasImg: R.value.buttons.img,
|
|
866
|
+
hasSvg: R.value.buttons.svg,
|
|
867
|
+
hasXls: R.value.buttons.csv,
|
|
868
|
+
hasTable: R.value.buttons.table,
|
|
869
869
|
hasLabel: !1,
|
|
870
|
-
hasAltCopy:
|
|
871
|
-
hasFullscreen:
|
|
872
|
-
isFullcreen:
|
|
870
|
+
hasAltCopy: R.value.buttons.altCopy,
|
|
871
|
+
hasFullscreen: R.value.buttons.fullscreen,
|
|
872
|
+
isFullcreen: Ct.value,
|
|
873
873
|
chartElement: k.value,
|
|
874
|
-
position:
|
|
875
|
-
titles: { ...
|
|
876
|
-
hasAnnotator:
|
|
877
|
-
isAnnotation:
|
|
878
|
-
callbacks:
|
|
879
|
-
printScale:
|
|
880
|
-
tableDialog:
|
|
881
|
-
isCursorPointer:
|
|
882
|
-
onToggleFullscreen:
|
|
883
|
-
onGeneratePdf: E(
|
|
884
|
-
onGenerateCsv:
|
|
885
|
-
onGenerateImage: E(
|
|
886
|
-
onGenerateSvg: E(
|
|
887
|
-
onToggleTable:
|
|
888
|
-
onToggleAnnotator:
|
|
889
|
-
onCopyAlt:
|
|
890
|
-
style: b({ visibility: E(
|
|
874
|
+
position: R.value.position,
|
|
875
|
+
titles: { ...R.value.buttonTitles },
|
|
876
|
+
hasAnnotator: R.value.buttons.annotator,
|
|
877
|
+
isAnnotation: vn.value,
|
|
878
|
+
callbacks: R.value.callbacks,
|
|
879
|
+
printScale: R.value.print.scale,
|
|
880
|
+
tableDialog: P.value.table.useDialog,
|
|
881
|
+
isCursorPointer: z.value,
|
|
882
|
+
onToggleFullscreen: bn,
|
|
883
|
+
onGeneratePdf: E(Gt),
|
|
884
|
+
onGenerateCsv: wn,
|
|
885
|
+
onGenerateImage: E(Mn),
|
|
886
|
+
onGenerateSvg: E(jn),
|
|
887
|
+
onToggleTable: xn,
|
|
888
|
+
onToggleAnnotator: yn,
|
|
889
|
+
onCopyAlt: Fn,
|
|
890
|
+
style: b({ visibility: E(Bt) ? E(Rt) ? "visible" : "hidden" : "visible" })
|
|
891
891
|
}, Ae({ _: 2 }, [
|
|
892
892
|
e.$slots.menuIcon ? {
|
|
893
893
|
name: "menuIcon",
|
|
@@ -956,66 +956,66 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
956
956
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasAltCopy.hasFullscreen.isFullcreen.chartElement.position.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : m("", !0),
|
|
957
957
|
g("div", Ge, [(x(), h("svg", {
|
|
958
958
|
ref_key: "svgRef",
|
|
959
|
-
ref:
|
|
959
|
+
ref: B,
|
|
960
960
|
xmlns: E(ce),
|
|
961
961
|
"aria-describedby": `chart-instructions-${A.value}`,
|
|
962
|
-
viewBox: `0 0 ${
|
|
962
|
+
viewBox: `0 0 ${K.value.chartWidth <= 0 ? 10 : K.value.chartWidth} ${K.value.svgHeight <= 0 ? 10 : K.value.svgHeight}`,
|
|
963
963
|
class: Pe({
|
|
964
|
-
"vue-data-ui-loading": E(
|
|
965
|
-
"no-transition": !
|
|
964
|
+
"vue-data-ui-loading": E(Pt),
|
|
965
|
+
"no-transition": !P.value.useCssAnimation
|
|
966
966
|
}),
|
|
967
|
-
style: b(`max-width:100%;overflow:visible;background:transparent;color:${
|
|
967
|
+
style: b(`max-width:100%;overflow:visible;background:transparent;color:${L.value.color}`),
|
|
968
968
|
role: "img",
|
|
969
969
|
"aria-live": "polite",
|
|
970
970
|
preserveAspectRatio: "xMidYMid",
|
|
971
971
|
tabindex: "0",
|
|
972
|
-
onFocus:
|
|
973
|
-
onBlur:
|
|
974
|
-
onKeydown:
|
|
972
|
+
onFocus: pn,
|
|
973
|
+
onBlur: mn,
|
|
974
|
+
onKeydown: _n
|
|
975
975
|
}, [
|
|
976
976
|
Me(E(pt)),
|
|
977
977
|
e.$slots["chart-background"] ? (x(), h("foreignObject", {
|
|
978
978
|
key: 0,
|
|
979
|
-
x:
|
|
980
|
-
y:
|
|
981
|
-
width:
|
|
982
|
-
height:
|
|
979
|
+
x: K.value.left,
|
|
980
|
+
y: K.value.top,
|
|
981
|
+
width: K.value.width <= 0 ? 10 : K.value.width,
|
|
982
|
+
height: K.value.height <= 0 ? 10 : K.value.height,
|
|
983
983
|
style: { pointerEvents: "none" }
|
|
984
984
|
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, qe)) : m("", !0),
|
|
985
|
-
(x(!0), h(d, null, C(
|
|
985
|
+
(x(!0), h(d, null, C(q.value, (e) => (x(), h(d, null, [g("path", {
|
|
986
986
|
class: "transition-opacity",
|
|
987
987
|
d: `M${e.path}`,
|
|
988
|
-
stroke:
|
|
989
|
-
"stroke-width":
|
|
988
|
+
stroke: I.value.lines.coatingColor,
|
|
989
|
+
"stroke-width": I.value.lines.strokeWidth + 2,
|
|
990
990
|
"stroke-linecap": "round",
|
|
991
991
|
"stroke-linejoin": "round",
|
|
992
992
|
fill: "none",
|
|
993
|
-
style: b({ opacity:
|
|
994
|
-
onMouseenter: (t) =>
|
|
995
|
-
onMouseleave: t[0] ||= (e) =>
|
|
993
|
+
style: b({ opacity: M.value == null || M.value === e.id ? 1 : .1 }),
|
|
994
|
+
onMouseenter: (t) => M.value = e.id,
|
|
995
|
+
onMouseleave: t[0] ||= (e) => M.value = null
|
|
996
996
|
}, null, 44, Je), g("path", {
|
|
997
997
|
class: "transition-opacity",
|
|
998
998
|
d: `M${e.path}`,
|
|
999
999
|
stroke: e.color,
|
|
1000
|
-
"stroke-width":
|
|
1000
|
+
"stroke-width": I.value.lines.strokeWidth,
|
|
1001
1001
|
"stroke-linecap": "round",
|
|
1002
1002
|
"stroke-linejoin": "round",
|
|
1003
1003
|
fill: "none",
|
|
1004
|
-
style: b({ opacity:
|
|
1004
|
+
style: b({ opacity: M.value == null || M.value === e.id ? 1 : .1 }),
|
|
1005
1005
|
onMouseenter: (t) => Q(e, e),
|
|
1006
1006
|
onMouseleave: (t) => $(e, e),
|
|
1007
|
-
onClick: (t) =>
|
|
1007
|
+
onClick: (t) => Pn(e, e)
|
|
1008
1008
|
}, null, 44, Ye)], 64))), 256)),
|
|
1009
|
-
(x(!0), h(d, null, C(
|
|
1010
|
-
F.value.
|
|
1009
|
+
(x(!0), h(d, null, C(q.value, (t) => (x(), h(d, null, [
|
|
1010
|
+
F.value.labels.displayedValue === "rank" ? (x(!0), h(d, { key: 0 }, C(t.coordinates, (e, n) => (x(), h("circle", {
|
|
1011
1011
|
class: "transition-opacity",
|
|
1012
1012
|
cx: e.x,
|
|
1013
1013
|
cy: e.y,
|
|
1014
|
-
r: F.value.
|
|
1014
|
+
r: F.value.radius,
|
|
1015
1015
|
fill: t.color,
|
|
1016
|
-
stroke: F.value.
|
|
1017
|
-
"stroke-width": F.value.
|
|
1018
|
-
style: b({ opacity:
|
|
1016
|
+
stroke: F.value.stroke,
|
|
1017
|
+
"stroke-width": F.value.strokeWidth,
|
|
1018
|
+
style: b({ opacity: M.value == null || M.value === t.id ? 1 : .1 }),
|
|
1019
1019
|
onMouseenter: (r) => Q({
|
|
1020
1020
|
...e,
|
|
1021
1021
|
pointIndex: n
|
|
@@ -1029,24 +1029,24 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
1029
1029
|
pointIndex: n
|
|
1030
1030
|
}, t)
|
|
1031
1031
|
}, null, 44, Xe))), 256)) : m("", !0),
|
|
1032
|
-
F.value.
|
|
1032
|
+
F.value.labels.show && F.value.labels.displayedValue === "rank" ? (x(!0), h(d, { key: 1 }, C(t.coordinates, (e) => (x(), h("text", {
|
|
1033
1033
|
class: "transition-opacity",
|
|
1034
1034
|
x: e.x,
|
|
1035
|
-
y: e.y + F.value.
|
|
1035
|
+
y: e.y + F.value.labels.fontSize / 3,
|
|
1036
1036
|
fill: e.labelColor,
|
|
1037
|
-
"font-size": F.value.
|
|
1037
|
+
"font-size": F.value.labels.fontSize,
|
|
1038
1038
|
"text-anchor": "middle",
|
|
1039
1039
|
style: b({
|
|
1040
1040
|
userSelect: "none",
|
|
1041
1041
|
pointerEvents: "none",
|
|
1042
|
-
opacity:
|
|
1042
|
+
opacity: M.value == null || M.value === t.id ? 1 : .1
|
|
1043
1043
|
})
|
|
1044
1044
|
}, T(e.rank), 13, Ze))), 256)) : m("", !0),
|
|
1045
|
-
F.value.
|
|
1045
|
+
F.value.labels.displayedValue === "value" ? (x(!0), h(d, { key: 2 }, C(t.coordinates, (n) => (x(), h(d, null, [E(r)(n.value) ? (x(), h("rect", Ne({
|
|
1046
1046
|
key: 0,
|
|
1047
1047
|
class: "transition-opacity"
|
|
1048
|
-
}, { ref_for: !0 },
|
|
1049
|
-
style: { opacity:
|
|
1048
|
+
}, { ref_for: !0 }, cn(n), {
|
|
1049
|
+
style: { opacity: M.value == null || M.value === t.id ? 1 : .1 },
|
|
1050
1050
|
onMouseenter: (n) => Q({
|
|
1051
1051
|
...e.point,
|
|
1052
1052
|
pointIndex: e.i
|
|
@@ -1059,144 +1059,144 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
1059
1059
|
...e.point,
|
|
1060
1060
|
pointIndex: e.i
|
|
1061
1061
|
}, t)
|
|
1062
|
-
}), null, 16, Qe)) : m("", !0), E(r)(n.value) && F.value.
|
|
1062
|
+
}), null, 16, Qe)) : m("", !0), E(r)(n.value) && F.value.labels.show ? (x(), h("text", {
|
|
1063
1063
|
key: 1,
|
|
1064
1064
|
class: "transition-opacity",
|
|
1065
1065
|
x: n.x,
|
|
1066
|
-
y: n.y + F.value.
|
|
1066
|
+
y: n.y + F.value.labels.fontSize / 3,
|
|
1067
1067
|
fill: n.labelColor,
|
|
1068
|
-
"font-size": F.value.
|
|
1068
|
+
"font-size": F.value.labels.fontSize,
|
|
1069
1069
|
"text-anchor": "middle",
|
|
1070
1070
|
style: b({
|
|
1071
1071
|
userSelect: "none",
|
|
1072
1072
|
pointerEvents: "none",
|
|
1073
|
-
opacity:
|
|
1073
|
+
opacity: M.value == null || M.value === t.id ? 1 : .1
|
|
1074
1074
|
})
|
|
1075
1075
|
}, T(n.displayValue), 13, $e)) : m("", !0)], 64))), 256)) : m("", !0)
|
|
1076
1076
|
], 64))), 256)),
|
|
1077
|
-
|
|
1077
|
+
I.value.nameLabels.leftLabels.show ? (x(), h("g", {
|
|
1078
1078
|
key: 1,
|
|
1079
1079
|
ref_key: "labelsLeft",
|
|
1080
|
-
ref:
|
|
1081
|
-
}, [(x(!0), h(d, null, C(
|
|
1080
|
+
ref: kt
|
|
1081
|
+
}, [(x(!0), h(d, null, C(sn.value.left.filter((e) => E(r)(e.value)), (e, t) => (x(), h("text", {
|
|
1082
1082
|
class: "transition-opacity",
|
|
1083
|
-
x:
|
|
1084
|
-
y: e.y +
|
|
1085
|
-
fill:
|
|
1086
|
-
"font-size":
|
|
1087
|
-
"font--weight":
|
|
1083
|
+
x: K.value.left,
|
|
1084
|
+
y: e.y + I.value.nameLabels.fontSize / 3,
|
|
1085
|
+
fill: I.value.nameLabels.useSerieColor ? e.color : I.value.nameLabels.color,
|
|
1086
|
+
"font-size": I.value.nameLabels.fontSize,
|
|
1087
|
+
"font--weight": I.value.nameLabels.bold ? "bold" : "normal",
|
|
1088
1088
|
"text-anchor": "end",
|
|
1089
1089
|
innerHTML: E(i)({
|
|
1090
1090
|
content: e.name,
|
|
1091
|
-
fontSize:
|
|
1092
|
-
fill:
|
|
1093
|
-
x:
|
|
1094
|
-
y: e.y +
|
|
1091
|
+
fontSize: I.value.nameLabels.fontSize,
|
|
1092
|
+
fill: I.value.nameLabels.useSerieColor ? e.color : I.value.nameLabels.color,
|
|
1093
|
+
x: K.value.left - I.value.nameLabels.offsetX,
|
|
1094
|
+
y: e.y + I.value.nameLabels.fontSize / 3,
|
|
1095
1095
|
translateY: !0
|
|
1096
1096
|
}),
|
|
1097
|
-
style: b({ opacity:
|
|
1097
|
+
style: b({ opacity: M.value == null || M.value === e.id ? 1 : .1 }),
|
|
1098
1098
|
onMouseenter: (t) => Q(e, e),
|
|
1099
1099
|
onMouseleave: (t) => $(e, e),
|
|
1100
|
-
onClick: (t) =>
|
|
1100
|
+
onClick: (t) => Pn(e, e)
|
|
1101
1101
|
}, null, 44, et))), 256))], 512)) : m("", !0),
|
|
1102
|
-
|
|
1102
|
+
I.value.nameLabels.rightLabels.show ? (x(), h("g", {
|
|
1103
1103
|
key: 2,
|
|
1104
1104
|
ref_key: "labelsRight",
|
|
1105
|
-
ref:
|
|
1106
|
-
}, [(x(!0), h(d, null, C(
|
|
1105
|
+
ref: At
|
|
1106
|
+
}, [(x(!0), h(d, null, C(sn.value.right.filter((e) => E(r)(e.value)), (e, t) => (x(), h("text", {
|
|
1107
1107
|
class: "transition-opacity",
|
|
1108
|
-
x:
|
|
1109
|
-
y: e.y +
|
|
1110
|
-
fill:
|
|
1111
|
-
"font-size":
|
|
1112
|
-
"font--weight":
|
|
1108
|
+
x: K.value.right,
|
|
1109
|
+
y: e.y + I.value.nameLabels.fontSize / 3,
|
|
1110
|
+
fill: I.value.nameLabels.useSerieColor ? e.color : I.value.nameLabels.color,
|
|
1111
|
+
"font-size": I.value.nameLabels.fontSize,
|
|
1112
|
+
"font--weight": I.value.nameLabels.bold ? "bold" : "normal",
|
|
1113
1113
|
"text-anchor": "start",
|
|
1114
1114
|
innerHTML: E(i)({
|
|
1115
1115
|
content: e.name,
|
|
1116
|
-
fontSize:
|
|
1117
|
-
fill:
|
|
1118
|
-
x:
|
|
1119
|
-
y: e.y +
|
|
1116
|
+
fontSize: I.value.nameLabels.fontSize,
|
|
1117
|
+
fill: I.value.nameLabels.useSerieColor ? e.color : I.value.nameLabels.color,
|
|
1118
|
+
x: K.value.right + I.value.nameLabels.offsetX,
|
|
1119
|
+
y: e.y + I.value.nameLabels.fontSize / 3,
|
|
1120
1120
|
translateY: !0
|
|
1121
1121
|
}),
|
|
1122
|
-
style: b({ opacity:
|
|
1122
|
+
style: b({ opacity: M.value == null || M.value === e.id ? 1 : .1 }),
|
|
1123
1123
|
onMouseenter: (t) => Q(e, e),
|
|
1124
1124
|
onMouseleave: (t) => $(e, e),
|
|
1125
|
-
onClick: (t) =>
|
|
1125
|
+
onClick: (t) => Pn(e, e)
|
|
1126
1126
|
}, null, 44, tt))), 256))], 512)) : m("", !0),
|
|
1127
|
-
|
|
1127
|
+
I.value.timeLabels.show ? (x(), h("g", {
|
|
1128
1128
|
key: 3,
|
|
1129
1129
|
ref_key: "timeLabelsEls",
|
|
1130
|
-
ref:
|
|
1131
|
-
}, [e.$slots["time-label"] ? (x(), h("g", nt, [(x(!0), h(d, null, C(
|
|
1132
|
-
x:
|
|
1133
|
-
y:
|
|
1134
|
-
fontSize:
|
|
1135
|
-
fill:
|
|
1136
|
-
transform: `translate(${
|
|
1130
|
+
ref: jt
|
|
1131
|
+
}, [e.$slots["time-label"] ? (x(), h("g", nt, [(x(!0), h(d, null, C(Y.value, (t, n) => (x(), h("g", null, [w(e.$slots, "time-label", Ne({ ref_for: !0 }, {
|
|
1132
|
+
x: K.value.unitW * n + K.value.unitW / 2 + K.value.left,
|
|
1133
|
+
y: K.value.chartHeight + I.value.timeLabels.offsetY,
|
|
1134
|
+
fontSize: I.value.timeLabels.fontSize,
|
|
1135
|
+
fill: I.value.timeLabels.color,
|
|
1136
|
+
transform: `translate(${K.value.unitW * n + K.value.unitW / 2 + K.value.left}, ${K.value.chartHeight + I.value.timeLabels.offsetY}), rotate(${I.value.timeLabels.rotation})`,
|
|
1137
1137
|
absoluteIndex: t.absoluteIndex,
|
|
1138
1138
|
content: t.text,
|
|
1139
|
-
textAnchor:
|
|
1139
|
+
textAnchor: I.value.timeLabels.rotation > 0 ? "start" : L.value.layout.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1140
1140
|
show: !0
|
|
1141
|
-
}), void 0, !0)]))), 256))])) : (x(), h("g", rt, [(x(!0), h(d, null, C(
|
|
1141
|
+
}), void 0, !0)]))), 256))])) : (x(), h("g", rt, [(x(!0), h(d, null, C(Y.value, (e, t) => (x(), h("g", null, [String(e.text).includes("\n") ? (x(), h("text", {
|
|
1142
1142
|
key: t + "-multi",
|
|
1143
|
-
"text-anchor":
|
|
1144
|
-
"font-size":
|
|
1145
|
-
fill:
|
|
1143
|
+
"text-anchor": I.value.timeLabels.rotation > 0 ? "start" : I.value.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1144
|
+
"font-size": I.value.timeLabels.fontSize,
|
|
1145
|
+
fill: I.value.timeLabels.color,
|
|
1146
1146
|
transform: `
|
|
1147
1147
|
translate(
|
|
1148
|
-
${
|
|
1149
|
-
${
|
|
1148
|
+
${K.value.unitW * t + K.value.unitW / 2 + K.value.left},
|
|
1149
|
+
${K.value.chartHeight + I.value.timeLabels.fontSize * 1.3 + I.value.timeLabels.offsetY}
|
|
1150
1150
|
),
|
|
1151
|
-
rotate(${
|
|
1151
|
+
rotate(${I.value.timeLabels.rotation})
|
|
1152
1152
|
`,
|
|
1153
1153
|
innerHTML: E(i)({
|
|
1154
1154
|
content: String(e.text),
|
|
1155
|
-
fontSize:
|
|
1156
|
-
fill:
|
|
1157
|
-
stroke:
|
|
1155
|
+
fontSize: I.value.timeLabels.fontSize,
|
|
1156
|
+
fill: L.value.layout.timeLabels.color,
|
|
1157
|
+
stroke: L.value.backgroundColor,
|
|
1158
1158
|
x: 0,
|
|
1159
1159
|
y: 0
|
|
1160
1160
|
})
|
|
1161
1161
|
}, null, 8, at)) : (x(), h("text", {
|
|
1162
1162
|
class: "vue-data-ui-time-label",
|
|
1163
1163
|
key: t,
|
|
1164
|
-
"text-anchor":
|
|
1165
|
-
"font-size":
|
|
1166
|
-
"font-weight":
|
|
1167
|
-
fill:
|
|
1168
|
-
stroke:
|
|
1164
|
+
"text-anchor": I.value.timeLabels.rotation > 0 ? "start" : I.value.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1165
|
+
"font-size": I.value.timeLabels.fontSize,
|
|
1166
|
+
"font-weight": I.value.timeLabels.bold ? "bold" : "normal",
|
|
1167
|
+
fill: I.value.timeLabels.color,
|
|
1168
|
+
stroke: L.value.backgroundColor,
|
|
1169
1169
|
"stroke-width": "3",
|
|
1170
1170
|
"stroke-linejoin": "round",
|
|
1171
1171
|
"stroke-linecap": "round",
|
|
1172
1172
|
"paint-order": "stroke fill",
|
|
1173
|
-
transform: `translate(${
|
|
1173
|
+
transform: `translate(${K.value.unitW * t + K.value.unitW / 2 + K.value.left}, ${K.value.chartHeight + I.value.timeLabels.offsetY}), rotate(${I.value.timeLabels.rotation})`
|
|
1174
1174
|
}, T(e.text), 9, it))]))), 256))]))], 512)) : m("", !0),
|
|
1175
1175
|
w(e.$slots, "svg", { svg: {
|
|
1176
|
-
drawingArea:
|
|
1177
|
-
data:
|
|
1178
|
-
isPrintingImg: E(
|
|
1179
|
-
isPrintingSvg: E(
|
|
1176
|
+
drawingArea: K.value,
|
|
1177
|
+
data: q.value,
|
|
1178
|
+
isPrintingImg: E(Ut) || E(Wt) || E(kn),
|
|
1179
|
+
isPrintingSvg: E(An)
|
|
1180
1180
|
} }, void 0, !0)
|
|
1181
1181
|
], 46, Ke)), e.$slots.hint ? (x(), h("div", ot, [w(e.$slots, "hint", y(v({
|
|
1182
|
-
hint:
|
|
1183
|
-
isVisible:
|
|
1182
|
+
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1183
|
+
isVisible: Mt.value
|
|
1184
1184
|
})), void 0, !0)])) : m("", !0)]),
|
|
1185
|
-
e.$slots.watermark ? (x(), h("div", st, [w(e.$slots, "watermark", y(v({ isPrinting: E(
|
|
1186
|
-
vt.value &&
|
|
1185
|
+
e.$slots.watermark ? (x(), h("div", st, [w(e.$slots, "watermark", y(v({ isPrinting: E(Ut) || E(Wt) || E(kn) || E(An) })), void 0, !0)])) : m("", !0),
|
|
1186
|
+
vt.value && R.value.buttons.table ? (x(), p(Le(Tn.value.component), Ne({ key: 6 }, Tn.value.props, {
|
|
1187
1187
|
ref_key: "tableUnit",
|
|
1188
|
-
ref:
|
|
1189
|
-
onClose:
|
|
1188
|
+
ref: j,
|
|
1189
|
+
onClose: Sn
|
|
1190
1190
|
}), Ae({
|
|
1191
1191
|
content: D(() => [Me(E(ut), {
|
|
1192
|
-
colNames:
|
|
1193
|
-
head:
|
|
1194
|
-
body:
|
|
1195
|
-
config:
|
|
1196
|
-
title:
|
|
1197
|
-
withCloseButton: !
|
|
1198
|
-
isCursorPointer:
|
|
1199
|
-
onClose:
|
|
1192
|
+
colNames: En.value.colNames,
|
|
1193
|
+
head: En.value.head,
|
|
1194
|
+
body: En.value.body,
|
|
1195
|
+
config: En.value.config,
|
|
1196
|
+
title: P.value.table.useDialog ? "" : Tn.value.title,
|
|
1197
|
+
withCloseButton: !P.value.table.useDialog,
|
|
1198
|
+
isCursorPointer: z.value,
|
|
1199
|
+
onClose: Sn
|
|
1200
1200
|
}, {
|
|
1201
1201
|
th: D(({ th: e }) => [g("div", null, T(e), 1)]),
|
|
1202
1202
|
td: D(({ td: e }) => [je(T(e), 1)]),
|
|
@@ -1211,20 +1211,20 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
1211
1211
|
"isCursorPointer"
|
|
1212
1212
|
])]),
|
|
1213
1213
|
_: 2
|
|
1214
|
-
}, [
|
|
1214
|
+
}, [P.value.table.useDialog ? {
|
|
1215
1215
|
name: "title",
|
|
1216
|
-
fn: D(() => [je(T(
|
|
1216
|
+
fn: D(() => [je(T(Tn.value.title), 1)]),
|
|
1217
1217
|
key: "0"
|
|
1218
|
-
} : void 0,
|
|
1218
|
+
} : void 0, P.value.table.useDialog ? {
|
|
1219
1219
|
name: "actions",
|
|
1220
1220
|
fn: D(() => [g("button", {
|
|
1221
1221
|
tabindex: "0",
|
|
1222
1222
|
class: "vue-ui-user-options-button",
|
|
1223
|
-
onClick: t[1] ||= (e) =>
|
|
1224
|
-
style: b({ cursor:
|
|
1223
|
+
onClick: t[1] ||= (e) => wn(R.value.callbacks.csv),
|
|
1224
|
+
style: b({ cursor: z.value ? "pointer" : "default" })
|
|
1225
1225
|
}, [Me(E(ct), {
|
|
1226
1226
|
name: "fileCsv",
|
|
1227
|
-
stroke:
|
|
1227
|
+
stroke: Tn.value.props.color
|
|
1228
1228
|
}, null, 8, ["stroke"])], 4)]),
|
|
1229
1229
|
key: "1"
|
|
1230
1230
|
} : void 0]), 1040)) : m("", !0),
|
|
@@ -1234,9 +1234,9 @@ var He = /* @__PURE__ */ e({ default: () => ct }), Ue = ["id"], We = ["id"], Ge
|
|
|
1234
1234
|
ref: St,
|
|
1235
1235
|
dir: "auto"
|
|
1236
1236
|
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1237
|
-
w(e.$slots, "skeleton", {}, () => [E(
|
|
1237
|
+
w(e.$slots, "skeleton", {}, () => [E(Pt) ? (x(), p(ge, { key: 0 })) : m("", !0)], !0)
|
|
1238
1238
|
], 46, Ue));
|
|
1239
1239
|
}
|
|
1240
|
-
}, [["__scopeId", "data-v-
|
|
1240
|
+
}, [["__scopeId", "data-v-aa15b614"]]);
|
|
1241
1241
|
//#endregion
|
|
1242
1242
|
export { He as n, ct as t };
|