vue-data-ui 2.3.47 → 2.3.48
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-Bj64dVl2.cjs → Arrow-DVDUyObR.cjs} +1 -1
- package/dist/{Arrow-THOuTDcq.js → Arrow-Zxlib5TA.js} +1 -1
- package/dist/{BaseIcon-Lz2AkAUF.js → BaseIcon-B_4EdVx8.js} +1 -1
- package/dist/{BaseIcon-CAlmCZtL.cjs → BaseIcon-DQUa2wbN.cjs} +1 -1
- package/dist/{DataTable-Cg9dMxHZ.js → DataTable-97z7jeB3.js} +2 -2
- package/dist/{DataTable-E_zoBxXZ.cjs → DataTable-pfsiGYAz.cjs} +1 -1
- package/dist/{Legend-DKGyWu7I.js → Legend-Dc30ZC8U.js} +1 -1
- package/dist/{Legend-L_Enr1Hx.cjs → Legend-lleMcfy9.cjs} +1 -1
- package/dist/{Shape-BLiPCHkv.cjs → Shape-BtSgIgD_.cjs} +1 -1
- package/dist/{Shape-npSEDLuX.js → Shape-Cjf9rDFw.js} +1 -1
- package/dist/Slicer-CanBZJ4V.cjs +1 -0
- package/dist/Slicer-dehuss8u.js +253 -0
- package/dist/{Title-DSPpszvp.cjs → Title-CUtmTGbN.cjs} +1 -1
- package/dist/{Title-C0_PhO2u.js → Title-DZ-9X7T_.js} +1 -1
- package/dist/{Tooltip-dfMcr3Yl.js → Tooltip-BE1vKyP4.js} +1 -1
- package/dist/{Tooltip-CgSI_niS.cjs → Tooltip-DhxfsNhL.cjs} +1 -1
- package/dist/{index-ChMHOLEV.js → index-CAkeI2u7.js} +560 -552
- package/dist/index-DGxA8bUJ.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +8 -0
- package/dist/types/vue-data-ui.d.ts +8 -0
- package/dist/{useNestedProp-BH5s4SOa.cjs → useNestedProp-DM4rgjhE.cjs} +1 -1
- package/dist/{useNestedProp-DFwnYdme.js → useNestedProp-N72tOTWX.js} +1 -1
- package/dist/{usePrinter-DUD-LDLx.cjs → usePrinter-DbJ9I2vE.cjs} +1 -1
- package/dist/{usePrinter-BW4S0cF1.js → usePrinter-MbSdbzew.js} +1 -1
- package/dist/{vue-data-ui-D0OBzNWS.cjs → vue-data-ui-BQHuRwzO.cjs} +1 -1
- package/dist/{vue-data-ui-CbuAnIFO.js → vue-data-ui-BtPs_riR.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-FHiGe0fx.js → vue-ui-3d-bar-CLfyDLPQ.js} +7 -7
- package/dist/{vue-ui-3d-bar-B9L0Q6d9.cjs → vue-ui-3d-bar-DXIhL0TF.cjs} +1 -1
- package/dist/{vue-ui-accordion-Bukh98Pi.js → vue-ui-accordion-BbsnFhS8.js} +3 -3
- package/dist/{vue-ui-accordion-ZPhdh-C7.cjs → vue-ui-accordion-Bs0EHuxc.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DLBZkGqa.js → vue-ui-age-pyramid-B4ZZuW-3.js} +8 -8
- package/dist/{vue-ui-age-pyramid-CfKlnJ-N.cjs → vue-ui-age-pyramid-DpsPcpxc.cjs} +1 -1
- package/dist/{vue-ui-annotator-DwJ8pgXD.cjs → vue-ui-annotator-B6tm7G-3.cjs} +1 -1
- package/dist/{vue-ui-annotator-sEd3t3Xa.js → vue-ui-annotator-BhE_ZF6c.js} +1 -1
- package/dist/{vue-ui-candlestick-DGAu46FK.js → vue-ui-candlestick-C4uPOJHQ.js} +9 -9
- package/dist/{vue-ui-candlestick-CEgbkXwC.cjs → vue-ui-candlestick-DWF0o42E.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BZRMnoU1.cjs → vue-ui-carousel-table-BOx_7UQr.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DziSeBtT.js → vue-ui-carousel-table-CuK3NH57.js} +4 -4
- package/dist/{vue-ui-chestnut-iLTYa9Xl.js → vue-ui-chestnut-C7w4B_ur.js} +6 -6
- package/dist/{vue-ui-chestnut-DAaMh6sq.cjs → vue-ui-chestnut-wEen0cKE.cjs} +1 -1
- package/dist/{vue-ui-cursor-DUwUhpoT.js → vue-ui-cursor-Ctgm3n3f.js} +2 -2
- package/dist/{vue-ui-cursor-D5XYd9sC.cjs → vue-ui-cursor-Yv8kl6qP.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DiXf1UFz.js → vue-ui-dashboard-2lnPhwSk.js} +2 -2
- package/dist/{vue-ui-dashboard-DyB_oaXE.cjs → vue-ui-dashboard-DPpvlOhB.cjs} +1 -1
- package/dist/{vue-ui-digits-RUrqXG5U.js → vue-ui-digits-BaQVgAB3.js} +2 -2
- package/dist/{vue-ui-digits-DVwp3Vzr.cjs → vue-ui-digits-CDsLYZQx.cjs} +1 -1
- package/dist/{vue-ui-donut-CMT341XH.cjs → vue-ui-donut-BJvvOCw4.cjs} +1 -1
- package/dist/{vue-ui-donut-CIo7evf6.js → vue-ui-donut-Bkhnx2Na.js} +9 -9
- package/dist/{vue-ui-donut-evolution-DpflCS73.js → vue-ui-donut-evolution-ASmhsxgl.js} +9 -9
- package/dist/{vue-ui-donut-evolution-BTw0E5sZ.cjs → vue-ui-donut-evolution-R7XCcHKT.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BgZEQGlE.js → vue-ui-dumbbell-Bnx1whQL.js} +8 -8
- package/dist/{vue-ui-dumbbell-UGicuItz.cjs → vue-ui-dumbbell-DOf__qbw.cjs} +1 -1
- package/dist/{vue-ui-flow-BqK29554.js → vue-ui-flow-Cpt4rGww.js} +7 -7
- package/dist/{vue-ui-flow-BfouRr14.cjs → vue-ui-flow-DESqaa_D.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DgIe6MYv.cjs → vue-ui-galaxy-lyWd6uQ2.cjs} +1 -1
- package/dist/{vue-ui-galaxy-CuE0gjDn.js → vue-ui-galaxy-yll2l5no.js} +9 -9
- package/dist/{vue-ui-gauge-CcuW6li6.js → vue-ui-gauge-DvErHglc.js} +5 -5
- package/dist/{vue-ui-gauge-BKi2QGVX.cjs → vue-ui-gauge-_imuFpna.cjs} +1 -1
- package/dist/{vue-ui-gizmo-B9LHgK5x.cjs → vue-ui-gizmo-BoTTd12O.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Cp06yGvf.js → vue-ui-gizmo-CcJZ1BaJ.js} +2 -2
- package/dist/{vue-ui-heatmap-D1GsWm8S.cjs → vue-ui-heatmap-BfVdowyK.cjs} +1 -1
- package/dist/{vue-ui-heatmap-D5pMKFX8.js → vue-ui-heatmap-DJ1FMowz.js} +8 -8
- package/dist/{vue-ui-kpi-DuBd9Cfw.cjs → vue-ui-kpi-BtOxRhb1.cjs} +1 -1
- package/dist/{vue-ui-kpi-B0YwsHBF.js → vue-ui-kpi-tyv7wQWA.js} +3 -3
- package/dist/{vue-ui-mini-loader-BCE21FIO.js → vue-ui-mini-loader-BZSFz3n8.js} +2 -2
- package/dist/{vue-ui-mini-loader-CAJwCMGP.cjs → vue-ui-mini-loader-DAp6v1OO.cjs} +1 -1
- package/dist/{vue-ui-molecule-DeI-vOCp.js → vue-ui-molecule-B_IidHvj.js} +9 -9
- package/dist/{vue-ui-molecule-DDasACBO.cjs → vue-ui-molecule-DRC62I9B.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-B8IcNhp-.js → vue-ui-mood-radar-BdYscbyC.js} +9 -9
- package/dist/{vue-ui-mood-radar-C2ylWXY4.cjs → vue-ui-mood-radar-DTVywXlL.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CgpGyxKR.js → vue-ui-nested-donuts-Bw0Iifx1.js} +9 -9
- package/dist/{vue-ui-nested-donuts-DUnTzrPT.cjs → vue-ui-nested-donuts-EPd_poHo.cjs} +1 -1
- package/dist/{vue-ui-onion-DGjKbke1.cjs → vue-ui-onion-4ULM84d3.cjs} +1 -1
- package/dist/{vue-ui-onion-B1cdXNvI.js → vue-ui-onion-B9wG-dIS.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-DWYOet0Y.js → vue-ui-parallel-coordinate-plot-5T4gwxht.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-BZtCTNKa.cjs → vue-ui-parallel-coordinate-plot-BUfuDzc3.cjs} +1 -1
- package/dist/{vue-ui-quadrant-bc2ZAF-e.js → vue-ui-quadrant-C8Gob7gq.js} +10 -10
- package/dist/{vue-ui-quadrant-D4Pfvypx.cjs → vue-ui-quadrant-Dr5JjCka.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CmJ7o4Sy.cjs → vue-ui-quick-chart-8GGtO2tf.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-U0Bwmo7o.js → vue-ui-quick-chart-CFHyJ7rZ.js} +6 -6
- package/dist/{vue-ui-radar-KXEodxY0.js → vue-ui-radar-Cr1Mb9Bx.js} +10 -10
- package/dist/{vue-ui-radar-ClHJwcdQ.cjs → vue-ui-radar-Dy5kHYce.cjs} +1 -1
- package/dist/{vue-ui-rating-CUR8udEY.cjs → vue-ui-rating-BDKvG8bm.cjs} +1 -1
- package/dist/{vue-ui-rating-B4i_esmV.js → vue-ui-rating-ClL1a6MY.js} +2 -2
- package/dist/{vue-ui-relation-circle-B0IYw3cW.cjs → vue-ui-relation-circle-Cq__UW9k.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CR0-9RVH.js → vue-ui-relation-circle-oVSySfff.js} +5 -5
- package/dist/{vue-ui-rings-B0quOkZB.js → vue-ui-rings-B7381qCZ.js} +9 -9
- package/dist/{vue-ui-rings-dZ5s41lD.cjs → vue-ui-rings-C8g7Xj86.cjs} +1 -1
- package/dist/{vue-ui-scatter-DGkgA3c2.js → vue-ui-scatter-Bh2Mjbi3.js} +10 -10
- package/dist/{vue-ui-scatter-B6ONtpIT.cjs → vue-ui-scatter-D_DPdRoK.cjs} +1 -1
- package/dist/{vue-ui-screenshot-C54ey8-p.js → vue-ui-screenshot-Bl86uY0k.js} +1 -1
- package/dist/{vue-ui-screenshot-DHzHE3bq.cjs → vue-ui-screenshot-D46q2vBL.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BWu2nLeV.cjs → vue-ui-skeleton-CHI4nqtV.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CwTDNzek.js → vue-ui-skeleton-DtWvFTM9.js} +2 -2
- package/dist/{vue-ui-smiley-BfHCG14T.js → vue-ui-smiley-BCsFzW-q.js} +2 -2
- package/dist/{vue-ui-smiley-YycNcszs.cjs → vue-ui-smiley-CvpjObu1.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-Dyilmz2Z.cjs → vue-ui-spark-trend-BGEFwDpP.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DNxVD2pk.js → vue-ui-spark-trend-Cb1unGKY.js} +4 -4
- package/dist/{vue-ui-sparkbar-Bbaou7w5.js → vue-ui-sparkbar-2-EGfoOE.js} +3 -3
- package/dist/{vue-ui-sparkbar-CUxLYyQb.cjs → vue-ui-sparkbar-K6DV0yr0.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-tsCLtZpw.cjs → vue-ui-sparkgauge-0uv6HhvN.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CX_a9jtx.js → vue-ui-sparkgauge-DdQDS2KM.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DZVZ-RXk.js → vue-ui-sparkhistogram-CQOY13sM.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Cwz2wQ1e.cjs → vue-ui-sparkhistogram-DV6-Hmhz.cjs} +1 -1
- package/dist/{vue-ui-sparkline-C-PJg1EI.js → vue-ui-sparkline-Cnu3UnAn.js} +3 -3
- package/dist/{vue-ui-sparkline-BEprcYEe.cjs → vue-ui-sparkline-oYEzsMF2.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-CxPo843r.js → vue-ui-sparkstackbar-CoHqnRmF.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DGyE2dE3.cjs → vue-ui-sparkstackbar-vJoAUAZJ.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DFFORChg.js → vue-ui-stackbar-BGNfdn6K.js} +10 -10
- package/dist/{vue-ui-stackbar-BrX0uP0u.cjs → vue-ui-stackbar-BKiUGEDc.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DhcPpafE.js → vue-ui-strip-plot-CPXr1Unl.js} +9 -9
- package/dist/{vue-ui-strip-plot-C_J9uvvB.cjs → vue-ui-strip-plot-DTvz7qPm.cjs} +1 -1
- package/dist/{vue-ui-table-BuBIC5Ep.js → vue-ui-table-BkY3KOTh.js} +1 -1
- package/dist/{vue-ui-table-B0CfGG_e.cjs → vue-ui-table-XywHpa9F.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BRNGFUm-.cjs → vue-ui-table-heatmap-CiRaCqLh.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-D3YP4078.js → vue-ui-table-heatmap-Ft_4H5TG.js} +4 -4
- package/dist/{vue-ui-table-sparkline-BDaZLq9H.js → vue-ui-table-sparkline-CXD6RQwT.js} +5 -5
- package/dist/{vue-ui-table-sparkline-OXdcU6JH.cjs → vue-ui-table-sparkline-c_fn53DV.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BPHxKklC.cjs → vue-ui-thermometer-Cm-phIMA.cjs} +1 -1
- package/dist/{vue-ui-thermometer-Dq6DVPKi.js → vue-ui-thermometer-DPv-QZyR.js} +5 -5
- package/dist/{vue-ui-timer-Cc5OaHL8.cjs → vue-ui-timer-B-1okA9J.cjs} +1 -1
- package/dist/{vue-ui-timer-C51UJ8cf.js → vue-ui-timer-B_e8jeFu.js} +4 -4
- package/dist/{vue-ui-tiremarks-Cc9PjBa8.js → vue-ui-tiremarks-BTx3UPF6.js} +5 -5
- package/dist/{vue-ui-tiremarks-DWRRMm0S.cjs → vue-ui-tiremarks-n429npvo.cjs} +1 -1
- package/dist/{vue-ui-treemap-BUPvuWKn.cjs → vue-ui-treemap-C6dlrtc-.cjs} +1 -1
- package/dist/{vue-ui-treemap-Dfsnew-o.js → vue-ui-treemap-Df7c03TV.js} +9 -9
- package/dist/{vue-ui-vertical-bar-4E0DyBl3.cjs → vue-ui-vertical-bar-D04Qa1Ve.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-aTTLZNFG.js → vue-ui-vertical-bar-bipz8aIc.js} +9 -9
- package/dist/{vue-ui-waffle-CZPrfM_0.cjs → vue-ui-waffle-1JK9OthJ.cjs} +1 -1
- package/dist/{vue-ui-waffle-CDv36WNb.js → vue-ui-waffle-Dc-Drk3w.js} +9 -9
- package/dist/{vue-ui-wheel-DZck6SNJ.js → vue-ui-wheel-CTD6Bxrd.js} +5 -5
- package/dist/{vue-ui-wheel-IMuXbp1R.cjs → vue-ui-wheel-w2xLqgyW.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-C9bnwx69.js → vue-ui-word-cloud-DO8E-MmK.js} +7 -7
- package/dist/{vue-ui-word-cloud-EVeSzBUX.cjs → vue-ui-word-cloud-DxIS-nBr.cjs} +1 -1
- package/dist/{vue-ui-xy-BRRAfLis.js → vue-ui-xy-CM5MM7qx.js} +337 -316
- package/dist/{vue-ui-xy-canvas-5bhkoiT4.js → vue-ui-xy-canvas-Any2UpuS.js} +10 -10
- package/dist/{vue-ui-xy-canvas-DhHEH5ib.cjs → vue-ui-xy-canvas-Dg1-pLp8.cjs} +1 -1
- package/dist/vue-ui-xy-y3ThqwCN.cjs +3 -0
- package/package.json +1 -1
- package/dist/Slicer-DGciWCaF.js +0 -156
- package/dist/Slicer-DNvTnINC.cjs +0 -1
- package/dist/index-Br-wm_4r.cjs +0 -4
- package/dist/vue-ui-xy-BVwJjkYt.cjs +0 -3
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { useCssVars as W, ref as d, computed as s, watch as C, onMounted as X, openBlock as m, createElementBlock as c, createElementVNode as l, normalizeStyle as f, toDisplayString as k, createVNode as _, renderSlot as D, createCommentVNode as $, withDirectives as w, vModelText as F, unref as j, pushScopeId as q, popScopeId as G } from "vue";
|
|
2
|
+
import T from "./BaseIcon-B_4EdVx8.js";
|
|
3
|
+
import { t as Z, u as H } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { c as J, M as K, L as Q, X as Y } from "./index-CAkeI2u7.js";
|
|
5
|
+
import { _ as ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const z = (t) => (q("data-v-d107a8eb"), t = t(), G(), t), te = { "data-html2canvas-ignore": "" }, ae = { class: "vue-data-ui-slicer-labels" }, le = { key: 0 }, ie = /* @__PURE__ */ z(() => /* @__PURE__ */ l("div", { class: "slider-track" }, null, -1)), oe = ["min", "max"], ne = ["min", "max"], ue = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "minimap",
|
|
9
|
+
style: { width: "100%" }
|
|
10
|
+
}, re = ["xmlns", "viewBox"], se = ["id"], de = ["stop-color"], me = /* @__PURE__ */ z(() => /* @__PURE__ */ l("stop", {
|
|
11
|
+
offset: "100%",
|
|
12
|
+
"stop-color": "transparent"
|
|
13
|
+
}, null, -1)), ce = ["d", "stroke", "fill"], ve = ["x", "width", "height", "rx", "fill"], he = {
|
|
14
|
+
__name: "Slicer",
|
|
15
|
+
props: {
|
|
16
|
+
background: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "#FFFFFF"
|
|
19
|
+
},
|
|
20
|
+
borderColor: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: "#FFFFFF"
|
|
23
|
+
},
|
|
24
|
+
fontSize: {
|
|
25
|
+
type: Number,
|
|
26
|
+
default: 14
|
|
27
|
+
},
|
|
28
|
+
labelLeft: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: ""
|
|
31
|
+
},
|
|
32
|
+
labelRight: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: ""
|
|
35
|
+
},
|
|
36
|
+
textColor: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "#1A1A1A"
|
|
39
|
+
},
|
|
40
|
+
inputColor: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: "#1A1A1A"
|
|
43
|
+
},
|
|
44
|
+
max: {
|
|
45
|
+
type: Number,
|
|
46
|
+
default: 0
|
|
47
|
+
},
|
|
48
|
+
min: {
|
|
49
|
+
type: Number,
|
|
50
|
+
default: 0
|
|
51
|
+
},
|
|
52
|
+
selectColor: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: "#4A4A4A"
|
|
55
|
+
},
|
|
56
|
+
useResetSlot: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: !1
|
|
59
|
+
},
|
|
60
|
+
valueStart: {
|
|
61
|
+
type: [Number, String],
|
|
62
|
+
default: 0
|
|
63
|
+
},
|
|
64
|
+
valueEnd: {
|
|
65
|
+
type: [Number, String],
|
|
66
|
+
default: 0
|
|
67
|
+
},
|
|
68
|
+
minimap: {
|
|
69
|
+
type: Array,
|
|
70
|
+
default: []
|
|
71
|
+
},
|
|
72
|
+
smoothMinimap: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: !1
|
|
75
|
+
},
|
|
76
|
+
minimapSelectedColor: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: "#1f77b4"
|
|
79
|
+
},
|
|
80
|
+
minimapSelectionRadius: {
|
|
81
|
+
type: Number,
|
|
82
|
+
default: 12
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
emits: ["update:start", "update:end", "reset"],
|
|
86
|
+
setup(t, { emit: v }) {
|
|
87
|
+
const e = t;
|
|
88
|
+
W((a) => ({
|
|
89
|
+
"7ba89185": I.value,
|
|
90
|
+
"139e19f9": B.value,
|
|
91
|
+
"66a988aa": V.value,
|
|
92
|
+
"185949ae": t.selectColor,
|
|
93
|
+
"63b7ed92": R.value
|
|
94
|
+
}));
|
|
95
|
+
const o = d(e.min), n = d(e.max), p = s(() => !!e.minimap.length), b = d(J()), A = s(() => {
|
|
96
|
+
const a = e.max - e.min, i = (o.value - e.min) / a * 100, r = (n.value - e.min) / a * 100;
|
|
97
|
+
return {
|
|
98
|
+
left: `${i}%`,
|
|
99
|
+
width: `${r - i}%`,
|
|
100
|
+
background: e.selectColor
|
|
101
|
+
};
|
|
102
|
+
}), I = s(() => e.inputColor), R = s(() => e.background), V = s(() => `${e.selectColor}33`), B = s(() => e.borderColor);
|
|
103
|
+
function g() {
|
|
104
|
+
v("reset");
|
|
105
|
+
}
|
|
106
|
+
function E() {
|
|
107
|
+
Number(o.value) > Number(n.value) - 1 && (o.value = Number(n.value) - 1), v("update:start", Number(o.value));
|
|
108
|
+
}
|
|
109
|
+
function M() {
|
|
110
|
+
Number(n.value) < Number(o.value) + 1 && (n.value = Number(o.value) + 1), v("update:end", Number(n.value));
|
|
111
|
+
}
|
|
112
|
+
C(
|
|
113
|
+
() => e.min,
|
|
114
|
+
(a) => {
|
|
115
|
+
Number(o.value) < Number(a) && (o.value = Number(a)), Number(n.value) < Number(a) && (n.value = Number(a));
|
|
116
|
+
}
|
|
117
|
+
), C(
|
|
118
|
+
() => e.max,
|
|
119
|
+
(a) => {
|
|
120
|
+
Number(o.value) > Number(a) && (o.value = Number(a)), Number(n.value) > Number(a) && (n.value = Number(a));
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
const h = d(null), u = d({
|
|
124
|
+
width: 1,
|
|
125
|
+
height: 1
|
|
126
|
+
}), S = d(null);
|
|
127
|
+
X(() => {
|
|
128
|
+
if (p.value) {
|
|
129
|
+
const a = Z(() => {
|
|
130
|
+
const { width: i, height: r } = H({
|
|
131
|
+
chart: h.value
|
|
132
|
+
});
|
|
133
|
+
u.value.width = i, u.value.height = r - 33;
|
|
134
|
+
});
|
|
135
|
+
S.value = new ResizeObserver(a), S.value.observe(h.value);
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
const y = s(() => e.minimap.length ? u.value.width / e.minimap.length : 0), x = s(() => ({
|
|
139
|
+
x: y.value * e.valueStart,
|
|
140
|
+
width: y.value * (e.valueEnd - e.valueStart)
|
|
141
|
+
})), L = s(() => {
|
|
142
|
+
if (!e.minimap.length) return [];
|
|
143
|
+
const a = Math.max(...e.minimap), i = Math.min(...e.minimap), r = a - (i > 0 ? 0 : i), N = e.minimap.map((P, O) => {
|
|
144
|
+
const U = P - i;
|
|
145
|
+
return {
|
|
146
|
+
x: u.value.width / (e.minimap.length - 1) * O,
|
|
147
|
+
y: u.value.height - U / r * (u.value.height * 0.9)
|
|
148
|
+
};
|
|
149
|
+
});
|
|
150
|
+
return e.smoothMinimap ? K(N) : Q(N);
|
|
151
|
+
});
|
|
152
|
+
return (a, i) => (m(), c("div", te, [
|
|
153
|
+
l("div", ae, [
|
|
154
|
+
l("div", {
|
|
155
|
+
class: "vue-data-ui-slicer-label-left",
|
|
156
|
+
style: f({ fontSize: `${e.fontSize}px`, color: e.textColor })
|
|
157
|
+
}, k(t.labelLeft), 5),
|
|
158
|
+
t.valueStart > 0 || t.valueEnd < t.max ? (m(), c("div", le, [
|
|
159
|
+
t.useResetSlot ? D(a.$slots, "reset-action", {
|
|
160
|
+
key: 1,
|
|
161
|
+
reset: g
|
|
162
|
+
}, void 0, !0) : (m(), c("button", {
|
|
163
|
+
key: 0,
|
|
164
|
+
"data-cy-reset": "",
|
|
165
|
+
tabindex: "0",
|
|
166
|
+
role: "button",
|
|
167
|
+
class: "vue-data-ui-refresh-button",
|
|
168
|
+
onClick: g
|
|
169
|
+
}, [
|
|
170
|
+
_(T, {
|
|
171
|
+
name: "refresh",
|
|
172
|
+
stroke: t.textColor
|
|
173
|
+
}, null, 8, ["stroke"])
|
|
174
|
+
]))
|
|
175
|
+
])) : $("", !0),
|
|
176
|
+
l("div", {
|
|
177
|
+
class: "vue-data-ui-slicer-label-right",
|
|
178
|
+
style: f({ fontSize: `${e.fontSize}px`, color: e.textColor })
|
|
179
|
+
}, k(t.labelRight), 5)
|
|
180
|
+
]),
|
|
181
|
+
l("div", {
|
|
182
|
+
class: "double-range-slider",
|
|
183
|
+
ref_key: "minimapWrapper",
|
|
184
|
+
ref: h
|
|
185
|
+
}, [
|
|
186
|
+
ie,
|
|
187
|
+
l("div", {
|
|
188
|
+
class: "range-highlight",
|
|
189
|
+
style: f(A.value)
|
|
190
|
+
}, null, 4),
|
|
191
|
+
w(l("input", {
|
|
192
|
+
type: "range",
|
|
193
|
+
min: t.min,
|
|
194
|
+
max: t.max,
|
|
195
|
+
"onUpdate:modelValue": i[0] || (i[0] = (r) => o.value = r),
|
|
196
|
+
onInput: E
|
|
197
|
+
}, null, 40, oe), [
|
|
198
|
+
[F, o.value]
|
|
199
|
+
]),
|
|
200
|
+
w(l("input", {
|
|
201
|
+
type: "range",
|
|
202
|
+
min: t.min,
|
|
203
|
+
max: t.max,
|
|
204
|
+
"onUpdate:modelValue": i[1] || (i[1] = (r) => n.value = r),
|
|
205
|
+
onInput: M
|
|
206
|
+
}, null, 40, ne), [
|
|
207
|
+
[F, n.value]
|
|
208
|
+
]),
|
|
209
|
+
p.value ? (m(), c("div", ue, [
|
|
210
|
+
(m(), c("svg", {
|
|
211
|
+
xmlns: j(Y),
|
|
212
|
+
viewBox: `0 0 ${u.value.width} ${u.value.height}`
|
|
213
|
+
}, [
|
|
214
|
+
l("defs", null, [
|
|
215
|
+
l("linearGradient", {
|
|
216
|
+
id: b.value,
|
|
217
|
+
x1: "0%",
|
|
218
|
+
y1: "0%",
|
|
219
|
+
x2: "0%",
|
|
220
|
+
y2: "100%"
|
|
221
|
+
}, [
|
|
222
|
+
l("stop", {
|
|
223
|
+
offset: "0%",
|
|
224
|
+
"stop-color": `${t.selectColor}50`
|
|
225
|
+
}, null, 8, de),
|
|
226
|
+
me
|
|
227
|
+
], 8, se)
|
|
228
|
+
]),
|
|
229
|
+
l("path", {
|
|
230
|
+
d: `M0,${u.value.height} ${L.value} ${u.value.width},${u.value.height}Z`,
|
|
231
|
+
stroke: `${t.selectColor}50`,
|
|
232
|
+
fill: `url(#${b.value})`,
|
|
233
|
+
"stroke-width": "1",
|
|
234
|
+
"stroke-linecap": "round",
|
|
235
|
+
"stroke-linejoin": "round"
|
|
236
|
+
}, null, 8, ce),
|
|
237
|
+
l("rect", {
|
|
238
|
+
x: x.value.x,
|
|
239
|
+
y: "0",
|
|
240
|
+
width: x.value.width,
|
|
241
|
+
height: u.value.height,
|
|
242
|
+
rx: t.minimapSelectionRadius,
|
|
243
|
+
fill: `${t.minimapSelectedColor}30`
|
|
244
|
+
}, null, 8, ve)
|
|
245
|
+
], 8, re))
|
|
246
|
+
])) : $("", !0)
|
|
247
|
+
], 512)
|
|
248
|
+
]));
|
|
249
|
+
}
|
|
250
|
+
}, ye = /* @__PURE__ */ ee(he, [["__scopeId", "data-v-d107a8eb"]]);
|
|
251
|
+
export {
|
|
252
|
+
ye as S
|
|
253
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),r=require("./useNestedProp-
|
|
1
|
+
"use strict";const t=require("vue"),r=require("./useNestedProp-DM4rgjhE.cjs"),o={__name:"Title",props:{config:{type:Object,default(){return{}}}},setup(i){const n=i,e=r.useNestedProp({userConfig:n.config,defaultConfig:{title:{cy:"",text:"",color:"",fontSize:20,bold:!0,textAlign:"center",paddingLeft:0,paddingRight:0},subtitle:{cy:"",text:"",color:"",fontSize:14,bold:!1}}});return(l,d)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{style:t.normalizeStyle(`width: calc(100% - ${t.unref(e).title.paddingLeft+t.unref(e).title.paddingRight}px); text-align:${t.unref(e).title.textAlign};color:${t.unref(e).title.color};font-size:${t.unref(e).title.fontSize}px;font-weight:${t.unref(e).title.bold?"bold":""};padding-left:${t.unref(e).title.paddingLeft}px;padding-right:${t.unref(e).title.paddingRight}px;`)},t.toDisplayString(t.unref(e).title.text),5),t.unref(e).subtitle.text?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(`width: calc(100% - ${t.unref(e).title.paddingLeft+t.unref(e).title.paddingRight}px); text-align:${t.unref(e).title.textAlign};color:${t.unref(e).subtitle.color};font-size:${t.unref(e).subtitle.fontSize}px;font-weight:${t.unref(e).subtitle.bold?"bold":""};padding-left:${t.unref(e).title.paddingLeft}px;padding-right:${t.unref(e).title.paddingRight}px;`)},t.toDisplayString(t.unref(e).subtitle.text),5)):t.createCommentVNode("",!0),t.unref(e).subtitle.text?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle(`width: calc(100% - ${t.unref(e).title.paddingLeft+t.unref(e).title.paddingRight}px); text-align:${t.unref(e).title.textAlign};color:${t.unref(e).subtitle.color};font-size:${t.unref(e).subtitle.fontSize}px;font-weight:${t.unref(e).subtitle.bold?"bold":""};padding-left:${t.unref(e).title.paddingLeft}px;padding-right:${t.unref(e).title.paddingRight}px;`)},[t.renderSlot(l.$slots,"default")],4)):t.createCommentVNode("",!0)],64))}};exports._sfc_main=o;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as i, createElementBlock as l, Fragment as a, createElementVNode as r, normalizeStyle as d, unref as e, toDisplayString as n, createCommentVNode as o, renderSlot as f } from "vue";
|
|
2
|
-
import { u as s } from "./useNestedProp-
|
|
2
|
+
import { u as s } from "./useNestedProp-N72tOTWX.js";
|
|
3
3
|
const b = {
|
|
4
4
|
__name: "Title",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as l, onMounted as v, onUnmounted as y, computed as p, openBlock as b, createElementBlock as g, normalizeClass as x, normalizeStyle as h, unref as $, renderSlot as s, createElementVNode as C, createCommentVNode as S } from "vue";
|
|
2
|
-
import { v as k } from "./index-
|
|
2
|
+
import { v as k } from "./index-CAkeI2u7.js";
|
|
3
3
|
function N({ tooltip: e, chart: o, clientPosition: t, positionPreference: r = "center", defaultOffsetY: a = 24 }) {
|
|
4
4
|
const u = l(0), f = l(a);
|
|
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-DGxA8bUJ.cjs");function y({tooltip:e,chart:n,clientPosition:t,positionPreference:l="center",defaultOffsetY:a=24}){const r=o.ref(0),f=o.ref(a);if(e&&n){const{width:u,height:s}=e.getBoundingClientRect(),{right:i,left:d,bottom:m}=n.getBoundingClientRect();l==="center"&&(t.x+u/2>i?r.value=-u+(i-t.x):t.x-u/2<d?r.value=-u+(u-(t.x-d)):r.value=-u/2),l==="right"&&(t.x+u>i?r.value=-u+(i-t.x):r.value=0),l==="left"&&(t.x<d+u?r.value=-u+(u-(t.x-d)):r.value=-u),t.y+s>m&&(f.value=-s-a)}return{top:t.y+f.value,left:t.x+r.value}}function b(e,n,t){o.onMounted(()=>e.addEventListener(n,t)),o.onUnmounted(()=>e.removeEventListener(n,t))}function c(){const e=o.ref(0),n=o.ref(0);return b(window,"mousemove",t=>{e.value=t.clientX,n.value=t.clientY}),{x:e,y:n}}const p=["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 n=e,t=o.ref(null),l=o.ref(c()),a=o.computed(()=>y({tooltip:t.value,chart:n.parent,clientPosition:l.value,positionPreference:n.position,defaultOffsetY:n.offsetY}));return(r,f)=>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:${a.value.top}px;left:${a.value.left}px;${e.isCustom?"":`background:${e.backgroundColor}${o.unref(v.opacity)[e.backgroundOpacity]};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(r.$slots,"tooltip-before"),o.renderSlot(r.$slots,"default"),o.createElementVNode("div",{innerHTML:e.content},null,8,p),o.renderSlot(r.$slots,"tooltip-after")],6)):o.createCommentVNode("",!0)}};exports._sfc_main=g;exports.useMouse=c;
|