vue-data-ui 2.4.79 → 2.4.80
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-Ckps_h_h.cjs → Arrow-D7TkI6Ay.cjs} +1 -1
- package/dist/{Arrow-CZYIn9eL.js → Arrow-HywvQFIb.js} +1 -1
- package/dist/{BaseIcon-DmjD9_x3.cjs → BaseIcon-5jC5U27p.cjs} +1 -1
- package/dist/{BaseIcon-BmzdBA_n.js → BaseIcon-CL3j-fI9.js} +1 -1
- package/dist/{DataTable-B2jdS-OG.js → DataTable-DInI0nyj.js} +2 -2
- package/dist/{DataTable-CX55KEac.cjs → DataTable-fHBZCQD_.cjs} +1 -1
- package/dist/{Legend-DSoIWaIm.cjs → Legend-BGxT3Yv0.cjs} +1 -1
- package/dist/{Legend-DCSiQPuL.js → Legend-Ci1axdG_.js} +2 -2
- package/dist/{PackageVersion-CiKxfy3h.js → PackageVersion-Cchpqacn.js} +1 -1
- package/dist/{PackageVersion-DLubhuZS.cjs → PackageVersion-X1kVHC-z.cjs} +1 -1
- package/dist/{PenAndPaper-Dkvtj3o8.js → PenAndPaper-BKH98f-S.js} +3 -3
- package/dist/{PenAndPaper-DmTTxoH_.cjs → PenAndPaper-ChPMqRX7.cjs} +1 -1
- package/dist/{Shape-BO_Ef-2H.js → Shape-Cvp52J0c.js} +1 -1
- package/dist/{Shape-DicDy5ja.cjs → Shape-kTprcCU0.cjs} +1 -1
- package/dist/Slicer-BAXp89_0.cjs +1 -0
- package/dist/Slicer-CtV2RLUM.js +546 -0
- package/dist/{Title-Dc2F9vf7.cjs → Title-ByUzU0ju.cjs} +1 -1
- package/dist/{Title-B4ZkvXK-.js → Title-PkqdmDqN.js} +1 -1
- package/dist/{Tooltip-Cd-T5cyc.cjs → Tooltip-D0I2_wrW.cjs} +1 -1
- package/dist/{Tooltip-B0LX9lY0.js → Tooltip-m3Z3Wlu2.js} +1 -1
- package/dist/{index-DJL-Bkqp.js → index-C2mIRYI5.js} +1 -1
- package/dist/{index-0dnbsm6P.cjs → index-DBFjPsZ3.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-B5IAA861.cjs → useNestedProp-C6A3gxy9.cjs} +1 -1
- package/dist/{useNestedProp-uEksOW7g.js → useNestedProp-nx1ZIRNV.js} +1 -1
- package/dist/{usePrinter-DdGbL4Nm.js → usePrinter-D0_MYOSc.js} +1 -1
- package/dist/{usePrinter-CRgTdjvo.cjs → usePrinter-NpeVna5L.cjs} +1 -1
- package/dist/{vue-data-ui-DnUrT668.cjs → vue-data-ui-DCBYDQ8d.cjs} +1 -1
- package/dist/{vue-data-ui-DH_NVt2Y.js → vue-data-ui-DN2kou23.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CHmad-2R.cjs → vue-ui-3d-bar-BzqpUiO9.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-E96Fh4bt.js → vue-ui-3d-bar-CX4cgFJW.js} +9 -9
- package/dist/{vue-ui-accordion-BFiGf3JH.cjs → vue-ui-accordion-BB0V98cT.cjs} +1 -1
- package/dist/{vue-ui-accordion-B_eXBJPl.js → vue-ui-accordion-CbgAyykZ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CXRrdWei.js → vue-ui-age-pyramid-DKNcamFG.js} +10 -10
- package/dist/{vue-ui-age-pyramid-e_hykrXO.cjs → vue-ui-age-pyramid-lTOdjMKu.cjs} +1 -1
- package/dist/{vue-ui-annotator-D9LEIs0K.js → vue-ui-annotator-CUzQpHGa.js} +1 -1
- package/dist/{vue-ui-annotator-BgORX2C5.cjs → vue-ui-annotator-pJhAuSac.cjs} +1 -1
- package/dist/{vue-ui-bullet-Bag56IIJ.js → vue-ui-bullet-Bthmg1VV.js} +8 -8
- package/dist/{vue-ui-bullet-BOkYPzif.cjs → vue-ui-bullet-R3ISDQsd.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DO-VI3mP.js → vue-ui-candlestick-CvHVfAu7.js} +11 -11
- package/dist/{vue-ui-candlestick-B-jIAcFq.cjs → vue-ui-candlestick-KvgWKIaO.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-EsGc3cUz.cjs → vue-ui-carousel-table-BjjvMcc0.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BMIh1Ebr.js → vue-ui-carousel-table-DCi_yXu2.js} +4 -4
- package/dist/{vue-ui-chestnut-DSvIYyla.js → vue-ui-chestnut-BckiQcJs.js} +8 -8
- package/dist/{vue-ui-chestnut-DztcJ6be.cjs → vue-ui-chestnut-Dotk5uHN.cjs} +1 -1
- package/dist/{vue-ui-cursor-CIRMZioa.cjs → vue-ui-cursor-C9LwYeDb.cjs} +1 -1
- package/dist/{vue-ui-cursor-BoIxmcTJ.js → vue-ui-cursor-DE0HZhQL.js} +2 -2
- package/dist/{vue-ui-dashboard-CGKgFm-J.cjs → vue-ui-dashboard-Dp87Gc9L.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DEPiIO5h.js → vue-ui-dashboard-DtWvVA-k.js} +2 -2
- package/dist/{vue-ui-digits-BsoQJduO.js → vue-ui-digits-CFjurLzc.js} +2 -2
- package/dist/{vue-ui-digits-5mLwwYL4.cjs → vue-ui-digits-DQA6ixem.cjs} +1 -1
- package/dist/{vue-ui-donut-llWIbtQp.cjs → vue-ui-donut-DIHfCjBP.cjs} +1 -1
- package/dist/{vue-ui-donut-G2ULBU8l.js → vue-ui-donut-DRIPG4qf.js} +12 -12
- package/dist/{vue-ui-donut-evolution-Blr2REpx.cjs → vue-ui-donut-evolution-BrcrheUX.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BTrHgtdk.js → vue-ui-donut-evolution-DfKOKQFY.js} +11 -11
- package/dist/{vue-ui-dumbbell-B6sZjfji.cjs → vue-ui-dumbbell-CAg1cU2x.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-B016NgrO.js → vue-ui-dumbbell-Dx6YSKly.js} +10 -10
- package/dist/{vue-ui-flow-Drv-rQxc.js → vue-ui-flow-DOipmqqm.js} +9 -9
- package/dist/{vue-ui-flow-DBSOYUBa.cjs → vue-ui-flow-HuZqv_Mr.cjs} +1 -1
- package/dist/{vue-ui-funnel-BToC759R.js → vue-ui-funnel-CSRH6I73.js} +9 -9
- package/dist/{vue-ui-funnel-DB2ffuqD.cjs → vue-ui-funnel-ClZWVU3W.cjs} +1 -1
- package/dist/{vue-ui-galaxy-Bv5qHEuI.cjs → vue-ui-galaxy-B0Gxsuaj.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BugfEsdL.js → vue-ui-galaxy-vP8xR-K-.js} +11 -11
- package/dist/{vue-ui-gauge-Dz6mZtio.cjs → vue-ui-gauge-Dr7NdYqP.cjs} +1 -1
- package/dist/{vue-ui-gauge-B1e3bQ5v.js → vue-ui-gauge-QEApv_T5.js} +7 -7
- package/dist/{vue-ui-gizmo-BnI-keJZ.js → vue-ui-gizmo-Cr3L2fkb.js} +3 -3
- package/dist/{vue-ui-gizmo-qy22gBYB.cjs → vue-ui-gizmo-q7PyJf3N.cjs} +1 -1
- package/dist/{vue-ui-heatmap-I3_jZmtP.js → vue-ui-heatmap-CY7z5uPC.js} +10 -10
- package/dist/{vue-ui-heatmap-CWlfZsyN.cjs → vue-ui-heatmap-Dlqs0ZRP.cjs} +1 -1
- package/dist/{vue-ui-history-plot-DB6tM7q1.js → vue-ui-history-plot-B0UmKljg.js} +11 -11
- package/dist/{vue-ui-history-plot-Dy5l19KO.cjs → vue-ui-history-plot-De2TbpxV.cjs} +1 -1
- package/dist/{vue-ui-kpi-CMPPk7-2.js → vue-ui-kpi-CR1lNimt.js} +3 -3
- package/dist/{vue-ui-kpi-C-RJn7Qb.cjs → vue-ui-kpi-CdbzO6dm.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BTovhpqa.js → vue-ui-mini-loader-B2k4Zk3c.js} +2 -2
- package/dist/{vue-ui-mini-loader-DdgUBFgc.cjs → vue-ui-mini-loader-DJ2voqOx.cjs} +1 -1
- package/dist/{vue-ui-molecule-BToE-D1m.cjs → vue-ui-molecule-C72LUB1R.cjs} +1 -1
- package/dist/{vue-ui-molecule-DEApFPTb.js → vue-ui-molecule-DAz6ytsR.js} +11 -11
- package/dist/{vue-ui-mood-radar-DidL44m8.js → vue-ui-mood-radar-CwFs3yx-.js} +11 -11
- package/dist/{vue-ui-mood-radar-CzQJlxHB.cjs → vue-ui-mood-radar-atwG7SN7.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-B4rvzmai.cjs → vue-ui-nested-donuts-CmjvIdjy.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CZCq_ntG.js → vue-ui-nested-donuts-CyOGu99e.js} +11 -11
- package/dist/{vue-ui-onion-Bz7SkpKH.js → vue-ui-onion-D-PSIMqW.js} +11 -11
- package/dist/{vue-ui-onion-BN1bQ_8T.cjs → vue-ui-onion-Tcb-YXPb.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BROqRQi1.js → vue-ui-parallel-coordinate-plot-CSq_ztwh.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-ihPS549o.cjs → vue-ui-parallel-coordinate-plot-Do_BYnGv.cjs} +1 -1
- package/dist/{vue-ui-quadrant-a8UWsJs0.js → vue-ui-quadrant-A1-scvDl.js} +12 -12
- package/dist/{vue-ui-quadrant-D-8RaXV1.cjs → vue-ui-quadrant-CFT6mDQf.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DtOsqO98.js → vue-ui-quick-chart-CfAX6N6x.js} +9 -9
- package/dist/{vue-ui-quick-chart-vJIqGDPA.cjs → vue-ui-quick-chart-oZu8nE65.cjs} +1 -1
- package/dist/{vue-ui-radar-DpdtzwTa.js → vue-ui-radar-BF_X5reX.js} +12 -12
- package/dist/{vue-ui-radar-CqVTynLe.cjs → vue-ui-radar-BLIRb8-e.cjs} +1 -1
- package/dist/{vue-ui-rating-DlIF1TSo.cjs → vue-ui-rating-BcJxCL9T.cjs} +1 -1
- package/dist/{vue-ui-rating-CrSkkJtF.js → vue-ui-rating-CPhAqTMY.js} +2 -2
- package/dist/{vue-ui-relation-circle-BNqozco5.cjs → vue-ui-relation-circle-BSq5niUB.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DAbgurAL.js → vue-ui-relation-circle-C4WtlzjR.js} +7 -7
- package/dist/{vue-ui-rings-FuqykMtf.js → vue-ui-rings-BxKf1fKQ.js} +12 -12
- package/dist/{vue-ui-rings-BQBc8s_2.cjs → vue-ui-rings-D_oSqIee.cjs} +1 -1
- package/dist/{vue-ui-scatter-Cspy4HEB.cjs → vue-ui-scatter-BzNnkurj.cjs} +1 -1
- package/dist/{vue-ui-scatter-LB5ZPicT.js → vue-ui-scatter-Dy-p7Wtu.js} +12 -12
- package/dist/{vue-ui-screenshot-BOSDTFhQ.js → vue-ui-screenshot-CgPpGG9k.js} +1 -1
- package/dist/{vue-ui-screenshot-DGJZevoI.cjs → vue-ui-screenshot-DSmfT3MR.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DgPl6VyF.cjs → vue-ui-skeleton-20TN6Ch2.cjs} +1 -1
- package/dist/{vue-ui-skeleton-z4MGfNaM.js → vue-ui-skeleton-Cb2qrhYT.js} +3 -3
- package/dist/{vue-ui-smiley-DAx9UeuW.cjs → vue-ui-smiley-DtlSAsdM.cjs} +1 -1
- package/dist/{vue-ui-smiley-BH4kob-0.js → vue-ui-smiley-U2CIWUwg.js} +2 -2
- package/dist/{vue-ui-spark-trend-B2zsG57C.js → vue-ui-spark-trend-BMtR1Pi0.js} +5 -5
- package/dist/{vue-ui-spark-trend-C1IgkFvC.cjs → vue-ui-spark-trend-Bdb83Or_.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DTAMO_6l.cjs → vue-ui-sparkbar-C-0M8j8u.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BxILnvE_.js → vue-ui-sparkbar-D0VeUaEb.js} +4 -4
- package/dist/{vue-ui-sparkgauge-oKz3v_tA.cjs → vue-ui-sparkgauge-BWojoCVe.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Bh6Xnlrr.js → vue-ui-sparkgauge-Hp3ybBWb.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-BwHRHEjh.cjs → vue-ui-sparkhistogram-DRASXRMH.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-hroDFCtN.js → vue-ui-sparkhistogram-PvQgia6F.js} +5 -5
- package/dist/{vue-ui-sparkline-BoTbKk0m.js → vue-ui-sparkline-CI-MxWXp.js} +4 -4
- package/dist/{vue-ui-sparkline-DVsfUCqf.cjs → vue-ui-sparkline-DthSItEI.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Dx-gwkJS.js → vue-ui-sparkstackbar-BDw738BK.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BPLyPxbb.cjs → vue-ui-sparkstackbar-CSPWjjZ9.cjs} +1 -1
- package/dist/{vue-ui-stackbar-Bo35LeX3.cjs → vue-ui-stackbar-C14-7LhJ.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CytcFp3F.js → vue-ui-stackbar-CMe20-6p.js} +13 -13
- package/dist/{vue-ui-strip-plot-BWElug2N.js → vue-ui-strip-plot-3V5Roils.js} +11 -11
- package/dist/{vue-ui-strip-plot-6YPlHYHR.cjs → vue-ui-strip-plot-CT6zIUSS.cjs} +1 -1
- package/dist/{vue-ui-table-CpaLMB0s.cjs → vue-ui-table-CwsJHKSJ.cjs} +1 -1
- package/dist/{vue-ui-table-CkyKeMnT.js → vue-ui-table-LiO7zYPI.js} +1 -1
- package/dist/{vue-ui-table-heatmap-REK_djPO.js → vue-ui-table-heatmap-BDydCyHc.js} +4 -4
- package/dist/{vue-ui-table-heatmap-C2p-9Bww.cjs → vue-ui-table-heatmap-Ch3IAca3.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-XH9Z7XJu.js → vue-ui-table-sparkline-CpMMEuyJ.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D-p7um7k.cjs → vue-ui-table-sparkline-uRakWvAL.cjs} +1 -1
- package/dist/{vue-ui-thermometer-B2_wvLY0.cjs → vue-ui-thermometer-C1WVxmG2.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CHDexaNq.js → vue-ui-thermometer-ccjAdXXK.js} +7 -7
- package/dist/{vue-ui-timer-CO-ocJlg.js → vue-ui-timer-Bz5-5ROu.js} +5 -5
- package/dist/{vue-ui-timer-XNil_xPc.cjs → vue-ui-timer-C4xMxcYZ.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-PhCHMESG.cjs → vue-ui-tiremarks-CpVvaTWi.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-D1KhIO-C.js → vue-ui-tiremarks-N_GjxnG-.js} +7 -7
- package/dist/{vue-ui-treemap-CTaRPtej.js → vue-ui-treemap-CaxwLYar.js} +11 -11
- package/dist/{vue-ui-treemap-eRw-KvRP.cjs → vue-ui-treemap-I3ZJNnqf.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CKNaAzgO.js → vue-ui-vertical-bar-CIFczbF9.js} +12 -12
- package/dist/{vue-ui-vertical-bar-C397hdCy.cjs → vue-ui-vertical-bar-CwOtDK03.cjs} +1 -1
- package/dist/{vue-ui-waffle-BoPIMVpL.cjs → vue-ui-waffle-CMSJBjtH.cjs} +1 -1
- package/dist/{vue-ui-waffle-IiqKFXtD.js → vue-ui-waffle-C_HzXt-Y.js} +12 -12
- package/dist/{vue-ui-wheel-Qxs183kC.js → vue-ui-wheel-BHszQkHF.js} +7 -7
- package/dist/{vue-ui-wheel-zs6y5J02.cjs → vue-ui-wheel-CfcHGnt7.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CKmr45uE.cjs → vue-ui-word-cloud-BaTb-aot.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-7WimWD85.js → vue-ui-word-cloud-C0v5gBrv.js} +10 -10
- package/dist/{vue-ui-xy-DMwaxdDv.js → vue-ui-xy-CCXp8odX.js} +14 -14
- package/dist/{vue-ui-xy-CkFO_zsE.cjs → vue-ui-xy-CabZW_Ej.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-3FUkwO0G.js → vue-ui-xy-canvas-CdgdK8ol.js} +11 -11
- package/dist/{vue-ui-xy-canvas-Cr3-2wGm.cjs → vue-ui-xy-canvas-Dk6948dM.cjs} +1 -1
- package/package.json +1 -1
- package/dist/Slicer-3blwRUEA.js +0 -491
- package/dist/Slicer-be7PbWkd.cjs +0 -1
package/dist/Slicer-3blwRUEA.js
DELETED
|
@@ -1,491 +0,0 @@
|
|
|
1
|
-
import { useCssVars as Se, ref as d, computed as s, watch as A, onMounted as we, onBeforeUnmount as ke, openBlock as m, createElementBlock as h, createElementVNode as u, normalizeStyle as b, createVNode as Ne, renderSlot as Ce, createCommentVNode as S, unref as Me, Fragment as G, renderList as Z, normalizeClass as F, withDirectives as q, vModelText as Q, toDisplayString as J, pushScopeId as $e, popScopeId as Ee } from "vue";
|
|
2
|
-
import Le from "./BaseIcon-BmzdBA_n.js";
|
|
3
|
-
import { t as Re, u as De } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { c as Pe, R as K, Q as Y, X as ze } from "./index-DJL-Bkqp.js";
|
|
5
|
-
import { _ as Ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
const _ = (l) => ($e("data-v-9e5835c7"), l = l(), Ee(), l), Be = {
|
|
7
|
-
class: "vue-data-ui-slicer-labels",
|
|
8
|
-
style: { position: "relative", "z-index": "1", "pointer-events": "none" }
|
|
9
|
-
}, Ae = {
|
|
10
|
-
key: 0,
|
|
11
|
-
style: { width: "100%", position: "relative" }
|
|
12
|
-
}, Fe = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "minimap",
|
|
15
|
-
style: { width: "100%" }
|
|
16
|
-
}, Te = ["xmlns", "viewBox"], Ve = ["id"], He = ["stop-color"], Xe = /* @__PURE__ */ _(() => /* @__PURE__ */ u("stop", {
|
|
17
|
-
offset: "100%",
|
|
18
|
-
"stop-color": "transparent"
|
|
19
|
-
}, null, -1)), We = ["d", "stroke"], Oe = ["x", "width", "height", "fill", "rx"], Ue = ["d", "fill"], je = ["x", "width", "height", "rx", "fill"], Ge = ["x", "width", "height", "fill", "rx"], Ze = ["d", "fill"], qe = ["d", "stroke"], Qe = ["cx", "cy", "stroke", "fill"], Je = ["cx", "cy", "stroke", "fill"], Ke = ["x1", "x2", "y2", "stroke"], Ye = ["x", "height", "width", "onMouseenter"], _e = /* @__PURE__ */ _(() => /* @__PURE__ */ u("div", { class: "slider-track" }, null, -1)), et = ["min", "max"], tt = ["min", "max"], lt = {
|
|
20
|
-
__name: "Slicer",
|
|
21
|
-
props: {
|
|
22
|
-
background: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: "#FFFFFF"
|
|
25
|
-
},
|
|
26
|
-
borderColor: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: "#FFFFFF"
|
|
29
|
-
},
|
|
30
|
-
fontSize: {
|
|
31
|
-
type: Number,
|
|
32
|
-
default: 14
|
|
33
|
-
},
|
|
34
|
-
labelLeft: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: ""
|
|
37
|
-
},
|
|
38
|
-
labelRight: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: ""
|
|
41
|
-
},
|
|
42
|
-
textColor: {
|
|
43
|
-
type: String,
|
|
44
|
-
default: "#1A1A1A"
|
|
45
|
-
},
|
|
46
|
-
inputColor: {
|
|
47
|
-
type: String,
|
|
48
|
-
default: "#1A1A1A"
|
|
49
|
-
},
|
|
50
|
-
max: {
|
|
51
|
-
type: Number,
|
|
52
|
-
default: 0
|
|
53
|
-
},
|
|
54
|
-
min: {
|
|
55
|
-
type: Number,
|
|
56
|
-
default: 0
|
|
57
|
-
},
|
|
58
|
-
selectColor: {
|
|
59
|
-
type: String,
|
|
60
|
-
default: "#4A4A4A"
|
|
61
|
-
},
|
|
62
|
-
useResetSlot: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: !1
|
|
65
|
-
},
|
|
66
|
-
valueStart: {
|
|
67
|
-
type: [Number, String],
|
|
68
|
-
default: 0
|
|
69
|
-
},
|
|
70
|
-
valueEnd: {
|
|
71
|
-
type: [Number, String],
|
|
72
|
-
default: 0
|
|
73
|
-
},
|
|
74
|
-
minimap: {
|
|
75
|
-
type: Array,
|
|
76
|
-
default: []
|
|
77
|
-
},
|
|
78
|
-
smoothMinimap: {
|
|
79
|
-
type: Boolean,
|
|
80
|
-
default: !1
|
|
81
|
-
},
|
|
82
|
-
minimapSelectedColor: {
|
|
83
|
-
type: String,
|
|
84
|
-
default: "#1f77b4"
|
|
85
|
-
},
|
|
86
|
-
minimapSelectionRadius: {
|
|
87
|
-
type: Number,
|
|
88
|
-
default: 12
|
|
89
|
-
},
|
|
90
|
-
minimapLineColor: {
|
|
91
|
-
type: String,
|
|
92
|
-
default: "#2D353C"
|
|
93
|
-
},
|
|
94
|
-
minimapSelectedColorOpacity: {
|
|
95
|
-
type: Number,
|
|
96
|
-
default: 0.2
|
|
97
|
-
},
|
|
98
|
-
minimapSelectedIndex: {
|
|
99
|
-
type: Number,
|
|
100
|
-
default: null
|
|
101
|
-
},
|
|
102
|
-
minimapIndicatorColor: {
|
|
103
|
-
type: String,
|
|
104
|
-
default: "#2D353C"
|
|
105
|
-
},
|
|
106
|
-
refreshStartPoint: {
|
|
107
|
-
type: Number,
|
|
108
|
-
default: 0
|
|
109
|
-
},
|
|
110
|
-
refreshEndPoint: {
|
|
111
|
-
type: Number,
|
|
112
|
-
default: null
|
|
113
|
-
},
|
|
114
|
-
enableRangeHandles: {
|
|
115
|
-
type: Boolean,
|
|
116
|
-
default: !1
|
|
117
|
-
},
|
|
118
|
-
enableSelectionDrag: {
|
|
119
|
-
type: Boolean,
|
|
120
|
-
default: !0
|
|
121
|
-
},
|
|
122
|
-
verticalHandles: {
|
|
123
|
-
type: Boolean,
|
|
124
|
-
default: !1
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
emits: ["update:start", "update:end", "reset", "trapMouse"],
|
|
128
|
-
setup(l, { expose: ee, emit: p }) {
|
|
129
|
-
const t = l;
|
|
130
|
-
Se((e) => ({
|
|
131
|
-
"5fabffc8": ae.value,
|
|
132
|
-
"10bcef88": w.value,
|
|
133
|
-
"7bb80ea6": ie.value,
|
|
134
|
-
"50526d28": l.selectColor,
|
|
135
|
-
"0a709dfa": ne.value
|
|
136
|
-
}));
|
|
137
|
-
const y = d(null), o = d(t.min), r = d(t.max), x = s(() => !!t.minimap.length), M = d(Pe()), te = s(() => t.refreshEndPoint === null ? t.max : t.refreshEndPoint), le = s(() => {
|
|
138
|
-
const e = t.max - t.min, a = (o.value - t.min) / e * 100, n = (r.value - t.min) / e * 100;
|
|
139
|
-
return {
|
|
140
|
-
left: `${a}%`,
|
|
141
|
-
width: `${n - a}%`,
|
|
142
|
-
background: t.selectColor
|
|
143
|
-
};
|
|
144
|
-
}), ae = s(() => t.inputColor), ne = s(() => t.background), ie = s(() => `${t.selectColor}33`), w = s(() => t.borderColor), T = s(() => {
|
|
145
|
-
let e = [];
|
|
146
|
-
for (let a = 0; a < t.minimap.length; a += 1)
|
|
147
|
-
e.push(a);
|
|
148
|
-
return e;
|
|
149
|
-
});
|
|
150
|
-
function V() {
|
|
151
|
-
p("reset");
|
|
152
|
-
}
|
|
153
|
-
function ue() {
|
|
154
|
-
Number(o.value) > Number(r.value) - 1 && (o.value = Number(r.value) - 1), p("update:start", Number(o.value));
|
|
155
|
-
}
|
|
156
|
-
function oe() {
|
|
157
|
-
Number(r.value) < Number(o.value) + 1 && (r.value = Number(o.value) + 1), p("update:end", Number(r.value));
|
|
158
|
-
}
|
|
159
|
-
A(
|
|
160
|
-
() => t.min,
|
|
161
|
-
(e) => {
|
|
162
|
-
Number(o.value) < Number(e) && (o.value = Number(e)), Number(r.value) < Number(e) && (r.value = Number(e));
|
|
163
|
-
}
|
|
164
|
-
), A(
|
|
165
|
-
() => t.max,
|
|
166
|
-
(e) => {
|
|
167
|
-
Number(o.value) > Number(e) && (o.value = Number(e)), Number(r.value) > Number(e) && (r.value = Number(e));
|
|
168
|
-
}
|
|
169
|
-
);
|
|
170
|
-
const $ = d(null), i = d({
|
|
171
|
-
width: 1,
|
|
172
|
-
height: 1
|
|
173
|
-
}), C = d(null);
|
|
174
|
-
we(() => {
|
|
175
|
-
if (x.value) {
|
|
176
|
-
const e = Re(() => {
|
|
177
|
-
const { width: a, height: n } = De({
|
|
178
|
-
chart: $.value
|
|
179
|
-
});
|
|
180
|
-
i.value.width = a, i.value.height = n - 47;
|
|
181
|
-
});
|
|
182
|
-
C.value = new ResizeObserver(e), C.value.observe($.value);
|
|
183
|
-
}
|
|
184
|
-
}), ke(() => {
|
|
185
|
-
C.value && C.value.disconnect();
|
|
186
|
-
});
|
|
187
|
-
const c = s(() => t.minimap.length ? i.value.width / t.minimap.length : 0), f = s(() => {
|
|
188
|
-
if (!t.minimap.length) return [];
|
|
189
|
-
const e = Math.max(...t.minimap), a = Math.min(...t.minimap) - 10, n = e - (a > 0 ? 0 : a), v = t.minimap.map((xe, ye) => {
|
|
190
|
-
const be = xe - a;
|
|
191
|
-
return {
|
|
192
|
-
x: i.value.width / t.minimap.length * ye + c.value / 2,
|
|
193
|
-
y: i.value.height - be / n * (i.value.height * 0.9)
|
|
194
|
-
};
|
|
195
|
-
}), N = t.smoothMinimap ? K(v) : Y(v), B = [...v].slice(t.valueStart, t.valueEnd), pe = t.smoothMinimap ? K(B) : Y(B);
|
|
196
|
-
return {
|
|
197
|
-
fullSet: N,
|
|
198
|
-
selectionSet: pe,
|
|
199
|
-
sliced: B,
|
|
200
|
-
firstPlot: v[t.valueStart],
|
|
201
|
-
lastPlot: v[t.valueEnd - 1]
|
|
202
|
-
};
|
|
203
|
-
}), g = s(() => ({
|
|
204
|
-
x: c.value * o.value + c.value / 2,
|
|
205
|
-
width: i.value.width * ((r.value - o.value) / t.max) - c.value
|
|
206
|
-
})), re = s(() => ({
|
|
207
|
-
left: 0,
|
|
208
|
-
color: t.textColor,
|
|
209
|
-
fontSize: `${t.fontSize}px`,
|
|
210
|
-
top: x.value ? "28px" : "-28px",
|
|
211
|
-
pointerEvents: "none"
|
|
212
|
-
})), se = s(() => ({
|
|
213
|
-
right: 0,
|
|
214
|
-
color: t.textColor,
|
|
215
|
-
fontSize: `${t.fontSize}px`,
|
|
216
|
-
top: x.value ? "28px" : "-28px",
|
|
217
|
-
direction: "rtl",
|
|
218
|
-
pointerEvents: "none"
|
|
219
|
-
})), k = d(t.minimapSelectedIndex);
|
|
220
|
-
A(() => t.minimapSelectedIndex, (e) => {
|
|
221
|
-
k.value = e + t.valueStart;
|
|
222
|
-
}, { immediate: !0 });
|
|
223
|
-
function de(e) {
|
|
224
|
-
k.value = e, e >= t.valueStart && e < t.valueEnd && p("trapMouse", e - t.valueStart);
|
|
225
|
-
}
|
|
226
|
-
const ce = d(0), E = d(null), L = d(null);
|
|
227
|
-
function R(e) {
|
|
228
|
-
o.value = e, E.value && (E.value.value = e), p("update:start", Number(o.value));
|
|
229
|
-
}
|
|
230
|
-
function D(e) {
|
|
231
|
-
r.value = e, L.value && (L.value.value = e), p("update:end", Number(r.value));
|
|
232
|
-
}
|
|
233
|
-
const P = s(() => t.valueEnd - t.valueStart), z = d(!1);
|
|
234
|
-
let I = d(null);
|
|
235
|
-
const ve = s(() => y.value ? (y.value.getBoundingClientRect().width - 48) / (t.max - t.min) : 20), me = s(() => (y.value.getBoundingClientRect().width - 48) / (t.max - t.min) * P.value), he = d(2.5), H = s(() => {
|
|
236
|
-
const e = y.value.getBoundingClientRect().width - 48;
|
|
237
|
-
return Math.ceil((t.max - t.min) / ((e - me.value) / he.value));
|
|
238
|
-
}), X = (e) => {
|
|
239
|
-
if (!t.enableSelectionDrag)
|
|
240
|
-
return;
|
|
241
|
-
const a = e.type === "touchstart";
|
|
242
|
-
if ((a ? e.targetTouches[0].target : e.target).classList.contains("range-handle"))
|
|
243
|
-
return;
|
|
244
|
-
z.value = !0, I.value = a ? e.targetTouches[0].clientX : e.clientX;
|
|
245
|
-
const v = a ? fe : W, N = a ? ge : U;
|
|
246
|
-
window.addEventListener(a ? "touchmove" : "mousemove", v, { passive: !1 }), window.addEventListener(a ? "touchend" : "mouseup", N);
|
|
247
|
-
};
|
|
248
|
-
function W(e) {
|
|
249
|
-
O(e.clientX);
|
|
250
|
-
}
|
|
251
|
-
function fe(e) {
|
|
252
|
-
y.value.contains(e.target) && (e.target.classList.contains("range-handle") || (e.preventDefault(), O(e.targetTouches[0].clientX)));
|
|
253
|
-
}
|
|
254
|
-
function O(e) {
|
|
255
|
-
if (!z.value) return;
|
|
256
|
-
const a = e - I.value;
|
|
257
|
-
if (Math.abs(a) > ve.value) {
|
|
258
|
-
if (a > 0) {
|
|
259
|
-
if (Number(r.value) + 1 <= t.max) {
|
|
260
|
-
const n = Math.min(t.max, Number(r.value) + H.value);
|
|
261
|
-
D(n), R(n - P.value);
|
|
262
|
-
}
|
|
263
|
-
} else if (Number(o.value) - 1 >= t.min) {
|
|
264
|
-
const n = Math.max(0, Number(o.value) - H.value);
|
|
265
|
-
R(n), D(n + P.value);
|
|
266
|
-
}
|
|
267
|
-
I.value = e;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
function U() {
|
|
271
|
-
j("mousemove", "mouseup");
|
|
272
|
-
}
|
|
273
|
-
function ge() {
|
|
274
|
-
j("touchmove", "touchend");
|
|
275
|
-
}
|
|
276
|
-
function j(e, a) {
|
|
277
|
-
z.value = !1, window.removeEventListener(e, W), window.removeEventListener(a, U);
|
|
278
|
-
}
|
|
279
|
-
return ee({
|
|
280
|
-
setStartValue: R,
|
|
281
|
-
setEndValue: D
|
|
282
|
-
}), (e, a) => (m(), h("div", {
|
|
283
|
-
"data-html2canvas-ignore": "",
|
|
284
|
-
style: { padding: "0 24px" },
|
|
285
|
-
class: "vue-data-ui-zoom",
|
|
286
|
-
ref_key: "zoomWrapper",
|
|
287
|
-
ref: y,
|
|
288
|
-
onMousedown: X,
|
|
289
|
-
onTouchstart: X
|
|
290
|
-
}, [
|
|
291
|
-
u("div", Be, [
|
|
292
|
-
l.valueStart !== l.refreshStartPoint || l.valueEnd !== te.value ? (m(), h("div", Ae, [
|
|
293
|
-
l.useResetSlot ? Ce(e.$slots, "reset-action", {
|
|
294
|
-
key: 1,
|
|
295
|
-
reset: V
|
|
296
|
-
}, void 0, !0) : (m(), h("button", {
|
|
297
|
-
key: 0,
|
|
298
|
-
"data-cy-reset": "",
|
|
299
|
-
tabindex: "0",
|
|
300
|
-
role: "button",
|
|
301
|
-
class: "vue-data-ui-refresh-button",
|
|
302
|
-
style: b({
|
|
303
|
-
top: x.value ? "36px" : "-16px",
|
|
304
|
-
pointerEvents: "all !important"
|
|
305
|
-
}),
|
|
306
|
-
onClick: V
|
|
307
|
-
}, [
|
|
308
|
-
Ne(Le, {
|
|
309
|
-
name: "refresh",
|
|
310
|
-
stroke: l.textColor
|
|
311
|
-
}, null, 8, ["stroke"])
|
|
312
|
-
], 4))
|
|
313
|
-
])) : S("", !0)
|
|
314
|
-
]),
|
|
315
|
-
u("div", {
|
|
316
|
-
class: "double-range-slider",
|
|
317
|
-
ref_key: "minimapWrapper",
|
|
318
|
-
ref: $,
|
|
319
|
-
style: { "z-index": "0" }
|
|
320
|
-
}, [
|
|
321
|
-
x.value ? (m(), h("div", Fe, [
|
|
322
|
-
(m(), h("svg", {
|
|
323
|
-
xmlns: Me(ze),
|
|
324
|
-
viewBox: `0 0 ${i.value.width < 0 ? 0 : i.value.width} ${i.value.height < 0 ? 0 : i.value.height}`
|
|
325
|
-
}, [
|
|
326
|
-
u("defs", null, [
|
|
327
|
-
u("linearGradient", {
|
|
328
|
-
id: M.value,
|
|
329
|
-
x1: "0%",
|
|
330
|
-
y1: "0%",
|
|
331
|
-
x2: "0%",
|
|
332
|
-
y2: "100%"
|
|
333
|
-
}, [
|
|
334
|
-
u("stop", {
|
|
335
|
-
offset: "0%",
|
|
336
|
-
"stop-color": `${l.minimapLineColor}50`
|
|
337
|
-
}, null, 8, He),
|
|
338
|
-
Xe
|
|
339
|
-
], 8, Ve)
|
|
340
|
-
]),
|
|
341
|
-
u("path", {
|
|
342
|
-
d: `M${f.value.fullSet}`,
|
|
343
|
-
stroke: `${l.minimapLineColor}`,
|
|
344
|
-
fill: "none",
|
|
345
|
-
"stroke-width": "1",
|
|
346
|
-
"stroke-linecap": "round",
|
|
347
|
-
"stroke-linejoin": "round",
|
|
348
|
-
style: { opacity: "1" }
|
|
349
|
-
}, null, 8, We),
|
|
350
|
-
u("rect", {
|
|
351
|
-
x: g.value.x,
|
|
352
|
-
width: g.value.width < 0 ? 0 : g.value.width,
|
|
353
|
-
height: Math.max(i.value.height, 0),
|
|
354
|
-
y: 0,
|
|
355
|
-
fill: w.value,
|
|
356
|
-
rx: l.minimapSelectionRadius,
|
|
357
|
-
stroke: "none"
|
|
358
|
-
}, null, 8, Oe),
|
|
359
|
-
u("path", {
|
|
360
|
-
d: `M${c.value / 2},${Math.max(i.value.height, 0)} ${f.value.fullSet} L${i.value.width - c.value / 2},${Math.max(i.value.height, 0)}Z`,
|
|
361
|
-
fill: `url(#${M.value})`,
|
|
362
|
-
stroke: "none",
|
|
363
|
-
style: { opacity: "1" }
|
|
364
|
-
}, null, 8, Ue),
|
|
365
|
-
u("rect", {
|
|
366
|
-
x: g.value.x,
|
|
367
|
-
width: g.value.width < 0 ? 0 : g.value.width,
|
|
368
|
-
height: Math.max(i.value.height, 0),
|
|
369
|
-
y: 0,
|
|
370
|
-
rx: l.minimapSelectionRadius,
|
|
371
|
-
fill: w.value
|
|
372
|
-
}, null, 8, je),
|
|
373
|
-
u("rect", {
|
|
374
|
-
x: g.value.x,
|
|
375
|
-
width: g.value.width < 0 ? 0 : g.value.width,
|
|
376
|
-
height: Math.max(i.value.height, 0),
|
|
377
|
-
y: 0,
|
|
378
|
-
fill: l.minimapSelectedColor,
|
|
379
|
-
rx: l.minimapSelectionRadius,
|
|
380
|
-
style: b({
|
|
381
|
-
opacity: l.minimapSelectedColorOpacity
|
|
382
|
-
})
|
|
383
|
-
}, null, 12, Ge),
|
|
384
|
-
u("path", {
|
|
385
|
-
d: `M${f.value.sliced[0].x},${Math.max(i.value.height, 0)} ${f.value.selectionSet} L${f.value.sliced.at(-1).x},${Math.max(i.value.height, 0)}Z`,
|
|
386
|
-
fill: `url(#${M.value})`,
|
|
387
|
-
stroke: "none",
|
|
388
|
-
style: { opacity: "1" }
|
|
389
|
-
}, null, 8, Ze),
|
|
390
|
-
u("path", {
|
|
391
|
-
d: `M ${f.value.selectionSet}`,
|
|
392
|
-
stroke: `${l.minimapLineColor}`,
|
|
393
|
-
fill: "transparent",
|
|
394
|
-
"stroke-width": "2",
|
|
395
|
-
"stroke-linecap": "round",
|
|
396
|
-
"stroke-linejoin": "round"
|
|
397
|
-
}, null, 8, qe),
|
|
398
|
-
u("circle", {
|
|
399
|
-
cx: f.value.firstPlot.x,
|
|
400
|
-
cy: f.value.firstPlot.y,
|
|
401
|
-
"stroke-width": "0.5",
|
|
402
|
-
stroke: w.value,
|
|
403
|
-
r: "3",
|
|
404
|
-
fill: l.minimapLineColor
|
|
405
|
-
}, null, 8, Qe),
|
|
406
|
-
u("circle", {
|
|
407
|
-
cx: f.value.lastPlot.x,
|
|
408
|
-
cy: f.value.lastPlot.y,
|
|
409
|
-
"stroke-width": "0.5",
|
|
410
|
-
stroke: w.value,
|
|
411
|
-
r: "3",
|
|
412
|
-
fill: l.minimapLineColor
|
|
413
|
-
}, null, 8, Je),
|
|
414
|
-
k.value !== null ? (m(!0), h(G, { key: 0 }, Z(T.value, (n, v) => (m(), h("g", null, [
|
|
415
|
-
k.value === n && n >= l.valueStart && n < l.valueEnd ? (m(), h("line", {
|
|
416
|
-
key: 0,
|
|
417
|
-
x1: c.value * v + c.value / 2,
|
|
418
|
-
x2: c.value * v + c.value / 2,
|
|
419
|
-
y1: 0,
|
|
420
|
-
y2: Math.max(i.value.height, 0),
|
|
421
|
-
stroke: l.minimapIndicatorColor,
|
|
422
|
-
"stroke-linecap": "round",
|
|
423
|
-
"stroke-dasharray": "2",
|
|
424
|
-
"stroke-width": "1"
|
|
425
|
-
}, null, 8, Ke)) : S("", !0)
|
|
426
|
-
]))), 256)) : S("", !0),
|
|
427
|
-
(m(!0), h(G, null, Z(T.value, (n, v) => (m(), h("rect", {
|
|
428
|
-
x: c.value * v,
|
|
429
|
-
y: 0,
|
|
430
|
-
height: Math.max(i.value.height, 0),
|
|
431
|
-
width: c.value < 0 ? 0 : c.value,
|
|
432
|
-
fill: "transparent",
|
|
433
|
-
style: b([{ "pointer-events": "all !important" }, {
|
|
434
|
-
cursor: n >= l.valueStart && n < l.valueEnd && l.enableSelectionDrag ? "move" : "default"
|
|
435
|
-
}]),
|
|
436
|
-
onMouseenter: (N) => de(n),
|
|
437
|
-
onMouseleave: a[0] || (a[0] = (N) => {
|
|
438
|
-
k.value = null, p("trapMouse", null);
|
|
439
|
-
})
|
|
440
|
-
}, null, 44, Ye))), 256))
|
|
441
|
-
], 8, Te))
|
|
442
|
-
])) : S("", !0),
|
|
443
|
-
_e,
|
|
444
|
-
u("div", {
|
|
445
|
-
class: F({
|
|
446
|
-
"range-highlight": !0,
|
|
447
|
-
move: l.enableSelectionDrag
|
|
448
|
-
}),
|
|
449
|
-
style: b(le.value)
|
|
450
|
-
}, null, 6),
|
|
451
|
-
l.enableRangeHandles ? q((m(), h("input", {
|
|
452
|
-
ref_key: "rangeStart",
|
|
453
|
-
ref: E,
|
|
454
|
-
key: `range-min${ce.value}`,
|
|
455
|
-
type: "range",
|
|
456
|
-
class: F({ "range-left": !0, "range-handle": !0, "range-minimap": x.value && l.verticalHandles }),
|
|
457
|
-
min: l.min,
|
|
458
|
-
max: l.max,
|
|
459
|
-
"onUpdate:modelValue": a[1] || (a[1] = (n) => o.value = n),
|
|
460
|
-
onInput: ue
|
|
461
|
-
}, null, 42, et)), [
|
|
462
|
-
[Q, o.value]
|
|
463
|
-
]) : S("", !0),
|
|
464
|
-
u("div", {
|
|
465
|
-
class: "thumb-label thumb-label-left",
|
|
466
|
-
style: b(re.value)
|
|
467
|
-
}, J(l.labelLeft), 5),
|
|
468
|
-
l.enableRangeHandles ? q((m(), h("input", {
|
|
469
|
-
key: 2,
|
|
470
|
-
ref_key: "rangeEnd",
|
|
471
|
-
ref: L,
|
|
472
|
-
type: "range",
|
|
473
|
-
class: F({ "range-right": !0, "range-handle": !0, "range-minimap": x.value && l.verticalHandles }),
|
|
474
|
-
min: l.min,
|
|
475
|
-
max: l.max,
|
|
476
|
-
"onUpdate:modelValue": a[2] || (a[2] = (n) => r.value = n),
|
|
477
|
-
onInput: oe
|
|
478
|
-
}, null, 42, tt)), [
|
|
479
|
-
[Q, r.value]
|
|
480
|
-
]) : S("", !0),
|
|
481
|
-
u("div", {
|
|
482
|
-
class: "thumb-label thumb-label-right",
|
|
483
|
-
style: b(se.value)
|
|
484
|
-
}, J(l.labelRight), 5)
|
|
485
|
-
], 512)
|
|
486
|
-
], 544));
|
|
487
|
-
}
|
|
488
|
-
}, rt = /* @__PURE__ */ Ie(lt, [["__scopeId", "data-v-9e5835c7"]]);
|
|
489
|
-
export {
|
|
490
|
-
rt as S
|
|
491
|
-
};
|
package/dist/Slicer-be7PbWkd.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),ue=require("./BaseIcon-DmjD9_x3.cjs"),T=require("./useResponsive-BJ7DTGpm.cjs"),g=require("./index-0dnbsm6P.cjs"),se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H=a=>(e.pushScopeId("data-v-9e5835c7"),a=a(),e.popScopeId(),a),ce={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},de={key:0,style:{width:"100%",position:"relative"}},me={key:0,class:"minimap",style:{width:"100%"}},ve=["xmlns","viewBox"],he=["id"],fe=["stop-color"],ge=H(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1)),pe=["d","stroke"],xe=["x","width","height","fill","rx"],ye=["d","fill"],be=["x","width","height","rx","fill"],Se=["x","width","height","fill","rx"],ke=["d","fill"],Ne=["d","stroke"],Ee=["cx","cy","stroke","fill"],we=["cx","cy","stroke","fill"],Ce=["x1","x2","y2","stroke"],Be=["x","height","width","onMouseenter"],Ve=H(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Me=["min","max"],$e=["min","max"],ze={__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"},refreshStartPoint:{type:Number,default:0},refreshEndPoint:{type:Number,default:null},enableRangeHandles:{type:Boolean,default:!1},enableSelectionDrag:{type:Boolean,default:!0},verticalHandles:{type:Boolean,default:!1}},emits:["update:start","update:end","reset","trapMouse"],setup(a,{expose:W,emit:v}){const l=a;e.useCssVars(t=>({"5fabffc8":O.value,"10bcef88":p.value,"7bb80ea6":j.value,"50526d28":a.selectColor,"0a709dfa":U.value}));const f=e.ref(null),r=e.ref(l.min),u=e.ref(l.max),h=e.computed(()=>!!l.minimap.length),S=e.ref(g.createUid()),X=e.computed(()=>l.refreshEndPoint===null?l.max:l.refreshEndPoint),q=e.computed(()=>{const t=l.max-l.min,n=(r.value-l.min)/t*100,o=(u.value-l.min)/t*100;return{left:`${n}%`,width:`${o-n}%`,background:l.selectColor}}),O=e.computed(()=>l.inputColor),U=e.computed(()=>l.background),j=e.computed(()=>`${l.selectColor}33`),p=e.computed(()=>l.borderColor),z=e.computed(()=>{let t=[];for(let n=0;n<l.minimap.length;n+=1)t.push(n);return t});function L(){v("reset")}function G(){Number(r.value)>Number(u.value)-1&&(r.value=Number(u.value)-1),v("update:start",Number(r.value))}function Z(){Number(u.value)<Number(r.value)+1&&(u.value=Number(r.value)+1),v("update:end",Number(u.value))}e.watch(()=>l.min,t=>{Number(r.value)<Number(t)&&(r.value=Number(t)),Number(u.value)<Number(t)&&(u.value=Number(t))}),e.watch(()=>l.max,t=>{Number(r.value)>Number(t)&&(r.value=Number(t)),Number(u.value)>Number(t)&&(u.value=Number(t))});const k=e.ref(null),i=e.ref({width:1,height:1}),b=e.ref(null);e.onMounted(()=>{if(h.value){const t=T.throttle(()=>{const{width:n,height:o}=T.useResponsive({chart:k.value});i.value.width=n,i.value.height=o-47});b.value=new ResizeObserver(t),b.value.observe(k.value)}}),e.onBeforeUnmount(()=>{b.value&&b.value.disconnect()});const s=e.computed(()=>l.minimap.length?i.value.width/l.minimap.length:0),d=e.computed(()=>{if(!l.minimap.length)return[];const t=Math.max(...l.minimap),n=Math.min(...l.minimap)-10,o=t-(n>0?0:n),c=l.minimap.map((oe,ie)=>{const re=oe-n;return{x:i.value.width/l.minimap.length*ie+s.value/2,y:i.value.height-re/o*(i.value.height*.9)}}),y=l.smoothMinimap?g.createSmoothPath(c):g.createStraightPath(c),$=[...c].slice(l.valueStart,l.valueEnd),ne=l.smoothMinimap?g.createSmoothPath($):g.createStraightPath($);return{fullSet:y,selectionSet:ne,sliced:$,firstPlot:c[l.valueStart],lastPlot:c[l.valueEnd-1]}}),m=e.computed(()=>({x:s.value*r.value+s.value/2,width:i.value.width*((u.value-r.value)/l.max)-s.value})),J=e.computed(()=>({left:0,color:l.textColor,fontSize:`${l.fontSize}px`,top:h.value?"28px":"-28px",pointerEvents:"none"})),K=e.computed(()=>({right:0,color:l.textColor,fontSize:`${l.fontSize}px`,top:h.value?"28px":"-28px",direction:"rtl",pointerEvents:"none"})),x=e.ref(l.minimapSelectedIndex);e.watch(()=>l.minimapSelectedIndex,t=>{x.value=t+l.valueStart},{immediate:!0});function Q(t){x.value=t,t>=l.valueStart&&t<l.valueEnd&&v("trapMouse",t-l.valueStart)}const Y=e.ref(0),N=e.ref(null),E=e.ref(null);function w(t){r.value=t,N.value&&(N.value.value=t),v("update:start",Number(r.value))}function C(t){u.value=t,E.value&&(E.value.value=t),v("update:end",Number(u.value))}const B=e.computed(()=>l.valueEnd-l.valueStart),V=e.ref(!1);let M=e.ref(null);const _=e.computed(()=>f.value?(f.value.getBoundingClientRect().width-48)/(l.max-l.min):20),ee=e.computed(()=>(f.value.getBoundingClientRect().width-48)/(l.max-l.min)*B.value),te=e.ref(2.5),R=e.computed(()=>{const t=f.value.getBoundingClientRect().width-48;return Math.ceil((l.max-l.min)/((t-ee.value)/te.value))}),D=t=>{if(!l.enableSelectionDrag)return;const n=t.type==="touchstart";if((n?t.targetTouches[0].target:t.target).classList.contains("range-handle"))return;V.value=!0,M.value=n?t.targetTouches[0].clientX:t.clientX;const c=n?le:P,y=n?ae:F;window.addEventListener(n?"touchmove":"mousemove",c,{passive:!1}),window.addEventListener(n?"touchend":"mouseup",y)};function P(t){I(t.clientX)}function le(t){f.value.contains(t.target)&&(t.target.classList.contains("range-handle")||(t.preventDefault(),I(t.targetTouches[0].clientX)))}function I(t){if(!V.value)return;const n=t-M.value;if(Math.abs(n)>_.value){if(n>0){if(Number(u.value)+1<=l.max){const o=Math.min(l.max,Number(u.value)+R.value);C(o),w(o-B.value)}}else if(Number(r.value)-1>=l.min){const o=Math.max(0,Number(r.value)-R.value);w(o),C(o+B.value)}M.value=t}}function F(){A("mousemove","mouseup")}function ae(){A("touchmove","touchend")}function A(t,n){V.value=!1,window.removeEventListener(t,P),window.removeEventListener(n,F)}return W({setStartValue:w,setEndValue:C}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{"data-html2canvas-ignore":"",style:{padding:"0 24px"},class:"vue-data-ui-zoom",ref_key:"zoomWrapper",ref:f,onMousedown:D,onTouchstart:D},[e.createElementVNode("div",ce,[a.valueStart!==a.refreshStartPoint||a.valueEnd!==X.value?(e.openBlock(),e.createElementBlock("div",de,[a.useResetSlot?e.renderSlot(t.$slots,"reset-action",{key:1,reset:L},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:h.value?"36px":"-16px",pointerEvents:"all !important"}),onClick:L},[e.createVNode(ue.default,{name:"refresh",stroke:a.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:k,style:{"z-index":"0"}},[h.value?(e.openBlock(),e.createElementBlock("div",me,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(g.XMLNS),viewBox:`0 0 ${i.value.width<0?0:i.value.width} ${i.value.height<0?0:i.value.height}`},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:S.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${a.minimapLineColor}50`},null,8,fe),ge],8,he)]),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,pe),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:Math.max(i.value.height,0),y:0,fill:p.value,rx:a.minimapSelectionRadius,stroke:"none"},null,8,xe),e.createElementVNode("path",{d:`M${s.value/2},${Math.max(i.value.height,0)} ${d.value.fullSet} L${i.value.width-s.value/2},${Math.max(i.value.height,0)}Z`,fill:`url(#${S.value})`,stroke:"none",style:{opacity:"1"}},null,8,ye),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:Math.max(i.value.height,0),y:0,rx:a.minimapSelectionRadius,fill:p.value},null,8,be),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:Math.max(i.value.height,0),y:0,fill:a.minimapSelectedColor,rx:a.minimapSelectionRadius,style:e.normalizeStyle({opacity:a.minimapSelectedColorOpacity})},null,12,Se),e.createElementVNode("path",{d:`M${d.value.sliced[0].x},${Math.max(i.value.height,0)} ${d.value.selectionSet} L${d.value.sliced.at(-1).x},${Math.max(i.value.height,0)}Z`,fill:`url(#${S.value})`,stroke:"none",style:{opacity:"1"}},null,8,ke),e.createElementVNode("path",{d:`M ${d.value.selectionSet}`,stroke:`${a.minimapLineColor}`,fill:"transparent","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Ne),e.createElementVNode("circle",{cx:d.value.firstPlot.x,cy:d.value.firstPlot.y,"stroke-width":"0.5",stroke:p.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:p.value,r:"3",fill:a.minimapLineColor},null,8,we),x.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(z.value,(o,c)=>(e.openBlock(),e.createElementBlock("g",null,[x.value===o&&o>=a.valueStart&&o<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:Math.max(i.value.height,0),stroke:a.minimapIndicatorColor,"stroke-linecap":"round","stroke-dasharray":"2","stroke-width":"1"},null,8,Ce)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,(o,c)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value*c,y:0,height:Math.max(i.value.height,0),width:s.value<0?0:s.value,fill:"transparent",style:e.normalizeStyle([{"pointer-events":"all !important"},{cursor:o>=a.valueStart&&o<a.valueEnd&&a.enableSelectionDrag?"move":"default"}]),onMouseenter:y=>Q(o),onMouseleave:n[0]||(n[0]=y=>{x.value=null,v("trapMouse",null)})},null,44,Be))),256))],8,ve))])):e.createCommentVNode("",!0),Ve,e.createElementVNode("div",{class:e.normalizeClass({"range-highlight":!0,move:a.enableSelectionDrag}),style:e.normalizeStyle(q.value)},null,6),a.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{ref_key:"rangeStart",ref:N,key:`range-min${Y.value}`,type:"range",class:e.normalizeClass({"range-left":!0,"range-handle":!0,"range-minimap":h.value&&a.verticalHandles}),min:a.min,max:a.max,"onUpdate:modelValue":n[1]||(n[1]=o=>r.value=o),onInput:G},null,42,Me)),[[e.vModelText,r.value]]):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"thumb-label thumb-label-left",style:e.normalizeStyle(J.value)},e.toDisplayString(a.labelLeft),5),a.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,ref_key:"rangeEnd",ref:E,type:"range",class:e.normalizeClass({"range-right":!0,"range-handle":!0,"range-minimap":h.value&&a.verticalHandles}),min:a.min,max:a.max,"onUpdate:modelValue":n[2]||(n[2]=o=>u.value=o),onInput:Z},null,42,$e)),[[e.vModelText,u.value]]):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"thumb-label thumb-label-right",style:e.normalizeStyle(K.value)},e.toDisplayString(a.labelRight),5)],512)],544))}},Le=se._export_sfc(ze,[["__scopeId","data-v-9e5835c7"]]);exports.Slicer=Le;
|