vue-data-ui 2.3.56 → 2.3.57
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-DmbnhAr9.cjs → Arrow-DzUipdZc.cjs} +1 -1
- package/dist/{Arrow-BsFu2TQv.js → Arrow-ycy3_Slf.js} +1 -1
- package/dist/{BaseIcon-PVWrOd6r.cjs → BaseIcon-BkQhR5to.cjs} +1 -1
- package/dist/{BaseIcon-BBkGiBfe.js → BaseIcon-DuWxvGrs.js} +1 -1
- package/dist/{DataTable-CJiw9Oeg.cjs → DataTable-BRux41DB.cjs} +1 -1
- package/dist/{DataTable-W1gJ4gSD.js → DataTable-Cp8-9z9I.js} +2 -2
- package/dist/{Legend-Cc-aaZxh.cjs → Legend-Bkl0mNRU.cjs} +1 -1
- package/dist/{Legend-CQIo_WbD.js → Legend-Dxg4fgms.js} +1 -1
- package/dist/{Shape-Y6qCeNbi.js → Shape-9atoPZLR.js} +1 -1
- package/dist/{Shape-DzqSEyhX.cjs → Shape-BqcaWTo1.cjs} +1 -1
- package/dist/Slicer-DJ_rlsfN.cjs +1 -0
- package/dist/Slicer-DWXMDMkg.js +328 -0
- package/dist/{Title-BuPNfgaD.js → Title-Bft_Qodf.js} +1 -1
- package/dist/{Title-CmKmZeBx.cjs → Title-JorKJ3kW.cjs} +1 -1
- package/dist/{Tooltip-DMhG5ns_.js → Tooltip-DsJ_DDEa.js} +1 -1
- package/dist/{Tooltip-6Fl_Hm1X.cjs → Tooltip-DuhcODsb.cjs} +1 -1
- package/dist/{index-CheT0Wx_.js → index-ByARe6xk.js} +1 -1
- package/dist/{index-BrTW1d55.cjs → index-vvhNQFio.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BnuqAeNh.cjs → useNestedProp-BUoCZrmY.cjs} +1 -1
- package/dist/{useNestedProp-BtrNNAOl.js → useNestedProp-DcnyJpjm.js} +1 -1
- package/dist/{usePrinter-DuLkeo52.js → usePrinter-BUBRC6GE.js} +1 -1
- package/dist/{usePrinter-CBPDDz8k.cjs → usePrinter-D5ewpTd3.cjs} +1 -1
- package/dist/{vue-data-ui-jFylH5cj.js → vue-data-ui-67aBhtaH.js} +57 -57
- package/dist/{vue-data-ui-4juY_ptg.cjs → vue-data-ui-BzsqnKj2.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-jqnud76a.js → vue-ui-3d-bar-CQ656C3D.js} +7 -7
- package/dist/{vue-ui-3d-bar-CPKXmaEX.cjs → vue-ui-3d-bar-NcBKcawL.cjs} +1 -1
- package/dist/{vue-ui-accordion-CP3eE3ra.js → vue-ui-accordion-B7sGXK-8.js} +3 -3
- package/dist/{vue-ui-accordion-CRXILPuZ.cjs → vue-ui-accordion-CSnFq9e7.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-C6lbaF5t.cjs → vue-ui-age-pyramid-B8KDJTmK.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CNHqO7eI.js → vue-ui-age-pyramid-DcN9DXL7.js} +8 -8
- package/dist/{vue-ui-annotator-DpuDzFHD.cjs → vue-ui-annotator-BcKsg71t.cjs} +1 -1
- package/dist/{vue-ui-annotator-RSAxc5Py.js → vue-ui-annotator-DINvjGdW.js} +1 -1
- package/dist/{vue-ui-candlestick-BLy6KJLB.cjs → vue-ui-candlestick-DokpJUMI.cjs} +1 -1
- package/dist/{vue-ui-candlestick-wBmbvoru.js → vue-ui-candlestick-dE7VZ9c2.js} +9 -9
- package/dist/{vue-ui-carousel-table-DmXDmH_I.cjs → vue-ui-carousel-table-CfkAq3aZ.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-74JfF1CF.js → vue-ui-carousel-table-CyvXkNVJ.js} +4 -4
- package/dist/{vue-ui-chestnut-DC9KUP9E.js → vue-ui-chestnut-BtbUx2K6.js} +6 -6
- package/dist/{vue-ui-chestnut-3U5Rzexa.cjs → vue-ui-chestnut-C7UoeDnX.cjs} +1 -1
- package/dist/{vue-ui-cursor-BBOad4Oz.cjs → vue-ui-cursor-CdZf-yX5.cjs} +1 -1
- package/dist/{vue-ui-cursor-DvHSca1e.js → vue-ui-cursor-a04KGiW0.js} +2 -2
- package/dist/{vue-ui-dashboard-CErkNKT5.cjs → vue-ui-dashboard-BVfWXpf8.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B97wcEhA.js → vue-ui-dashboard-C16uiqyH.js} +2 -2
- package/dist/{vue-ui-digits-DfCFX2Qt.cjs → vue-ui-digits-Ct2vS1BN.cjs} +1 -1
- package/dist/{vue-ui-digits-D1EfYy-P.js → vue-ui-digits-DrK1MsGL.js} +2 -2
- package/dist/{vue-ui-donut-CXZBrDav.cjs → vue-ui-donut-DCw94nm5.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-Cy2LvVXl.js → vue-ui-donut-evolution-ci4AbPDx.js} +9 -9
- package/dist/{vue-ui-donut-evolution-BCboadVu.cjs → vue-ui-donut-evolution-w2VBVy8J.cjs} +1 -1
- package/dist/{vue-ui-donut-CU2WSbx_.js → vue-ui-donut-gBfPKxL5.js} +9 -9
- package/dist/{vue-ui-dumbbell-C3-cUpEJ.js → vue-ui-dumbbell-CfRDGglI.js} +8 -8
- package/dist/{vue-ui-dumbbell-BHn-nF5o.cjs → vue-ui-dumbbell-DSeY7g70.cjs} +1 -1
- package/dist/{vue-ui-flow-BoYvyc72.cjs → vue-ui-flow-CCRXuD2w.cjs} +1 -1
- package/dist/{vue-ui-flow-E6in3VUZ.js → vue-ui-flow-sxRGOd3v.js} +7 -7
- package/dist/{vue-ui-galaxy-BMXRhIPx.cjs → vue-ui-galaxy-7uOmICFQ.cjs} +1 -1
- package/dist/{vue-ui-galaxy-Bmw1sasL.js → vue-ui-galaxy-BtRwEK-N.js} +9 -9
- package/dist/{vue-ui-gauge-Hco2qIrF.cjs → vue-ui-gauge-CcGerm6-.cjs} +1 -1
- package/dist/{vue-ui-gauge-CsXLY_kK.js → vue-ui-gauge-DF5cMUZq.js} +5 -5
- package/dist/{vue-ui-gizmo-Y4q19AJI.js → vue-ui-gizmo-BxSR6Npw.js} +2 -2
- package/dist/{vue-ui-gizmo-DMhJyo57.cjs → vue-ui-gizmo-DOdbL7oJ.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BlA1MCRH.js → vue-ui-heatmap-BFebVyoq.js} +8 -8
- package/dist/{vue-ui-heatmap-DdaNiod-.cjs → vue-ui-heatmap-bCvQEgv4.cjs} +1 -1
- package/dist/{vue-ui-kpi-yiWoG8Jg.cjs → vue-ui-kpi-Bh3EQVzo.cjs} +1 -1
- package/dist/{vue-ui-kpi-Bklm7sI3.js → vue-ui-kpi-kz6LxY4z.js} +3 -3
- package/dist/{vue-ui-mini-loader-CFHuzD8z.cjs → vue-ui-mini-loader-BUmmuBm2.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-rIlEJt4J.js → vue-ui-mini-loader-XvpXZ4Lu.js} +2 -2
- package/dist/{vue-ui-molecule-_ux8PBWz.js → vue-ui-molecule-CV9jYVPn.js} +9 -9
- package/dist/{vue-ui-molecule-IT3c4oT6.cjs → vue-ui-molecule-DAqPp6P1.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BXP_gJLi.js → vue-ui-mood-radar-BXksXL9W.js} +9 -9
- package/dist/{vue-ui-mood-radar-DN_-xVon.cjs → vue-ui-mood-radar-Rpgf2fO4.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-B1Fp99F3.cjs → vue-ui-nested-donuts-Bi9o-a5M.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-Cjgz6nRo.js → vue-ui-nested-donuts-DP44vR6_.js} +9 -9
- package/dist/{vue-ui-onion-BPf7VCJa.cjs → vue-ui-onion-BdQtE7OR.cjs} +1 -1
- package/dist/{vue-ui-onion-CLV7WICr.js → vue-ui-onion-C-hnaK6-.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-Io-m4z6C.js → vue-ui-parallel-coordinate-plot-CRfWMtfW.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-BAQc5SWh.cjs → vue-ui-parallel-coordinate-plot-Cl7HwAhr.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BfqpKrGV.cjs → vue-ui-quadrant-2jWkCnCZ.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BSfdu8iN.js → vue-ui-quadrant-BvmZuTNr.js} +10 -10
- package/dist/{vue-ui-quick-chart-BdGaCOrt.js → vue-ui-quick-chart-Cf2bonoP.js} +6 -6
- package/dist/{vue-ui-quick-chart-DI__EnvH.cjs → vue-ui-quick-chart-Dljdowyo.cjs} +1 -1
- package/dist/{vue-ui-radar-uvDULkG8.js → vue-ui-radar-D8WUIeAJ.js} +10 -10
- package/dist/{vue-ui-radar-CLNEQi3b.cjs → vue-ui-radar-DWQT59Y3.cjs} +1 -1
- package/dist/{vue-ui-rating-GIvcfzRr.cjs → vue-ui-rating-C6EdVOFi.cjs} +1 -1
- package/dist/{vue-ui-rating-DPhYGjCa.js → vue-ui-rating-DA5yVA82.js} +2 -2
- package/dist/{vue-ui-relation-circle-CwuE4eca.cjs → vue-ui-relation-circle-D1Dfp3vd.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BargpoTh.js → vue-ui-relation-circle-D1HV7sEy.js} +5 -5
- package/dist/{vue-ui-rings-CXrRMCZW.js → vue-ui-rings-9KX262V6.js} +9 -9
- package/dist/{vue-ui-rings-jF8ux3Dp.cjs → vue-ui-rings-D7ZSknfw.cjs} +1 -1
- package/dist/{vue-ui-scatter-CcbhZV9z.js → vue-ui-scatter-BS4fuY2e.js} +10 -10
- package/dist/{vue-ui-scatter-wLsb-fZC.cjs → vue-ui-scatter-BkE4TBcf.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BqCGhVN1.cjs → vue-ui-screenshot-BNsuh29D.cjs} +1 -1
- package/dist/{vue-ui-screenshot-kGqAEHjy.js → vue-ui-screenshot-ChhpX9vN.js} +1 -1
- package/dist/{vue-ui-skeleton-aQqDPgNZ.js → vue-ui-skeleton-C2W5etGt.js} +2 -2
- package/dist/{vue-ui-skeleton-_10dnvdH.cjs → vue-ui-skeleton-H7E3SBMd.cjs} +1 -1
- package/dist/{vue-ui-smiley-Bg4Snrze.cjs → vue-ui-smiley-CSVsepz-.cjs} +1 -1
- package/dist/{vue-ui-smiley-BwK68PuU.js → vue-ui-smiley-DmvbdKQH.js} +2 -2
- package/dist/{vue-ui-spark-trend-DYxxnfQW.cjs → vue-ui-spark-trend-B_jzBm-L.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DoqkKOlk.js → vue-ui-spark-trend-CIRMNMBi.js} +4 -4
- package/dist/{vue-ui-sparkbar-BTQmwesw.cjs → vue-ui-sparkbar-Bc0UGC0I.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-WnaAUbae.js → vue-ui-sparkbar-CsPU3f7E.js} +3 -3
- package/dist/{vue-ui-sparkgauge-FXAlpXuQ.cjs → vue-ui-sparkgauge-B9Z7UC0c.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BKRRGs7B.js → vue-ui-sparkgauge-sf5NkOzU.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-tTBz6NIG.cjs → vue-ui-sparkhistogram-BcbNk4hY.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-C1zV2eop.js → vue-ui-sparkhistogram-C9q2fgqW.js} +4 -4
- package/dist/{vue-ui-sparkline-B8jRRWaL.js → vue-ui-sparkline-BW3H6hsT.js} +3 -3
- package/dist/{vue-ui-sparkline-C9u8IXFi.cjs → vue-ui-sparkline-Cc-z4lug.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DxJv0K0j.cjs → vue-ui-sparkstackbar-DRUOzvw_.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-GFQOWlud.js → vue-ui-sparkstackbar-DtdKmv0C.js} +3 -3
- package/dist/{vue-ui-stackbar-CKH9nkXT.js → vue-ui-stackbar-C3hiDzB9.js} +10 -10
- package/dist/{vue-ui-stackbar-CB5aHagD.cjs → vue-ui-stackbar-CJSxzmsC.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DieTMdDF.js → vue-ui-strip-plot-D6RdcG4r.js} +9 -9
- package/dist/{vue-ui-strip-plot-3sfiftZ9.cjs → vue-ui-strip-plot-Dea20UQo.cjs} +1 -1
- package/dist/{vue-ui-table-BGdHb7N7.js → vue-ui-table-Cl83ltew.js} +1 -1
- package/dist/{vue-ui-table-cgc5JWpi.cjs → vue-ui-table-DThpCd--.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-C044igg5.cjs → vue-ui-table-heatmap-C9znKJA2.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DEV-t7Jo.js → vue-ui-table-heatmap-P1qoQg4L.js} +4 -4
- package/dist/{vue-ui-table-sparkline-BrWT1d3d.cjs → vue-ui-table-sparkline-B56XlhbD.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-Uq7w4wDX.js → vue-ui-table-sparkline-ByBzCnhr.js} +5 -5
- package/dist/{vue-ui-thermometer-CTWxK5mL.js → vue-ui-thermometer-CEtqGDhU.js} +5 -5
- package/dist/{vue-ui-thermometer-Dk6C8A-d.cjs → vue-ui-thermometer-D1BIwe-x.cjs} +1 -1
- package/dist/{vue-ui-timer-BoyYkbBT.cjs → vue-ui-timer-CZv_iq9A.cjs} +1 -1
- package/dist/{vue-ui-timer-D_Tt_SFq.js → vue-ui-timer-_OXWxSrR.js} +4 -4
- package/dist/{vue-ui-tiremarks-PP0ZKmzU.cjs → vue-ui-tiremarks-Crjj6lAQ.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BMCx6T02.js → vue-ui-tiremarks-Vln9izs8.js} +5 -5
- package/dist/{vue-ui-treemap-CPNFNuvx.js → vue-ui-treemap-CVSmQvg5.js} +9 -9
- package/dist/{vue-ui-treemap-BpQvyTD-.cjs → vue-ui-treemap-CvZ_PXHg.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-C95PuahY.cjs → vue-ui-vertical-bar-B6gMyH90.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BxopNTze.js → vue-ui-vertical-bar-DW83JGF2.js} +9 -9
- package/dist/{vue-ui-waffle-BxKVHnSt.js → vue-ui-waffle-C9SFbGDx.js} +9 -9
- package/dist/{vue-ui-waffle-DPD6Tq15.cjs → vue-ui-waffle-Ck6_fLgH.cjs} +1 -1
- package/dist/{vue-ui-wheel-hqaO-KLH.js → vue-ui-wheel-DaA4af-u.js} +5 -5
- package/dist/{vue-ui-wheel-CWZXVIE_.cjs → vue-ui-wheel-DvxUmFh9.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CZ11iXV3.cjs → vue-ui-word-cloud-B_3r5g7T.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CR5QakNJ.js → vue-ui-word-cloud-X1mDRHqA.js} +7 -7
- package/dist/{vue-ui-xy-hnDHwwdO.js → vue-ui-xy-CID8ZHKi.js} +12 -12
- package/dist/{vue-ui-xy-C4ga2Mx1.cjs → vue-ui-xy-CQGKoYPl.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-B-5qwsGJ.js → vue-ui-xy-canvas-BNAlSGC5.js} +10 -10
- package/dist/{vue-ui-xy-canvas-DyYwcAlu.cjs → vue-ui-xy-canvas-BiqWum4l.cjs} +1 -1
- package/package.json +1 -1
- package/dist/Slicer-BMs12nY1.js +0 -306
- package/dist/Slicer-QCrdQngK.cjs +0 -1
package/dist/Slicer-BMs12nY1.js
DELETED
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
import { useCssVars as X, ref as d, computed as r, watch as w, onMounted as j, openBlock as m, createElementBlock as c, createElementVNode as i, createVNode as q, renderSlot as G, createCommentVNode as $, unref as T, normalizeStyle as v, withDirectives as z, vModelText as F, toDisplayString as L, pushScopeId as Z, popScopeId as H } from "vue";
|
|
2
|
-
import J from "./BaseIcon-BBkGiBfe.js";
|
|
3
|
-
import { t as K, u as Q } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { c as Y, M as ee, L as te, X as le } from "./index-CheT0Wx_.js";
|
|
5
|
-
import { _ as ae } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
const A = (l) => (Z("data-v-2e5f9167"), l = l(), H(), l), ie = { "data-html2canvas-ignore": "" }, ne = {
|
|
7
|
-
class: "vue-data-ui-slicer-labels",
|
|
8
|
-
style: { position: "relative", "z-index": "1" }
|
|
9
|
-
}, oe = {
|
|
10
|
-
key: 0,
|
|
11
|
-
style: { width: "100%", position: "relative" }
|
|
12
|
-
}, ue = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "minimap",
|
|
15
|
-
style: { width: "100%" }
|
|
16
|
-
}, re = ["xmlns", "viewBox"], se = ["id"], de = ["stop-color"], me = /* @__PURE__ */ A(() => /* @__PURE__ */ i("stop", {
|
|
17
|
-
offset: "100%",
|
|
18
|
-
"stop-color": "transparent"
|
|
19
|
-
}, null, -1)), ce = ["x", "width", "height", "rx", "fill"], he = ["d", "stroke", "fill"], ve = ["x2", "y1", "y2", "stroke"], pe = ["y2", "stroke"], fe = ["x1", "x2", "y2", "stroke"], ge = /* @__PURE__ */ A(() => /* @__PURE__ */ i("div", { class: "slider-track" }, null, -1)), be = ["min", "max"], ye = ["min", "max"], xe = {
|
|
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
|
-
},
|
|
99
|
-
emits: ["update:start", "update:end", "reset"],
|
|
100
|
-
setup(l, { emit: p }) {
|
|
101
|
-
const e = l;
|
|
102
|
-
X((a) => ({
|
|
103
|
-
22433820: I.value,
|
|
104
|
-
f2582738: h.value,
|
|
105
|
-
"5216c256": V.value,
|
|
106
|
-
"67092d94": l.selectColor,
|
|
107
|
-
"3404ae22": R.value
|
|
108
|
-
}));
|
|
109
|
-
const n = d(e.min), o = d(e.max), b = r(() => !!e.minimap.length), y = d(Y()), P = r(() => {
|
|
110
|
-
const a = e.max - e.min, u = (n.value - e.min) / a * 100, s = (o.value - e.min) / a * 100;
|
|
111
|
-
return {
|
|
112
|
-
left: `${u}%`,
|
|
113
|
-
width: `${s - u}%`,
|
|
114
|
-
background: e.selectColor
|
|
115
|
-
};
|
|
116
|
-
}), I = r(() => e.inputColor), R = r(() => e.background), V = r(() => `${e.selectColor}33`), h = r(() => e.borderColor);
|
|
117
|
-
function x() {
|
|
118
|
-
p("reset");
|
|
119
|
-
}
|
|
120
|
-
function E() {
|
|
121
|
-
Number(n.value) > Number(o.value) - 1 && (n.value = Number(o.value) - 1), p("update:start", Number(n.value));
|
|
122
|
-
}
|
|
123
|
-
function B() {
|
|
124
|
-
Number(o.value) < Number(n.value) + 1 && (o.value = Number(n.value) + 1), p("update:end", Number(o.value));
|
|
125
|
-
}
|
|
126
|
-
w(
|
|
127
|
-
() => e.min,
|
|
128
|
-
(a) => {
|
|
129
|
-
Number(n.value) < Number(a) && (n.value = Number(a)), Number(o.value) < Number(a) && (o.value = Number(a));
|
|
130
|
-
}
|
|
131
|
-
), w(
|
|
132
|
-
() => e.max,
|
|
133
|
-
(a) => {
|
|
134
|
-
Number(n.value) > Number(a) && (n.value = Number(a)), Number(o.value) > Number(a) && (o.value = Number(a));
|
|
135
|
-
}
|
|
136
|
-
);
|
|
137
|
-
const f = d(null), t = d({
|
|
138
|
-
width: 1,
|
|
139
|
-
height: 1
|
|
140
|
-
}), S = d(null);
|
|
141
|
-
j(() => {
|
|
142
|
-
if (b.value) {
|
|
143
|
-
const a = K(() => {
|
|
144
|
-
const { width: u, height: s } = Q({
|
|
145
|
-
chart: f.value
|
|
146
|
-
});
|
|
147
|
-
t.value.width = u, t.value.height = s - 47;
|
|
148
|
-
});
|
|
149
|
-
S.value = new ResizeObserver(a), S.value.observe(f.value);
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
const N = r(() => e.minimap.length ? t.value.width / e.minimap.length : 0), g = r(() => ({
|
|
153
|
-
x: N.value * e.valueStart,
|
|
154
|
-
width: N.value * (e.valueEnd - e.valueStart)
|
|
155
|
-
})), _ = r(() => {
|
|
156
|
-
if (!e.minimap.length) return [];
|
|
157
|
-
const a = Math.max(...e.minimap), u = Math.min(...e.minimap) - 10, s = a - (u > 0 ? 0 : u), C = e.minimap.map((D, U) => {
|
|
158
|
-
const W = D - u;
|
|
159
|
-
return {
|
|
160
|
-
x: t.value.width / (e.minimap.length - 1) * U,
|
|
161
|
-
y: t.value.height - W / s * (t.value.height * 0.9)
|
|
162
|
-
};
|
|
163
|
-
});
|
|
164
|
-
return e.smoothMinimap ? ee(C) : te(C);
|
|
165
|
-
}), k = r(() => e.max - e.min), M = r(() => ({
|
|
166
|
-
left: `calc(${(n.value - e.min) / k.value * 100}%)`,
|
|
167
|
-
color: e.textColor,
|
|
168
|
-
fontSize: `${e.fontSize}px`,
|
|
169
|
-
top: "-28px",
|
|
170
|
-
pointerEvents: "none"
|
|
171
|
-
})), O = r(() => ({
|
|
172
|
-
left: `calc(${(o.value - e.min) / k.value * 100}%)`,
|
|
173
|
-
color: e.textColor,
|
|
174
|
-
fontSize: `${e.fontSize}px`,
|
|
175
|
-
top: "28px",
|
|
176
|
-
direction: "rtl",
|
|
177
|
-
pointerEvents: "none"
|
|
178
|
-
}));
|
|
179
|
-
return (a, u) => (m(), c("div", ie, [
|
|
180
|
-
i("div", ne, [
|
|
181
|
-
l.valueStart > 0 || l.valueEnd < l.max ? (m(), c("div", oe, [
|
|
182
|
-
l.useResetSlot ? G(a.$slots, "reset-action", {
|
|
183
|
-
key: 1,
|
|
184
|
-
reset: x
|
|
185
|
-
}, void 0, !0) : (m(), c("button", {
|
|
186
|
-
key: 0,
|
|
187
|
-
"data-cy-reset": "",
|
|
188
|
-
tabindex: "0",
|
|
189
|
-
role: "button",
|
|
190
|
-
class: "vue-data-ui-refresh-button",
|
|
191
|
-
onClick: x
|
|
192
|
-
}, [
|
|
193
|
-
q(J, {
|
|
194
|
-
name: "refresh",
|
|
195
|
-
stroke: l.textColor
|
|
196
|
-
}, null, 8, ["stroke"])
|
|
197
|
-
]))
|
|
198
|
-
])) : $("", !0)
|
|
199
|
-
]),
|
|
200
|
-
i("div", {
|
|
201
|
-
class: "double-range-slider",
|
|
202
|
-
ref_key: "minimapWrapper",
|
|
203
|
-
ref: f,
|
|
204
|
-
style: { "z-index": "0" }
|
|
205
|
-
}, [
|
|
206
|
-
b.value ? (m(), c("div", ue, [
|
|
207
|
-
(m(), c("svg", {
|
|
208
|
-
xmlns: T(le),
|
|
209
|
-
viewBox: `0 0 ${t.value.width < 0 ? 0 : t.value.width} ${t.value.height < 0 ? 0 : t.value.height}`
|
|
210
|
-
}, [
|
|
211
|
-
i("defs", null, [
|
|
212
|
-
i("linearGradient", {
|
|
213
|
-
id: y.value,
|
|
214
|
-
x1: "0%",
|
|
215
|
-
y1: "0%",
|
|
216
|
-
x2: "0%",
|
|
217
|
-
y2: "100%"
|
|
218
|
-
}, [
|
|
219
|
-
i("stop", {
|
|
220
|
-
offset: "0%",
|
|
221
|
-
"stop-color": `${l.minimapLineColor}50`
|
|
222
|
-
}, null, 8, de),
|
|
223
|
-
me
|
|
224
|
-
], 8, se)
|
|
225
|
-
]),
|
|
226
|
-
i("rect", {
|
|
227
|
-
x: g.value.x,
|
|
228
|
-
y: "0",
|
|
229
|
-
width: g.value.width < 0 ? 0 : g.value.width,
|
|
230
|
-
height: t.value.height < 0 ? 0 : t.value.height,
|
|
231
|
-
rx: l.minimapSelectionRadius,
|
|
232
|
-
fill: `${l.minimapSelectedColor}`,
|
|
233
|
-
style: v({ opacity: l.minimapSelectedColorOpacity })
|
|
234
|
-
}, null, 12, ce),
|
|
235
|
-
i("path", {
|
|
236
|
-
d: `M0,${t.value.height} ${_.value} L${t.value.width},${t.value.height}Z`,
|
|
237
|
-
stroke: `${l.minimapLineColor}`,
|
|
238
|
-
fill: `url(#${y.value})`,
|
|
239
|
-
"stroke-width": "1",
|
|
240
|
-
"stroke-linecap": "round",
|
|
241
|
-
"stroke-linejoin": "round"
|
|
242
|
-
}, null, 8, he),
|
|
243
|
-
i("line", {
|
|
244
|
-
x1: 0,
|
|
245
|
-
x2: t.value.width < 0 ? 0 : t.value.width,
|
|
246
|
-
y1: t.value.height < 0 ? 0 : t.value.height,
|
|
247
|
-
y2: t.value.height < 0 ? 0 : t.value.height,
|
|
248
|
-
stroke: h.value,
|
|
249
|
-
"stroke-width": "1"
|
|
250
|
-
}, null, 8, ve),
|
|
251
|
-
i("line", {
|
|
252
|
-
x1: 0,
|
|
253
|
-
x2: 0,
|
|
254
|
-
y1: 0,
|
|
255
|
-
y2: t.value.height < 0 ? 0 : t.value.height,
|
|
256
|
-
stroke: h.value,
|
|
257
|
-
"stroke-width": "3"
|
|
258
|
-
}, null, 8, pe),
|
|
259
|
-
i("line", {
|
|
260
|
-
x1: t.value.width < 0 ? 0 : t.value.width,
|
|
261
|
-
x2: t.value.width < 0 ? 0 : t.value.width,
|
|
262
|
-
y1: 0,
|
|
263
|
-
y2: t.value.height < 0 ? 0 : t.value.height,
|
|
264
|
-
stroke: h.value,
|
|
265
|
-
"stroke-width": "3"
|
|
266
|
-
}, null, 8, fe)
|
|
267
|
-
], 8, re))
|
|
268
|
-
])) : $("", !0),
|
|
269
|
-
ge,
|
|
270
|
-
i("div", {
|
|
271
|
-
class: "range-highlight",
|
|
272
|
-
style: v(P.value)
|
|
273
|
-
}, null, 4),
|
|
274
|
-
z(i("input", {
|
|
275
|
-
type: "range",
|
|
276
|
-
min: l.min,
|
|
277
|
-
max: l.max,
|
|
278
|
-
"onUpdate:modelValue": u[0] || (u[0] = (s) => n.value = s),
|
|
279
|
-
onInput: E
|
|
280
|
-
}, null, 40, be), [
|
|
281
|
-
[F, n.value]
|
|
282
|
-
]),
|
|
283
|
-
i("div", {
|
|
284
|
-
class: "thumb-label thumb-label-left",
|
|
285
|
-
style: v(M.value)
|
|
286
|
-
}, L(l.labelLeft), 5),
|
|
287
|
-
z(i("input", {
|
|
288
|
-
type: "range",
|
|
289
|
-
min: l.min,
|
|
290
|
-
max: l.max,
|
|
291
|
-
"onUpdate:modelValue": u[1] || (u[1] = (s) => o.value = s),
|
|
292
|
-
onInput: B
|
|
293
|
-
}, null, 40, ye), [
|
|
294
|
-
[F, o.value]
|
|
295
|
-
]),
|
|
296
|
-
i("div", {
|
|
297
|
-
class: "thumb-label thumb-label-right",
|
|
298
|
-
style: v(O.value)
|
|
299
|
-
}, L(l.labelRight), 5)
|
|
300
|
-
], 512)
|
|
301
|
-
]));
|
|
302
|
-
}
|
|
303
|
-
}, $e = /* @__PURE__ */ ae(xe, [["__scopeId", "data-v-2e5f9167"]]);
|
|
304
|
-
export {
|
|
305
|
-
$e as S
|
|
306
|
-
};
|
package/dist/Slicer-QCrdQngK.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),R=require("./BaseIcon-PVWrOd6r.cjs"),N=require("./useResponsive-B3TrDDIG.cjs"),c=require("./index-BrTW1d55.cjs"),I=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S=a=>(e.pushScopeId("data-v-2e5f9167"),a=a(),e.popScopeId(),a),_={"data-html2canvas-ignore":""},q={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1"}},M={key:0,style:{width:"100%",position:"relative"}},D={key:0,class:"minimap",style:{width:"100%"}},O=["xmlns","viewBox"],U=["id"],W=["stop-color"],T=S(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1)),X=["x","width","height","rx","fill"],j=["d","stroke","fill"],G=["x2","y1","y2","stroke"],H=["y2","stroke"],Z=["x1","x2","y2","stroke"],J=S(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),K=["min","max"],Q=["min","max"],Y={__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}},emits:["update:start","update:end","reset"],setup(a,{emit:d}){const t=a;e.useCssVars(n=>({22433820:w.value,f2582738:s.value,"5216c256":E.value,"67092d94":a.selectColor,"3404ae22":C.value}));const o=e.ref(t.min),i=e.ref(t.max),v=e.computed(()=>!!t.minimap.length),p=e.ref(c.createUid()),k=e.computed(()=>{const n=t.max-t.min,r=(o.value-t.min)/n*100,u=(i.value-t.min)/n*100;return{left:`${r}%`,width:`${u-r}%`,background:t.selectColor}}),w=e.computed(()=>t.inputColor),C=e.computed(()=>t.background),E=e.computed(()=>`${t.selectColor}33`),s=e.computed(()=>t.borderColor);function f(){d("reset")}function V(){Number(o.value)>Number(i.value)-1&&(o.value=Number(i.value)-1),d("update:start",Number(o.value))}function $(){Number(i.value)<Number(o.value)+1&&(i.value=Number(o.value)+1),d("update:end",Number(i.value))}e.watch(()=>t.min,n=>{Number(o.value)<Number(n)&&(o.value=Number(n)),Number(i.value)<Number(n)&&(i.value=Number(n))}),e.watch(()=>t.max,n=>{Number(o.value)>Number(n)&&(o.value=Number(n)),Number(i.value)>Number(n)&&(i.value=Number(n))});const m=e.ref(null),l=e.ref({width:1,height:1}),g=e.ref(null);e.onMounted(()=>{if(v.value){const n=N.throttle(()=>{const{width:r,height:u}=N.useResponsive({chart:m.value});l.value.width=r,l.value.height=u-47});g.value=new ResizeObserver(n),g.value.observe(m.value)}});const y=e.computed(()=>t.minimap.length?l.value.width/t.minimap.length:0),h=e.computed(()=>({x:y.value*t.valueStart,width:y.value*(t.valueEnd-t.valueStart)})),z=e.computed(()=>{if(!t.minimap.length)return[];const n=Math.max(...t.minimap),r=Math.min(...t.minimap)-10,u=n-(r>0?0:r),x=t.minimap.map((A,L)=>{const P=A-r;return{x:l.value.width/(t.minimap.length-1)*L,y:l.value.height-P/u*(l.value.height*.9)}});return t.smoothMinimap?c.createSmoothPath(x):c.createStraightPath(x)}),b=e.computed(()=>t.max-t.min),B=e.computed(()=>({left:`calc(${(o.value-t.min)/b.value*100}%)`,color:t.textColor,fontSize:`${t.fontSize}px`,top:"-28px",pointerEvents:"none"})),F=e.computed(()=>({left:`calc(${(i.value-t.min)/b.value*100}%)`,color:t.textColor,fontSize:`${t.fontSize}px`,top:"28px",direction:"rtl",pointerEvents:"none"}));return(n,r)=>(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("div",q,[a.valueStart>0||a.valueEnd<a.max?(e.openBlock(),e.createElementBlock("div",M,[a.useResetSlot?e.renderSlot(n.$slots,"reset-action",{key:1,reset:f},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:f},[e.createVNode(R.default,{name:"refresh",stroke:a.textColor},null,8,["stroke"])]))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:m,style:{"z-index":"0"}},[v.value?(e.openBlock(),e.createElementBlock("div",D,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(c.XMLNS),viewBox:`0 0 ${l.value.width<0?0:l.value.width} ${l.value.height<0?0:l.value.height}`},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:p.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${a.minimapLineColor}50`},null,8,W),T],8,U)]),e.createElementVNode("rect",{x:h.value.x,y:"0",width:h.value.width<0?0:h.value.width,height:l.value.height<0?0:l.value.height,rx:a.minimapSelectionRadius,fill:`${a.minimapSelectedColor}`,style:e.normalizeStyle({opacity:a.minimapSelectedColorOpacity})},null,12,X),e.createElementVNode("path",{d:`M0,${l.value.height} ${z.value} L${l.value.width},${l.value.height}Z`,stroke:`${a.minimapLineColor}`,fill:`url(#${p.value})`,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},null,8,j),e.createElementVNode("line",{x1:0,x2:l.value.width<0?0:l.value.width,y1:l.value.height<0?0:l.value.height,y2:l.value.height<0?0:l.value.height,stroke:s.value,"stroke-width":"1"},null,8,G),e.createElementVNode("line",{x1:0,x2:0,y1:0,y2:l.value.height<0?0:l.value.height,stroke:s.value,"stroke-width":"3"},null,8,H),e.createElementVNode("line",{x1:l.value.width<0?0:l.value.width,x2:l.value.width<0?0:l.value.width,y1:0,y2:l.value.height<0?0:l.value.height,stroke:s.value,"stroke-width":"3"},null,8,Z)],8,O))])):e.createCommentVNode("",!0),J,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(k.value)},null,4),e.withDirectives(e.createElementVNode("input",{type:"range",min:a.min,max:a.max,"onUpdate:modelValue":r[0]||(r[0]=u=>o.value=u),onInput:V},null,40,K),[[e.vModelText,o.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-left",style:e.normalizeStyle(B.value)},e.toDisplayString(a.labelLeft),5),e.withDirectives(e.createElementVNode("input",{type:"range",min:a.min,max:a.max,"onUpdate:modelValue":r[1]||(r[1]=u=>i.value=u),onInput:$},null,40,Q),[[e.vModelText,i.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-right",style:e.normalizeStyle(F.value)},e.toDisplayString(a.labelRight),5)],512)]))}},ee=I._export_sfc(Y,[["__scopeId","data-v-2e5f9167"]]);exports.Slicer=ee;
|