vue-data-ui 2.3.87 → 2.3.89
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-tDycrMHk.js → Arrow-6DWnAEHt.js} +1 -1
- package/dist/{Arrow-eu15g0Zt.cjs → Arrow-CW5gDSmt.cjs} +1 -1
- package/dist/{BaseIcon-CgLB-iUq.cjs → BaseIcon-B_MrASni.cjs} +1 -1
- package/dist/{BaseIcon-D2n64yMC.js → BaseIcon-Dj8EbAXm.js} +1 -1
- package/dist/{DataTable-CrbRO0dh.js → DataTable-BmYcdJ1w.js} +2 -2
- package/dist/{DataTable-DnOI5Ivh.cjs → DataTable-DAwK5x3h.cjs} +1 -1
- package/dist/{Legend-BXctzvx2.js → Legend-BRG8ddDy.js} +1 -1
- package/dist/{Legend-sAjd_vcA.cjs → Legend-DhQ-a1RH.cjs} +1 -1
- package/dist/{Shape-BUBQ5omG.js → Shape-BcL3EDZ5.js} +1 -1
- package/dist/{Shape-BGa7uWId.cjs → Shape-D7jva0XA.cjs} +1 -1
- package/dist/{Slicer-CXK3XM-z.js → Slicer-DI1kgq9D.js} +141 -119
- package/dist/Slicer-DV29nclP.cjs +1 -0
- package/dist/{Title-DbAaPd9q.cjs → Title-DYwo_Q5b.cjs} +1 -1
- package/dist/{Title-BITuZ5CT.js → Title-fAvrqioZ.js} +1 -1
- package/dist/{Tooltip-LE8exuMN.cjs → Tooltip-03RvVGln.cjs} +1 -1
- package/dist/{Tooltip-DDBocDY4.js → Tooltip-TZYYFvPe.js} +1 -1
- package/dist/img-BFCs759q.cjs +1 -0
- package/dist/img-DGzWcJ4Y.js +15 -0
- package/dist/{index-U4mCr8P0.cjs → index-BKTciLz4.cjs} +1 -1
- package/dist/{index-CP7GYbDW.js → index-Ca4RHJ4t.js} +1 -1
- package/dist/pdf-9cRTLjY8.cjs +1 -0
- package/dist/{pdf-97UbtKC2.js → pdf-B7oVat64.js} +7 -7
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CgUQgTyB.cjs → useNestedProp-BFnXnY0k.cjs} +1 -1
- package/dist/{useNestedProp-Dfz8QNDn.js → useNestedProp-vP7uimPz.js} +1 -1
- package/dist/{usePrinter-BfETb5Ie.js → usePrinter-5fwXghqP.js} +155 -156
- package/dist/usePrinter-CxYg-Dw-.cjs +1 -0
- package/dist/{vue-data-ui-BiTJ4KBF.js → vue-data-ui-4VG00HFR.js} +57 -57
- package/dist/{vue-data-ui-CgTf8Gw2.cjs → vue-data-ui-BaLkNH7M.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CKDV9VVB.js → vue-ui-3d-bar-DPJWcxqV.js} +7 -7
- package/dist/{vue-ui-3d-bar-CKCcmMbS.cjs → vue-ui-3d-bar-rOT9iPsm.cjs} +1 -1
- package/dist/{vue-ui-accordion-AcWCsB0f.cjs → vue-ui-accordion-SXHdW20_.cjs} +1 -1
- package/dist/{vue-ui-accordion-DZSSaEp4.js → vue-ui-accordion-vYoYjedX.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Cy-J_3gK.js → vue-ui-age-pyramid-BEC4SHLl.js} +8 -8
- package/dist/{vue-ui-age-pyramid-DQ-h0bbz.cjs → vue-ui-age-pyramid-HElID9Ax.cjs} +1 -1
- package/dist/{vue-ui-annotator-GBAeaQUB.cjs → vue-ui-annotator-B1NZRuJJ.cjs} +1 -1
- package/dist/{vue-ui-annotator-Dn_5RY5_.js → vue-ui-annotator-DFpv61wn.js} +1 -1
- package/dist/{vue-ui-candlestick-CAdWy5Y1.js → vue-ui-candlestick-AEKT8X3p.js} +9 -9
- package/dist/{vue-ui-candlestick-guSNt_H0.cjs → vue-ui-candlestick-p1s0Av21.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CuFG5v2i.cjs → vue-ui-carousel-table-DCk2p-1k.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DmmKDp7-.js → vue-ui-carousel-table-DhzVxOvp.js} +4 -4
- package/dist/{vue-ui-chestnut-bAWBqCf3.cjs → vue-ui-chestnut-oFfB3fBF.cjs} +1 -1
- package/dist/{vue-ui-chestnut-BmzjUDjK.js → vue-ui-chestnut-qqcIpMGB.js} +6 -6
- package/dist/{vue-ui-cursor-DDViNH81.js → vue-ui-cursor-CgSghVjL.js} +2 -2
- package/dist/{vue-ui-cursor-CfkNSO9o.cjs → vue-ui-cursor-CvJgJk1M.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BGwxII0l.js → vue-ui-dashboard-CYzkic0X.js} +3 -3
- package/dist/vue-ui-dashboard-CtJdVmtu.cjs +1 -0
- package/dist/{vue-ui-digits-BYO9w7xM.js → vue-ui-digits-BO1hSjoq.js} +2 -2
- package/dist/{vue-ui-digits-DObHCYJe.cjs → vue-ui-digits-C0dMG-hR.cjs} +1 -1
- package/dist/{vue-ui-donut-DqOvTGAK.js → vue-ui-donut-DP-yxiw3.js} +9 -9
- package/dist/{vue-ui-donut-B-YGaPcq.cjs → vue-ui-donut-Dnnoj71c.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-ByIcsVPF.js → vue-ui-donut-evolution-C-yDyglF.js} +9 -9
- package/dist/{vue-ui-donut-evolution-DAzxGbsO.cjs → vue-ui-donut-evolution-vBUH5VVx.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-Ch6sj_EW.cjs → vue-ui-dumbbell-BUA_uSse.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-JpJFPxM2.js → vue-ui-dumbbell-D2SQ4cKV.js} +8 -8
- package/dist/{vue-ui-flow-C5N8YgfJ.cjs → vue-ui-flow-B-AFlw-n.cjs} +1 -1
- package/dist/{vue-ui-flow-BhtIMcan.js → vue-ui-flow-D_E9V2A1.js} +7 -7
- package/dist/{vue-ui-galaxy-Cv38ZzWi.cjs → vue-ui-galaxy-CbL5nONj.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BZT14d6d.js → vue-ui-galaxy-DqE2UiA3.js} +9 -9
- package/dist/{vue-ui-gauge-BrwCmfGP.cjs → vue-ui-gauge-BUV_hQND.cjs} +1 -1
- package/dist/{vue-ui-gauge-Dj2gBTkq.js → vue-ui-gauge-CFYXDw2p.js} +5 -5
- package/dist/{vue-ui-gizmo-BhCZEfOE.cjs → vue-ui-gizmo-B-LxuvDh.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Dx0mO1Zf.js → vue-ui-gizmo-BWztIJ3j.js} +2 -2
- package/dist/{vue-ui-heatmap-azP3H0Be.cjs → vue-ui-heatmap-DW5StHKM.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DdSGFMo1.js → vue-ui-heatmap-E1MlhSCs.js} +8 -8
- package/dist/{vue-ui-kpi-TKkErBy-.cjs → vue-ui-kpi-BWDPF-9X.cjs} +1 -1
- package/dist/{vue-ui-kpi-C0fjrvpC.js → vue-ui-kpi-DeP0XmP7.js} +3 -3
- package/dist/{vue-ui-mini-loader-CVflLGuB.js → vue-ui-mini-loader-Bal12IrX.js} +2 -2
- package/dist/{vue-ui-mini-loader-DAos2pVd.cjs → vue-ui-mini-loader-D5e8uW_d.cjs} +1 -1
- package/dist/{vue-ui-molecule-CW1523wC.cjs → vue-ui-molecule-DHBId4h4.cjs} +1 -1
- package/dist/{vue-ui-molecule-D9OfBp53.js → vue-ui-molecule-DHrHeQgF.js} +9 -9
- package/dist/{vue-ui-mood-radar-vvG5BlGa.cjs → vue-ui-mood-radar-DSXB9l99.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-PMARjoQW.js → vue-ui-mood-radar-dJaJotNf.js} +9 -9
- package/dist/{vue-ui-nested-donuts-Bt8ZHG4b.js → vue-ui-nested-donuts--K9ygdH3.js} +9 -9
- package/dist/{vue-ui-nested-donuts-wVELVgGD.cjs → vue-ui-nested-donuts-CEX2cvop.cjs} +1 -1
- package/dist/{vue-ui-onion-B-4djV2X.js → vue-ui-onion-Bm1inM56.js} +9 -9
- package/dist/{vue-ui-onion-j8P027dX.cjs → vue-ui-onion-Iekdjs8b.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-B2N249AX.js → vue-ui-parallel-coordinate-plot-9PSGD-LR.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-BRNG5VwG.cjs → vue-ui-parallel-coordinate-plot-OlFoYL_3.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BaDei-7C.cjs → vue-ui-quadrant-CgJeo2zZ.cjs} +1 -1
- package/dist/{vue-ui-quadrant-Bvv3ZZI7.js → vue-ui-quadrant-iGQbx93I.js} +10 -10
- package/dist/{vue-ui-quick-chart-BzFITYDP.js → vue-ui-quick-chart-DeEQcx6A.js} +7 -7
- package/dist/{vue-ui-quick-chart-OUDWfDwC.cjs → vue-ui-quick-chart-Du8lDPmh.cjs} +1 -1
- package/dist/{vue-ui-radar-Bpz3hyr9.cjs → vue-ui-radar-BYk9DWnM.cjs} +1 -1
- package/dist/{vue-ui-radar-CXH5XhDS.js → vue-ui-radar-DfnhsNQV.js} +10 -10
- package/dist/{vue-ui-rating-BcngasYQ.js → vue-ui-rating-CCesFD6e.js} +2 -2
- package/dist/{vue-ui-rating-BEtR56Zg.cjs → vue-ui-rating-D0rgVdkT.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-Cn4xYFeJ.cjs → vue-ui-relation-circle-8eoBav4O.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BmWv5Kwu.js → vue-ui-relation-circle-D2GXm_Fk.js} +5 -5
- package/dist/{vue-ui-rings-DDvVuJvv.js → vue-ui-rings-B7_-G3JM.js} +9 -9
- package/dist/{vue-ui-rings-BbrUn18Q.cjs → vue-ui-rings-CScmcQ1n.cjs} +1 -1
- package/dist/{vue-ui-scatter-C9B6pkLG.cjs → vue-ui-scatter-BnBI8qdt.cjs} +1 -1
- package/dist/{vue-ui-scatter-CfgLA10v.js → vue-ui-scatter-DdhiNjLc.js} +10 -10
- package/dist/{vue-ui-screenshot-BDjgeoQi.cjs → vue-ui-screenshot-BrhjnTwn.cjs} +1 -1
- package/dist/{vue-ui-screenshot-W6aedcDN.js → vue-ui-screenshot-Cpy2qbf1.js} +1 -1
- package/dist/{vue-ui-skeleton-BAQjFiop.js → vue-ui-skeleton-D7aLznpP.js} +2 -2
- package/dist/{vue-ui-skeleton-BhG4niml.cjs → vue-ui-skeleton-pDeQ3NcD.cjs} +1 -1
- package/dist/{vue-ui-smiley-J1L8V6KG.cjs → vue-ui-smiley-Cj0yi7_H.cjs} +1 -1
- package/dist/{vue-ui-smiley-CQNAPd4d.js → vue-ui-smiley-vcpYARLj.js} +2 -2
- package/dist/{vue-ui-spark-trend-BTdNsDFX.cjs → vue-ui-spark-trend-BW8k0jDd.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CBc-tBLR.js → vue-ui-spark-trend-CFJSCQnf.js} +4 -4
- package/dist/{vue-ui-sparkbar-D0189X8M.cjs → vue-ui-sparkbar-BbJHfAQj.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DCLpbzSR.js → vue-ui-sparkbar-CgRdDfk6.js} +3 -3
- package/dist/{vue-ui-sparkgauge-ButS3IF8.cjs → vue-ui-sparkgauge-BESRB8_4.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-C-12vLRd.js → vue-ui-sparkgauge-CCPMNge0.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-NLFMPPXv.cjs → vue-ui-sparkhistogram-BYnSfLdb.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CqHEh_4P.js → vue-ui-sparkhistogram-D5z2Wtpk.js} +4 -4
- package/dist/{vue-ui-sparkline-Cy8fuCDw.cjs → vue-ui-sparkline-D5WUy4p5.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BaHeaRVl.js → vue-ui-sparkline-KYN0oKt1.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLvXeEbr.js → vue-ui-sparkstackbar-7lurD9-4.js} +80 -77
- package/dist/vue-ui-sparkstackbar-Dy-IfQ3q.cjs +1 -0
- package/dist/{vue-ui-stackbar-CLmcckvD.cjs → vue-ui-stackbar-Ch-fmE9l.cjs} +1 -1
- package/dist/{vue-ui-stackbar-B-ZE7Ksh.js → vue-ui-stackbar-CsVmAvl3.js} +10 -10
- package/dist/{vue-ui-strip-plot-DbmLZ03_.js → vue-ui-strip-plot-B63AgKts.js} +9 -9
- package/dist/{vue-ui-strip-plot-DTJeRXEM.cjs → vue-ui-strip-plot-BLRl-tF6.cjs} +1 -1
- package/dist/{vue-ui-table-CpUWJGi_.js → vue-ui-table-G5O8K-F_.js} +1 -1
- package/dist/{vue-ui-table-DdroDYB6.cjs → vue-ui-table-hPqdMR-m.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CSHkuLE3.cjs → vue-ui-table-heatmap-BhVuTdSS.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-XJj-iDhJ.js → vue-ui-table-heatmap-t9Ngijvp.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DEhCOiH8.js → vue-ui-table-sparkline-BX4en1c-.js} +5 -5
- package/dist/{vue-ui-table-sparkline-GgMGhbwH.cjs → vue-ui-table-sparkline-DtjJrGve.cjs} +1 -1
- package/dist/{vue-ui-thermometer-LM5LB1fZ.cjs → vue-ui-thermometer-B07RI9fZ.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CF9_Jiig.js → vue-ui-thermometer-BWGyDQ7_.js} +5 -5
- package/dist/{vue-ui-timer-BN3oSs18.js → vue-ui-timer-8AlVLAJi.js} +4 -4
- package/dist/{vue-ui-timer-Kw8zfnyl.cjs → vue-ui-timer-CXrENAVg.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-B5Ieo2VI.cjs → vue-ui-tiremarks-C43c4_IR.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CTiztDdT.js → vue-ui-tiremarks-DYIHGkBU.js} +5 -5
- package/dist/{vue-ui-treemap-CHngTUd0.cjs → vue-ui-treemap-BN90ISQv.cjs} +1 -1
- package/dist/{vue-ui-treemap-DEDT65NP.js → vue-ui-treemap-mmvdTHiX.js} +9 -9
- package/dist/{vue-ui-vertical-bar-C8XQwe6S.cjs → vue-ui-vertical-bar-BRDO_Rsu.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-hFeIrO6z.js → vue-ui-vertical-bar-DAKHNRoR.js} +9 -9
- package/dist/{vue-ui-waffle-CLbMVN8j.js → vue-ui-waffle-B-A4NYNd.js} +9 -9
- package/dist/{vue-ui-waffle-tFQq8-qt.cjs → vue-ui-waffle-BN_yZEtJ.cjs} +1 -1
- package/dist/{vue-ui-wheel-CMRCYfem.cjs → vue-ui-wheel-50_zeiIW.cjs} +1 -1
- package/dist/{vue-ui-wheel-DpPdEqHh.js → vue-ui-wheel-DN9WvA6Z.js} +5 -5
- package/dist/{vue-ui-word-cloud-C18oOvC0.cjs → vue-ui-word-cloud-BVoFIb_q.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DTXq9aIY.js → vue-ui-word-cloud-BWTyaGAT.js} +7 -7
- package/dist/vue-ui-xy-CJHHesUD.cjs +3 -0
- package/dist/{vue-ui-xy-DN8TqWYI.js → vue-ui-xy-Dzp4qCjk.js} +769 -762
- package/dist/{vue-ui-xy-canvas-BoH-Grae.js → vue-ui-xy-canvas-9NPbm7dE.js} +10 -10
- package/dist/{vue-ui-xy-canvas-Dg9jorcV.cjs → vue-ui-xy-canvas-CAcTkk_r.cjs} +1 -1
- package/package.json +1 -1
- package/dist/Slicer-CoyHeBxs.cjs +0 -1
- package/dist/pdf-Cz3729tZ.cjs +0 -1
- package/dist/usePrinter-DQLl_Row.cjs +0 -1
- package/dist/vue-ui-dashboard-CT09iVhX.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-B64XK1yu.cjs +0 -1
- package/dist/vue-ui-xy-Bw1GQuGo.cjs +0 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useCssVars as K, ref as
|
|
2
|
-
import ne from "./BaseIcon-
|
|
1
|
+
import { useCssVars as K, ref as f, computed as d, watch as L, onMounted as Y, openBlock as v, createElementBlock as h, createElementVNode as i, normalizeStyle as S, createVNode as ee, renderSlot as te, createCommentVNode as k, unref as le, Fragment as P, renderList as z, withDirectives as E, vModelText as A, toDisplayString as R, pushScopeId as ae, popScopeId as ie } from "vue";
|
|
2
|
+
import ne from "./BaseIcon-Dj8EbAXm.js";
|
|
3
3
|
import { t as oe, u as ue } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { c as re, Q as V, P as B, X as se } from "./index-
|
|
4
|
+
import { c as re, Q as V, P as B, X as se } from "./index-Ca4RHJ4t.js";
|
|
5
5
|
import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
const O = (l) => (ae("data-v-
|
|
6
|
+
const O = (l) => (ae("data-v-54291cff"), l = l(), ie(), l), me = {
|
|
7
7
|
"data-html2canvas-ignore": "",
|
|
8
8
|
style: { padding: "0 24px" }
|
|
9
9
|
}, ce = {
|
|
@@ -16,10 +16,10 @@ const O = (l) => (ae("data-v-1029266f"), l = l(), ie(), l), me = {
|
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "minimap",
|
|
18
18
|
style: { width: "100%" }
|
|
19
|
-
}, pe = ["xmlns", "viewBox"], fe = ["id"], ye = ["stop-color"], ge = /* @__PURE__ */ O(() => /* @__PURE__ */
|
|
19
|
+
}, pe = ["xmlns", "viewBox"], fe = ["id"], ye = ["stop-color"], ge = /* @__PURE__ */ O(() => /* @__PURE__ */ i("stop", {
|
|
20
20
|
offset: "100%",
|
|
21
21
|
"stop-color": "transparent"
|
|
22
|
-
}, null, -1)), xe = ["d", "stroke"], be = ["x", "width", "height", "fill", "rx"], Se = ["d", "fill"], ke = ["x", "width", "height", "fill"], Ce = ["cx", "cy", "stroke", "fill"],
|
|
22
|
+
}, null, -1)), xe = ["d", "stroke"], be = ["x", "width", "height", "fill", "rx"], Se = ["d", "fill"], ke = ["x", "width", "height", "fill"], Ce = ["x", "width", "height", "fill"], we = ["d", "fill"], Ne = ["d", "stroke"], $e = ["cx", "cy", "stroke", "fill"], Le = ["cx", "cy", "stroke", "fill"], Me = ["x1", "x2", "y2", "stroke"], Ie = ["x", "height", "width", "onMouseenter"], Fe = /* @__PURE__ */ O(() => /* @__PURE__ */ i("div", { class: "slider-track" }, null, -1)), Pe = ["min", "max"], ze = ["min", "max"], Ee = {
|
|
23
23
|
__name: "Slicer",
|
|
24
24
|
props: {
|
|
25
25
|
background: {
|
|
@@ -111,115 +111,116 @@ const O = (l) => (ae("data-v-1029266f"), l = l(), ie(), l), me = {
|
|
|
111
111
|
setup(l, { emit: y }) {
|
|
112
112
|
const e = l;
|
|
113
113
|
K((t) => ({
|
|
114
|
-
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
"
|
|
114
|
+
e0176a96: D.value,
|
|
115
|
+
"27e9d329": x.value,
|
|
116
|
+
"22b19dda": U.value,
|
|
117
|
+
"081f1459": l.selectColor,
|
|
118
|
+
"12e0ab32": T.value
|
|
119
119
|
}));
|
|
120
|
-
const u =
|
|
121
|
-
const t = e.max - e.min,
|
|
120
|
+
const u = f(e.min), r = f(e.max), g = d(() => !!e.minimap.length), C = f(re()), _ = d(() => {
|
|
121
|
+
const t = e.max - e.min, n = (u.value - e.min) / t * 100, o = (r.value - e.min) / t * 100;
|
|
122
122
|
return {
|
|
123
|
-
left: `${
|
|
124
|
-
width: `${o -
|
|
123
|
+
left: `${n}%`,
|
|
124
|
+
width: `${o - n}%`,
|
|
125
125
|
background: e.selectColor
|
|
126
126
|
};
|
|
127
|
-
}),
|
|
127
|
+
}), D = d(() => e.inputColor), T = d(() => e.background), U = d(() => `${e.selectColor}33`), x = d(() => e.borderColor), M = d(() => {
|
|
128
128
|
let t = [];
|
|
129
|
-
for (let
|
|
130
|
-
t.push(
|
|
129
|
+
for (let n = 0; n < e.minimap.length; n += 1)
|
|
130
|
+
t.push(n);
|
|
131
131
|
return t;
|
|
132
132
|
});
|
|
133
|
-
function
|
|
133
|
+
function I() {
|
|
134
134
|
y("reset");
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function W() {
|
|
137
137
|
Number(u.value) > Number(r.value) - 1 && (u.value = Number(r.value) - 1), y("update:start", Number(u.value));
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function X() {
|
|
140
140
|
Number(r.value) < Number(u.value) + 1 && (r.value = Number(u.value) + 1), y("update:end", Number(r.value));
|
|
141
141
|
}
|
|
142
|
-
|
|
142
|
+
L(
|
|
143
143
|
() => e.min,
|
|
144
144
|
(t) => {
|
|
145
145
|
Number(u.value) < Number(t) && (u.value = Number(t)), Number(r.value) < Number(t) && (r.value = Number(t));
|
|
146
146
|
}
|
|
147
|
-
),
|
|
147
|
+
), L(
|
|
148
148
|
() => e.max,
|
|
149
149
|
(t) => {
|
|
150
150
|
Number(u.value) > Number(t) && (u.value = Number(t)), Number(r.value) > Number(t) && (r.value = Number(t));
|
|
151
151
|
}
|
|
152
152
|
);
|
|
153
|
-
const
|
|
153
|
+
const w = f(null), a = f({
|
|
154
154
|
width: 1,
|
|
155
155
|
height: 1
|
|
156
|
-
}),
|
|
156
|
+
}), F = f(null);
|
|
157
157
|
Y(() => {
|
|
158
158
|
if (g.value) {
|
|
159
159
|
const t = oe(() => {
|
|
160
|
-
const { width:
|
|
161
|
-
chart:
|
|
160
|
+
const { width: n, height: o } = ue({
|
|
161
|
+
chart: w.value
|
|
162
162
|
});
|
|
163
|
-
|
|
163
|
+
a.value.width = n, a.value.height = o - 47;
|
|
164
164
|
});
|
|
165
|
-
|
|
165
|
+
F.value = new ResizeObserver(t), F.value.observe(w.value);
|
|
166
166
|
}
|
|
167
167
|
});
|
|
168
|
-
const s = d(() => e.minimap.length ?
|
|
168
|
+
const s = d(() => e.minimap.length ? a.value.width / e.minimap.length : 0), m = d(() => {
|
|
169
169
|
if (!e.minimap.length) return [];
|
|
170
|
-
const t = Math.max(...e.minimap),
|
|
171
|
-
const J =
|
|
170
|
+
const t = Math.max(...e.minimap), n = Math.min(...e.minimap) - 10, o = t - (n > 0 ? 0 : n), c = e.minimap.map((Q, H) => {
|
|
171
|
+
const J = Q - n;
|
|
172
172
|
return {
|
|
173
|
-
x:
|
|
174
|
-
y:
|
|
173
|
+
x: a.value.width / e.minimap.length * H + s.value / 2,
|
|
174
|
+
y: a.value.height - J / o * (a.value.height * 0.9)
|
|
175
175
|
};
|
|
176
|
-
}), N = e.smoothMinimap ? V(
|
|
176
|
+
}), N = e.smoothMinimap ? V(c) : B(c), $ = [...c].slice(e.valueStart, e.valueEnd), G = e.smoothMinimap ? V($) : B($);
|
|
177
177
|
return {
|
|
178
178
|
fullSet: N,
|
|
179
|
-
selectionSet:
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
selectionSet: G,
|
|
180
|
+
sliced: $,
|
|
181
|
+
firstPlot: c[e.valueStart],
|
|
182
|
+
lastPlot: c[e.valueEnd - 1]
|
|
182
183
|
};
|
|
183
|
-
}),
|
|
184
|
+
}), p = d(() => ({
|
|
184
185
|
x: s.value * u.value + s.value / 2,
|
|
185
|
-
width:
|
|
186
|
-
})),
|
|
186
|
+
width: a.value.width * ((r.value - u.value) / e.max) - s.value
|
|
187
|
+
})), j = d(() => ({
|
|
187
188
|
left: 0,
|
|
188
189
|
color: e.textColor,
|
|
189
190
|
fontSize: `${e.fontSize}px`,
|
|
190
191
|
top: g.value ? "28px" : "-28px",
|
|
191
192
|
pointerEvents: "none"
|
|
192
|
-
})),
|
|
193
|
+
})), Z = d(() => ({
|
|
193
194
|
right: 0,
|
|
194
195
|
color: e.textColor,
|
|
195
196
|
fontSize: `${e.fontSize}px`,
|
|
196
197
|
top: g.value ? "28px" : "-28px",
|
|
197
198
|
direction: "rtl",
|
|
198
199
|
pointerEvents: "none"
|
|
199
|
-
})),
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
})), b = f(e.minimapSelectedIndex);
|
|
201
|
+
L(() => e.minimapSelectedIndex, (t) => {
|
|
202
|
+
b.value = t + e.valueStart;
|
|
202
203
|
}, { immediate: !0 });
|
|
203
|
-
function
|
|
204
|
-
|
|
204
|
+
function q(t) {
|
|
205
|
+
b.value = t, t >= e.valueStart && t < e.valueEnd && y("trapMouse", t - e.valueStart);
|
|
205
206
|
}
|
|
206
|
-
return (t,
|
|
207
|
-
|
|
208
|
-
l.valueStart > 0 || l.valueEnd < l.max ? (
|
|
207
|
+
return (t, n) => (v(), h("div", me, [
|
|
208
|
+
i("div", ce, [
|
|
209
|
+
l.valueStart > 0 || l.valueEnd < l.max ? (v(), h("div", ve, [
|
|
209
210
|
l.useResetSlot ? te(t.$slots, "reset-action", {
|
|
210
211
|
key: 1,
|
|
211
|
-
reset:
|
|
212
|
-
}, void 0, !0) : (
|
|
212
|
+
reset: I
|
|
213
|
+
}, void 0, !0) : (v(), h("button", {
|
|
213
214
|
key: 0,
|
|
214
215
|
"data-cy-reset": "",
|
|
215
216
|
tabindex: "0",
|
|
216
217
|
role: "button",
|
|
217
218
|
class: "vue-data-ui-refresh-button",
|
|
218
|
-
style:
|
|
219
|
+
style: S({
|
|
219
220
|
top: g.value ? "36px" : "-16px",
|
|
220
221
|
pointerEvents: "all !important"
|
|
221
222
|
}),
|
|
222
|
-
onClick:
|
|
223
|
+
onClick: I
|
|
223
224
|
}, [
|
|
224
225
|
ee(ne, {
|
|
225
226
|
name: "refresh",
|
|
@@ -228,34 +229,34 @@ const O = (l) => (ae("data-v-1029266f"), l = l(), ie(), l), me = {
|
|
|
228
229
|
], 4))
|
|
229
230
|
])) : k("", !0)
|
|
230
231
|
]),
|
|
231
|
-
|
|
232
|
+
i("div", {
|
|
232
233
|
class: "double-range-slider",
|
|
233
234
|
ref_key: "minimapWrapper",
|
|
234
|
-
ref:
|
|
235
|
+
ref: w,
|
|
235
236
|
style: { "z-index": "0" }
|
|
236
237
|
}, [
|
|
237
|
-
g.value ? (
|
|
238
|
-
(
|
|
238
|
+
g.value ? (v(), h("div", he, [
|
|
239
|
+
(v(), h("svg", {
|
|
239
240
|
xmlns: le(se),
|
|
240
|
-
viewBox: `0 0 ${
|
|
241
|
+
viewBox: `0 0 ${a.value.width < 0 ? 0 : a.value.width} ${a.value.height < 0 ? 0 : a.value.height}`
|
|
241
242
|
}, [
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
id:
|
|
243
|
+
i("defs", null, [
|
|
244
|
+
i("linearGradient", {
|
|
245
|
+
id: C.value,
|
|
245
246
|
x1: "0%",
|
|
246
247
|
y1: "0%",
|
|
247
248
|
x2: "0%",
|
|
248
249
|
y2: "100%"
|
|
249
250
|
}, [
|
|
250
|
-
|
|
251
|
+
i("stop", {
|
|
251
252
|
offset: "0%",
|
|
252
253
|
"stop-color": `${l.minimapLineColor}50`
|
|
253
254
|
}, null, 8, ye),
|
|
254
255
|
ge
|
|
255
256
|
], 8, fe)
|
|
256
257
|
]),
|
|
257
|
-
|
|
258
|
-
d: `M${
|
|
258
|
+
i("path", {
|
|
259
|
+
d: `M${m.value.fullSet}`,
|
|
259
260
|
stroke: `${l.minimapLineColor}`,
|
|
260
261
|
fill: "none",
|
|
261
262
|
"stroke-width": "1",
|
|
@@ -263,111 +264,132 @@ const O = (l) => (ae("data-v-1029266f"), l = l(), ie(), l), me = {
|
|
|
263
264
|
"stroke-linejoin": "round",
|
|
264
265
|
style: { opacity: "1" }
|
|
265
266
|
}, null, 8, xe),
|
|
266
|
-
|
|
267
|
-
x:
|
|
268
|
-
width:
|
|
269
|
-
height:
|
|
267
|
+
i("rect", {
|
|
268
|
+
x: p.value.x,
|
|
269
|
+
width: p.value.width < 0 ? 0 : p.value.width,
|
|
270
|
+
height: a.value.height,
|
|
270
271
|
y: 0,
|
|
271
|
-
fill:
|
|
272
|
+
fill: x.value,
|
|
272
273
|
rx: l.minimapSelectionRadius,
|
|
273
274
|
stroke: "none"
|
|
274
275
|
}, null, 8, be),
|
|
275
|
-
|
|
276
|
-
d: `M${s.value / 2},${
|
|
277
|
-
fill: `url(#${
|
|
276
|
+
i("path", {
|
|
277
|
+
d: `M${s.value / 2},${a.value.height} ${m.value.fullSet} L${a.value.width - s.value / 2},${a.value.height}Z`,
|
|
278
|
+
fill: `url(#${C.value})`,
|
|
278
279
|
stroke: "none",
|
|
279
280
|
style: { opacity: "1" }
|
|
280
281
|
}, null, 8, Se),
|
|
281
|
-
|
|
282
|
-
x:
|
|
283
|
-
width:
|
|
284
|
-
height:
|
|
282
|
+
i("rect", {
|
|
283
|
+
x: p.value.x,
|
|
284
|
+
width: p.value.width < 0 ? 0 : p.value.width,
|
|
285
|
+
height: a.value.height,
|
|
286
|
+
y: 0,
|
|
287
|
+
fill: x.value
|
|
288
|
+
}, null, 8, ke),
|
|
289
|
+
i("rect", {
|
|
290
|
+
x: p.value.x,
|
|
291
|
+
width: p.value.width < 0 ? 0 : p.value.width,
|
|
292
|
+
height: a.value.height,
|
|
285
293
|
y: 0,
|
|
286
294
|
fill: l.minimapSelectedColor,
|
|
287
|
-
style:
|
|
295
|
+
style: S({
|
|
288
296
|
opacity: l.minimapSelectedColorOpacity
|
|
289
297
|
})
|
|
290
|
-
}, null, 12,
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
298
|
+
}, null, 12, Ce),
|
|
299
|
+
i("path", {
|
|
300
|
+
d: `M${m.value.sliced[0].x},${a.value.height} ${m.value.selectionSet} L${m.value.sliced.at(-1).x},${a.value.height}Z`,
|
|
301
|
+
fill: `url(#${C.value})`,
|
|
302
|
+
stroke: "none",
|
|
303
|
+
style: { opacity: "1" }
|
|
304
|
+
}, null, 8, we),
|
|
305
|
+
i("path", {
|
|
306
|
+
d: `M ${m.value.selectionSet}`,
|
|
307
|
+
stroke: `${l.minimapLineColor}`,
|
|
308
|
+
fill: "transparent",
|
|
309
|
+
"stroke-width": "2",
|
|
310
|
+
"stroke-linecap": "round",
|
|
311
|
+
"stroke-linejoin": "round"
|
|
312
|
+
}, null, 8, Ne),
|
|
313
|
+
i("circle", {
|
|
314
|
+
cx: m.value.firstPlot.x,
|
|
315
|
+
cy: m.value.firstPlot.y,
|
|
294
316
|
"stroke-width": "0.5",
|
|
295
|
-
stroke:
|
|
317
|
+
stroke: x.value,
|
|
296
318
|
r: "3",
|
|
297
319
|
fill: l.minimapLineColor
|
|
298
|
-
}, null, 8,
|
|
299
|
-
|
|
300
|
-
cx:
|
|
301
|
-
cy:
|
|
320
|
+
}, null, 8, $e),
|
|
321
|
+
i("circle", {
|
|
322
|
+
cx: m.value.lastPlot.x,
|
|
323
|
+
cy: m.value.lastPlot.y,
|
|
302
324
|
"stroke-width": "0.5",
|
|
303
|
-
stroke:
|
|
325
|
+
stroke: x.value,
|
|
304
326
|
r: "3",
|
|
305
327
|
fill: l.minimapLineColor
|
|
306
|
-
}, null, 8,
|
|
307
|
-
|
|
308
|
-
|
|
328
|
+
}, null, 8, Le),
|
|
329
|
+
b.value !== null ? (v(!0), h(P, { key: 0 }, z(M.value, (o, c) => (v(), h("g", null, [
|
|
330
|
+
b.value === o && o >= l.valueStart && o < l.valueEnd ? (v(), h("line", {
|
|
309
331
|
key: 0,
|
|
310
|
-
x1: s.value *
|
|
311
|
-
x2: s.value *
|
|
332
|
+
x1: s.value * c + s.value / 2,
|
|
333
|
+
x2: s.value * c + s.value / 2,
|
|
312
334
|
y1: 0,
|
|
313
|
-
y2:
|
|
335
|
+
y2: a.value.height,
|
|
314
336
|
stroke: l.minimapIndicatorColor,
|
|
315
337
|
"stroke-linecap": "round",
|
|
316
338
|
"stroke-dasharray": "2",
|
|
317
339
|
"stroke-width": "1"
|
|
318
|
-
}, null, 8,
|
|
340
|
+
}, null, 8, Me)) : k("", !0)
|
|
319
341
|
]))), 256)) : k("", !0),
|
|
320
|
-
(
|
|
321
|
-
x: s.value *
|
|
342
|
+
(v(!0), h(P, null, z(M.value, (o, c) => (v(), h("rect", {
|
|
343
|
+
x: s.value * c,
|
|
322
344
|
y: 0,
|
|
323
|
-
height:
|
|
345
|
+
height: a.value.height,
|
|
324
346
|
width: s.value,
|
|
325
347
|
fill: "transparent",
|
|
326
348
|
style: { "pointer-events": "all !important" },
|
|
327
|
-
onMouseenter: (N) =>
|
|
328
|
-
onMouseleave:
|
|
329
|
-
|
|
349
|
+
onMouseenter: (N) => q(o),
|
|
350
|
+
onMouseleave: n[0] || (n[0] = (N) => {
|
|
351
|
+
b.value = null, y("trapMouse", null);
|
|
330
352
|
})
|
|
331
|
-
}, null, 40,
|
|
353
|
+
}, null, 40, Ie))), 256))
|
|
332
354
|
], 8, pe))
|
|
333
355
|
])) : k("", !0),
|
|
334
|
-
|
|
335
|
-
|
|
356
|
+
Fe,
|
|
357
|
+
i("div", {
|
|
336
358
|
class: "range-highlight",
|
|
337
|
-
style:
|
|
359
|
+
style: S(_.value)
|
|
338
360
|
}, null, 4),
|
|
339
|
-
E(
|
|
361
|
+
E(i("input", {
|
|
340
362
|
type: "range",
|
|
341
363
|
class: "range-left",
|
|
342
364
|
min: l.min,
|
|
343
365
|
max: l.max,
|
|
344
|
-
"onUpdate:modelValue":
|
|
345
|
-
onInput:
|
|
346
|
-
}, null, 40,
|
|
366
|
+
"onUpdate:modelValue": n[1] || (n[1] = (o) => u.value = o),
|
|
367
|
+
onInput: W
|
|
368
|
+
}, null, 40, Pe), [
|
|
347
369
|
[A, u.value]
|
|
348
370
|
]),
|
|
349
|
-
|
|
371
|
+
i("div", {
|
|
350
372
|
class: "thumb-label thumb-label-left",
|
|
351
|
-
style:
|
|
373
|
+
style: S(j.value)
|
|
352
374
|
}, R(l.labelLeft), 5),
|
|
353
|
-
E(
|
|
375
|
+
E(i("input", {
|
|
354
376
|
type: "range",
|
|
355
377
|
class: "range-right",
|
|
356
378
|
min: l.min,
|
|
357
379
|
max: l.max,
|
|
358
|
-
"onUpdate:modelValue":
|
|
359
|
-
onInput:
|
|
360
|
-
}, null, 40,
|
|
380
|
+
"onUpdate:modelValue": n[2] || (n[2] = (o) => r.value = o),
|
|
381
|
+
onInput: X
|
|
382
|
+
}, null, 40, ze), [
|
|
361
383
|
[A, r.value]
|
|
362
384
|
]),
|
|
363
|
-
|
|
385
|
+
i("div", {
|
|
364
386
|
class: "thumb-label thumb-label-right",
|
|
365
|
-
style:
|
|
387
|
+
style: S(Z.value)
|
|
366
388
|
}, R(l.labelRight), 5)
|
|
367
389
|
], 512)
|
|
368
390
|
]));
|
|
369
391
|
}
|
|
370
|
-
},
|
|
392
|
+
}, _e = /* @__PURE__ */ de(Ee, [["__scopeId", "data-v-54291cff"]]);
|
|
371
393
|
export {
|
|
372
|
-
|
|
394
|
+
_e as S
|
|
373
395
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),_=require("./BaseIcon-B_MrASni.cjs"),C=require("./useResponsive-B3TrDDIG.cjs"),v=require("./index-BKTciLz4.cjs"),O=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w=a=>(e.pushScopeId("data-v-54291cff"),a=a(),e.popScopeId(),a),T={"data-html2canvas-ignore":"",style:{padding:"0 24px"}},U={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},W={key:0,style:{width:"100%",position:"relative"}},j={key:0,class:"minimap",style:{width:"100%"}},X=["xmlns","viewBox"],Z=["id"],G=["stop-color"],H=w(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1)),J=["d","stroke"],K=["x","width","height","fill","rx"],Q=["d","fill"],Y=["x","width","height","fill"],ee=["x","width","height","fill"],te=["d","fill"],le=["d","stroke"],ae=["cx","cy","stroke","fill"],ne=["cx","cy","stroke","fill"],oe=["x1","x2","y2","stroke"],ie=["x","height","width","onMouseenter"],re=w(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),ue=["min","max"],se=["min","max"],ce={__name:"Slicer",props:{background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:Number,default:14},labelLeft:{type:String,default:""},labelRight:{type:String,default:""},textColor:{type:String,default:"#1A1A1A"},inputColor:{type:String,default:"#1A1A1A"},max:{type:Number,default:0},min:{type:Number,default:0},selectColor:{type:String,default:"#4A4A4A"},useResetSlot:{type:Boolean,default:!1},valueStart:{type:[Number,String],default:0},valueEnd:{type:[Number,String],default:0},minimap:{type:Array,default:[]},smoothMinimap:{type:Boolean,default:!1},minimapSelectedColor:{type:String,default:"#1f77b4"},minimapSelectionRadius:{type:Number,default:12},minimapLineColor:{type:String,default:"#2D353C"},minimapSelectedColorOpacity:{type:Number,default:.2},minimapSelectedIndex:{type:Number,default:null},minimapIndicatorColor:{type:String,default:"#2D353C"}},emits:["update:start","update:end","reset","trapMouse"],setup(a,{emit:h}){const t=a;e.useCssVars(l=>({e0176a96:$.value,"27e9d329":f.value,"22b19dda":z.value,"081f1459":a.selectColor,"12e0ab32":B.value}));const r=e.ref(t.min),u=e.ref(t.max),p=e.computed(()=>!!t.minimap.length),g=e.ref(v.createUid()),V=e.computed(()=>{const l=t.max-t.min,o=(r.value-t.min)/l*100,i=(u.value-t.min)/l*100;return{left:`${o}%`,width:`${i-o}%`,background:t.selectColor}}),$=e.computed(()=>t.inputColor),B=e.computed(()=>t.background),z=e.computed(()=>`${t.selectColor}33`),f=e.computed(()=>t.borderColor),k=e.computed(()=>{let l=[];for(let o=0;o<t.minimap.length;o+=1)l.push(o);return l});function N(){h("reset")}function L(){Number(r.value)>Number(u.value)-1&&(r.value=Number(u.value)-1),h("update:start",Number(r.value))}function M(){Number(u.value)<Number(r.value)+1&&(u.value=Number(r.value)+1),h("update:end",Number(u.value))}e.watch(()=>t.min,l=>{Number(r.value)<Number(l)&&(r.value=Number(l)),Number(u.value)<Number(l)&&(u.value=Number(l))}),e.watch(()=>t.max,l=>{Number(r.value)>Number(l)&&(r.value=Number(l)),Number(u.value)>Number(l)&&(u.value=Number(l))});const x=e.ref(null),n=e.ref({width:1,height:1}),E=e.ref(null);e.onMounted(()=>{if(p.value){const l=C.throttle(()=>{const{width:o,height:i}=C.useResponsive({chart:x.value});n.value.width=o,n.value.height=i-47});E.value=new ResizeObserver(l),E.value.observe(x.value)}});const s=e.computed(()=>t.minimap.length?n.value.width/t.minimap.length:0),c=e.computed(()=>{if(!t.minimap.length)return[];const l=Math.max(...t.minimap),o=Math.min(...t.minimap)-10,i=l-(o>0?0:o),d=t.minimap.map((A,q)=>{const D=A-o;return{x:n.value.width/t.minimap.length*q+s.value/2,y:n.value.height-D/i*(n.value.height*.9)}}),S=t.smoothMinimap?v.createSmoothPath(d):v.createStraightPath(d),b=[...d].slice(t.valueStart,t.valueEnd),R=t.smoothMinimap?v.createSmoothPath(b):v.createStraightPath(b);return{fullSet:S,selectionSet:R,sliced:b,firstPlot:d[t.valueStart],lastPlot:d[t.valueEnd-1]}}),m=e.computed(()=>({x:s.value*r.value+s.value/2,width:n.value.width*((u.value-r.value)/t.max)-s.value})),F=e.computed(()=>({left:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:p.value?"28px":"-28px",pointerEvents:"none"})),I=e.computed(()=>({right:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:p.value?"28px":"-28px",direction:"rtl",pointerEvents:"none"})),y=e.ref(t.minimapSelectedIndex);e.watch(()=>t.minimapSelectedIndex,l=>{y.value=l+t.valueStart},{immediate:!0});function P(l){y.value=l,l>=t.valueStart&&l<t.valueEnd&&h("trapMouse",l-t.valueStart)}return(l,o)=>(e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("div",U,[a.valueStart>0||a.valueEnd<a.max?(e.openBlock(),e.createElementBlock("div",W,[a.useResetSlot?e.renderSlot(l.$slots,"reset-action",{key:1,reset:N},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",style:e.normalizeStyle({top:p.value?"36px":"-16px",pointerEvents:"all !important"}),onClick:N},[e.createVNode(_.default,{name:"refresh",stroke:a.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:x,style:{"z-index":"0"}},[p.value?(e.openBlock(),e.createElementBlock("div",j,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(v.XMLNS),viewBox:`0 0 ${n.value.width<0?0:n.value.width} ${n.value.height<0?0:n.value.height}`},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:g.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${a.minimapLineColor}50`},null,8,G),H],8,Z)]),e.createElementVNode("path",{d:`M${c.value.fullSet}`,stroke:`${a.minimapLineColor}`,fill:"none","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",style:{opacity:"1"}},null,8,J),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:n.value.height,y:0,fill:f.value,rx:a.minimapSelectionRadius,stroke:"none"},null,8,K),e.createElementVNode("path",{d:`M${s.value/2},${n.value.height} ${c.value.fullSet} L${n.value.width-s.value/2},${n.value.height}Z`,fill:`url(#${g.value})`,stroke:"none",style:{opacity:"1"}},null,8,Q),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:n.value.height,y:0,fill:f.value},null,8,Y),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:n.value.height,y:0,fill:a.minimapSelectedColor,style:e.normalizeStyle({opacity:a.minimapSelectedColorOpacity})},null,12,ee),e.createElementVNode("path",{d:`M${c.value.sliced[0].x},${n.value.height} ${c.value.selectionSet} L${c.value.sliced.at(-1).x},${n.value.height}Z`,fill:`url(#${g.value})`,stroke:"none",style:{opacity:"1"}},null,8,te),e.createElementVNode("path",{d:`M ${c.value.selectionSet}`,stroke:`${a.minimapLineColor}`,fill:"transparent","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,le),e.createElementVNode("circle",{cx:c.value.firstPlot.x,cy:c.value.firstPlot.y,"stroke-width":"0.5",stroke:f.value,r:"3",fill:a.minimapLineColor},null,8,ae),e.createElementVNode("circle",{cx:c.value.lastPlot.x,cy:c.value.lastPlot.y,"stroke-width":"0.5",stroke:f.value,r:"3",fill:a.minimapLineColor},null,8,ne),y.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(k.value,(i,d)=>(e.openBlock(),e.createElementBlock("g",null,[y.value===i&&i>=a.valueStart&&i<a.valueEnd?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.value*d+s.value/2,x2:s.value*d+s.value/2,y1:0,y2:n.value.height,stroke:a.minimapIndicatorColor,"stroke-linecap":"round","stroke-dasharray":"2","stroke-width":"1"},null,8,oe)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(i,d)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value*d,y:0,height:n.value.height,width:s.value,fill:"transparent",style:{"pointer-events":"all !important"},onMouseenter:S=>P(i),onMouseleave:o[0]||(o[0]=S=>{y.value=null,h("trapMouse",null)})},null,40,ie))),256))],8,X))])):e.createCommentVNode("",!0),re,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(V.value)},null,4),e.withDirectives(e.createElementVNode("input",{type:"range",class:"range-left",min:a.min,max:a.max,"onUpdate:modelValue":o[1]||(o[1]=i=>r.value=i),onInput:L},null,40,ue),[[e.vModelText,r.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-left",style:e.normalizeStyle(F.value)},e.toDisplayString(a.labelLeft),5),e.withDirectives(e.createElementVNode("input",{type:"range",class:"range-right",min:a.min,max:a.max,"onUpdate:modelValue":o[2]||(o[2]=i=>u.value=i),onInput:M},null,40,se),[[e.vModelText,u.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-right",style:e.normalizeStyle(I.value)},e.toDisplayString(a.labelRight),5)],512)]))}},de=O._export_sfc(ce,[["__scopeId","data-v-54291cff"]]);exports.Slicer=de;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),r=require("./useNestedProp-
|
|
1
|
+
"use strict";const t=require("vue"),r=require("./useNestedProp-BFnXnY0k.cjs"),o={__name:"Title",props:{config:{type:Object,default(){return{}}}},setup(i){const n=i,e=r.useNestedProp({userConfig:n.config,defaultConfig:{title:{cy:"",text:"",color:"",fontSize:20,bold:!0,textAlign:"center",paddingLeft:0,paddingRight:0},subtitle:{cy:"",text:"",color:"",fontSize:14,bold:!1}}});return(l,d)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{style:t.normalizeStyle(`width: calc(100% - ${t.unref(e).title.paddingLeft+t.unref(e).title.paddingRight}px); text-align:${t.unref(e).title.textAlign};color:${t.unref(e).title.color};font-size:${t.unref(e).title.fontSize}px;font-weight:${t.unref(e).title.bold?"bold":""};padding-left:${t.unref(e).title.paddingLeft}px;padding-right:${t.unref(e).title.paddingRight}px;`)},t.toDisplayString(t.unref(e).title.text),5),t.unref(e).subtitle.text?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(`width: calc(100% - ${t.unref(e).title.paddingLeft+t.unref(e).title.paddingRight}px); text-align:${t.unref(e).title.textAlign};color:${t.unref(e).subtitle.color};font-size:${t.unref(e).subtitle.fontSize}px;font-weight:${t.unref(e).subtitle.bold?"bold":""};padding-left:${t.unref(e).title.paddingLeft}px;padding-right:${t.unref(e).title.paddingRight}px;`)},t.toDisplayString(t.unref(e).subtitle.text),5)):t.createCommentVNode("",!0),t.unref(e).subtitle.text?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle(`width: calc(100% - ${t.unref(e).title.paddingLeft+t.unref(e).title.paddingRight}px); text-align:${t.unref(e).title.textAlign};color:${t.unref(e).subtitle.color};font-size:${t.unref(e).subtitle.fontSize}px;font-weight:${t.unref(e).subtitle.bold?"bold":""};padding-left:${t.unref(e).title.paddingLeft}px;padding-right:${t.unref(e).title.paddingRight}px;`)},[t.renderSlot(l.$slots,"default")],4)):t.createCommentVNode("",!0)],64))}};exports._sfc_main=o;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as i, createElementBlock as l, Fragment as a, createElementVNode as r, normalizeStyle as d, unref as e, toDisplayString as n, createCommentVNode as o, renderSlot as f } from "vue";
|
|
2
|
-
import { u as s } from "./useNestedProp-
|
|
2
|
+
import { u as s } from "./useNestedProp-vP7uimPz.js";
|
|
3
3
|
const b = {
|
|
4
4
|
__name: "Title",
|
|
5
5
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("vue"),v=require("./index-
|
|
1
|
+
"use strict";const o=require("vue"),v=require("./index-BKTciLz4.cjs");function p({tooltip:e,chart:r,clientPosition:t,positionPreference:a="center",defaultOffsetY:d=24}){const u=o.ref(0),l=o.ref(d);if(e&&r){const{width:n,height:f}=e.getBoundingClientRect(),{right:i,left:s,bottom:m}=r.getBoundingClientRect();a==="center"&&(t.x+n/2>i?u.value=-n+(i-t.x):t.x-n/2<s?u.value=-n+(n-(t.x-s)):u.value=-n/2),a==="right"&&(t.x+n>i?u.value=-n+(i-t.x):u.value=0),a==="left"&&(t.x<s+n?u.value=-n+(n-(t.x-s)):u.value=-n),t.y+f>m&&(l.value=-f-d)}return{top:t.y+l.value,left:t.x+u.value}}function y(e,r,t){o.onMounted(()=>e.addEventListener(r,t)),o.onUnmounted(()=>e.removeEventListener(r,t))}function c(){const e=o.ref(0),r=o.ref(0);return y(window,"mousemove",t=>{e.value=t.clientX,r.value=t.clientY}),{x:e,y:r}}const b=["innerHTML"],g={__name:"Tooltip",props:{backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#000000"},content:String,maxWidth:{type:String,default:"300px"},parent:{type:Object},show:{type:Boolean,default:!1},isCustom:{type:Boolean,default:!1},fontSize:{type:[Number,String],default:14},borderRadius:{type:Number,default:4},borderColor:{type:String,default:"#e1e5e8"},borderWidth:{type:Number,default:1},backgroundOpacity:{type:Number,default:100},position:{type:String,default:"center"},offsetY:{type:Number,default:24}},setup(e){const r=e,t=o.ref(null),a=o.ref(c()),d=o.computed(()=>p({tooltip:t.value,chart:r.parent,clientPosition:a.value,positionPreference:r.position,defaultOffsetY:r.offsetY})),u=o.computed(()=>v.setOpacity(r.backgroundColor,r.backgroundOpacity));return(l,n)=>e.show?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"tooltip",ref:t,class:o.normalizeClass({"vue-data-ui-custom-tooltip":e.isCustom,"vue-data-ui-tooltip":!e.isCustom}),style:o.normalizeStyle(`pointer-events:none;top:${d.value.top}px;left:${d.value.left}px;${e.isCustom?"":`background:${u.value};color:${e.color};max-width:${e.maxWidth};font-size:${e.fontSize}px`};border-radius:${e.borderRadius}px;border:${e.borderWidth}px solid ${e.borderColor};`)},[o.renderSlot(l.$slots,"tooltip-before"),o.renderSlot(l.$slots,"default"),o.createElementVNode("div",{innerHTML:e.content},null,8,b),o.renderSlot(l.$slots,"tooltip-after")],6)):o.createCommentVNode("",!0)}};exports._sfc_main=g;exports.useMouse=c;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as l, onMounted as v, onUnmounted as y, computed as m, openBlock as b, createElementBlock as g, normalizeClass as x, normalizeStyle as h, renderSlot as f, createElementVNode as $, createCommentVNode as C } from "vue";
|
|
2
|
-
import { s as S } from "./index-
|
|
2
|
+
import { s as S } from "./index-Ca4RHJ4t.js";
|
|
3
3
|
function k({ tooltip: e, chart: o, clientPosition: t, positionPreference: a = "center", defaultOffsetY: i = 24 }) {
|
|
4
4
|
const u = l(0), r = l(i);
|
|
5
5
|
if (e && o) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./html2canvas.esm-BA_v9SIU.cjs");function l({domElement:a,fileName:o,format:n="png"}){if(a)return new Promise((r,c)=>{const e=document.createElement("a");i.default(a,{scale:2}).then(t=>{e.href=t.toDataURL(`image/${n}`),e.download=`${o}.${n}`,e.click(),e&&e.remove(),r()}).catch(t=>{console.error("Error generating image:",t),c(t)})})}exports.default=l;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import i from "./html2canvas.esm-d2sM-0Wm.js";
|
|
2
|
+
function l({ domElement: n, fileName: t, format: o = "png" }) {
|
|
3
|
+
if (n)
|
|
4
|
+
return new Promise((r, c) => {
|
|
5
|
+
const e = document.createElement("a");
|
|
6
|
+
i(n, { scale: 2 }).then((a) => {
|
|
7
|
+
e.href = a.toDataURL(`image/${o}`), e.download = `${t}.${o}`, e.click(), e && e.remove(), r();
|
|
8
|
+
}).catch((a) => {
|
|
9
|
+
console.error("Error generating image:", a), c(a);
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
l as default
|
|
15
|
+
};
|