vue-data-ui 2.3.56 → 2.3.58
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-BsFu2TQv.js → Arrow-98PCnwIA.js} +1 -1
- package/dist/{Arrow-DmbnhAr9.cjs → Arrow-DSuTmKgJ.cjs} +1 -1
- package/dist/{BaseIcon-PVWrOd6r.cjs → BaseIcon-D8n9j2RY.cjs} +1 -1
- package/dist/{BaseIcon-BBkGiBfe.js → BaseIcon-whj3R3q1.js} +1 -1
- package/dist/{DataTable-CJiw9Oeg.cjs → DataTable-BzcgenEj.cjs} +1 -1
- package/dist/{DataTable-W1gJ4gSD.js → DataTable-C-fDolt7.js} +2 -2
- package/dist/{Legend-CQIo_WbD.js → Legend-Dr_iaCC6.js} +1 -1
- package/dist/{Legend-Cc-aaZxh.cjs → Legend-bEaeOaKZ.cjs} +1 -1
- package/dist/{Shape-DzqSEyhX.cjs → Shape-B_AH8Hpy.cjs} +1 -1
- package/dist/{Shape-Y6qCeNbi.js → Shape-D0yfJHUK.js} +1 -1
- package/dist/Slicer-BLGXu5jT.js +328 -0
- package/dist/Slicer-BfhOiAk6.cjs +1 -0
- package/dist/{Title-CmKmZeBx.cjs → Title-Dv02ecQu.cjs} +1 -1
- package/dist/{Title-BuPNfgaD.js → Title-DwQdoOA-.js} +1 -1
- package/dist/{Tooltip-DMhG5ns_.js → Tooltip-2bIZhKpI.js} +1 -1
- package/dist/{Tooltip-6Fl_Hm1X.cjs → Tooltip-DRAFgG7c.cjs} +1 -1
- package/dist/{index-CheT0Wx_.js → index-DVGMG23n.js} +1 -1
- package/dist/{index-BrTW1d55.cjs → index-l3VmuY43.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BtrNNAOl.js → useNestedProp-B0ThZBR4.js} +1 -1
- package/dist/{useNestedProp-BnuqAeNh.cjs → useNestedProp-B9Di2DlM.cjs} +1 -1
- package/dist/{usePrinter-DuLkeo52.js → usePrinter-BuOMK1si.js} +1 -1
- package/dist/{usePrinter-CBPDDz8k.cjs → usePrinter-DDCeYDyR.cjs} +1 -1
- package/dist/{vue-data-ui-4juY_ptg.cjs → vue-data-ui-BEcnxnTP.cjs} +1 -1
- package/dist/{vue-data-ui-jFylH5cj.js → vue-data-ui-D2Gw43vR.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-jqnud76a.js → vue-ui-3d-bar-BuBCa8GI.js} +7 -7
- package/dist/{vue-ui-3d-bar-CPKXmaEX.cjs → vue-ui-3d-bar-sDo8AiQM.cjs} +1 -1
- package/dist/{vue-ui-accordion-CP3eE3ra.js → vue-ui-accordion-BlsYk-io.js} +3 -3
- package/dist/{vue-ui-accordion-CRXILPuZ.cjs → vue-ui-accordion-Dd6EWFMo.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-C6lbaF5t.cjs → vue-ui-age-pyramid-Bhqzz4gW.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CNHqO7eI.js → vue-ui-age-pyramid-DUMr1gLn.js} +8 -8
- package/dist/{vue-ui-annotator-RSAxc5Py.js → vue-ui-annotator-BuGYDjc4.js} +1 -1
- package/dist/{vue-ui-annotator-DpuDzFHD.cjs → vue-ui-annotator-D41ZltcV.cjs} +1 -1
- package/dist/{vue-ui-candlestick-wBmbvoru.js → vue-ui-candlestick-ChmBooGg.js} +9 -9
- package/dist/{vue-ui-candlestick-BLy6KJLB.cjs → vue-ui-candlestick-DMcYHaW1.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-74JfF1CF.js → vue-ui-carousel-table-BJw3yvht.js} +4 -4
- package/dist/{vue-ui-carousel-table-DmXDmH_I.cjs → vue-ui-carousel-table-BfD-a6ZD.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DC9KUP9E.js → vue-ui-chestnut-D_2U9Y8z.js} +6 -6
- package/dist/{vue-ui-chestnut-3U5Rzexa.cjs → vue-ui-chestnut-r4ZhJvJu.cjs} +1 -1
- package/dist/{vue-ui-cursor-DvHSca1e.js → vue-ui-cursor-04NdhJmA.js} +2 -2
- package/dist/{vue-ui-cursor-BBOad4Oz.cjs → vue-ui-cursor-mNoudnXY.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B97wcEhA.js → vue-ui-dashboard-2Y-bRtWW.js} +2 -2
- package/dist/{vue-ui-dashboard-CErkNKT5.cjs → vue-ui-dashboard-CnaefW9u.cjs} +1 -1
- package/dist/{vue-ui-digits-DfCFX2Qt.cjs → vue-ui-digits-C5-EhIEf.cjs} +1 -1
- package/dist/{vue-ui-digits-D1EfYy-P.js → vue-ui-digits-D5F4B_Uc.js} +2 -2
- package/dist/{vue-ui-donut-CU2WSbx_.js → vue-ui-donut-BA5W9LK1.js} +9 -9
- package/dist/{vue-ui-donut-CXZBrDav.cjs → vue-ui-donut-B_vLhMT8.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BCboadVu.cjs → vue-ui-donut-evolution-Bj8Kg5KC.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-Cy2LvVXl.js → vue-ui-donut-evolution-DGr5mDmY.js} +9 -9
- package/dist/{vue-ui-dumbbell-BHn-nF5o.cjs → vue-ui-dumbbell-CLDtJHD7.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-C3-cUpEJ.js → vue-ui-dumbbell-qYTxQHlF.js} +8 -8
- package/dist/{vue-ui-flow-E6in3VUZ.js → vue-ui-flow-BUPt_GBz.js} +7 -7
- package/dist/{vue-ui-flow-BoYvyc72.cjs → vue-ui-flow-DDuNQeyk.cjs} +1 -1
- package/dist/{vue-ui-galaxy-Bmw1sasL.js → vue-ui-galaxy-C7EoU_0P.js} +9 -9
- package/dist/{vue-ui-galaxy-BMXRhIPx.cjs → vue-ui-galaxy-D9u8JPo7.cjs} +1 -1
- package/dist/{vue-ui-gauge-Hco2qIrF.cjs → vue-ui-gauge-CpguLQou.cjs} +1 -1
- package/dist/{vue-ui-gauge-CsXLY_kK.js → vue-ui-gauge-n7x7uvAB.js} +5 -5
- package/dist/{vue-ui-gizmo-DMhJyo57.cjs → vue-ui-gizmo-AzEmOzBc.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Y4q19AJI.js → vue-ui-gizmo-Bi5YA-3A.js} +2 -2
- package/dist/{vue-ui-heatmap-DdaNiod-.cjs → vue-ui-heatmap-BUbNMTTH.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BlA1MCRH.js → vue-ui-heatmap-Dzvq1vMg.js} +8 -8
- package/dist/{vue-ui-kpi-yiWoG8Jg.cjs → vue-ui-kpi-BaDtk1X_.cjs} +1 -1
- package/dist/{vue-ui-kpi-Bklm7sI3.js → vue-ui-kpi-D8jWjW3q.js} +3 -3
- package/dist/{vue-ui-mini-loader-rIlEJt4J.js → vue-ui-mini-loader-5msE8yk0.js} +2 -2
- package/dist/{vue-ui-mini-loader-CFHuzD8z.cjs → vue-ui-mini-loader-DiOvDLRn.cjs} +1 -1
- package/dist/{vue-ui-molecule-IT3c4oT6.cjs → vue-ui-molecule-DjR4pbzN.cjs} +1 -1
- package/dist/{vue-ui-molecule-_ux8PBWz.js → vue-ui-molecule-MTgovKSv.js} +9 -9
- package/dist/{vue-ui-mood-radar-BXP_gJLi.js → vue-ui-mood-radar-5NImteDi.js} +9 -9
- package/dist/{vue-ui-mood-radar-DN_-xVon.cjs → vue-ui-mood-radar-C5UQPcO_.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-B1Fp99F3.cjs → vue-ui-nested-donuts-ChHGyvyi.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-Cjgz6nRo.js → vue-ui-nested-donuts-Wf39ZljG.js} +9 -9
- package/dist/{vue-ui-onion-BPf7VCJa.cjs → vue-ui-onion-BJvYAoah.cjs} +1 -1
- package/dist/{vue-ui-onion-CLV7WICr.js → vue-ui-onion-CA18z7hj.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-BAQc5SWh.cjs → vue-ui-parallel-coordinate-plot-BV67oFdP.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-Io-m4z6C.js → vue-ui-parallel-coordinate-plot-CHWrjl6E.js} +10 -10
- package/dist/{vue-ui-quadrant-BSfdu8iN.js → vue-ui-quadrant-Bn6rNej4.js} +10 -10
- package/dist/{vue-ui-quadrant-BfqpKrGV.cjs → vue-ui-quadrant-ofJDRvtC.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DI__EnvH.cjs → vue-ui-quick-chart-Dufi3yn4.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BdGaCOrt.js → vue-ui-quick-chart-GGu5E5oG.js} +6 -6
- package/dist/{vue-ui-radar-CLNEQi3b.cjs → vue-ui-radar-ByE7DjFH.cjs} +1 -1
- package/dist/{vue-ui-radar-uvDULkG8.js → vue-ui-radar-DkWJFF43.js} +10 -10
- package/dist/{vue-ui-rating-DPhYGjCa.js → vue-ui-rating-DkPwm7z9.js} +2 -2
- package/dist/{vue-ui-rating-GIvcfzRr.cjs → vue-ui-rating-assTTadv.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BargpoTh.js → vue-ui-relation-circle-RUDdVguf.js} +5 -5
- package/dist/{vue-ui-relation-circle-CwuE4eca.cjs → vue-ui-relation-circle-baIyhRUq.cjs} +1 -1
- package/dist/{vue-ui-rings-CXrRMCZW.js → vue-ui-rings-BghJq1Nw.js} +9 -9
- package/dist/{vue-ui-rings-jF8ux3Dp.cjs → vue-ui-rings-CG2sm9ZK.cjs} +1 -1
- package/dist/{vue-ui-scatter-CcbhZV9z.js → vue-ui-scatter-B4NK1cBE.js} +10 -10
- package/dist/{vue-ui-scatter-wLsb-fZC.cjs → vue-ui-scatter-IZJqBzfB.cjs} +1 -1
- package/dist/{vue-ui-screenshot-kGqAEHjy.js → vue-ui-screenshot-BGYgfxxK.js} +1 -1
- package/dist/{vue-ui-screenshot-BqCGhVN1.cjs → vue-ui-screenshot-VRE0UHXt.cjs} +1 -1
- package/dist/{vue-ui-skeleton-_10dnvdH.cjs → vue-ui-skeleton-07hIVa5w.cjs} +1 -1
- package/dist/{vue-ui-skeleton-aQqDPgNZ.js → vue-ui-skeleton-0wzUlYHc.js} +2 -2
- package/dist/{vue-ui-smiley-Bg4Snrze.cjs → vue-ui-smiley-BcQCetzK.cjs} +1 -1
- package/dist/{vue-ui-smiley-BwK68PuU.js → vue-ui-smiley-Dz8M2MJ7.js} +2 -2
- package/dist/{vue-ui-spark-trend-DYxxnfQW.cjs → vue-ui-spark-trend-BR-VzRdb.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DoqkKOlk.js → vue-ui-spark-trend-DIVS363M.js} +4 -4
- package/dist/{vue-ui-sparkbar-BTQmwesw.cjs → vue-ui-sparkbar-C6TeNmFs.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-WnaAUbae.js → vue-ui-sparkbar-DITfeuRK.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BKRRGs7B.js → vue-ui-sparkgauge-CXcYedOm.js} +3 -3
- package/dist/{vue-ui-sparkgauge-FXAlpXuQ.cjs → vue-ui-sparkgauge-CmgxQwfp.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-C1zV2eop.js → vue-ui-sparkhistogram-CG83hIJa.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-tTBz6NIG.cjs → vue-ui-sparkhistogram-CLZDPg5_.cjs} +1 -1
- package/dist/{vue-ui-sparkline-B8jRRWaL.js → vue-ui-sparkline-DiloRGlF.js} +3 -3
- package/dist/{vue-ui-sparkline-C9u8IXFi.cjs → vue-ui-sparkline-_Al3Dh02.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DxJv0K0j.cjs → vue-ui-sparkstackbar-BIVrUsks.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-GFQOWlud.js → vue-ui-sparkstackbar-D-T4AftU.js} +3 -3
- package/dist/{vue-ui-stackbar-CKH9nkXT.js → vue-ui-stackbar-XfevLEuu.js} +10 -10
- package/dist/{vue-ui-stackbar-CB5aHagD.cjs → vue-ui-stackbar-ZY39WwfY.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-3sfiftZ9.cjs → vue-ui-strip-plot-Zp3lZRDO.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DieTMdDF.js → vue-ui-strip-plot-ouJI9Woj.js} +9 -9
- package/dist/{vue-ui-table-BGdHb7N7.js → vue-ui-table-CBUS59OQ.js} +1 -1
- package/dist/{vue-ui-table-cgc5JWpi.cjs → vue-ui-table-DlR4V0xs.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DEV-t7Jo.js → vue-ui-table-heatmap-CNHvvxv4.js} +4 -4
- package/dist/{vue-ui-table-heatmap-C044igg5.cjs → vue-ui-table-heatmap-DSOJI9lQ.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-Uq7w4wDX.js → vue-ui-table-sparkline-CopY0wCx.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BrWT1d3d.cjs → vue-ui-table-sparkline-DsEqkRE_.cjs} +1 -1
- package/dist/{vue-ui-thermometer-Dk6C8A-d.cjs → vue-ui-thermometer-BKpTG2pT.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CTWxK5mL.js → vue-ui-thermometer-Csk9K32_.js} +5 -5
- package/dist/{vue-ui-timer-D_Tt_SFq.js → vue-ui-timer-eJX5RWJy.js} +4 -4
- package/dist/{vue-ui-timer-BoyYkbBT.cjs → vue-ui-timer-kx8qCgiw.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BMCx6T02.js → vue-ui-tiremarks-B3n8wpcT.js} +5 -5
- package/dist/{vue-ui-tiremarks-PP0ZKmzU.cjs → vue-ui-tiremarks-DwsRFNyi.cjs} +1 -1
- package/dist/{vue-ui-treemap-CPNFNuvx.js → vue-ui-treemap-BJuVShWl.js} +9 -9
- package/dist/{vue-ui-treemap-BpQvyTD-.cjs → vue-ui-treemap-HJJGJBVt.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-C95PuahY.cjs → vue-ui-vertical-bar-BM7OqOHD.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BxopNTze.js → vue-ui-vertical-bar-DRIES-ZF.js} +9 -9
- package/dist/{vue-ui-waffle-DPD6Tq15.cjs → vue-ui-waffle-CRsSWWro.cjs} +1 -1
- package/dist/{vue-ui-waffle-BxKVHnSt.js → vue-ui-waffle-DBeSHk_X.js} +9 -9
- package/dist/{vue-ui-wheel-CWZXVIE_.cjs → vue-ui-wheel-BOQzSE7K.cjs} +1 -1
- package/dist/{vue-ui-wheel-hqaO-KLH.js → vue-ui-wheel-C8dQsxNJ.js} +5 -5
- package/dist/{vue-ui-word-cloud-CR5QakNJ.js → vue-ui-word-cloud-BLIKs72O.js} +7 -7
- package/dist/{vue-ui-word-cloud-CZ11iXV3.cjs → vue-ui-word-cloud-BM1GLCD0.cjs} +1 -1
- package/dist/{vue-ui-xy-C4ga2Mx1.cjs → vue-ui-xy-Bz8922yf.cjs} +1 -1
- package/dist/{vue-ui-xy-hnDHwwdO.js → vue-ui-xy-DZhU1VeY.js} +12 -12
- package/dist/{vue-ui-xy-canvas-DyYwcAlu.cjs → vue-ui-xy-canvas-C0i5WWhq.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-B-5qwsGJ.js → vue-ui-xy-canvas-DFl3LpbK.js} +10 -10
- package/package.json +1 -1
- package/dist/Slicer-BMs12nY1.js +0 -306
- package/dist/Slicer-QCrdQngK.cjs +0 -1
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import { useCssVars as Z, ref as d, computed as r, watch as $, onMounted as H, openBlock as v, createElementBlock as h, createElementVNode as i, normalizeStyle as p, createVNode as J, renderSlot as K, createCommentVNode as F, Fragment as Q, unref as Y, withDirectives as z, vModelText as R, toDisplayString as L, pushScopeId as ee, popScopeId as te } from "vue";
|
|
2
|
+
import le from "./BaseIcon-whj3R3q1.js";
|
|
3
|
+
import { t as ae, u as ie } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { c as ne, M as A, L as E, X as oe } from "./index-DVGMG23n.js";
|
|
5
|
+
import { _ as ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const I = (l) => (ee("data-v-6719ba10"), l = l(), te(), l), re = {
|
|
7
|
+
"data-html2canvas-ignore": "",
|
|
8
|
+
style: { padding: "0 24px" }
|
|
9
|
+
}, se = {
|
|
10
|
+
class: "vue-data-ui-slicer-labels",
|
|
11
|
+
style: { position: "relative", "z-index": "1" }
|
|
12
|
+
}, de = {
|
|
13
|
+
key: 0,
|
|
14
|
+
style: { width: "100%", position: "relative" }
|
|
15
|
+
}, me = {
|
|
16
|
+
class: "minimap",
|
|
17
|
+
style: { width: "100%" }
|
|
18
|
+
}, ce = ["xmlns", "viewBox"], ve = ["id"], he = ["stop-color"], pe = /* @__PURE__ */ I(() => /* @__PURE__ */ i("stop", {
|
|
19
|
+
offset: "100%",
|
|
20
|
+
"stop-color": "transparent"
|
|
21
|
+
}, null, -1)), fe = ["d", "stroke", "fill"], be = ["x2", "y1", "y2", "stroke"], ge = ["y2", "stroke"], ye = ["x1", "x2", "y2", "stroke"], xe = /* @__PURE__ */ I(() => /* @__PURE__ */ i("div", { class: "slider-track" }, null, -1)), Se = ["min", "max"], Ne = ["min", "max"], ke = {
|
|
22
|
+
__name: "Slicer",
|
|
23
|
+
props: {
|
|
24
|
+
background: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "#FFFFFF"
|
|
27
|
+
},
|
|
28
|
+
borderColor: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "#FFFFFF"
|
|
31
|
+
},
|
|
32
|
+
fontSize: {
|
|
33
|
+
type: Number,
|
|
34
|
+
default: 14
|
|
35
|
+
},
|
|
36
|
+
labelLeft: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: ""
|
|
39
|
+
},
|
|
40
|
+
labelRight: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: ""
|
|
43
|
+
},
|
|
44
|
+
textColor: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: "#1A1A1A"
|
|
47
|
+
},
|
|
48
|
+
inputColor: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: "#1A1A1A"
|
|
51
|
+
},
|
|
52
|
+
max: {
|
|
53
|
+
type: Number,
|
|
54
|
+
default: 0
|
|
55
|
+
},
|
|
56
|
+
min: {
|
|
57
|
+
type: Number,
|
|
58
|
+
default: 0
|
|
59
|
+
},
|
|
60
|
+
selectColor: {
|
|
61
|
+
type: String,
|
|
62
|
+
default: "#4A4A4A"
|
|
63
|
+
},
|
|
64
|
+
useResetSlot: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: !1
|
|
67
|
+
},
|
|
68
|
+
valueStart: {
|
|
69
|
+
type: [Number, String],
|
|
70
|
+
default: 0
|
|
71
|
+
},
|
|
72
|
+
valueEnd: {
|
|
73
|
+
type: [Number, String],
|
|
74
|
+
default: 0
|
|
75
|
+
},
|
|
76
|
+
minimap: {
|
|
77
|
+
type: Array,
|
|
78
|
+
default: []
|
|
79
|
+
},
|
|
80
|
+
smoothMinimap: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: !1
|
|
83
|
+
},
|
|
84
|
+
minimapSelectedColor: {
|
|
85
|
+
type: String,
|
|
86
|
+
default: "#1f77b4"
|
|
87
|
+
},
|
|
88
|
+
minimapSelectionRadius: {
|
|
89
|
+
type: Number,
|
|
90
|
+
default: 12
|
|
91
|
+
},
|
|
92
|
+
minimapLineColor: {
|
|
93
|
+
type: String,
|
|
94
|
+
default: "#2D353C"
|
|
95
|
+
},
|
|
96
|
+
minimapSelectedColorOpacity: {
|
|
97
|
+
type: Number,
|
|
98
|
+
default: 0.2
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
emits: ["update:start", "update:end", "reset"],
|
|
102
|
+
setup(l, { emit: b }) {
|
|
103
|
+
const e = l;
|
|
104
|
+
Z((a) => ({
|
|
105
|
+
"6d560574": P.value,
|
|
106
|
+
"614a85ba": f.value,
|
|
107
|
+
"40a740aa": M.value,
|
|
108
|
+
"417fc6ea": l.selectColor,
|
|
109
|
+
"5442ac78": B.value
|
|
110
|
+
}));
|
|
111
|
+
const n = d(e.min), o = d(e.max), m = r(() => !!e.minimap.length), y = d(ne()), V = r(() => {
|
|
112
|
+
const a = e.max - e.min, u = (n.value - e.min) / a * 100, s = (o.value - e.min) / a * 100;
|
|
113
|
+
return {
|
|
114
|
+
left: `${u}%`,
|
|
115
|
+
width: `${s - u}%`,
|
|
116
|
+
background: e.selectColor
|
|
117
|
+
};
|
|
118
|
+
}), P = r(() => e.inputColor), B = r(() => e.background), M = r(() => `${e.selectColor}33`), f = r(() => e.borderColor);
|
|
119
|
+
function x() {
|
|
120
|
+
b("reset");
|
|
121
|
+
}
|
|
122
|
+
function O() {
|
|
123
|
+
Number(n.value) > Number(o.value) - 1 && (n.value = Number(o.value) - 1), b("update:start", Number(n.value));
|
|
124
|
+
}
|
|
125
|
+
function D() {
|
|
126
|
+
Number(o.value) < Number(n.value) + 1 && (o.value = Number(n.value) + 1), b("update:end", Number(o.value));
|
|
127
|
+
}
|
|
128
|
+
$(
|
|
129
|
+
() => e.min,
|
|
130
|
+
(a) => {
|
|
131
|
+
Number(n.value) < Number(a) && (n.value = Number(a)), Number(o.value) < Number(a) && (o.value = Number(a));
|
|
132
|
+
}
|
|
133
|
+
), $(
|
|
134
|
+
() => e.max,
|
|
135
|
+
(a) => {
|
|
136
|
+
Number(n.value) > Number(a) && (n.value = Number(a)), Number(o.value) > Number(a) && (o.value = Number(a));
|
|
137
|
+
}
|
|
138
|
+
);
|
|
139
|
+
const g = d(null), t = d({
|
|
140
|
+
width: 1,
|
|
141
|
+
height: 1
|
|
142
|
+
}), S = d(null);
|
|
143
|
+
H(() => {
|
|
144
|
+
if (m.value) {
|
|
145
|
+
const a = ae(() => {
|
|
146
|
+
const { width: u, height: s } = ie({
|
|
147
|
+
chart: g.value
|
|
148
|
+
});
|
|
149
|
+
t.value.width = u, t.value.height = s - 47;
|
|
150
|
+
});
|
|
151
|
+
S.value = new ResizeObserver(a), S.value.observe(g.value);
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
const N = r(() => e.minimap.length ? t.value.width / e.minimap.length : 0);
|
|
155
|
+
r(() => ({
|
|
156
|
+
x: N.value * e.valueStart,
|
|
157
|
+
width: N.value * (e.valueEnd - e.valueStart)
|
|
158
|
+
}));
|
|
159
|
+
const U = r(() => {
|
|
160
|
+
if (!e.minimap.length) return [];
|
|
161
|
+
const a = Math.max(...e.minimap), u = Math.min(...e.minimap) - 10, s = a - (u > 0 ? 0 : u), c = e.minimap.map((q, G) => {
|
|
162
|
+
const T = q - u;
|
|
163
|
+
return {
|
|
164
|
+
x: t.value.width / (e.minimap.length - 1) * G,
|
|
165
|
+
y: t.value.height - T / s * (t.value.height * 0.9)
|
|
166
|
+
};
|
|
167
|
+
}), _ = e.smoothMinimap ? A(c) : E(c), w = [...c].slice(e.valueStart, e.valueEnd), j = e.smoothMinimap ? A(w) : E(w);
|
|
168
|
+
return {
|
|
169
|
+
fullSet: _,
|
|
170
|
+
selectionSet: j,
|
|
171
|
+
firstPlot: c[e.valueStart],
|
|
172
|
+
lastPlot: c[e.valueEnd - 1]
|
|
173
|
+
};
|
|
174
|
+
}), k = r(() => e.max - e.min), C = r(() => ({
|
|
175
|
+
left: (n.value - e.min) / k.value * 100,
|
|
176
|
+
width: (o.value - n.value) / k.value * 100
|
|
177
|
+
})), W = r(() => ({
|
|
178
|
+
left: 0,
|
|
179
|
+
color: e.textColor,
|
|
180
|
+
fontSize: `${e.fontSize}px`,
|
|
181
|
+
top: m.value ? "28px" : "-28px",
|
|
182
|
+
pointerEvents: "none"
|
|
183
|
+
})), X = r(() => ({
|
|
184
|
+
right: 0,
|
|
185
|
+
color: e.textColor,
|
|
186
|
+
fontSize: `${e.fontSize}px`,
|
|
187
|
+
top: m.value ? "28px" : "-28px",
|
|
188
|
+
direction: "rtl",
|
|
189
|
+
pointerEvents: "none"
|
|
190
|
+
}));
|
|
191
|
+
return (a, u) => (v(), h("div", re, [
|
|
192
|
+
i("div", se, [
|
|
193
|
+
l.valueStart > 0 || l.valueEnd < l.max ? (v(), h("div", de, [
|
|
194
|
+
l.useResetSlot ? K(a.$slots, "reset-action", {
|
|
195
|
+
key: 1,
|
|
196
|
+
reset: x
|
|
197
|
+
}, void 0, !0) : (v(), h("button", {
|
|
198
|
+
key: 0,
|
|
199
|
+
"data-cy-reset": "",
|
|
200
|
+
tabindex: "0",
|
|
201
|
+
role: "button",
|
|
202
|
+
class: "vue-data-ui-refresh-button",
|
|
203
|
+
style: p({
|
|
204
|
+
top: m.value ? "36px" : "-16px"
|
|
205
|
+
}),
|
|
206
|
+
onClick: x
|
|
207
|
+
}, [
|
|
208
|
+
J(le, {
|
|
209
|
+
name: "refresh",
|
|
210
|
+
stroke: l.textColor
|
|
211
|
+
}, null, 8, ["stroke"])
|
|
212
|
+
], 4))
|
|
213
|
+
])) : F("", !0)
|
|
214
|
+
]),
|
|
215
|
+
i("div", {
|
|
216
|
+
class: "double-range-slider",
|
|
217
|
+
ref_key: "minimapWrapper",
|
|
218
|
+
ref: g,
|
|
219
|
+
style: { "z-index": "0" }
|
|
220
|
+
}, [
|
|
221
|
+
m.value ? (v(), h(Q, { key: 0 }, [
|
|
222
|
+
i("div", me, [
|
|
223
|
+
(v(), h("svg", {
|
|
224
|
+
xmlns: Y(oe),
|
|
225
|
+
viewBox: `0 0 ${t.value.width < 0 ? 0 : t.value.width} ${t.value.height < 0 ? 0 : t.value.height}`
|
|
226
|
+
}, [
|
|
227
|
+
i("defs", null, [
|
|
228
|
+
i("linearGradient", {
|
|
229
|
+
id: y.value,
|
|
230
|
+
x1: "0%",
|
|
231
|
+
y1: "0%",
|
|
232
|
+
x2: "0%",
|
|
233
|
+
y2: "100%"
|
|
234
|
+
}, [
|
|
235
|
+
i("stop", {
|
|
236
|
+
offset: "0%",
|
|
237
|
+
"stop-color": `${l.minimapLineColor}50`
|
|
238
|
+
}, null, 8, he),
|
|
239
|
+
pe
|
|
240
|
+
], 8, ve)
|
|
241
|
+
]),
|
|
242
|
+
i("path", {
|
|
243
|
+
d: `M0,${t.value.height} ${U.value.fullSet} L${t.value.width},${t.value.height}Z`,
|
|
244
|
+
stroke: `${l.minimapLineColor}`,
|
|
245
|
+
fill: `url(#${y.value})`,
|
|
246
|
+
"stroke-width": "1",
|
|
247
|
+
"stroke-linecap": "round",
|
|
248
|
+
"stroke-linejoin": "round",
|
|
249
|
+
style: { opacity: "1" }
|
|
250
|
+
}, null, 8, fe),
|
|
251
|
+
i("line", {
|
|
252
|
+
x1: 0,
|
|
253
|
+
x2: t.value.width < 0 ? 0 : t.value.width,
|
|
254
|
+
y1: t.value.height < 0 ? 0 : t.value.height,
|
|
255
|
+
y2: t.value.height < 0 ? 0 : t.value.height,
|
|
256
|
+
stroke: f.value,
|
|
257
|
+
"stroke-width": "3"
|
|
258
|
+
}, null, 8, be),
|
|
259
|
+
i("line", {
|
|
260
|
+
x1: 0,
|
|
261
|
+
x2: 0,
|
|
262
|
+
y1: 0,
|
|
263
|
+
y2: t.value.height < 0 ? 0 : t.value.height,
|
|
264
|
+
stroke: f.value,
|
|
265
|
+
"stroke-width": "5"
|
|
266
|
+
}, null, 8, ge),
|
|
267
|
+
i("line", {
|
|
268
|
+
x1: t.value.width < 0 ? 0 : t.value.width,
|
|
269
|
+
x2: t.value.width < 0 ? 0 : t.value.width,
|
|
270
|
+
y1: 0,
|
|
271
|
+
y2: t.value.height < 0 ? 0 : t.value.height,
|
|
272
|
+
stroke: f.value,
|
|
273
|
+
"stroke-width": "5"
|
|
274
|
+
}, null, 8, ye)
|
|
275
|
+
], 8, ce))
|
|
276
|
+
]),
|
|
277
|
+
i("div", {
|
|
278
|
+
class: "sel",
|
|
279
|
+
style: p({
|
|
280
|
+
position: "absolute",
|
|
281
|
+
top: "-33px",
|
|
282
|
+
left: `calc(${C.value.left}%)`,
|
|
283
|
+
background: l.minimapSelectedColor,
|
|
284
|
+
height: "40px",
|
|
285
|
+
width: C.value.width + "%",
|
|
286
|
+
borderRadius: `${l.minimapSelectionRadius}px ${l.minimapSelectionRadius}px 0 0`,
|
|
287
|
+
opacity: l.minimapSelectedColorOpacity
|
|
288
|
+
})
|
|
289
|
+
}, null, 4)
|
|
290
|
+
], 64)) : F("", !0),
|
|
291
|
+
xe,
|
|
292
|
+
i("div", {
|
|
293
|
+
class: "range-highlight",
|
|
294
|
+
style: p(V.value)
|
|
295
|
+
}, null, 4),
|
|
296
|
+
z(i("input", {
|
|
297
|
+
type: "range",
|
|
298
|
+
min: l.min,
|
|
299
|
+
max: l.max,
|
|
300
|
+
"onUpdate:modelValue": u[0] || (u[0] = (s) => n.value = s),
|
|
301
|
+
onInput: O
|
|
302
|
+
}, null, 40, Se), [
|
|
303
|
+
[R, n.value]
|
|
304
|
+
]),
|
|
305
|
+
i("div", {
|
|
306
|
+
class: "thumb-label thumb-label-left",
|
|
307
|
+
style: p(W.value)
|
|
308
|
+
}, L(l.labelLeft), 5),
|
|
309
|
+
z(i("input", {
|
|
310
|
+
type: "range",
|
|
311
|
+
min: l.min,
|
|
312
|
+
max: l.max,
|
|
313
|
+
"onUpdate:modelValue": u[1] || (u[1] = (s) => o.value = s),
|
|
314
|
+
onInput: D
|
|
315
|
+
}, null, 40, Ne), [
|
|
316
|
+
[R, o.value]
|
|
317
|
+
]),
|
|
318
|
+
i("div", {
|
|
319
|
+
class: "thumb-label thumb-label-right",
|
|
320
|
+
style: p(X.value)
|
|
321
|
+
}, L(l.labelRight), 5)
|
|
322
|
+
], 512)
|
|
323
|
+
]));
|
|
324
|
+
}
|
|
325
|
+
}, Re = /* @__PURE__ */ ue(ke, [["__scopeId", "data-v-6719ba10"]]);
|
|
326
|
+
export {
|
|
327
|
+
Re as S
|
|
328
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),M=require("./BaseIcon-D8n9j2RY.cjs"),N=require("./useResponsive-B3TrDDIG.cjs"),s=require("./index-l3VmuY43.cjs"),D=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),k=a=>(e.pushScopeId("data-v-6719ba10"),a=a(),e.popScopeId(),a),O={"data-html2canvas-ignore":"",style:{padding:"0 24px"}},_={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1"}},U={key:0,style:{width:"100%",position:"relative"}},W={class:"minimap",style:{width:"100%"}},T=["xmlns","viewBox"],X=["id"],j=["stop-color"],G=k(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1)),H=["d","stroke","fill"],Z=["x2","y1","y2","stroke"],J=["y2","stroke"],K=["x1","x2","y2","stroke"],Q=k(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Y=["min","max"],ee=["min","max"],te={__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:v}){const t=a;e.useCssVars(o=>({"6d560574":C.value,"614a85ba":m.value,"40a740aa":w.value,"417fc6ea":a.selectColor,"5442ac78":V.value}));const n=e.ref(t.min),i=e.ref(t.max),d=e.computed(()=>!!t.minimap.length),p=e.ref(s.createUid()),E=e.computed(()=>{const o=t.max-t.min,u=(n.value-t.min)/o*100,r=(i.value-t.min)/o*100;return{left:`${u}%`,width:`${r-u}%`,background:t.selectColor}}),C=e.computed(()=>t.inputColor),V=e.computed(()=>t.background),w=e.computed(()=>`${t.selectColor}33`),m=e.computed(()=>t.borderColor);function f(){v("reset")}function $(){Number(n.value)>Number(i.value)-1&&(n.value=Number(i.value)-1),v("update:start",Number(n.value))}function z(){Number(i.value)<Number(n.value)+1&&(i.value=Number(n.value)+1),v("update:end",Number(i.value))}e.watch(()=>t.min,o=>{Number(n.value)<Number(o)&&(n.value=Number(o)),Number(i.value)<Number(o)&&(i.value=Number(o))}),e.watch(()=>t.max,o=>{Number(n.value)>Number(o)&&(n.value=Number(o)),Number(i.value)>Number(o)&&(i.value=Number(o))});const h=e.ref(null),l=e.ref({width:1,height:1}),b=e.ref(null);e.onMounted(()=>{if(d.value){const o=N.throttle(()=>{const{width:u,height:r}=N.useResponsive({chart:h.value});l.value.width=u,l.value.height=r-47});b.value=new ResizeObserver(o),b.value.observe(h.value)}});const g=e.computed(()=>t.minimap.length?l.value.width/t.minimap.length:0);e.computed(()=>({x:g.value*t.valueStart,width:g.value*(t.valueEnd-t.valueStart)}));const B=e.computed(()=>{if(!t.minimap.length)return[];const o=Math.max(...t.minimap),u=Math.min(...t.minimap)-10,r=o-(u>0?0:u),c=t.minimap.map((P,I)=>{const q=P-u;return{x:l.value.width/(t.minimap.length-1)*I,y:l.value.height-q/r*(l.value.height*.9)}}),A=t.smoothMinimap?s.createSmoothPath(c):s.createStraightPath(c),x=[...c].slice(t.valueStart,t.valueEnd),L=t.smoothMinimap?s.createSmoothPath(x):s.createStraightPath(x);return{fullSet:A,selectionSet:L,firstPlot:c[t.valueStart],lastPlot:c[t.valueEnd-1]}}),y=e.computed(()=>t.max-t.min),S=e.computed(()=>({left:(n.value-t.min)/y.value*100,width:(i.value-n.value)/y.value*100})),F=e.computed(()=>({left:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:d.value?"28px":"-28px",pointerEvents:"none"})),R=e.computed(()=>({right:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:d.value?"28px":"-28px",direction:"rtl",pointerEvents:"none"}));return(o,u)=>(e.openBlock(),e.createElementBlock("div",O,[e.createElementVNode("div",_,[a.valueStart>0||a.valueEnd<a.max?(e.openBlock(),e.createElementBlock("div",U,[a.useResetSlot?e.renderSlot(o.$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",style:e.normalizeStyle({top:d.value?"36px":"-16px"}),onClick:f},[e.createVNode(M.default,{name:"refresh",stroke:a.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:h,style:{"z-index":"0"}},[d.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",W,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(s.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,j),G],8,X)]),e.createElementVNode("path",{d:`M0,${l.value.height} ${B.value.fullSet} L${l.value.width},${l.value.height}Z`,stroke:`${a.minimapLineColor}`,fill:`url(#${p.value})`,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",style:{opacity:"1"}},null,8,H),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:m.value,"stroke-width":"3"},null,8,Z),e.createElementVNode("line",{x1:0,x2:0,y1:0,y2:l.value.height<0?0:l.value.height,stroke:m.value,"stroke-width":"5"},null,8,J),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:m.value,"stroke-width":"5"},null,8,K)],8,T))]),e.createElementVNode("div",{class:"sel",style:e.normalizeStyle({position:"absolute",top:"-33px",left:`calc(${S.value.left}%)`,background:a.minimapSelectedColor,height:"40px",width:S.value.width+"%",borderRadius:`${a.minimapSelectionRadius}px ${a.minimapSelectionRadius}px 0 0`,opacity:a.minimapSelectedColorOpacity})},null,4)],64)):e.createCommentVNode("",!0),Q,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(E.value)},null,4),e.withDirectives(e.createElementVNode("input",{type:"range",min:a.min,max:a.max,"onUpdate:modelValue":u[0]||(u[0]=r=>n.value=r),onInput:$},null,40,Y),[[e.vModelText,n.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-left",style:e.normalizeStyle(F.value)},e.toDisplayString(a.labelLeft),5),e.withDirectives(e.createElementVNode("input",{type:"range",min:a.min,max:a.max,"onUpdate:modelValue":u[1]||(u[1]=r=>i.value=r),onInput:z},null,40,ee),[[e.vModelText,i.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-right",style:e.normalizeStyle(R.value)},e.toDisplayString(a.labelRight),5)],512)]))}},le=D._export_sfc(te,[["__scopeId","data-v-6719ba10"]]);exports.Slicer=le;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),r=require("./useNestedProp-
|
|
1
|
+
"use strict";const t=require("vue"),r=require("./useNestedProp-B9Di2DlM.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-B0ThZBR4.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-DVGMG23n.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-l3VmuY43.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;
|
|
@@ -10772,7 +10772,7 @@ function Jt(o, r, e, a) {
|
|
|
10772
10772
|
function or(o, r) {
|
|
10773
10773
|
return r.split(".").every((e) => o !== null && typeof o == "object" && e in o ? (o = o[e], !0) : !1);
|
|
10774
10774
|
}
|
|
10775
|
-
const er = h(() => import("./Arrow-
|
|
10775
|
+
const er = h(() => import("./Arrow-98PCnwIA.js")), tr = h(() => import("./vue-data-ui-D2Gw43vR.js")), rr = h(() => import("./vue-ui-3d-bar-BuBCa8GI.js")), lr = h(() => import("./vue-ui-accordion-BlsYk-io.js")), ar = h(() => import("./vue-ui-age-pyramid-DUMr1gLn.js")), sr = h(() => import("./vue-ui-annotator-BuGYDjc4.js")), nr = h(() => import("./vue-ui-candlestick-ChmBooGg.js")), ir = h(() => import("./vue-ui-chestnut-D_2U9Y8z.js")), cr = h(() => import("./vue-ui-cursor-04NdhJmA.js")), ur = h(() => import("./vue-ui-dashboard-2Y-bRtWW.js")), dr = h(() => import("./vue-ui-digits-D5F4B_Uc.js")), fr = h(() => import("./vue-ui-donut-BA5W9LK1.js")), Ar = h(() => import("./vue-ui-donut-evolution-DGr5mDmY.js")), br = h(() => import("./vue-ui-dumbbell-qYTxQHlF.js")), Cr = h(() => import("./vue-ui-flow-BUPt_GBz.js")), gr = h(() => import("./vue-ui-galaxy-C7EoU_0P.js")), hr = h(() => import("./vue-ui-gauge-n7x7uvAB.js")), kr = h(() => import("./vue-ui-heatmap-Dzvq1vMg.js")), pr = h(() => import("./BaseIcon-whj3R3q1.js")), mr = h(() => import("./vue-ui-kpi-D8jWjW3q.js")), yr = h(() => import("./vue-ui-mini-loader-5msE8yk0.js")), xr = h(() => import("./vue-ui-molecule-MTgovKSv.js")), Fr = h(() => import("./vue-ui-mood-radar-5NImteDi.js")), Er = h(() => import("./vue-ui-nested-donuts-Wf39ZljG.js")), _r = h(() => import("./vue-ui-onion-CA18z7hj.js")), wr = h(() => import("./vue-ui-parallel-coordinate-plot-CHWrjl6E.js")), vr = h(() => import("./vue-ui-quadrant-Bn6rNej4.js")), Sr = h(() => import("./vue-ui-quick-chart-GGu5E5oG.js")), Lr = h(() => import("./vue-ui-radar-DkWJFF43.js")), Dr = h(() => import("./vue-ui-rating-DkPwm7z9.js")), Br = h(() => import("./vue-ui-relation-circle-RUDdVguf.js")), Rr = h(() => import("./vue-ui-rings-BghJq1Nw.js")), zr = h(() => import("./vue-ui-scatter-B4NK1cBE.js")), Pr = h(() => import("./vue-ui-screenshot-BGYgfxxK.js")), Tr = h(() => import("./vue-ui-skeleton-0wzUlYHc.js")), Or = h(() => import("./vue-ui-smiley-Dz8M2MJ7.js")), Vr = h(() => import("./vue-ui-sparkhistogram-CG83hIJa.js")), Nr = h(() => import("./vue-ui-sparkstackbar-D-T4AftU.js")), Mr = h(() => import("./vue-ui-spark-trend-DIVS363M.js")), Ir = h(() => import("./vue-ui-sparkbar-DITfeuRK.js")), Wr = h(() => import("./vue-ui-sparkgauge-CXcYedOm.js")), Ur = h(() => import("./vue-ui-sparkline-DiloRGlF.js")), Gr = h(() => import("./vue-ui-strip-plot-ouJI9Woj.js")), Hr = h(() => import("./vue-ui-table-CBUS59OQ.js")), Yr = h(() => import("./vue-ui-table-heatmap-CNHvvxv4.js")), $r = h(() => import("./vue-ui-table-sparkline-CopY0wCx.js")), Xr = h(() => import("./vue-ui-thermometer-Csk9K32_.js")), Kr = h(() => import("./vue-ui-timer-eJX5RWJy.js")), jr = h(() => import("./vue-ui-tiremarks-B3n8wpcT.js")), qr = h(() => import("./vue-ui-treemap-BJuVShWl.js")), Qr = h(() => import("./vue-ui-vertical-bar-DRIES-ZF.js")), Zr = h(() => import("./vue-ui-waffle-DBeSHk_X.js")), Jr = h(() => import("./vue-ui-wheel-C8dQsxNJ.js")), ol = h(() => import("./vue-ui-word-cloud-BLIKs72O.js")), el = h(() => import("./vue-ui-xy-DZhU1VeY.js")), tl = h(() => import("./vue-ui-xy-canvas-DFl3LpbK.js")), rl = h(() => import("./vue-ui-carousel-table-BJw3yvht.js")), ll = h(() => import("./vue-ui-gizmo-Bi5YA-3A.js")), al = h(() => import("./vue-ui-stackbar-XfevLEuu.js"));
|
|
10776
10776
|
export {
|
|
10777
10777
|
dt as $,
|
|
10778
10778
|
zt as A,
|