vue-data-ui 2.3.86 → 2.3.87
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-CebZn6E4.cjs → Arrow-eu15g0Zt.cjs} +1 -1
- package/dist/{Arrow-CJ7hmWgf.js → Arrow-tDycrMHk.js} +1 -1
- package/dist/{BaseIcon-DnG75_Ol.cjs → BaseIcon-CgLB-iUq.cjs} +1 -1
- package/dist/{BaseIcon-B9istAKo.js → BaseIcon-D2n64yMC.js} +1 -1
- package/dist/{DataTable-tSDSY14n.js → DataTable-CrbRO0dh.js} +2 -2
- package/dist/{DataTable-BA_BCbHC.cjs → DataTable-DnOI5Ivh.cjs} +1 -1
- package/dist/{Legend-D3hovFqM.js → Legend-BXctzvx2.js} +1 -1
- package/dist/{Legend-BOY57qwA.cjs → Legend-sAjd_vcA.cjs} +1 -1
- package/dist/{Shape-D6jrLLku.cjs → Shape-BGa7uWId.cjs} +1 -1
- package/dist/{Shape-XiTBfhJM.js → Shape-BUBQ5omG.js} +1 -1
- package/dist/{Slicer-BMvzmCKt.js → Slicer-CXK3XM-z.js} +79 -87
- package/dist/Slicer-CoyHeBxs.cjs +1 -0
- package/dist/{Title-DJ2FNrSN.js → Title-BITuZ5CT.js} +1 -1
- package/dist/{Title-Ahj4TYHa.cjs → Title-DbAaPd9q.cjs} +1 -1
- package/dist/{Tooltip-CQpXRqRC.js → Tooltip-DDBocDY4.js} +1 -1
- package/dist/{Tooltip-XhevgJmm.cjs → Tooltip-LE8exuMN.cjs} +1 -1
- package/dist/{index-D2epy0rJ.js → index-CP7GYbDW.js} +170 -162
- package/dist/index-U4mCr8P0.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +10 -0
- package/dist/types/vue-data-ui.d.ts +10 -0
- package/dist/{useNestedProp-B-NmF2LO.cjs → useNestedProp-CgUQgTyB.cjs} +1 -1
- package/dist/{useNestedProp-C_ZrJBd9.js → useNestedProp-Dfz8QNDn.js} +1 -1
- package/dist/{usePrinter-B6qtXaHk.js → usePrinter-BfETb5Ie.js} +1 -1
- package/dist/{usePrinter-DN-6Hoh5.cjs → usePrinter-DQLl_Row.cjs} +1 -1
- package/dist/{vue-data-ui-vegY0BJm.js → vue-data-ui-BiTJ4KBF.js} +57 -57
- package/dist/{vue-data-ui-DlNasA0G.cjs → vue-data-ui-CgTf8Gw2.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-CqRRjlUU.cjs → vue-ui-3d-bar-CKCcmMbS.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-D-0SSMOt.js → vue-ui-3d-bar-CKDV9VVB.js} +7 -7
- package/dist/{vue-ui-accordion-BaV9R6cy.cjs → vue-ui-accordion-AcWCsB0f.cjs} +1 -1
- package/dist/{vue-ui-accordion-DzTB2FL0.js → vue-ui-accordion-DZSSaEp4.js} +3 -3
- package/dist/{vue-ui-age-pyramid-_eo2DGen.js → vue-ui-age-pyramid-Cy-J_3gK.js} +8 -8
- package/dist/{vue-ui-age-pyramid-Bx4BuL3K.cjs → vue-ui-age-pyramid-DQ-h0bbz.cjs} +1 -1
- package/dist/{vue-ui-annotator-8j2dJ0CU.js → vue-ui-annotator-Dn_5RY5_.js} +1 -1
- package/dist/{vue-ui-annotator-CDZtr6tp.cjs → vue-ui-annotator-GBAeaQUB.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CsF7OSvJ.js → vue-ui-candlestick-CAdWy5Y1.js} +9 -9
- package/dist/{vue-ui-candlestick-NypxP0Uu.cjs → vue-ui-candlestick-guSNt_H0.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CV0eVeRd.cjs → vue-ui-carousel-table-CuFG5v2i.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CMHd2i-6.js → vue-ui-carousel-table-DmmKDp7-.js} +4 -4
- package/dist/{vue-ui-chestnut-CVftKftk.js → vue-ui-chestnut-BmzjUDjK.js} +6 -6
- package/dist/{vue-ui-chestnut-B9miwyAN.cjs → vue-ui-chestnut-bAWBqCf3.cjs} +1 -1
- package/dist/{vue-ui-cursor-Bsrt107X.cjs → vue-ui-cursor-CfkNSO9o.cjs} +1 -1
- package/dist/{vue-ui-cursor-wujy8n_T.js → vue-ui-cursor-DDViNH81.js} +2 -2
- package/dist/{vue-ui-dashboard-Cvy0gI52.js → vue-ui-dashboard-BGwxII0l.js} +2 -2
- package/dist/{vue-ui-dashboard-BCN0BhjL.cjs → vue-ui-dashboard-CT09iVhX.cjs} +1 -1
- package/dist/{vue-ui-digits-J-WrKKHg.js → vue-ui-digits-BYO9w7xM.js} +2 -2
- package/dist/{vue-ui-digits-CnHgzHPI.cjs → vue-ui-digits-DObHCYJe.cjs} +1 -1
- package/dist/{vue-ui-donut-CZ1iKZq6.cjs → vue-ui-donut-B-YGaPcq.cjs} +1 -1
- package/dist/{vue-ui-donut-BOhWcHY_.js → vue-ui-donut-DqOvTGAK.js} +9 -9
- package/dist/{vue-ui-donut-evolution-CSSYuoti.js → vue-ui-donut-evolution-ByIcsVPF.js} +9 -9
- package/dist/{vue-ui-donut-evolution-DuY2883r.cjs → vue-ui-donut-evolution-DAzxGbsO.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-i9QcsSVO.cjs → vue-ui-dumbbell-Ch6sj_EW.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-Cm0Rp_6W.js → vue-ui-dumbbell-JpJFPxM2.js} +8 -8
- package/dist/{vue-ui-flow-0m7a1NP7.js → vue-ui-flow-BhtIMcan.js} +7 -7
- package/dist/{vue-ui-flow-DXCBGdQT.cjs → vue-ui-flow-C5N8YgfJ.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DCHEdZAl.js → vue-ui-galaxy-BZT14d6d.js} +9 -9
- package/dist/{vue-ui-galaxy-D6GyjAnX.cjs → vue-ui-galaxy-Cv38ZzWi.cjs} +1 -1
- package/dist/{vue-ui-gauge-wbHQGQro.cjs → vue-ui-gauge-BrwCmfGP.cjs} +1 -1
- package/dist/{vue-ui-gauge-HcM2JJpg.js → vue-ui-gauge-Dj2gBTkq.js} +5 -5
- package/dist/{vue-ui-gizmo-B-zMyi1m.cjs → vue-ui-gizmo-BhCZEfOE.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Bfo_nUnZ.js → vue-ui-gizmo-Dx0mO1Zf.js} +2 -2
- package/dist/{vue-ui-heatmap-CxIHmv0t.js → vue-ui-heatmap-DdSGFMo1.js} +8 -8
- package/dist/{vue-ui-heatmap-Du2vI5Ae.cjs → vue-ui-heatmap-azP3H0Be.cjs} +1 -1
- package/dist/{vue-ui-kpi-DibULfkp.js → vue-ui-kpi-C0fjrvpC.js} +3 -3
- package/dist/{vue-ui-kpi-BOe7-M9V.cjs → vue-ui-kpi-TKkErBy-.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-qFRhERid.js → vue-ui-mini-loader-CVflLGuB.js} +2 -2
- package/dist/{vue-ui-mini-loader-Bv7l-Kx3.cjs → vue-ui-mini-loader-DAos2pVd.cjs} +1 -1
- package/dist/{vue-ui-molecule-eOj3ZjvT.cjs → vue-ui-molecule-CW1523wC.cjs} +1 -1
- package/dist/{vue-ui-molecule-4cIGPnWg.js → vue-ui-molecule-D9OfBp53.js} +9 -9
- package/dist/{vue-ui-mood-radar-BTe21WKk.js → vue-ui-mood-radar-PMARjoQW.js} +9 -9
- package/dist/{vue-ui-mood-radar-tUFqqekd.cjs → vue-ui-mood-radar-vvG5BlGa.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BVzabOga.js → vue-ui-nested-donuts-Bt8ZHG4b.js} +9 -9
- package/dist/{vue-ui-nested-donuts-BigBLrFR.cjs → vue-ui-nested-donuts-wVELVgGD.cjs} +1 -1
- package/dist/{vue-ui-onion-C3TAKqro.js → vue-ui-onion-B-4djV2X.js} +9 -9
- package/dist/{vue-ui-onion-_ZC3vbIS.cjs → vue-ui-onion-j8P027dX.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CKoCQXqj.js → vue-ui-parallel-coordinate-plot-B2N249AX.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-BiXGkfj7.cjs → vue-ui-parallel-coordinate-plot-BRNG5VwG.cjs} +1 -1
- package/dist/{vue-ui-quadrant-B67wGTic.cjs → vue-ui-quadrant-BaDei-7C.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CKnyfJoi.js → vue-ui-quadrant-Bvv3ZZI7.js} +10 -10
- package/dist/{vue-ui-quick-chart-DZDYYnsI.js → vue-ui-quick-chart-BzFITYDP.js} +7 -7
- package/dist/{vue-ui-quick-chart-DEjdx0AB.cjs → vue-ui-quick-chart-OUDWfDwC.cjs} +1 -1
- package/dist/{vue-ui-radar-Cm_QkYGb.cjs → vue-ui-radar-Bpz3hyr9.cjs} +1 -1
- package/dist/{vue-ui-radar-v9yayJxu.js → vue-ui-radar-CXH5XhDS.js} +10 -10
- package/dist/{vue-ui-rating-DV4cCZbB.cjs → vue-ui-rating-BEtR56Zg.cjs} +1 -1
- package/dist/{vue-ui-rating-Cc_N7qbe.js → vue-ui-rating-BcngasYQ.js} +2 -2
- package/dist/{vue-ui-relation-circle-Clqo4kkb.js → vue-ui-relation-circle-BmWv5Kwu.js} +5 -5
- package/dist/{vue-ui-relation-circle-DcpIVbI6.cjs → vue-ui-relation-circle-Cn4xYFeJ.cjs} +1 -1
- package/dist/{vue-ui-rings-DTn3t8Ku.cjs → vue-ui-rings-BbrUn18Q.cjs} +1 -1
- package/dist/{vue-ui-rings-D27xNq9q.js → vue-ui-rings-DDvVuJvv.js} +9 -9
- package/dist/{vue-ui-scatter-CXbrqLFm.cjs → vue-ui-scatter-C9B6pkLG.cjs} +1 -1
- package/dist/{vue-ui-scatter-C07Mon-6.js → vue-ui-scatter-CfgLA10v.js} +10 -10
- package/dist/{vue-ui-screenshot-D8TAvQYN.cjs → vue-ui-screenshot-BDjgeoQi.cjs} +1 -1
- package/dist/{vue-ui-screenshot-CsxqbqlJ.js → vue-ui-screenshot-W6aedcDN.js} +1 -1
- package/dist/{vue-ui-skeleton-BLiYyX95.js → vue-ui-skeleton-BAQjFiop.js} +2 -2
- package/dist/{vue-ui-skeleton-Br1K3exH.cjs → vue-ui-skeleton-BhG4niml.cjs} +1 -1
- package/dist/{vue-ui-smiley-BUHatT3Z.js → vue-ui-smiley-CQNAPd4d.js} +2 -2
- package/dist/{vue-ui-smiley-CR_TkSYT.cjs → vue-ui-smiley-J1L8V6KG.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CnUz6s1m.cjs → vue-ui-spark-trend-BTdNsDFX.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-GY2CfYRt.js → vue-ui-spark-trend-CBc-tBLR.js} +4 -4
- package/dist/{vue-ui-sparkbar-DaFwUA6Z.cjs → vue-ui-sparkbar-D0189X8M.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-tdgek1gv.js → vue-ui-sparkbar-DCLpbzSR.js} +3 -3
- package/dist/{vue-ui-sparkgauge-D8P01Hem.cjs → vue-ui-sparkgauge-ButS3IF8.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-1zu5KmTA.js → vue-ui-sparkgauge-C-12vLRd.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-b68QStxA.js → vue-ui-sparkhistogram-CqHEh_4P.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-mg6yuwLH.cjs → vue-ui-sparkhistogram-NLFMPPXv.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CMmtp8MK.js → vue-ui-sparkline-BaHeaRVl.js} +3 -3
- package/dist/{vue-ui-sparkline-CAqav9Gn.cjs → vue-ui-sparkline-Cy8fuCDw.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DOrquZvw.cjs → vue-ui-sparkstackbar-B64XK1yu.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Cz8tOM3m.js → vue-ui-sparkstackbar-BLvXeEbr.js} +3 -3
- package/dist/{vue-ui-stackbar-DeQkP1dj.js → vue-ui-stackbar-B-ZE7Ksh.js} +10 -10
- package/dist/{vue-ui-stackbar-DUa5F_Zl.cjs → vue-ui-stackbar-CLmcckvD.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-KNL9ToYG.cjs → vue-ui-strip-plot-DTJeRXEM.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-vqOCzdFV.js → vue-ui-strip-plot-DbmLZ03_.js} +9 -9
- package/dist/{vue-ui-table-DDdVqdHt.js → vue-ui-table-CpUWJGi_.js} +1 -1
- package/dist/{vue-ui-table-BCdHNku5.cjs → vue-ui-table-DdroDYB6.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BJDnZMZN.cjs → vue-ui-table-heatmap-CSHkuLE3.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DQg_jtYq.js → vue-ui-table-heatmap-XJj-iDhJ.js} +4 -4
- package/dist/{vue-ui-table-sparkline-Bg-VFq7X.js → vue-ui-table-sparkline-DEhCOiH8.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D8DJxb5J.cjs → vue-ui-table-sparkline-GgMGhbwH.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CajBbbYc.js → vue-ui-thermometer-CF9_Jiig.js} +5 -5
- package/dist/{vue-ui-thermometer-eYM8DX7u.cjs → vue-ui-thermometer-LM5LB1fZ.cjs} +1 -1
- package/dist/{vue-ui-timer-D3VRVK-8.js → vue-ui-timer-BN3oSs18.js} +4 -4
- package/dist/{vue-ui-timer-RclP4Tql.cjs → vue-ui-timer-Kw8zfnyl.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-Bc8bBBAw.cjs → vue-ui-tiremarks-B5Ieo2VI.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BT0k_3xi.js → vue-ui-tiremarks-CTiztDdT.js} +5 -5
- package/dist/{vue-ui-treemap-BjWDt2b2.cjs → vue-ui-treemap-CHngTUd0.cjs} +1 -1
- package/dist/{vue-ui-treemap-DMhe3zCm.js → vue-ui-treemap-DEDT65NP.js} +9 -9
- package/dist/{vue-ui-vertical-bar-DWzafNBH.cjs → vue-ui-vertical-bar-C8XQwe6S.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-hH9R9V-K.js → vue-ui-vertical-bar-hFeIrO6z.js} +9 -9
- package/dist/{vue-ui-waffle-DnNd6Iba.js → vue-ui-waffle-CLbMVN8j.js} +9 -9
- package/dist/{vue-ui-waffle-BvYE9hAY.cjs → vue-ui-waffle-tFQq8-qt.cjs} +1 -1
- package/dist/{vue-ui-wheel-CVBmY6h7.cjs → vue-ui-wheel-CMRCYfem.cjs} +1 -1
- package/dist/{vue-ui-wheel-Bx9_m-7W.js → vue-ui-wheel-DpPdEqHh.js} +5 -5
- package/dist/{vue-ui-word-cloud-3R-mYkIW.cjs → vue-ui-word-cloud-C18oOvC0.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DUk0Xt8q.js → vue-ui-word-cloud-DTXq9aIY.js} +7 -7
- package/dist/vue-ui-xy-Bw1GQuGo.cjs +3 -0
- package/dist/{vue-ui-xy-FtaqoNK8.js → vue-ui-xy-DN8TqWYI.js} +376 -374
- package/dist/{vue-ui-xy-canvas-Bp4PTl_E.js → vue-ui-xy-canvas-BoH-Grae.js} +10 -10
- package/dist/{vue-ui-xy-canvas-Ctw_3PzN.cjs → vue-ui-xy-canvas-Dg9jorcV.cjs} +1 -1
- package/package.json +1 -1
- package/dist/Slicer-sZ-DArc4.cjs +0 -1
- package/dist/index-CVgBMJU6.cjs +0 -4
- package/dist/vue-ui-xy-rX-aml0b.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 h, computed as d, watch as w, onMounted as Y, openBlock as c, createElementBlock as v, createElementVNode as n, normalizeStyle as b, 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-D2n64yMC.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-CP7GYbDW.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-1029266f"), 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-bb159e36"), 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"],
|
|
19
|
+
}, pe = ["xmlns", "viewBox"], fe = ["id"], ye = ["stop-color"], ge = /* @__PURE__ */ O(() => /* @__PURE__ */ n("stop", {
|
|
20
20
|
offset: "100%",
|
|
21
21
|
"stop-color": "transparent"
|
|
22
|
-
}, null, -1)),
|
|
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"], Ne = ["cx", "cy", "stroke", "fill"], we = ["x1", "x2", "y2", "stroke"], $e = ["x", "height", "width", "onMouseenter"], Ie = /* @__PURE__ */ O(() => /* @__PURE__ */ n("div", { class: "slider-track" }, null, -1)), Fe = ["min", "max"], Le = ["min", "max"], Me = {
|
|
23
23
|
__name: "Slicer",
|
|
24
24
|
props: {
|
|
25
25
|
background: {
|
|
@@ -111,13 +111,13 @@ const O = (l) => (ae("data-v-bb159e36"), 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
|
+
"3450fc53": T.value,
|
|
115
|
+
"6772f672": S.value,
|
|
116
|
+
"31c3be10": W.value,
|
|
117
|
+
a7087412: l.selectColor,
|
|
118
|
+
"584345f6": U.value
|
|
119
119
|
}));
|
|
120
|
-
const u =
|
|
120
|
+
const u = h(e.min), r = h(e.max), g = d(() => !!e.minimap.length), $ = h(re()), D = d(() => {
|
|
121
121
|
const t = e.max - e.min, a = (u.value - e.min) / t * 100, o = (r.value - e.min) / t * 100;
|
|
122
122
|
return {
|
|
123
123
|
left: `${a}%`,
|
|
@@ -130,7 +130,7 @@ const O = (l) => (ae("data-v-bb159e36"), l = l(), ie(), l), me = {
|
|
|
130
130
|
t.push(a);
|
|
131
131
|
return t;
|
|
132
132
|
});
|
|
133
|
-
function
|
|
133
|
+
function F() {
|
|
134
134
|
y("reset");
|
|
135
135
|
}
|
|
136
136
|
function X() {
|
|
@@ -150,30 +150,30 @@ const O = (l) => (ae("data-v-bb159e36"), l = l(), ie(), l), me = {
|
|
|
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 C =
|
|
153
|
+
const C = h(null), i = h({
|
|
154
154
|
width: 1,
|
|
155
155
|
height: 1
|
|
156
|
-
}),
|
|
156
|
+
}), L = h(null);
|
|
157
157
|
Y(() => {
|
|
158
|
-
if (
|
|
158
|
+
if (g.value) {
|
|
159
159
|
const t = oe(() => {
|
|
160
160
|
const { width: a, height: o } = ue({
|
|
161
161
|
chart: C.value
|
|
162
162
|
});
|
|
163
|
-
|
|
163
|
+
i.value.width = a, i.value.height = o - 47;
|
|
164
164
|
});
|
|
165
|
-
|
|
165
|
+
L.value = new ResizeObserver(t), L.value.observe(C.value);
|
|
166
166
|
}
|
|
167
167
|
});
|
|
168
|
-
const s = d(() => e.minimap.length ?
|
|
168
|
+
const s = d(() => e.minimap.length ? i.value.width / e.minimap.length : 0), p = d(() => {
|
|
169
169
|
if (!e.minimap.length) return [];
|
|
170
170
|
const t = Math.max(...e.minimap), a = Math.min(...e.minimap) - 10, o = t - (a > 0 ? 0 : a), m = e.minimap.map((_, H) => {
|
|
171
171
|
const J = _ - a;
|
|
172
172
|
return {
|
|
173
|
-
x:
|
|
174
|
-
y:
|
|
173
|
+
x: i.value.width / e.minimap.length * H + s.value / 2,
|
|
174
|
+
y: i.value.height - J / o * (i.value.height * 0.9)
|
|
175
175
|
};
|
|
176
|
-
}), N = e.smoothMinimap ? V(m) : B(m),
|
|
176
|
+
}), N = e.smoothMinimap ? V(m) : B(m), M = [...m].slice(e.valueStart, e.valueEnd), Z = e.smoothMinimap ? V(M) : B(M);
|
|
177
177
|
return {
|
|
178
178
|
fullSet: N,
|
|
179
179
|
selectionSet: Z,
|
|
@@ -182,44 +182,44 @@ const O = (l) => (ae("data-v-bb159e36"), l = l(), ie(), l), me = {
|
|
|
182
182
|
};
|
|
183
183
|
}), f = d(() => ({
|
|
184
184
|
x: s.value * u.value + s.value / 2,
|
|
185
|
-
width:
|
|
185
|
+
width: i.value.width * ((r.value - u.value) / e.max) - s.value
|
|
186
186
|
})), q = d(() => ({
|
|
187
187
|
left: 0,
|
|
188
188
|
color: e.textColor,
|
|
189
189
|
fontSize: `${e.fontSize}px`,
|
|
190
|
-
top:
|
|
190
|
+
top: g.value ? "28px" : "-28px",
|
|
191
191
|
pointerEvents: "none"
|
|
192
192
|
})), G = d(() => ({
|
|
193
193
|
right: 0,
|
|
194
194
|
color: e.textColor,
|
|
195
195
|
fontSize: `${e.fontSize}px`,
|
|
196
|
-
top:
|
|
196
|
+
top: g.value ? "28px" : "-28px",
|
|
197
197
|
direction: "rtl",
|
|
198
198
|
pointerEvents: "none"
|
|
199
|
-
})),
|
|
199
|
+
})), x = h(e.minimapSelectedIndex);
|
|
200
200
|
w(() => e.minimapSelectedIndex, (t) => {
|
|
201
|
-
|
|
201
|
+
x.value = t + e.valueStart;
|
|
202
202
|
}, { immediate: !0 });
|
|
203
203
|
function Q(t) {
|
|
204
|
-
|
|
204
|
+
x.value = t, t >= e.valueStart && t < e.valueEnd && y("trapMouse", t - e.valueStart);
|
|
205
205
|
}
|
|
206
206
|
return (t, a) => (c(), v("div", me, [
|
|
207
|
-
|
|
207
|
+
n("div", ce, [
|
|
208
208
|
l.valueStart > 0 || l.valueEnd < l.max ? (c(), v("div", ve, [
|
|
209
209
|
l.useResetSlot ? te(t.$slots, "reset-action", {
|
|
210
210
|
key: 1,
|
|
211
|
-
reset:
|
|
211
|
+
reset: F
|
|
212
212
|
}, void 0, !0) : (c(), v("button", {
|
|
213
213
|
key: 0,
|
|
214
214
|
"data-cy-reset": "",
|
|
215
215
|
tabindex: "0",
|
|
216
216
|
role: "button",
|
|
217
217
|
class: "vue-data-ui-refresh-button",
|
|
218
|
-
style:
|
|
219
|
-
top:
|
|
218
|
+
style: b({
|
|
219
|
+
top: g.value ? "36px" : "-16px",
|
|
220
220
|
pointerEvents: "all !important"
|
|
221
221
|
}),
|
|
222
|
-
onClick:
|
|
222
|
+
onClick: F
|
|
223
223
|
}, [
|
|
224
224
|
ee(ne, {
|
|
225
225
|
name: "refresh",
|
|
@@ -228,154 +228,146 @@ const O = (l) => (ae("data-v-bb159e36"), l = l(), ie(), l), me = {
|
|
|
228
228
|
], 4))
|
|
229
229
|
])) : k("", !0)
|
|
230
230
|
]),
|
|
231
|
-
|
|
231
|
+
n("div", {
|
|
232
232
|
class: "double-range-slider",
|
|
233
233
|
ref_key: "minimapWrapper",
|
|
234
234
|
ref: C,
|
|
235
235
|
style: { "z-index": "0" }
|
|
236
236
|
}, [
|
|
237
|
-
|
|
237
|
+
g.value ? (c(), v("div", he, [
|
|
238
238
|
(c(), v("svg", {
|
|
239
239
|
xmlns: le(se),
|
|
240
|
-
viewBox: `0 0 ${
|
|
240
|
+
viewBox: `0 0 ${i.value.width < 0 ? 0 : i.value.width} ${i.value.height < 0 ? 0 : i.value.height}`
|
|
241
241
|
}, [
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
n("defs", null, [
|
|
243
|
+
n("linearGradient", {
|
|
244
244
|
id: $.value,
|
|
245
245
|
x1: "0%",
|
|
246
246
|
y1: "0%",
|
|
247
247
|
x2: "0%",
|
|
248
248
|
y2: "100%"
|
|
249
249
|
}, [
|
|
250
|
-
|
|
250
|
+
n("stop", {
|
|
251
251
|
offset: "0%",
|
|
252
252
|
"stop-color": `${l.minimapLineColor}50`
|
|
253
253
|
}, null, 8, ye),
|
|
254
|
-
|
|
254
|
+
ge
|
|
255
255
|
], 8, fe)
|
|
256
256
|
]),
|
|
257
|
-
|
|
258
|
-
d: `M${
|
|
257
|
+
n("path", {
|
|
258
|
+
d: `M${p.value.fullSet}`,
|
|
259
259
|
stroke: `${l.minimapLineColor}`,
|
|
260
260
|
fill: "none",
|
|
261
261
|
"stroke-width": "1",
|
|
262
262
|
"stroke-linecap": "round",
|
|
263
263
|
"stroke-linejoin": "round",
|
|
264
264
|
style: { opacity: "1" }
|
|
265
|
-
}, null, 8,
|
|
266
|
-
|
|
265
|
+
}, null, 8, xe),
|
|
266
|
+
n("rect", {
|
|
267
267
|
x: f.value.x,
|
|
268
268
|
width: f.value.width < 0 ? 0 : f.value.width,
|
|
269
|
-
height:
|
|
269
|
+
height: i.value.height,
|
|
270
270
|
y: 0,
|
|
271
271
|
fill: S.value,
|
|
272
272
|
rx: l.minimapSelectionRadius,
|
|
273
273
|
stroke: "none"
|
|
274
|
-
}, null, 8,
|
|
275
|
-
|
|
276
|
-
d: `M${s.value / 2},${
|
|
274
|
+
}, null, 8, be),
|
|
275
|
+
n("path", {
|
|
276
|
+
d: `M${s.value / 2},${i.value.height} ${p.value.fullSet} L${i.value.width - s.value / 2},${i.value.height}Z`,
|
|
277
277
|
fill: `url(#${$.value})`,
|
|
278
278
|
stroke: "none",
|
|
279
279
|
style: { opacity: "1" }
|
|
280
280
|
}, null, 8, Se),
|
|
281
|
-
|
|
281
|
+
n("rect", {
|
|
282
282
|
x: f.value.x,
|
|
283
283
|
width: f.value.width < 0 ? 0 : f.value.width,
|
|
284
|
-
height:
|
|
284
|
+
height: i.value.height,
|
|
285
285
|
y: 0,
|
|
286
286
|
fill: l.minimapSelectedColor,
|
|
287
|
-
style:
|
|
287
|
+
style: b({
|
|
288
288
|
opacity: l.minimapSelectedColorOpacity
|
|
289
289
|
})
|
|
290
290
|
}, null, 12, ke),
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
fill: "transparent",
|
|
295
|
-
"stroke-width": "2",
|
|
296
|
-
"stroke-linecap": "round",
|
|
297
|
-
"stroke-linejoin": "round"
|
|
298
|
-
}, null, 8, Ce),
|
|
299
|
-
i("circle", {
|
|
300
|
-
cx: h.value.firstPlot.x,
|
|
301
|
-
cy: h.value.firstPlot.y,
|
|
291
|
+
n("circle", {
|
|
292
|
+
cx: p.value.firstPlot.x,
|
|
293
|
+
cy: p.value.firstPlot.y,
|
|
302
294
|
"stroke-width": "0.5",
|
|
303
295
|
stroke: S.value,
|
|
304
296
|
r: "3",
|
|
305
297
|
fill: l.minimapLineColor
|
|
306
|
-
}, null, 8,
|
|
307
|
-
|
|
308
|
-
cx:
|
|
309
|
-
cy:
|
|
298
|
+
}, null, 8, Ce),
|
|
299
|
+
n("circle", {
|
|
300
|
+
cx: p.value.lastPlot.x,
|
|
301
|
+
cy: p.value.lastPlot.y,
|
|
310
302
|
"stroke-width": "0.5",
|
|
311
303
|
stroke: S.value,
|
|
312
304
|
r: "3",
|
|
313
305
|
fill: l.minimapLineColor
|
|
314
|
-
}, null, 8,
|
|
315
|
-
|
|
316
|
-
|
|
306
|
+
}, null, 8, Ne),
|
|
307
|
+
x.value !== null ? (c(!0), v(P, { key: 0 }, z(I.value, (o, m) => (c(), v("g", null, [
|
|
308
|
+
x.value === o && o >= l.valueStart && o < l.valueEnd ? (c(), v("line", {
|
|
317
309
|
key: 0,
|
|
318
310
|
x1: s.value * m + s.value / 2,
|
|
319
311
|
x2: s.value * m + s.value / 2,
|
|
320
312
|
y1: 0,
|
|
321
|
-
y2:
|
|
313
|
+
y2: i.value.height,
|
|
322
314
|
stroke: l.minimapIndicatorColor,
|
|
323
315
|
"stroke-linecap": "round",
|
|
324
316
|
"stroke-dasharray": "2",
|
|
325
317
|
"stroke-width": "1"
|
|
326
|
-
}, null, 8,
|
|
318
|
+
}, null, 8, we)) : k("", !0)
|
|
327
319
|
]))), 256)) : k("", !0),
|
|
328
320
|
(c(!0), v(P, null, z(I.value, (o, m) => (c(), v("rect", {
|
|
329
321
|
x: s.value * m,
|
|
330
322
|
y: 0,
|
|
331
|
-
height:
|
|
323
|
+
height: i.value.height,
|
|
332
324
|
width: s.value,
|
|
333
325
|
fill: "transparent",
|
|
334
326
|
style: { "pointer-events": "all !important" },
|
|
335
327
|
onMouseenter: (N) => Q(o),
|
|
336
328
|
onMouseleave: a[0] || (a[0] = (N) => {
|
|
337
|
-
|
|
329
|
+
x.value = null, y("trapMouse", null);
|
|
338
330
|
})
|
|
339
|
-
}, null, 40,
|
|
331
|
+
}, null, 40, $e))), 256))
|
|
340
332
|
], 8, pe))
|
|
341
333
|
])) : k("", !0),
|
|
342
|
-
|
|
343
|
-
|
|
334
|
+
Ie,
|
|
335
|
+
n("div", {
|
|
344
336
|
class: "range-highlight",
|
|
345
|
-
style:
|
|
337
|
+
style: b(D.value)
|
|
346
338
|
}, null, 4),
|
|
347
|
-
E(
|
|
339
|
+
E(n("input", {
|
|
348
340
|
type: "range",
|
|
349
341
|
class: "range-left",
|
|
350
342
|
min: l.min,
|
|
351
343
|
max: l.max,
|
|
352
344
|
"onUpdate:modelValue": a[1] || (a[1] = (o) => u.value = o),
|
|
353
345
|
onInput: X
|
|
354
|
-
}, null, 40,
|
|
346
|
+
}, null, 40, Fe), [
|
|
355
347
|
[A, u.value]
|
|
356
348
|
]),
|
|
357
|
-
|
|
349
|
+
n("div", {
|
|
358
350
|
class: "thumb-label thumb-label-left",
|
|
359
|
-
style:
|
|
351
|
+
style: b(q.value)
|
|
360
352
|
}, R(l.labelLeft), 5),
|
|
361
|
-
E(
|
|
353
|
+
E(n("input", {
|
|
362
354
|
type: "range",
|
|
363
355
|
class: "range-right",
|
|
364
356
|
min: l.min,
|
|
365
357
|
max: l.max,
|
|
366
358
|
"onUpdate:modelValue": a[2] || (a[2] = (o) => r.value = o),
|
|
367
359
|
onInput: j
|
|
368
|
-
}, null, 40,
|
|
360
|
+
}, null, 40, Le), [
|
|
369
361
|
[A, r.value]
|
|
370
362
|
]),
|
|
371
|
-
|
|
363
|
+
n("div", {
|
|
372
364
|
class: "thumb-label thumb-label-right",
|
|
373
|
-
style:
|
|
365
|
+
style: b(G.value)
|
|
374
366
|
}, R(l.labelRight), 5)
|
|
375
367
|
], 512)
|
|
376
368
|
]));
|
|
377
369
|
}
|
|
378
|
-
},
|
|
370
|
+
}, Ve = /* @__PURE__ */ de(Me, [["__scopeId", "data-v-1029266f"]]);
|
|
379
371
|
export {
|
|
380
|
-
|
|
372
|
+
Ve as S
|
|
381
373
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),O=require("./BaseIcon-CgLB-iUq.cjs"),C=require("./useResponsive-B3TrDDIG.cjs"),v=require("./index-U4mCr8P0.cjs"),T=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w=a=>(e.pushScopeId("data-v-1029266f"),a=a(),e.popScopeId(),a),U={"data-html2canvas-ignore":"",style:{padding:"0 24px"}},W={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},X={key:0,style:{width:"100%",position:"relative"}},_={key:0,class:"minimap",style:{width:"100%"}},j=["xmlns","viewBox"],G=["id"],H=["stop-color"],Z=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=["cx","cy","stroke","fill"],te=["cx","cy","stroke","fill"],le=["x1","x2","y2","stroke"],ae=["x","height","width","onMouseenter"],ne=w(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),oe=["min","max"],ie=["min","max"],re={__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=>({"3450fc53":B.value,"6772f672":y.value,"31c3be10":z.value,a7087412:a.selectColor,"584345f6":$.value}));const r=e.ref(t.min),u=e.ref(t.max),p=e.computed(()=>!!t.minimap.length),b=e.ref(v.createUid()),V=e.computed(()=>{const l=t.max-t.min,n=(r.value-t.min)/l*100,i=(u.value-t.min)/l*100;return{left:`${n}%`,width:`${i-n}%`,background:t.selectColor}}),B=e.computed(()=>t.inputColor),$=e.computed(()=>t.background),z=e.computed(()=>`${t.selectColor}33`),y=e.computed(()=>t.borderColor),S=e.computed(()=>{let l=[];for(let n=0;n<t.minimap.length;n+=1)l.push(n);return l});function k(){h("reset")}function F(){Number(r.value)>Number(u.value)-1&&(r.value=Number(u.value)-1),h("update:start",Number(r.value))}function I(){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 g=e.ref(null),o=e.ref({width:1,height:1}),N=e.ref(null);e.onMounted(()=>{if(p.value){const l=C.throttle(()=>{const{width:n,height:i}=C.useResponsive({chart:g.value});o.value.width=n,o.value.height=i-47});N.value=new ResizeObserver(l),N.value.observe(g.value)}});const s=e.computed(()=>t.minimap.length?o.value.width/t.minimap.length:0),d=e.computed(()=>{if(!t.minimap.length)return[];const l=Math.max(...t.minimap),n=Math.min(...t.minimap)-10,i=l-(n>0?0:n),c=t.minimap.map((A,q)=>{const D=A-n;return{x:o.value.width/t.minimap.length*q+s.value/2,y:o.value.height-D/i*(o.value.height*.9)}}),x=t.smoothMinimap?v.createSmoothPath(c):v.createStraightPath(c),E=[...c].slice(t.valueStart,t.valueEnd),R=t.smoothMinimap?v.createSmoothPath(E):v.createStraightPath(E);return{fullSet:x,selectionSet:R,firstPlot:c[t.valueStart],lastPlot:c[t.valueEnd-1]}}),m=e.computed(()=>({x:s.value*r.value+s.value/2,width:o.value.width*((u.value-r.value)/t.max)-s.value})),L=e.computed(()=>({left:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:p.value?"28px":"-28px",pointerEvents:"none"})),M=e.computed(()=>({right:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:p.value?"28px":"-28px",direction:"rtl",pointerEvents:"none"})),f=e.ref(t.minimapSelectedIndex);e.watch(()=>t.minimapSelectedIndex,l=>{f.value=l+t.valueStart},{immediate:!0});function P(l){f.value=l,l>=t.valueStart&&l<t.valueEnd&&h("trapMouse",l-t.valueStart)}return(l,n)=>(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("div",W,[a.valueStart>0||a.valueEnd<a.max?(e.openBlock(),e.createElementBlock("div",X,[a.useResetSlot?e.renderSlot(l.$slots,"reset-action",{key:1,reset:k},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:k},[e.createVNode(O.default,{name:"refresh",stroke:a.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:g,style:{"z-index":"0"}},[p.value?(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(v.XMLNS),viewBox:`0 0 ${o.value.width<0?0:o.value.width} ${o.value.height<0?0:o.value.height}`},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:b.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${a.minimapLineColor}50`},null,8,H),Z],8,G)]),e.createElementVNode("path",{d:`M${d.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:o.value.height,y:0,fill:y.value,rx:a.minimapSelectionRadius,stroke:"none"},null,8,K),e.createElementVNode("path",{d:`M${s.value/2},${o.value.height} ${d.value.fullSet} L${o.value.width-s.value/2},${o.value.height}Z`,fill:`url(#${b.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:o.value.height,y:0,fill:a.minimapSelectedColor,style:e.normalizeStyle({opacity:a.minimapSelectedColorOpacity})},null,12,Y),e.createElementVNode("circle",{cx:d.value.firstPlot.x,cy:d.value.firstPlot.y,"stroke-width":"0.5",stroke:y.value,r:"3",fill:a.minimapLineColor},null,8,ee),e.createElementVNode("circle",{cx:d.value.lastPlot.x,cy:d.value.lastPlot.y,"stroke-width":"0.5",stroke:y.value,r:"3",fill:a.minimapLineColor},null,8,te),f.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(S.value,(i,c)=>(e.openBlock(),e.createElementBlock("g",null,[f.value===i&&i>=a.valueStart&&i<a.valueEnd?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.value*c+s.value/2,x2:s.value*c+s.value/2,y1:0,y2:o.value.height,stroke:a.minimapIndicatorColor,"stroke-linecap":"round","stroke-dasharray":"2","stroke-width":"1"},null,8,le)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(i,c)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value*c,y:0,height:o.value.height,width:s.value,fill:"transparent",style:{"pointer-events":"all !important"},onMouseenter:x=>P(i),onMouseleave:n[0]||(n[0]=x=>{f.value=null,h("trapMouse",null)})},null,40,ae))),256))],8,j))])):e.createCommentVNode("",!0),ne,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":n[1]||(n[1]=i=>r.value=i),onInput:F},null,40,oe),[[e.vModelText,r.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-left",style:e.normalizeStyle(L.value)},e.toDisplayString(a.labelLeft),5),e.withDirectives(e.createElementVNode("input",{type:"range",class:"range-right",min:a.min,max:a.max,"onUpdate:modelValue":n[2]||(n[2]=i=>u.value=i),onInput:I},null,40,ie),[[e.vModelText,u.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-right",style:e.normalizeStyle(M.value)},e.toDisplayString(a.labelRight),5)],512)]))}},ue=T._export_sfc(re,[["__scopeId","data-v-1029266f"]]);exports.Slicer=ue;
|
|
@@ -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-Dfz8QNDn.js";
|
|
3
3
|
const b = {
|
|
4
4
|
__name: "Title",
|
|
5
5
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),r=require("./useNestedProp-
|
|
1
|
+
"use strict";const t=require("vue"),r=require("./useNestedProp-CgUQgTyB.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 { 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-CP7GYbDW.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) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("vue"),v=require("./index-
|
|
1
|
+
"use strict";const o=require("vue"),v=require("./index-U4mCr8P0.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;
|