vue-data-ui 3.2.2 → 3.2.4
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/{Arrow-BWqgcDpl.js → Arrow-Bb0bGghy.js} +1 -1
- package/dist/{BaseDraggableDialog-Cg4ZF9cb.js → BaseDraggableDialog-CHhZIht2.js} +2 -2
- package/dist/{BaseIcon-e63bhLIi.js → BaseIcon-Bz-1GQhu.js} +10 -3
- package/dist/ColorPicker-B-WUqMoV.js +238 -0
- package/dist/{DataTable-dv6G7Krn.js → DataTable-BvjacRbw.js} +2 -2
- package/dist/{Legend-CVcdvTLM.js → Legend-BpoFJ8fc.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DSmotL8i.js → NonSvgPenAndPaper-l9giyY1Z.js} +3 -3
- package/dist/{PackageVersion-C3Vg-vTM.js → PackageVersion-x4hg0tYe.js} +1 -1
- package/dist/{PenAndPaper-CplrzuG7.js → PenAndPaper-CR8q353D.js} +3 -3
- package/dist/{Shape-D_vfF7sk.js → Shape-C_C_OmqR.js} +1 -1
- package/dist/{Slicer-BO2wNLcR.js → Slicer-BA2GhOmY.js} +63 -63
- package/dist/{SparkTooltip-B82G5-BO.js → SparkTooltip-Dz1PDE_h.js} +1 -1
- package/dist/{Title-DlqxaiIs.js → Title-C__lOIPC.js} +1 -1
- package/dist/{Tooltip-BKqK7z38.js → Tooltip-BOXz8skU.js} +1 -1
- package/dist/{UserOptions-C9IFsUt0.js → UserOptions-DsTgvAok.js} +2 -2
- 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 +5 -0
- package/dist/components/vue-ui-bullet.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-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-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-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-1edcjS0-.js → dom-to-png-BgvOdfyW.js} +1 -1
- package/dist/{img-A48JwXxj.js → img-DjWwQXVS.js} +1 -1
- package/dist/{lib-CDp2KgIU.js → lib-BEpWEyMm.js} +56 -56
- package/dist/{pdf-BZV8MuXM.js → pdf-YD0ShN36.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +15 -4
- package/dist/types/vue-ui-annotator.d.ts +14 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-C2IsrQqi.js → useAutoSizeLabelsInsideViewbox-BVJkib7z.js} +1 -1
- package/dist/{useNestedProp-Cwtenuui.js → useNestedProp-CLD3Gk9S.js} +17 -13
- package/dist/{usePrinter-DU_Pi3Rq.js → usePrinter-w23K-ezx.js} +2 -2
- package/dist/{vue-data-ui-BHJOTOQY.js → vue-data-ui-boJG_PFN.js} +64 -64
- package/dist/vue-data-ui.js +96 -96
- package/dist/{vue-ui-3d-bar-rxghnZJO.js → vue-ui-3d-bar-HrbA4DmH.js} +6 -6
- package/dist/vue-ui-accordion-Cv7OaVUI.js +78 -0
- package/dist/{vue-ui-age-pyramid-gT_SnI-F.js → vue-ui-age-pyramid-CS5384rT.js} +6 -6
- package/dist/vue-ui-annotator-DOO0qej9.js +2959 -0
- package/dist/{vue-ui-bullet-DREbhLhy.js → vue-ui-bullet-DaauvX3a.js} +15 -15
- package/dist/{vue-ui-candlestick-D4P15Ci1.js → vue-ui-candlestick-DQXu21Mp.js} +33 -33
- package/dist/{vue-ui-carousel-table-C24KX4gd.js → vue-ui-carousel-table-Bh8Vb6ce.js} +4 -4
- package/dist/{vue-ui-chestnut-BbQknrj0.js → vue-ui-chestnut-BgmAUlUz.js} +32 -32
- package/dist/{vue-ui-chord-BM4_D9kI.js → vue-ui-chord-3NX_jwG_.js} +53 -53
- package/dist/{vue-ui-circle-pack-S4Asc9CS.js → vue-ui-circle-pack-Berb37Aa.js} +29 -29
- package/dist/{vue-ui-cursor-F9MXsQ1K.js → vue-ui-cursor-Cbt_0B5t.js} +2 -2
- package/dist/{vue-ui-dashboard-D6LHLdFS.js → vue-ui-dashboard-BzU-96mz.js} +67 -67
- package/dist/{vue-ui-digits-B_8VzLOS.js → vue-ui-digits-ChAz3jSS.js} +2 -2
- package/dist/{vue-ui-donut-B7T8_tP1.js → vue-ui-donut-BBQNmH5y.js} +8 -8
- package/dist/{vue-ui-donut-evolution-DOn-7PnK.js → vue-ui-donut-evolution-BD3_nxd1.js} +55 -55
- package/dist/{vue-ui-dumbbell-Ch66pFUG.js → vue-ui-dumbbell-Ct-YAkFg.js} +7 -7
- package/dist/{vue-ui-flow-DPcsRLJJ.js → vue-ui-flow-CVHjWM9l.js} +63 -63
- package/dist/{vue-ui-funnel-BdcKoacQ.js → vue-ui-funnel-Co79mdnX.js} +36 -36
- package/dist/{vue-ui-galaxy-D3c-O1Op.js → vue-ui-galaxy-D-XFEUfD.js} +46 -46
- package/dist/{vue-ui-gauge-D1zbKzZQ.js → vue-ui-gauge-Cx6eQ1nL.js} +59 -59
- package/dist/{vue-ui-gizmo-CcrANrSX.js → vue-ui-gizmo-D2PHxbS3.js} +3 -3
- package/dist/{vue-ui-heatmap-CcvV9Y14.js → vue-ui-heatmap-D4KCpMN3.js} +7 -7
- package/dist/{vue-ui-history-plot-a0mLhd0L.js → vue-ui-history-plot-Q_Q9g2Es.js} +44 -44
- package/dist/{vue-ui-kpi-BwUpplcm.js → vue-ui-kpi-D7WXGb3K.js} +3 -3
- package/dist/{vue-ui-mini-loader-DBPZOqZA.js → vue-ui-mini-loader-CKMzFSG5.js} +2 -2
- package/dist/{vue-ui-molecule-xsgartoC.js → vue-ui-molecule-Bxs72uED.js} +5 -5
- package/dist/{vue-ui-mood-radar-kl2d5QsL.js → vue-ui-mood-radar-B5wYN9tI.js} +7 -7
- package/dist/{vue-ui-nested-donuts-D9I8_VnP.js → vue-ui-nested-donuts-pt6KriAc.js} +70 -70
- package/dist/{vue-ui-onion-BlxsHavW.js → vue-ui-onion-C8jid2_q.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-DHH6lrbW.js → vue-ui-parallel-coordinate-plot-06wFGFFV.js} +35 -35
- package/dist/{vue-ui-quadrant-DyIQZUPC.js → vue-ui-quadrant-B2dS6aSz.js} +8 -8
- package/dist/{vue-ui-quick-chart-Jfr_Ezh9.js → vue-ui-quick-chart-CrkR07qv.js} +55 -55
- package/dist/{vue-ui-radar-BL_dJV12.js → vue-ui-radar-CkAX2pUE.js} +54 -54
- package/dist/{vue-ui-rating-LiragGSU.js → vue-ui-rating-C0Ubexdn.js} +2 -2
- package/dist/{vue-ui-relation-circle-BrR2W_6V.js → vue-ui-relation-circle-eROPsns9.js} +25 -25
- package/dist/{vue-ui-ridgeline-CpaOYplC.js → vue-ui-ridgeline-AkXpQ6zB.js} +27 -27
- package/dist/{vue-ui-rings-B9TGOwFE.js → vue-ui-rings-DEwCnnwC.js} +38 -38
- package/dist/{vue-ui-scatter-Bq4pSRu_.js → vue-ui-scatter-DzojJVhb.js} +49 -49
- package/dist/{vue-ui-skeleton-BlVnOk2o.js → vue-ui-skeleton-Bp8Ao16B.js} +3 -3
- package/dist/{vue-ui-smiley-DyP9gKYe.js → vue-ui-smiley-DxC8rN5b.js} +2 -2
- package/dist/{vue-ui-spark-trend-Pvdqnqia.js → vue-ui-spark-trend-DqKebrx9.js} +22 -22
- package/dist/{vue-ui-sparkbar-DF6eDrxt.js → vue-ui-sparkbar-BShmZ5Vp.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BR7oFSSF.js → vue-ui-sparkgauge-NX3Z_bFF.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CkOGqy2h.js → vue-ui-sparkhistogram-TBxquo5S.js} +4 -4
- package/dist/{vue-ui-sparkline-DF8bLc-F.js → vue-ui-sparkline-Bw4jxjxk.js} +29 -29
- package/dist/{vue-ui-sparkstackbar-DMkn-0FV.js → vue-ui-sparkstackbar-D8YGkrZ9.js} +3 -3
- package/dist/{vue-ui-stackbar-CUXktGA-.js → vue-ui-stackbar-0Kag52U5.js} +38 -38
- package/dist/{vue-ui-strip-plot-ibdxtil6.js → vue-ui-strip-plot-CU0tiCsd.js} +7 -7
- package/dist/{vue-ui-table-BocHahKB.js → vue-ui-table-B4BTGeKs.js} +17 -17
- package/dist/{vue-ui-table-heatmap-B03YDYck.js → vue-ui-table-heatmap-D-iueyM0.js} +13 -13
- package/dist/{vue-ui-table-sparkline-8mOvfeTL.js → vue-ui-table-sparkline-BnqMY5lk.js} +4 -4
- package/dist/{vue-ui-thermometer-Dq_nJLiU.js → vue-ui-thermometer-Ct3Sr0M1.js} +7 -7
- package/dist/{vue-ui-timer-BLveMseW.js → vue-ui-timer-DsAVvm1H.js} +27 -27
- package/dist/{vue-ui-tiremarks-DMG1_YzV.js → vue-ui-tiremarks-DKNpl_8J.js} +6 -6
- package/dist/{vue-ui-treemap-io-J9w5R.js → vue-ui-treemap-Jdea_p8r.js} +8 -8
- package/dist/{vue-ui-vertical-bar-DqnTF6h2.js → vue-ui-vertical-bar-DE42y9ZI.js} +30 -30
- package/dist/{vue-ui-waffle-X9DHHqlw.js → vue-ui-waffle-CrYeU7zd.js} +75 -75
- package/dist/{vue-ui-wheel-BLBwVpV8.js → vue-ui-wheel-B4Be4Ol6.js} +6 -6
- package/dist/{vue-ui-word-cloud-0GXQqY8G.js → vue-ui-word-cloud-9QkLvAgs.js} +28 -28
- package/dist/{vue-ui-world-5OHPVwxv.js → vue-ui-world-DTwfuIIZ.js} +6 -6
- package/dist/{vue-ui-xy-HW0T1CD8.js → vue-ui-xy-BKzt6d8T.js} +9 -9
- package/dist/{vue-ui-xy-canvas-C4FbbXNQ.js → vue-ui-xy-canvas-BGzMXziC.js} +10 -10
- package/package.json +1 -1
- package/dist/ColorPicker-BO4ntExI.js +0 -135
- package/dist/vue-ui-accordion-BWnxgda4.js +0 -76
- package/dist/vue-ui-annotator-BkHDHfHG.js +0 -2182
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useCssVars as Ot, computed as s, ref as
|
|
2
|
-
import { c as Kt, X as Qt,
|
|
1
|
+
import { useCssVars as Ot, computed as s, ref as h, onMounted as lt, onBeforeUnmount as Le, watch as Z, nextTick as ve, onUpdated as Ut, createElementBlock as i, openBlock as u, createElementVNode as P, createCommentVNode as m, renderSlot as Zt, normalizeStyle as L, createVNode as Yt, withDirectives as at, unref as me, Fragment as M, renderList as R, normalizeProps as Jt, mergeProps as qt, normalizeClass as Y, vModelText as nt, toDisplayString as $e } from "vue";
|
|
2
|
+
import { c as Kt, X as Qt, E as Ee, ad as it, U as ut, ae as ot, T as rt, af as st } from "./lib-BEpWEyMm.js";
|
|
3
3
|
import { t as ct, d as jt, u as _t } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import el from "./BaseIcon-
|
|
4
|
+
import el from "./BaseIcon-Bz-1GQhu.js";
|
|
5
5
|
import { _ as tl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const ll = {
|
|
7
7
|
class: "vue-data-ui-slicer-labels",
|
|
@@ -13,7 +13,7 @@ const ll = {
|
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "minimap",
|
|
15
15
|
style: { width: "100%" }
|
|
16
|
-
}, il = ["xmlns", "viewBox"], ul = ["id"], ol = ["stop-color"], rl = ["width", "height", "stroke"], sl = ["d", "stroke"], cl = ["x", "width", "y", "height", "fill"], vl = ["d", "stroke"], ml = ["cx", "cy", "fill", "stroke"],
|
|
16
|
+
}, il = ["xmlns", "viewBox"], ul = ["id"], ol = ["stop-color"], rl = ["width", "height", "stroke"], sl = ["d", "stroke"], cl = ["x", "width", "y", "height", "fill"], vl = ["d", "stroke"], ml = ["cx", "cy", "fill", "stroke"], dl = ["x", "width", "height", "fill", "rx"], hl = ["x", "width", "height", "rx", "fill"], fl = ["x", "width", "height", "fill", "rx"], gl = ["x2", "y1", "y2", "stroke"], xl = ["d", "fill"], yl = ["d", "stroke"], Ml = { key: 6 }, bl = ["x", "width", "y", "height", "fill"], pl = ["d", "stroke"], kl = ["x", "height", "fill", "stroke"], wl = ["x", "height", "fill", "stroke"], Sl = ["cx", "cy", "stroke", "fill"], Cl = ["cx", "cy", "fill"], Pl = ["cx", "cy", "stroke", "fill"], Nl = ["cx", "cy", "fill"], Rl = { key: 10 }, Ll = ["cx", "cy", "fill", "stroke"], $l = ["cx", "cy", "stroke", "fill"], El = ["cx", "cy", "fill"], Tl = ["cx", "cy", "stroke", "fill"], Al = ["cx", "cy", "fill"], Bl = ["height", "x", "width", "onMouseenter"], Vl = ["min", "max"], Fl = ["min", "max"], Te = 48, Il = {
|
|
17
17
|
__name: "Slicer",
|
|
18
18
|
props: {
|
|
19
19
|
background: {
|
|
@@ -160,10 +160,10 @@ const ll = {
|
|
|
160
160
|
v2f32beb2: n.selectColor,
|
|
161
161
|
v147c5fb5: xt.value
|
|
162
162
|
}));
|
|
163
|
-
const a = n, k =
|
|
163
|
+
const a = n, k = h(null), w = h(a.min), S = h(a.max), b = s(() => !!a.minimap.length), Ae = h(Kt()), $ = s(() => b.value && a.minimapCompact), de = h(0);
|
|
164
164
|
lt(() => {
|
|
165
165
|
const e = () => {
|
|
166
|
-
k.value && (
|
|
166
|
+
k.value && (de.value = k.value.getBoundingClientRect().width);
|
|
167
167
|
};
|
|
168
168
|
e();
|
|
169
169
|
const l = ct(e, 50);
|
|
@@ -171,7 +171,7 @@ const ll = {
|
|
|
171
171
|
window.removeEventListener("resize", l);
|
|
172
172
|
});
|
|
173
173
|
});
|
|
174
|
-
const
|
|
174
|
+
const dt = s(() => a.refreshEndPoint === null ? a.max : a.refreshEndPoint), J = mt, q = s(() => {
|
|
175
175
|
if ($.value) {
|
|
176
176
|
const l = Math.max(1, ue.value - 1);
|
|
177
177
|
return ye.value / l * 100;
|
|
@@ -185,7 +185,7 @@ const ll = {
|
|
|
185
185
|
}
|
|
186
186
|
const e = Math.max(1, a.max - a.min);
|
|
187
187
|
return (S.value - a.min) / e * 100;
|
|
188
|
-
}),
|
|
188
|
+
}), he = s(() => (q.value + re.value) / 2), fe = s(() => {
|
|
189
189
|
if (!k.value) return !1;
|
|
190
190
|
const e = k.value.getBoundingClientRect().width;
|
|
191
191
|
return q.value / 100 * e - Ne.value / 2 < 0;
|
|
@@ -194,7 +194,7 @@ const ll = {
|
|
|
194
194
|
const e = k.value.getBoundingClientRect().width;
|
|
195
195
|
return re.value / 100 * e + ce.value / 2 > e;
|
|
196
196
|
}), N = s(() => {
|
|
197
|
-
const e = ge.value ? `calc(${
|
|
197
|
+
const e = ge.value ? `calc(${he.value}% - ${ie.value.width}px - 2px)` : fe.value ? `calc(${he.value}% - 8px)` : `calc(${he.value}% - ${ie.value.width / 2}px - 4px)`;
|
|
198
198
|
return {
|
|
199
199
|
left: `${q.value}%`,
|
|
200
200
|
width: `${Math.max(0, re.value - q.value)}%`,
|
|
@@ -209,17 +209,17 @@ const ll = {
|
|
|
209
209
|
function se(e) {
|
|
210
210
|
return xe.value === 0 ? 0 : Math.round(e / xe.value * K.value);
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Be(e) {
|
|
213
213
|
return K.value === 0 ? 0 : Math.round(e / K.value * xe.value);
|
|
214
214
|
}
|
|
215
|
-
const
|
|
215
|
+
const ht = (e) => Math.floor(a.min + e), ft = (e) => Math.ceil(a.min + e), ye = s({
|
|
216
216
|
get() {
|
|
217
217
|
return $.value ? se(I.value) : Number(w.value);
|
|
218
218
|
},
|
|
219
219
|
set(e) {
|
|
220
220
|
if ($.value) {
|
|
221
|
-
const l = Math.round(+e || 0), t = Math.max(0, se(Math.max(0, X.value - 1))), o = Math.min(Math.max(0, l), t), r =
|
|
222
|
-
_(
|
|
221
|
+
const l = Math.round(+e || 0), t = Math.max(0, se(Math.max(0, X.value - 1))), o = Math.min(Math.max(0, l), t), r = Be(o);
|
|
222
|
+
_(ht(r));
|
|
223
223
|
} else {
|
|
224
224
|
let l = Math.round(+e || 0);
|
|
225
225
|
const t = Number(S.value) - 1, o = Math.min(Math.max(a.min, l), t);
|
|
@@ -232,7 +232,7 @@ const ll = {
|
|
|
232
232
|
},
|
|
233
233
|
set(e) {
|
|
234
234
|
if ($.value) {
|
|
235
|
-
const l = Math.round(+e || 0), t = se(I.value), o = Math.max(l, t), r =
|
|
235
|
+
const l = Math.round(+e || 0), t = se(I.value), o = Math.max(l, t), r = Be(o);
|
|
236
236
|
ee(ft(r + 1));
|
|
237
237
|
} else {
|
|
238
238
|
let l = Math.round(+e || 0);
|
|
@@ -240,7 +240,7 @@ const ll = {
|
|
|
240
240
|
ee(o);
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
}), gt = s(() => a.inputColor), xt = s(() => a.background), yt = s(() => `${a.selectColor}33`), x = s(() => a.borderColor),
|
|
243
|
+
}), gt = s(() => a.inputColor), xt = s(() => a.background), yt = s(() => `${a.selectColor}33`), x = s(() => a.borderColor), Ve = s(() => {
|
|
244
244
|
const e = [];
|
|
245
245
|
for (let l = 0; l < a.max; l += 1)
|
|
246
246
|
e.push(l);
|
|
@@ -260,10 +260,10 @@ const ll = {
|
|
|
260
260
|
Number(w.value) > Number(e) && (w.value = Number(e)), Number(S.value) > Number(e) && (S.value = Number(e));
|
|
261
261
|
}
|
|
262
262
|
);
|
|
263
|
-
const be =
|
|
263
|
+
const be = h(null), g = h({
|
|
264
264
|
width: 1,
|
|
265
265
|
height: 1
|
|
266
|
-
}), O =
|
|
266
|
+
}), O = h(null);
|
|
267
267
|
lt(() => {
|
|
268
268
|
if (b.value) {
|
|
269
269
|
const e = ct(() => {
|
|
@@ -298,8 +298,8 @@ const ll = {
|
|
|
298
298
|
}
|
|
299
299
|
}, De = s(() => kt(0)), ze = s(() => a.allMinimaps.length ? a.allMinimaps.filter((e) => e.type === "bar").length : 0), pe = s(() => p.value / (ze.value || 1) * 0.8);
|
|
300
300
|
function We(e, l, t) {
|
|
301
|
-
const o = pe.value, r = Math.max(1, ze.value),
|
|
302
|
-
return t === 0 ? e + o / 2 * l : t ===
|
|
301
|
+
const o = pe.value, r = Math.max(1, ze.value), d = Q.value - 1;
|
|
302
|
+
return t === 0 ? e + o / 2 * l : t === d ? e - o / 2 * (r - l) : e - r * o / 2 + l * o;
|
|
303
303
|
}
|
|
304
304
|
function Xe(e, l) {
|
|
305
305
|
return [0, Q.value - 1].includes(l) ? pe.value / 2 : pe.value;
|
|
@@ -314,8 +314,8 @@ const ll = {
|
|
|
314
314
|
const y = Math.max(1e-9, l - 0);
|
|
315
315
|
return (v) => t - (v - 0) / y * t;
|
|
316
316
|
}
|
|
317
|
-
const
|
|
318
|
-
return (y) => (1 - (o(y /
|
|
317
|
+
const d = Math.max(1e-9, Math.max(Math.abs(e), Math.abs(l)));
|
|
318
|
+
return (y) => (1 - (o(y / d, -1, 1) + 1) / 2) * t;
|
|
319
319
|
}
|
|
320
320
|
function He(e, l = !1) {
|
|
321
321
|
if (!e || !e.length)
|
|
@@ -331,7 +331,7 @@ const ll = {
|
|
|
331
331
|
fullMarkers: [],
|
|
332
332
|
selectionMarkers: []
|
|
333
333
|
};
|
|
334
|
-
const t = Math.max(1, g.value.height), o = wt(z.value, U.value, t), r = e.length,
|
|
334
|
+
const t = Math.max(1, g.value.height), o = wt(z.value, U.value, t), r = e.length, d = Math.min(Math.max(0, I.value), Math.max(0, r - 1)), y = Math.min(r, Math.max(d + 1, X.value)), v = e.map((f, et) => {
|
|
335
335
|
const oe = f, tt = Number.isFinite(oe), Ht = p.value * et + (a.minimapCompact ? 0 : p.value / 2), Gt = o(0);
|
|
336
336
|
return {
|
|
337
337
|
x: Ht,
|
|
@@ -341,13 +341,13 @@ const ll = {
|
|
|
341
341
|
y0: Gt,
|
|
342
342
|
i: et
|
|
343
343
|
};
|
|
344
|
-
}), D = (f) => f >= 0 && f < v.length && Number.isFinite(v[f]?.value), H = v.filter((f) => Number.isFinite(f.value) && !D(f.i - 1) && !D(f.i + 1)), Re = H.filter((f) => f.i >=
|
|
344
|
+
}), D = (f) => f >= 0 && f < v.length && Number.isFinite(v[f]?.value), H = v.filter((f) => Number.isFinite(f.value) && !D(f.i - 1) && !D(f.i + 1)), Re = H.filter((f) => f.i >= d && f.i < y), G = v.slice(d, y), Wt = v.length >= 2 ? a.smoothMinimap || l ? a.cutNullValues ? it(v) : ut(v.filter((f) => f.value != null)) : a.cutNullValues ? ot(v) : rt(v.filter((f) => f.value != null)) : "", Xt = G.length >= 2 ? a.smoothMinimap || l ? a.cutNullValues ? it(G) : ut(G.filter((f) => f.value != null)) : a.cutNullValues ? ot(G) : rt(G.filter((f) => f.value != null)) : "";
|
|
345
345
|
return {
|
|
346
346
|
fullSet: Wt,
|
|
347
347
|
points: v,
|
|
348
348
|
selectionSet: Xt,
|
|
349
349
|
sliced: G,
|
|
350
|
-
firstPlot: v[
|
|
350
|
+
firstPlot: v[d] || null,
|
|
351
351
|
lastPlot: v[Math.max(0, y - 1)] || null,
|
|
352
352
|
hasFull: v.length >= 2,
|
|
353
353
|
hasSelection: G.length >= 2,
|
|
@@ -378,7 +378,7 @@ const ll = {
|
|
|
378
378
|
x: p.value * e + (a.minimapCompact ? 0 : p.value / 2),
|
|
379
379
|
width: p.value * (l - e) - p.value
|
|
380
380
|
};
|
|
381
|
-
}), E =
|
|
381
|
+
}), E = h(a.minimapSelectedIndex);
|
|
382
382
|
function St(e) {
|
|
383
383
|
E.value = _e(a.valueStart) + e;
|
|
384
384
|
}
|
|
@@ -395,18 +395,18 @@ const ll = {
|
|
|
395
395
|
const l = I.value, t = X.value;
|
|
396
396
|
e >= l && e < t && !F.value && J("trapMouse", e - l);
|
|
397
397
|
}
|
|
398
|
-
const ke =
|
|
398
|
+
const ke = h(null), we = h(null);
|
|
399
399
|
function _(e) {
|
|
400
400
|
w.value = e, ke.value && (ke.value.value = e), J("update:start", Number(w.value));
|
|
401
401
|
}
|
|
402
402
|
function ee(e) {
|
|
403
403
|
S.value = e, we.value && (we.value.value = e), J("update:end", Number(S.value));
|
|
404
404
|
}
|
|
405
|
-
const Se = s(() => a.valueEnd - a.valueStart), Nt = s(() => Se.value < a.max - a.min), te =
|
|
406
|
-
let Rt =
|
|
407
|
-
const Lt = s(() => (
|
|
408
|
-
let T = null,
|
|
409
|
-
const Ue =
|
|
405
|
+
const Se = s(() => a.valueEnd - a.valueStart), Nt = s(() => Se.value < a.max - a.min), te = h(!1);
|
|
406
|
+
let Rt = h(null);
|
|
407
|
+
const Lt = s(() => (de.value - 48) / (a.max - a.min) * Se.value), $t = s(() => Math.max(1, de.value - Te - Lt.value)), Et = s(() => Math.max(1, a.max - a.min - Se.value)), Tt = s(() => Et.value / $t.value), Ge = h(0), Ce = h(0), Oe = h(0), At = h(0);
|
|
408
|
+
let T = null, A = null, B = null, V = null;
|
|
409
|
+
const Ue = h(a.min);
|
|
410
410
|
function Pe(e) {
|
|
411
411
|
if (!k.value) return a.min;
|
|
412
412
|
const l = k.value.getBoundingClientRect(), t = l.left + Te / 2, o = l.right - Te / 2, r = Math.max(1, o - t), y = (Math.max(t, Math.min(e, o)) - t) / r, v = Math.max(1, a.max - a.min);
|
|
@@ -422,18 +422,18 @@ const ll = {
|
|
|
422
422
|
const r = l ? t ? t.clientX : 0 : e.clientX;
|
|
423
423
|
if (Rt.value = r, Ge.value = r, a.focusOnDrag && !Nt.value && k.value) {
|
|
424
424
|
Ue.value = Pe(r);
|
|
425
|
-
const
|
|
425
|
+
const d = Math.min(0.95, Math.max(0.05, a.focusRangeRatio)), y = a.max - a.min, v = Math.max(1, Math.round(y * d)), D = Math.floor(v / 2);
|
|
426
426
|
let H = Ue.value - D;
|
|
427
427
|
H = Math.max(a.min, Math.min(H, a.max - v));
|
|
428
428
|
const Re = Math.min(a.max, H + v);
|
|
429
429
|
_(H), ee(Re), st(k.value, "mouseup"), await ve(), st(k.value, "mousedown", { clientX: r });
|
|
430
430
|
}
|
|
431
|
-
Ce.value = Number(w.value), Oe.value = Number(S.value),
|
|
431
|
+
Ce.value = Number(w.value), Oe.value = Number(S.value), At.value = Tt.value, T = l ? "touchmove" : "mousemove", A = l ? "touchend" : "mouseup", B = l ? Vt : Bt, V = l ? It : Ft, window.addEventListener(T, B, { passive: !1 }), window.addEventListener(A, V);
|
|
432
432
|
};
|
|
433
|
-
function
|
|
433
|
+
function Bt(e) {
|
|
434
434
|
te.value && Ye(e.clientX);
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function Vt(e) {
|
|
437
437
|
if (!te.value || !k.value) return;
|
|
438
438
|
const l = e.target;
|
|
439
439
|
if (!(l instanceof Element) || !k.value.contains(l) || l.classList && l.classList.contains("range-handle")) return;
|
|
@@ -444,11 +444,11 @@ const ll = {
|
|
|
444
444
|
function Ye(e) {
|
|
445
445
|
if (!te.value) return;
|
|
446
446
|
const l = Pe(Ge.value), o = Pe(e) - l, r = Math.max(1, Oe.value - Ce.value);
|
|
447
|
-
let
|
|
447
|
+
let d = Math.round(Ce.value + o);
|
|
448
448
|
const y = a.min, v = a.max - r;
|
|
449
|
-
|
|
450
|
-
const D =
|
|
451
|
-
_(
|
|
449
|
+
d < y && (d = y), d > v && (d = v);
|
|
450
|
+
const D = d + r;
|
|
451
|
+
_(d), ee(D);
|
|
452
452
|
}
|
|
453
453
|
function Ft() {
|
|
454
454
|
Je();
|
|
@@ -457,20 +457,20 @@ const ll = {
|
|
|
457
457
|
Je();
|
|
458
458
|
}
|
|
459
459
|
function Je() {
|
|
460
|
-
te.value = !1, T &&
|
|
460
|
+
te.value = !1, T && B && window.removeEventListener(T, B), A && V && window.removeEventListener(A, V), T = A = null, B = V = null;
|
|
461
461
|
}
|
|
462
|
-
const F =
|
|
462
|
+
const F = h(!1), le = h(null), ae = h(null), Ne = h(1), ce = h(1), W = h(!1);
|
|
463
463
|
function qe() {
|
|
464
464
|
le.value && (Ne.value = le.value.getBoundingClientRect().width);
|
|
465
465
|
}
|
|
466
466
|
function Ke() {
|
|
467
467
|
ae.value && (ce.value = ae.value.getBoundingClientRect().width);
|
|
468
468
|
}
|
|
469
|
-
const Qe =
|
|
469
|
+
const Qe = h(0);
|
|
470
470
|
function je(e) {
|
|
471
471
|
Qe.value = e === "start" ? 1 : 0;
|
|
472
472
|
}
|
|
473
|
-
const ne =
|
|
473
|
+
const ne = h(!1), ie = h({
|
|
474
474
|
width: 0,
|
|
475
475
|
left: 0
|
|
476
476
|
});
|
|
@@ -481,10 +481,10 @@ const ll = {
|
|
|
481
481
|
}
|
|
482
482
|
const e = le.value.getBoundingClientRect(), l = ae.value.getBoundingClientRect();
|
|
483
483
|
ne.value = e.x + e.width > l.x;
|
|
484
|
-
const t = e.x + e.width / 2, o = l.x + l.width / 2, r = e.width + l.width,
|
|
484
|
+
const t = e.x + e.width / 2, o = l.x + l.width / 2, r = e.width + l.width, d = (t + o) / 2;
|
|
485
485
|
ie.value = {
|
|
486
486
|
width: r,
|
|
487
|
-
left:
|
|
487
|
+
left: d - r / 2
|
|
488
488
|
};
|
|
489
489
|
}), Ut(() => {
|
|
490
490
|
qe(), Ke();
|
|
@@ -504,7 +504,7 @@ const ll = {
|
|
|
504
504
|
setStartValue: _,
|
|
505
505
|
setEndValue: ee
|
|
506
506
|
}), Le(() => {
|
|
507
|
-
O.value && O.value.disconnect(), T &&
|
|
507
|
+
O.value && O.value.disconnect(), T && B && window.removeEventListener(T, B), A && V && window.removeEventListener(A, V), T = A = null, B = V = null;
|
|
508
508
|
});
|
|
509
509
|
const ue = s(() => Math.max(1, a.max - a.min));
|
|
510
510
|
function _e(e) {
|
|
@@ -516,7 +516,7 @@ const ll = {
|
|
|
516
516
|
return Math.min(Math.max(0, l), ue.value);
|
|
517
517
|
}
|
|
518
518
|
const I = s(() => _e(w.value)), X = s(() => Dt(S.value)), zt = s(() => {
|
|
519
|
-
if (!
|
|
519
|
+
if (!Ve.value.length) return null;
|
|
520
520
|
if (E.value >= I.value && E.value < X.value) {
|
|
521
521
|
const e = E.value;
|
|
522
522
|
return {
|
|
@@ -543,7 +543,7 @@ const ll = {
|
|
|
543
543
|
onTouchend: l[11] || (l[11] = (t) => W.value = !1)
|
|
544
544
|
}, [
|
|
545
545
|
P("div", ll, [
|
|
546
|
-
n.valueStart !== n.refreshStartPoint || n.valueEnd !==
|
|
546
|
+
n.valueStart !== n.refreshStartPoint || n.valueEnd !== dt.value ? (u(), i("div", al, [
|
|
547
547
|
n.useResetSlot ? Zt(e.$slots, "reset-action", {
|
|
548
548
|
key: 1,
|
|
549
549
|
reset: Fe
|
|
@@ -581,7 +581,7 @@ const ll = {
|
|
|
581
581
|
}, [
|
|
582
582
|
P("defs", null, [
|
|
583
583
|
P("linearGradient", {
|
|
584
|
-
id:
|
|
584
|
+
id: Ae.value,
|
|
585
585
|
x1: "0%",
|
|
586
586
|
y1: "0%",
|
|
587
587
|
x2: "0%",
|
|
@@ -619,11 +619,11 @@ const ll = {
|
|
|
619
619
|
style: { opacity: "0.6" }
|
|
620
620
|
}, null, 8, sl)) : (u(), i(M, { key: 2 }, [
|
|
621
621
|
(u(!0), i(M, null, R(j.value.filter((t) => t.type === "bar"), (t, o) => (u(), i("g", null, [
|
|
622
|
-
(u(!0), i(M, null, R(t.points, (r,
|
|
622
|
+
(u(!0), i(M, null, R(t.points, (r, d) => (u(), i(M, null, [
|
|
623
623
|
t.isVisible && !isNaN(r.y) ? (u(), i("rect", {
|
|
624
624
|
key: 0,
|
|
625
|
-
x: We(r.x, o,
|
|
626
|
-
width: Xe(o,
|
|
625
|
+
x: We(r.x, o, d),
|
|
626
|
+
width: Xe(o, d),
|
|
627
627
|
y: r.v >= 0 ? r.y : r.y0,
|
|
628
628
|
height: r.v >= 0 ? r.y0 - r.y : r.y - r.y0,
|
|
629
629
|
fill: t.color,
|
|
@@ -661,7 +661,7 @@ const ll = {
|
|
|
661
661
|
fill: x.value,
|
|
662
662
|
rx: n.minimapSelectionRadius,
|
|
663
663
|
stroke: "none"
|
|
664
|
-
}, null, 8,
|
|
664
|
+
}, null, 8, dl),
|
|
665
665
|
P("rect", {
|
|
666
666
|
x: C.value.x,
|
|
667
667
|
width: C.value.width < 0 ? 0 : C.value.width,
|
|
@@ -669,7 +669,7 @@ const ll = {
|
|
|
669
669
|
y: 0,
|
|
670
670
|
rx: n.minimapSelectionRadius,
|
|
671
671
|
fill: x.value
|
|
672
|
-
}, null, 8,
|
|
672
|
+
}, null, 8, hl),
|
|
673
673
|
P("rect", {
|
|
674
674
|
x: C.value.x,
|
|
675
675
|
width: C.value.width < 0 ? 0 : C.value.width,
|
|
@@ -697,7 +697,7 @@ const ll = {
|
|
|
697
697
|
c.value.selectionSet ? (u(), i("path", {
|
|
698
698
|
key: 0,
|
|
699
699
|
d: `M${c.value.sliced[0].x},${Math.max(g.value.height, 0)} ${c.value.selectionSet} L${c.value.sliced[c.value.sliced.length - 1].x},${Math.max(g.value.height, 0)}Z`,
|
|
700
|
-
fill: `url(#${
|
|
700
|
+
fill: `url(#${Ae.value})`,
|
|
701
701
|
stroke: "none",
|
|
702
702
|
style: { opacity: "1" }
|
|
703
703
|
}, null, 8, xl)) : m("", !0),
|
|
@@ -713,16 +713,16 @@ const ll = {
|
|
|
713
713
|
], 64)) : m("", !0)
|
|
714
714
|
], 64)) : (u(), i("g", Ml, [
|
|
715
715
|
(u(!0), i(M, null, R(j.value.filter((t) => t.type === "bar"), (t, o) => (u(), i("g", null, [
|
|
716
|
-
(u(!0), i(M, null, R(t.points, (r,
|
|
716
|
+
(u(!0), i(M, null, R(t.points, (r, d) => (u(), i(M, null, [
|
|
717
717
|
t.isVisible && !isNaN(r.y) ? (u(), i("rect", {
|
|
718
718
|
key: 0,
|
|
719
|
-
x: We(r.x, o,
|
|
720
|
-
width: Xe(o,
|
|
719
|
+
x: We(r.x, o, d),
|
|
720
|
+
width: Xe(o, d),
|
|
721
721
|
y: r.v >= 0 ? r.y : r.y0,
|
|
722
722
|
height: r.v >= 0 ? r.y0 - r.y : r.y - r.y0,
|
|
723
723
|
fill: t.color,
|
|
724
724
|
style: L({
|
|
725
|
-
opacity:
|
|
725
|
+
opacity: d >= n.valueStart && d <= n.valueEnd - 1 ? 1 : 0
|
|
726
726
|
})
|
|
727
727
|
}, null, 12, bl)) : m("", !0)
|
|
728
728
|
], 64))), 256))
|
|
@@ -840,10 +840,10 @@ const ll = {
|
|
|
840
840
|
cy: t.lastPlot.y,
|
|
841
841
|
r: "2",
|
|
842
842
|
fill: x.value
|
|
843
|
-
}, null, 8,
|
|
843
|
+
}, null, 8, Al)) : m("", !0)
|
|
844
844
|
]))), 128))
|
|
845
845
|
])),
|
|
846
|
-
(u(!0), i(M, null, R(
|
|
846
|
+
(u(!0), i(M, null, R(Ve.value, (t, o) => (u(), i("rect", {
|
|
847
847
|
y: 0,
|
|
848
848
|
height: Math.max(g.value.height, 0),
|
|
849
849
|
fill: "transparent",
|
|
@@ -858,7 +858,7 @@ const ll = {
|
|
|
858
858
|
onMouseleave: l[2] || (l[2] = (r) => {
|
|
859
859
|
E.value = null, J("trapMouse", null);
|
|
860
860
|
})
|
|
861
|
-
}, null, 44,
|
|
861
|
+
}, null, 44, Bl))), 256))
|
|
862
862
|
], 8, il))
|
|
863
863
|
])) : m("", !0),
|
|
864
864
|
P("div", {
|
|
@@ -894,7 +894,7 @@ const ll = {
|
|
|
894
894
|
step: 1,
|
|
895
895
|
"onUpdate:modelValue": l[5] || (l[5] = (t) => ye.value = t),
|
|
896
896
|
onMouseenter: l[6] || (l[6] = (t) => je("start"))
|
|
897
|
-
}, null, 42,
|
|
897
|
+
}, null, 42, Vl)), [
|
|
898
898
|
[
|
|
899
899
|
nt,
|
|
900
900
|
ye.value,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRef as c, ref as a, computed as v, onMounted as m, watch as y, createElementBlock as b, openBlock as g, normalizeStyle as x, renderSlot as k, nextTick as S } from "vue";
|
|
2
|
-
import { s as _,
|
|
2
|
+
import { s as _, ah as i } from "./lib-BEpWEyMm.js";
|
|
3
3
|
import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const R = {
|
|
5
5
|
__name: "SparkTooltip",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as l, openBlock as n, Fragment as f, createElementVNode as p, createCommentVNode as o, normalizeStyle as d, unref as e, toDisplayString as g, renderSlot as r } from "vue";
|
|
2
|
-
import { a as s } from "./useNestedProp-
|
|
2
|
+
import { a as s } from "./useNestedProp-CLD3Gk9S.js";
|
|
3
3
|
const b = {
|
|
4
4
|
__name: "Title",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as f, onMounted as F, onUnmounted as S, watch as b, nextTick as B, computed as y, createBlock as C, openBlock as g, Teleport as w, createElementBlock as N, createCommentVNode as T, normalizeStyle as $, normalizeClass as M, renderSlot as h, createElementVNode as Y } from "vue";
|
|
2
|
-
import { s as z } from "./lib-
|
|
2
|
+
import { s as z } from "./lib-BEpWEyMm.js";
|
|
3
3
|
function A({ tooltip: a, chart: e, clientPosition: o, positionPreference: c = "center", defaultOffsetY: p = 24, blockShiftY: u = !1 }) {
|
|
4
4
|
const t = f(0), i = f(p);
|
|
5
5
|
if (a && e) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as m, computed as w, onMounted as Z, onBeforeUnmount as p, withDirectives as _, createElementBlock as s, openBlock as o, normalizeStyle as b, createElementVNode as D, withKeys as ee, withModifiers as te, renderSlot as d, normalizeProps as A, guardReactiveProps as oe, createVNode as ne, normalizeClass as k, createCommentVNode as a, Fragment as $, createBlock as f, toDisplayString as c, mergeProps as T, unref as le } from "vue";
|
|
2
2
|
import { v as ie } from "./vClickOutside-C6WiFswA.js";
|
|
3
|
-
import r from "./BaseIcon-
|
|
4
|
-
import X from "./img-
|
|
3
|
+
import r from "./BaseIcon-Bz-1GQhu.js";
|
|
4
|
+
import X from "./img-DjWwQXVS.js";
|
|
5
5
|
import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const ae = ["title"], ue = ["data-open"], re = {
|
|
7
7
|
__name: "UserOptions",
|
package/dist/components/arrow.js
CHANGED