vue-data-ui 3.0.0-next.9 → 3.0.1
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/README.md +32 -30
- package/dist/{Arrow-B6OlqyCG.js → Arrow-DQoWnUfD.js} +1 -1
- package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-DEw6oieL.js} +4 -4
- package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-DEl03NUZ.js} +1 -1
- package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-CrivFZqC.js} +2 -2
- package/dist/{DataTable--paavNqF.js → DataTable-ClgCsiJA.js} +2 -2
- package/dist/{Legend-BZ06qU55.js → Legend-CMvJ6X5j.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-B2Wvbl3p.js} +3 -3
- package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CD5VH_Al.js} +3 -3
- package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3WRn-G2.js} +32 -32
- package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
- package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
- package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
- package/dist/{Shape-Mr1eIp_G.js → Shape-Adi9i_-f.js} +43 -37
- package/dist/Slicer-t6e1t2iM.js +602 -0
- package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-B8OnBSvk.js} +7 -7
- package/dist/{Title-B2dA6-uH.js → Title-xTWR-Vil.js} +1 -1
- package/dist/{Tooltip-O_hCvqgF.js → Tooltip-BH3CiANh.js} +23 -19
- package/dist/{UserOptions-Bk03FRqW.js → UserOptions-CKKPgDLV.js} +2 -2
- package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-C4hj491O.js} +1 -1
- package/dist/{img-C_9wps3s.js → img-Vb4QHAHI.js} +1 -1
- package/dist/{index-CgShIRes.js → index-Dzc2Gi60.js} +2885 -2010
- package/dist/{pdf-CXdbjyRJ.js → pdf-ddpqw-dt.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +753 -65
- package/dist/types/vue-data-ui.d.ts +753 -65
- package/dist/useAutoSizeLabelsInsideViewbox-CN_Jh8Hr.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-CjnS13nF.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DBRh8ZvS.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
- package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-B7ztqj9-.js} +105 -100
- package/dist/vue-data-ui.js +26 -25
- package/dist/vue-ui-3d-bar-DUmYPtHl.js +1323 -0
- package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-CPk8wAuj.js} +3 -3
- package/dist/vue-ui-age-pyramid-Bv5HmeXj.js +835 -0
- package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-KXWlIhtd.js} +12 -12
- package/dist/vue-ui-bullet-B4N4mBk9.js +571 -0
- package/dist/vue-ui-candlestick-DENvPnUO.js +1000 -0
- package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-vC2bHBaY.js} +29 -29
- package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-2nS0StrY.js} +664 -536
- package/dist/vue-ui-chord-CyfS6vNM.js +1038 -0
- package/dist/vue-ui-circle-pack-C4JR-0fx.js +709 -0
- package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-BgeSDtQh.js} +2 -2
- package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-9DWUBJ-I.js} +64 -64
- package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-BQO7IBFA.js} +2 -2
- package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-C-ZJXJ74.js} +431 -422
- package/dist/vue-ui-donut-evolution-B870IrQA.js +1076 -0
- package/dist/vue-ui-dumbbell-Cfs2Uotx.js +1120 -0
- package/dist/vue-ui-flow-DnaUVVAD.js +841 -0
- package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-B9s-H5ZG.js} +16 -16
- package/dist/vue-ui-galaxy-BoJOczdh.js +680 -0
- package/dist/vue-ui-gauge-qjm4BqZR.js +791 -0
- package/dist/vue-ui-gizmo-fn7ZaMTI.js +210 -0
- package/dist/vue-ui-heatmap-CIBDKhh8.js +1078 -0
- package/dist/vue-ui-history-plot-bbNxldYG.js +1074 -0
- package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-BX-2jhLx.js} +26 -26
- package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-Bn1Bb8-J.js} +2 -2
- package/dist/vue-ui-molecule-DQ3qFtBq.js +656 -0
- package/dist/vue-ui-mood-radar-Cf-ehIo1.js +785 -0
- package/dist/vue-ui-nested-donuts-CWg5BEi-.js +1284 -0
- package/dist/vue-ui-onion-sHgQTYfa.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-Ki3ITp_s.js +916 -0
- package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-BIVqW7U7.js} +512 -459
- package/dist/vue-ui-quick-chart-C_hvHc1b.js +1762 -0
- package/dist/vue-ui-radar-RZUPyPwB.js +796 -0
- package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-BI8Vk7dO.js} +2 -2
- package/dist/vue-ui-relation-circle-TVMUEtxK.js +598 -0
- package/dist/vue-ui-ridgeline-DQeXHQG4.js +1157 -0
- package/dist/vue-ui-rings-BH81WmMS.js +728 -0
- package/dist/vue-ui-scatter-Cy7Tz_An.js +1178 -0
- package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-CF50qQxr.js} +13 -13
- package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-CrFXEbJs.js} +46 -46
- package/dist/vue-ui-spark-trend-DtHArnot.js +315 -0
- package/dist/vue-ui-sparkbar-CIOwFFgA.js +351 -0
- package/dist/vue-ui-sparkgauge-E0DdGotz.js +232 -0
- package/dist/vue-ui-sparkhistogram-Dm7WoyjY.js +380 -0
- package/dist/vue-ui-sparkline-DoW6DDKT.js +513 -0
- package/dist/vue-ui-sparkstackbar-BJnPUWY4.js +421 -0
- package/dist/vue-ui-stackbar-Du42smPs.js +1371 -0
- package/dist/vue-ui-strip-plot-DnenGI-d.js +916 -0
- package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BQOQVlHr.js} +17 -17
- package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-BzK4_gsP.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-B-IwcT8I.js} +19 -16
- package/dist/vue-ui-thermometer-06ao_Pj5.js +541 -0
- package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-CxQq4roK.js} +5 -5
- package/dist/vue-ui-tiremarks-CuTxkByj.js +406 -0
- package/dist/vue-ui-treemap-BgHhRpiV.js +1035 -0
- package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-CAcsUUCo.js} +104 -102
- package/dist/vue-ui-waffle-Ct3Upw3m.js +910 -0
- package/dist/vue-ui-wheel-oz06Kt-p.js +379 -0
- package/dist/vue-ui-word-cloud-BRy7fg4S.js +765 -0
- package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-CTV-YfFN.js} +364 -327
- package/dist/vue-ui-xy-DqCy9dpa.js +3808 -0
- package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-BZdhKUIp.js} +265 -264
- package/package.json +4 -4
- package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
- package/dist/Slicer-3t0HimeE.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-BC4Ciblw.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
- package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
- package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
- package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
- package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
- package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
- package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
- package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
- package/dist/vue-ui-flow-MvORTthN.js +0 -765
- package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
- package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
- package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
- package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
- package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
- package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
- package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
- package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
- package/dist/vue-ui-onion-DXLokGec.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
- package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
- package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
- package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
- package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
- package/dist/vue-ui-rings-Duay-EmS.js +0 -685
- package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
- package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
- package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
- package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
- package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
- package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
- package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
- package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
- package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
- package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
- package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
- package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
- package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
- package/dist/vue-ui-wheel-tydUATi8.js +0 -352
- package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
- package/dist/vue-ui-xy--HToGdle.js +0 -2982
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-data-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
|
|
7
7
|
"keywords": [
|
|
@@ -100,13 +100,13 @@
|
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
103
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
104
104
|
"cypress": "^14.5.0",
|
|
105
105
|
"remove-attr": "^0.0.13",
|
|
106
106
|
"sass": "^1.57.1",
|
|
107
107
|
"simple-git": "^3.24.0",
|
|
108
|
-
"vite": "^7.
|
|
108
|
+
"vite": "^7.1.3",
|
|
109
109
|
"vitest": "^3.2.4",
|
|
110
|
-
"vue": "^3.5.
|
|
110
|
+
"vue": "^3.5.19"
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { toRef as d, resolveComponent as m, createElementBlock as l, openBlock as t, Fragment as a, renderList as c, createCommentVNode as i, createBlock as h, toDisplayString as y } from "vue";
|
|
2
|
-
const f = ["x", "y", "fill", "font-size"], R = {
|
|
3
|
-
__name: "RecursiveLabels",
|
|
4
|
-
props: {
|
|
5
|
-
color: {
|
|
6
|
-
type: String,
|
|
7
|
-
default: "#000000"
|
|
8
|
-
},
|
|
9
|
-
dataset: {
|
|
10
|
-
type: Array,
|
|
11
|
-
default: () => []
|
|
12
|
-
},
|
|
13
|
-
hoveredUid: {
|
|
14
|
-
type: String,
|
|
15
|
-
default: null
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
emits: ["zoom", "hover"],
|
|
19
|
-
setup(o, { emit: p }) {
|
|
20
|
-
return d(o, "dataset").value.forEach((r) => {
|
|
21
|
-
r.nodes && r.nodes.length > 0 && r.nodes.forEach((n) => {
|
|
22
|
-
n.ancestor = r;
|
|
23
|
-
});
|
|
24
|
-
}), (r, n) => {
|
|
25
|
-
const u = m("RecursiveLabels", !0);
|
|
26
|
-
return t(!0), l(a, null, c(o.dataset, (e) => (t(), l(a, null, [
|
|
27
|
-
e.polygonPath && e.polygonPath.coordinates ? (t(), l(a, { key: 0 }, [
|
|
28
|
-
(t(!0), l(a, null, c(e.polygonPath.coordinates, (s) => (t(), l("text", {
|
|
29
|
-
x: s.x,
|
|
30
|
-
y: s.y + e.circleRadius * 2,
|
|
31
|
-
fill: o.color,
|
|
32
|
-
"font-size": e.circleRadius,
|
|
33
|
-
"text-anchor": "middle",
|
|
34
|
-
style: { opacity: "0.8", "pointer-events": "none" }
|
|
35
|
-
}, y(e.name), 9, f))), 256)),
|
|
36
|
-
e.nodes && e.nodes.length > 0 ? (t(), h(u, {
|
|
37
|
-
key: 0,
|
|
38
|
-
dataset: e.nodes,
|
|
39
|
-
color: o.color,
|
|
40
|
-
hoveredUid: o.hoveredUid
|
|
41
|
-
}, null, 8, ["dataset", "color", "hoveredUid"])) : i("", !0)
|
|
42
|
-
], 64)) : i("", !0)
|
|
43
|
-
], 64))), 256);
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
export {
|
|
48
|
-
R as default
|
|
49
|
-
};
|
package/dist/Slicer-3t0HimeE.js
DELETED
|
@@ -1,577 +0,0 @@
|
|
|
1
|
-
import { useCssVars as ze, computed as d, ref as i, watch as D, onMounted as Ae, onBeforeUnmount as Fe, watchEffect as He, nextTick as Y, onUpdated as Ve, createElementBlock as c, openBlock as m, createElementVNode as v, createCommentVNode as p, renderSlot as We, normalizeStyle as $, createVNode as Xe, withDirectives as me, unref as F, Fragment as he, renderList as fe, normalizeClass as L, vModelText as ge, toDisplayString as _ } from "vue";
|
|
2
|
-
import Ue from "./BaseIcon-DxUUKVlt.js";
|
|
3
|
-
import { t as Oe, u as Ze } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { c as je, V as be, U as xe, X as Ge, F as ee } from "./index-CgShIRes.js";
|
|
5
|
-
import { _ as qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
const Je = {
|
|
7
|
-
class: "vue-data-ui-slicer-labels",
|
|
8
|
-
style: { position: "relative", "z-index": "1", "pointer-events": "none" }
|
|
9
|
-
}, Ke = {
|
|
10
|
-
key: 0,
|
|
11
|
-
style: { width: "100%", position: "relative" }
|
|
12
|
-
}, Qe = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "minimap",
|
|
15
|
-
style: { width: "100%" }
|
|
16
|
-
}, Ye = ["xmlns", "viewBox"], _e = ["id"], et = ["stop-color"], tt = ["d", "stroke"], lt = ["x", "width", "height", "fill", "rx"], at = ["d", "fill"], nt = ["x", "width", "height", "rx", "fill"], it = ["x", "width", "height", "fill", "rx"], ot = ["d", "fill"], ut = ["d", "stroke"], rt = ["cx", "cy", "stroke", "fill"], st = ["cx", "cy", "stroke", "fill"], dt = ["x1", "x2", "y2", "stroke"], vt = ["x", "height", "width", "onMouseenter"], ct = ["min", "max"], mt = ["min", "max"], ht = {
|
|
17
|
-
__name: "Slicer",
|
|
18
|
-
props: {
|
|
19
|
-
background: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: "#FFFFFF"
|
|
22
|
-
},
|
|
23
|
-
borderColor: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: "#FFFFFF"
|
|
26
|
-
},
|
|
27
|
-
fontSize: {
|
|
28
|
-
type: Number,
|
|
29
|
-
default: 14
|
|
30
|
-
},
|
|
31
|
-
labelLeft: {
|
|
32
|
-
type: [String, Number],
|
|
33
|
-
default: ""
|
|
34
|
-
},
|
|
35
|
-
labelRight: {
|
|
36
|
-
type: [String, Number],
|
|
37
|
-
default: ""
|
|
38
|
-
},
|
|
39
|
-
textColor: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: "#1A1A1A"
|
|
42
|
-
},
|
|
43
|
-
inputColor: {
|
|
44
|
-
type: String,
|
|
45
|
-
default: "#1A1A1A"
|
|
46
|
-
},
|
|
47
|
-
max: {
|
|
48
|
-
type: Number,
|
|
49
|
-
default: 0
|
|
50
|
-
},
|
|
51
|
-
min: {
|
|
52
|
-
type: Number,
|
|
53
|
-
default: 0
|
|
54
|
-
},
|
|
55
|
-
selectColor: {
|
|
56
|
-
type: String,
|
|
57
|
-
default: "#4A4A4A"
|
|
58
|
-
},
|
|
59
|
-
useResetSlot: {
|
|
60
|
-
type: Boolean,
|
|
61
|
-
default: !1
|
|
62
|
-
},
|
|
63
|
-
valueStart: {
|
|
64
|
-
type: [Number, String],
|
|
65
|
-
default: 0
|
|
66
|
-
},
|
|
67
|
-
valueEnd: {
|
|
68
|
-
type: [Number, String],
|
|
69
|
-
default: 0
|
|
70
|
-
},
|
|
71
|
-
minimap: {
|
|
72
|
-
type: Array,
|
|
73
|
-
default: []
|
|
74
|
-
},
|
|
75
|
-
smoothMinimap: {
|
|
76
|
-
type: Boolean,
|
|
77
|
-
default: !1
|
|
78
|
-
},
|
|
79
|
-
minimapSelectedColor: {
|
|
80
|
-
type: String,
|
|
81
|
-
default: "#1f77b4"
|
|
82
|
-
},
|
|
83
|
-
minimapSelectionRadius: {
|
|
84
|
-
type: Number,
|
|
85
|
-
default: 12
|
|
86
|
-
},
|
|
87
|
-
minimapLineColor: {
|
|
88
|
-
type: String,
|
|
89
|
-
default: "#2D353C"
|
|
90
|
-
},
|
|
91
|
-
minimapSelectedColorOpacity: {
|
|
92
|
-
type: Number,
|
|
93
|
-
default: 0.2
|
|
94
|
-
},
|
|
95
|
-
minimapSelectedIndex: {
|
|
96
|
-
type: Number,
|
|
97
|
-
default: null
|
|
98
|
-
},
|
|
99
|
-
minimapIndicatorColor: {
|
|
100
|
-
type: String,
|
|
101
|
-
default: "#2D353C"
|
|
102
|
-
},
|
|
103
|
-
refreshStartPoint: {
|
|
104
|
-
type: Number,
|
|
105
|
-
default: 0
|
|
106
|
-
},
|
|
107
|
-
refreshEndPoint: {
|
|
108
|
-
type: Number,
|
|
109
|
-
default: null
|
|
110
|
-
},
|
|
111
|
-
enableRangeHandles: {
|
|
112
|
-
type: Boolean,
|
|
113
|
-
default: !1
|
|
114
|
-
},
|
|
115
|
-
enableSelectionDrag: {
|
|
116
|
-
type: Boolean,
|
|
117
|
-
default: !0
|
|
118
|
-
},
|
|
119
|
-
verticalHandles: {
|
|
120
|
-
type: Boolean,
|
|
121
|
-
default: !1
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
emits: ["update:start", "update:end", "reset", "trapMouse"],
|
|
125
|
-
setup(t, { expose: ye, emit: pe }) {
|
|
126
|
-
ze((e) => ({
|
|
127
|
-
"4d0617d2": Se.value,
|
|
128
|
-
"71727c8b": w.value,
|
|
129
|
-
"637a35bc": ke.value,
|
|
130
|
-
"51a7bdbb": t.selectColor,
|
|
131
|
-
e1fe5a6e: Ce.value
|
|
132
|
-
}));
|
|
133
|
-
const l = t, g = i(null), u = i(l.min), r = i(l.max), M = d(() => !!l.minimap.length), H = i(je()), we = d(() => l.refreshEndPoint === null ? l.max : l.refreshEndPoint), S = pe, b = d(() => {
|
|
134
|
-
const e = l.max - l.min, a = (u.value - l.min) / e * 100, n = (r.value - l.min) / e * 100, s = (a + n) / 2, h = W.value ? `calc(${s}% - ${A.value.width}px)` : V.value ? `calc(${s}%)` : `calc(${s}% - ${A.value.width / 2}px)`;
|
|
135
|
-
return {
|
|
136
|
-
left: `${a}%`,
|
|
137
|
-
width: `${n - a}%`,
|
|
138
|
-
background: l.selectColor,
|
|
139
|
-
tooltipLeft: `calc(${a}% - ${V.value ? 0 : K.value / 2}px)`,
|
|
140
|
-
tooltipRight: `calc(${n}% - ${W.value ? z.value : z.value / 2}px)`,
|
|
141
|
-
tooltipCenter: h,
|
|
142
|
-
arrowLeft: !V.value,
|
|
143
|
-
arrowRight: !W.value
|
|
144
|
-
};
|
|
145
|
-
}), V = d(() => g.value ? g.value.getBoundingClientRect().width * ((u.value - l.min) / (l.max - l.min)) - K.value / 2 < 0 : !1), W = d(() => g.value ? g.value.getBoundingClientRect().width * ((r.value - l.min) / (l.max - l.min)) + z.value / 2 > g.value.getBoundingClientRect().width : !1), Se = d(() => l.inputColor), Ce = d(() => l.background), ke = d(() => `${l.selectColor}33`), w = d(() => l.borderColor), te = d(() => {
|
|
146
|
-
let e = [];
|
|
147
|
-
for (let a = 0; a < l.minimap.length; a += 1)
|
|
148
|
-
e.push(a);
|
|
149
|
-
return e;
|
|
150
|
-
});
|
|
151
|
-
function le() {
|
|
152
|
-
S("reset");
|
|
153
|
-
}
|
|
154
|
-
function $e() {
|
|
155
|
-
Number(u.value) > Number(r.value) - 1 && (u.value = Number(r.value) - 1), S("update:start", Number(u.value));
|
|
156
|
-
}
|
|
157
|
-
function Re() {
|
|
158
|
-
Number(r.value) < Number(u.value) + 1 && (r.value = Number(u.value) + 1), S("update:end", Number(r.value));
|
|
159
|
-
}
|
|
160
|
-
D(
|
|
161
|
-
() => l.min,
|
|
162
|
-
(e) => {
|
|
163
|
-
Number(u.value) < Number(e) && (u.value = Number(e)), Number(r.value) < Number(e) && (r.value = Number(e));
|
|
164
|
-
}
|
|
165
|
-
), D(
|
|
166
|
-
() => l.max,
|
|
167
|
-
(e) => {
|
|
168
|
-
Number(u.value) > Number(e) && (u.value = Number(e)), Number(r.value) > Number(e) && (r.value = Number(e));
|
|
169
|
-
}
|
|
170
|
-
);
|
|
171
|
-
const X = i(null), o = i({
|
|
172
|
-
width: 1,
|
|
173
|
-
height: 1
|
|
174
|
-
}), T = i(null);
|
|
175
|
-
Ae(() => {
|
|
176
|
-
if (M.value) {
|
|
177
|
-
const e = Oe(() => {
|
|
178
|
-
const { width: a, height: n } = Ze({
|
|
179
|
-
chart: X.value
|
|
180
|
-
});
|
|
181
|
-
o.value.width = a, o.value.height = n - 47;
|
|
182
|
-
});
|
|
183
|
-
T.value = new ResizeObserver(e), T.value.observe(X.value);
|
|
184
|
-
}
|
|
185
|
-
}), Fe(() => {
|
|
186
|
-
T.value && T.value.disconnect();
|
|
187
|
-
});
|
|
188
|
-
const f = d(() => l.minimap.length ? o.value.width / l.minimap.length : 0), x = d(() => {
|
|
189
|
-
if (!l.minimap.length) return [];
|
|
190
|
-
const e = Math.max(...l.minimap), a = Math.min(...l.minimap) - 10, n = e - (a > 0 ? 0 : a), s = l.minimap.map((Q, Ie) => {
|
|
191
|
-
const Pe = Q - a;
|
|
192
|
-
return {
|
|
193
|
-
x: o.value.width / l.minimap.length * Ie + f.value / 2,
|
|
194
|
-
y: o.value.height - Pe / n * (o.value.height * 0.9)
|
|
195
|
-
};
|
|
196
|
-
}), h = l.smoothMinimap ? be(s) : xe(s), k = [...s].slice(l.valueStart, l.valueEnd), N = l.smoothMinimap ? be(k) : xe(k);
|
|
197
|
-
return {
|
|
198
|
-
fullSet: h,
|
|
199
|
-
selectionSet: N,
|
|
200
|
-
sliced: k,
|
|
201
|
-
firstPlot: s[l.valueStart],
|
|
202
|
-
lastPlot: s[l.valueEnd - 1]
|
|
203
|
-
};
|
|
204
|
-
}), y = d(() => ({
|
|
205
|
-
x: f.value * u.value + f.value / 2,
|
|
206
|
-
width: o.value.width * ((r.value - u.value) / l.max) - f.value
|
|
207
|
-
})), E = i(l.minimapSelectedIndex);
|
|
208
|
-
D(() => l.minimapSelectedIndex, (e) => {
|
|
209
|
-
E.value = e + l.valueStart;
|
|
210
|
-
}, { immediate: !0 });
|
|
211
|
-
function Ne(e) {
|
|
212
|
-
E.value = e, e >= l.valueStart && e < l.valueEnd && S("trapMouse", e - l.valueStart);
|
|
213
|
-
}
|
|
214
|
-
const Le = i(0), U = i(null), O = i(null);
|
|
215
|
-
function Z(e) {
|
|
216
|
-
u.value = e, U.value && (U.value.value = e), S("update:start", Number(u.value));
|
|
217
|
-
}
|
|
218
|
-
function j(e) {
|
|
219
|
-
r.value = e, O.value && (O.value.value = e), S("update:end", Number(r.value));
|
|
220
|
-
}
|
|
221
|
-
const G = d(() => l.valueEnd - l.valueStart), q = i(!1);
|
|
222
|
-
let J = i(null);
|
|
223
|
-
const Me = d(() => g.value ? (g.value.getBoundingClientRect().width - 48) / (l.max - l.min) : 20), Ee = d(() => (g.value.getBoundingClientRect().width - 48) / (l.max - l.min) * G.value), Be = i(2.5), ae = d(() => {
|
|
224
|
-
const e = g.value.getBoundingClientRect().width - 48;
|
|
225
|
-
return Math.ceil((l.max - l.min) / ((e - Ee.value) / Be.value));
|
|
226
|
-
}), ne = (e) => {
|
|
227
|
-
if (C.value = !0, !l.enableSelectionDrag)
|
|
228
|
-
return;
|
|
229
|
-
const a = e.type === "touchstart";
|
|
230
|
-
if ((a ? e.targetTouches[0].target : e.target).classList.contains("range-handle"))
|
|
231
|
-
return;
|
|
232
|
-
q.value = !0, J.value = a ? e.targetTouches[0].clientX : e.clientX;
|
|
233
|
-
const s = a ? De : ie, h = a ? Te : ue;
|
|
234
|
-
window.addEventListener(a ? "touchmove" : "mousemove", s, { passive: !1 }), window.addEventListener(a ? "touchend" : "mouseup", h);
|
|
235
|
-
};
|
|
236
|
-
function ie(e) {
|
|
237
|
-
oe(e.clientX);
|
|
238
|
-
}
|
|
239
|
-
function De(e) {
|
|
240
|
-
g.value.contains(e.target) && (e.target.classList.contains("range-handle") || (e.preventDefault(), oe(e.targetTouches[0].clientX)));
|
|
241
|
-
}
|
|
242
|
-
function oe(e) {
|
|
243
|
-
if (!q.value) return;
|
|
244
|
-
const a = e - J.value;
|
|
245
|
-
if (Math.abs(a) > Me.value) {
|
|
246
|
-
if (a > 0) {
|
|
247
|
-
if (Number(r.value) + 1 <= l.max) {
|
|
248
|
-
const n = Math.min(l.max, Number(r.value) + ae.value);
|
|
249
|
-
j(n), Z(n - G.value);
|
|
250
|
-
}
|
|
251
|
-
} else if (Number(u.value) - 1 >= l.min) {
|
|
252
|
-
const n = Math.max(0, Number(u.value) - ae.value);
|
|
253
|
-
Z(n), j(n + G.value);
|
|
254
|
-
}
|
|
255
|
-
J.value = e;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
function ue() {
|
|
259
|
-
re("mousemove", "mouseup");
|
|
260
|
-
}
|
|
261
|
-
function Te() {
|
|
262
|
-
re("touchmove", "touchend");
|
|
263
|
-
}
|
|
264
|
-
function re(e, a) {
|
|
265
|
-
q.value = !1, window.removeEventListener(e, ie), window.removeEventListener(a, ue);
|
|
266
|
-
}
|
|
267
|
-
const R = i(!1), I = i(null), P = i(null), K = i(1), z = i(1), C = i(!1);
|
|
268
|
-
function se() {
|
|
269
|
-
I.value && (K.value = I.value.getBoundingClientRect().width);
|
|
270
|
-
}
|
|
271
|
-
function de() {
|
|
272
|
-
P.value && (z.value = P.value.getBoundingClientRect().width);
|
|
273
|
-
}
|
|
274
|
-
const ve = i(0);
|
|
275
|
-
function ce(e) {
|
|
276
|
-
ve.value = e === "start" ? 1 : 0;
|
|
277
|
-
}
|
|
278
|
-
const B = i(!1), A = i({
|
|
279
|
-
width: 0,
|
|
280
|
-
left: 0
|
|
281
|
-
});
|
|
282
|
-
return He(async () => {
|
|
283
|
-
const e = I.value, a = P.value;
|
|
284
|
-
u.value, r.value;
|
|
285
|
-
const n = g.value;
|
|
286
|
-
if (!e || !a || !n) {
|
|
287
|
-
B.value = !1;
|
|
288
|
-
return;
|
|
289
|
-
}
|
|
290
|
-
await Y();
|
|
291
|
-
const { x: s, width: h } = e.getBoundingClientRect(), { x: k, width: N } = a.getBoundingClientRect(), Q = k + N / 2 - (k + N / 2 - (s + h / 2));
|
|
292
|
-
B.value = s + h > k, A.value = {
|
|
293
|
-
width: h + N,
|
|
294
|
-
left: Q - (h + N / 2)
|
|
295
|
-
};
|
|
296
|
-
}), Ve(() => {
|
|
297
|
-
se(), de();
|
|
298
|
-
}), D(() => l.labelLeft, () => {
|
|
299
|
-
Y(se);
|
|
300
|
-
}, { deep: !0 }), D(() => l.labelRight, () => {
|
|
301
|
-
Y(de);
|
|
302
|
-
}, { deep: !0 }), ye({
|
|
303
|
-
setStartValue: Z,
|
|
304
|
-
setEndValue: j
|
|
305
|
-
}), (e, a) => (m(), c("div", {
|
|
306
|
-
"data-dom-to-png-ignore": "",
|
|
307
|
-
style: { padding: "0 24px" },
|
|
308
|
-
class: "vue-data-ui-zoom",
|
|
309
|
-
ref_key: "zoomWrapper",
|
|
310
|
-
ref: g,
|
|
311
|
-
onMousedown: ne,
|
|
312
|
-
onTouchstart: ne,
|
|
313
|
-
onTouchend: a[11] || (a[11] = (n) => C.value = !1)
|
|
314
|
-
}, [
|
|
315
|
-
v("div", Je, [
|
|
316
|
-
t.valueStart !== t.refreshStartPoint || t.valueEnd !== we.value ? (m(), c("div", Ke, [
|
|
317
|
-
t.useResetSlot ? We(e.$slots, "reset-action", {
|
|
318
|
-
key: 1,
|
|
319
|
-
reset: le
|
|
320
|
-
}, void 0, !0) : (m(), c("button", {
|
|
321
|
-
key: 0,
|
|
322
|
-
tabindex: "0",
|
|
323
|
-
role: "button",
|
|
324
|
-
class: "vue-data-ui-refresh-button",
|
|
325
|
-
style: $({
|
|
326
|
-
top: M.value ? "36px" : "-16px",
|
|
327
|
-
pointerEvents: "all !important"
|
|
328
|
-
}),
|
|
329
|
-
onClick: le
|
|
330
|
-
}, [
|
|
331
|
-
Xe(Ue, {
|
|
332
|
-
name: "refresh",
|
|
333
|
-
stroke: t.textColor
|
|
334
|
-
}, null, 8, ["stroke"])
|
|
335
|
-
], 4))
|
|
336
|
-
])) : p("", !0)
|
|
337
|
-
]),
|
|
338
|
-
v("div", {
|
|
339
|
-
class: "double-range-slider",
|
|
340
|
-
ref_key: "minimapWrapper",
|
|
341
|
-
ref: X,
|
|
342
|
-
style: { "z-index": "0" },
|
|
343
|
-
onMouseenter: a[9] || (a[9] = (n) => C.value = !0),
|
|
344
|
-
onMouseleave: a[10] || (a[10] = (n) => C.value = !1)
|
|
345
|
-
}, [
|
|
346
|
-
M.value ? (m(), c("div", Qe, [
|
|
347
|
-
(m(), c("svg", {
|
|
348
|
-
xmlns: F(Ge),
|
|
349
|
-
viewBox: `0 0 ${o.value.width < 0 ? 0 : o.value.width} ${o.value.height < 0 ? 0 : o.value.height}`
|
|
350
|
-
}, [
|
|
351
|
-
v("defs", null, [
|
|
352
|
-
v("linearGradient", {
|
|
353
|
-
id: H.value,
|
|
354
|
-
x1: "0%",
|
|
355
|
-
y1: "0%",
|
|
356
|
-
x2: "0%",
|
|
357
|
-
y2: "100%"
|
|
358
|
-
}, [
|
|
359
|
-
v("stop", {
|
|
360
|
-
offset: "0%",
|
|
361
|
-
"stop-color": `${t.minimapLineColor}50`
|
|
362
|
-
}, null, 8, et),
|
|
363
|
-
a[12] || (a[12] = v("stop", {
|
|
364
|
-
offset: "100%",
|
|
365
|
-
"stop-color": "transparent"
|
|
366
|
-
}, null, -1))
|
|
367
|
-
], 8, _e)
|
|
368
|
-
]),
|
|
369
|
-
v("path", {
|
|
370
|
-
d: `M${x.value.fullSet}`,
|
|
371
|
-
stroke: `${t.minimapLineColor}`,
|
|
372
|
-
fill: "none",
|
|
373
|
-
"stroke-width": "1",
|
|
374
|
-
"stroke-linecap": "round",
|
|
375
|
-
"stroke-linejoin": "round",
|
|
376
|
-
style: { opacity: "1" }
|
|
377
|
-
}, null, 8, tt),
|
|
378
|
-
v("rect", {
|
|
379
|
-
x: y.value.x,
|
|
380
|
-
width: y.value.width < 0 ? 0 : y.value.width,
|
|
381
|
-
height: Math.max(o.value.height, 0),
|
|
382
|
-
y: 0,
|
|
383
|
-
fill: w.value,
|
|
384
|
-
rx: t.minimapSelectionRadius,
|
|
385
|
-
stroke: "none"
|
|
386
|
-
}, null, 8, lt),
|
|
387
|
-
v("path", {
|
|
388
|
-
d: `M${f.value / 2},${Math.max(o.value.height, 0)} ${x.value.fullSet} L${o.value.width - f.value / 2},${Math.max(o.value.height, 0)}Z`,
|
|
389
|
-
fill: `url(#${H.value})`,
|
|
390
|
-
stroke: "none",
|
|
391
|
-
style: { opacity: "1" }
|
|
392
|
-
}, null, 8, at),
|
|
393
|
-
v("rect", {
|
|
394
|
-
x: y.value.x,
|
|
395
|
-
width: y.value.width < 0 ? 0 : y.value.width,
|
|
396
|
-
height: Math.max(o.value.height, 0),
|
|
397
|
-
y: 0,
|
|
398
|
-
rx: t.minimapSelectionRadius,
|
|
399
|
-
fill: w.value
|
|
400
|
-
}, null, 8, nt),
|
|
401
|
-
v("rect", {
|
|
402
|
-
x: y.value.x,
|
|
403
|
-
width: y.value.width < 0 ? 0 : y.value.width,
|
|
404
|
-
height: Math.max(o.value.height, 0),
|
|
405
|
-
y: 0,
|
|
406
|
-
fill: t.minimapSelectedColor,
|
|
407
|
-
rx: t.minimapSelectionRadius,
|
|
408
|
-
style: $({
|
|
409
|
-
opacity: t.minimapSelectedColorOpacity
|
|
410
|
-
})
|
|
411
|
-
}, null, 12, it),
|
|
412
|
-
v("path", {
|
|
413
|
-
d: `M${x.value.sliced[0].x},${Math.max(o.value.height, 0)} ${x.value.selectionSet} L${x.value.sliced.at(-1).x},${Math.max(o.value.height, 0)}Z`,
|
|
414
|
-
fill: `url(#${H.value})`,
|
|
415
|
-
stroke: "none",
|
|
416
|
-
style: { opacity: "1" }
|
|
417
|
-
}, null, 8, ot),
|
|
418
|
-
v("path", {
|
|
419
|
-
d: `M ${x.value.selectionSet}`,
|
|
420
|
-
stroke: `${t.minimapLineColor}`,
|
|
421
|
-
fill: "transparent",
|
|
422
|
-
"stroke-width": "2",
|
|
423
|
-
"stroke-linecap": "round",
|
|
424
|
-
"stroke-linejoin": "round"
|
|
425
|
-
}, null, 8, ut),
|
|
426
|
-
v("circle", {
|
|
427
|
-
cx: x.value.firstPlot.x,
|
|
428
|
-
cy: x.value.firstPlot.y,
|
|
429
|
-
"stroke-width": "0.5",
|
|
430
|
-
stroke: w.value,
|
|
431
|
-
r: "3",
|
|
432
|
-
fill: t.minimapLineColor
|
|
433
|
-
}, null, 8, rt),
|
|
434
|
-
v("circle", {
|
|
435
|
-
cx: x.value.lastPlot.x,
|
|
436
|
-
cy: x.value.lastPlot.y,
|
|
437
|
-
"stroke-width": "0.5",
|
|
438
|
-
stroke: w.value,
|
|
439
|
-
r: "3",
|
|
440
|
-
fill: t.minimapLineColor
|
|
441
|
-
}, null, 8, st),
|
|
442
|
-
E.value !== null ? (m(!0), c(he, { key: 0 }, fe(te.value, (n, s) => (m(), c("g", null, [
|
|
443
|
-
E.value === n && n >= t.valueStart && n < t.valueEnd ? (m(), c("line", {
|
|
444
|
-
key: 0,
|
|
445
|
-
x1: f.value * s + f.value / 2,
|
|
446
|
-
x2: f.value * s + f.value / 2,
|
|
447
|
-
y1: 0,
|
|
448
|
-
y2: Math.max(o.value.height, 0),
|
|
449
|
-
stroke: t.minimapIndicatorColor,
|
|
450
|
-
"stroke-linecap": "round",
|
|
451
|
-
"stroke-dasharray": "2",
|
|
452
|
-
"stroke-width": "1"
|
|
453
|
-
}, null, 8, dt)) : p("", !0)
|
|
454
|
-
]))), 256)) : p("", !0),
|
|
455
|
-
(m(!0), c(he, null, fe(te.value, (n, s) => (m(), c("rect", {
|
|
456
|
-
x: f.value * s,
|
|
457
|
-
y: 0,
|
|
458
|
-
height: Math.max(o.value.height, 0),
|
|
459
|
-
width: f.value < 0 ? 0 : f.value,
|
|
460
|
-
fill: "transparent",
|
|
461
|
-
style: $([{ "pointer-events": "all !important" }, {
|
|
462
|
-
cursor: n >= t.valueStart && n < t.valueEnd && t.enableSelectionDrag ? R.value ? "grabbing" : "grab" : "default"
|
|
463
|
-
}]),
|
|
464
|
-
onMousedown: a[0] || (a[0] = (h) => R.value = !0),
|
|
465
|
-
onMouseup: a[1] || (a[1] = (h) => R.value = !1),
|
|
466
|
-
onMouseenter: (h) => Ne(n),
|
|
467
|
-
onMouseleave: a[2] || (a[2] = (h) => {
|
|
468
|
-
E.value = null, S("trapMouse", null);
|
|
469
|
-
})
|
|
470
|
-
}, null, 44, vt))), 256))
|
|
471
|
-
], 8, Ye))
|
|
472
|
-
])) : p("", !0),
|
|
473
|
-
a[13] || (a[13] = v("div", { class: "slider-track" }, null, -1)),
|
|
474
|
-
v("div", {
|
|
475
|
-
class: L({
|
|
476
|
-
"range-highlight": !0,
|
|
477
|
-
move: t.enableSelectionDrag
|
|
478
|
-
}),
|
|
479
|
-
onMousedown: a[3] || (a[3] = (n) => R.value = !0),
|
|
480
|
-
onMouseup: a[4] || (a[4] = (n) => R.value = !1),
|
|
481
|
-
style: $({
|
|
482
|
-
...b.value,
|
|
483
|
-
cursor: R.value ? "grabbing" : "grab"
|
|
484
|
-
})
|
|
485
|
-
}, null, 38),
|
|
486
|
-
t.enableRangeHandles ? me((m(), c("input", {
|
|
487
|
-
ref_key: "rangeStart",
|
|
488
|
-
ref: U,
|
|
489
|
-
key: `range-min${Le.value}`,
|
|
490
|
-
type: "range",
|
|
491
|
-
class: L({ "range-left": !0, "range-handle": !0, "range-minimap": M.value && t.verticalHandles }),
|
|
492
|
-
min: t.min,
|
|
493
|
-
max: t.max,
|
|
494
|
-
"onUpdate:modelValue": a[5] || (a[5] = (n) => u.value = n),
|
|
495
|
-
onInput: $e,
|
|
496
|
-
onMouseenter: a[6] || (a[6] = (n) => ce("start"))
|
|
497
|
-
}, null, 42, ct)), [
|
|
498
|
-
[ge, u.value]
|
|
499
|
-
]) : p("", !0),
|
|
500
|
-
t.enableRangeHandles ? me((m(), c("input", {
|
|
501
|
-
key: 2,
|
|
502
|
-
ref_key: "rangeEnd",
|
|
503
|
-
ref: O,
|
|
504
|
-
type: "range",
|
|
505
|
-
class: L({ "range-right": !0, "range-handle": !0, "range-minimap": M.value && t.verticalHandles }),
|
|
506
|
-
min: t.min,
|
|
507
|
-
max: t.max,
|
|
508
|
-
"onUpdate:modelValue": a[7] || (a[7] = (n) => r.value = n),
|
|
509
|
-
onInput: Re,
|
|
510
|
-
onMouseenter: a[8] || (a[8] = (n) => ce("end"))
|
|
511
|
-
}, null, 42, mt)), [
|
|
512
|
-
[ge, r.value]
|
|
513
|
-
]) : p("", !0),
|
|
514
|
-
t.labelLeft ? (m(), c("div", {
|
|
515
|
-
key: 3,
|
|
516
|
-
ref_key: "tooltipLeft",
|
|
517
|
-
ref: I,
|
|
518
|
-
class: L({
|
|
519
|
-
"range-tooltip": !0,
|
|
520
|
-
"range-tooltip-visible": C.value,
|
|
521
|
-
"range-tooltip-arrow": b.value.arrowLeft && !t.verticalHandles,
|
|
522
|
-
"range-tooltip-arrow-left": !b.value.arrowLeft && !t.verticalHandles
|
|
523
|
-
}),
|
|
524
|
-
style: $({
|
|
525
|
-
left: b.value.tooltipLeft,
|
|
526
|
-
color: F(ee)(t.selectColor),
|
|
527
|
-
backgroundColor: t.selectColor,
|
|
528
|
-
border: `1px solid ${w.value}`,
|
|
529
|
-
zIndex: `${ve.value + 4}`,
|
|
530
|
-
visibility: B.value || t.labelLeft === t.labelRight ? "hidden" : "visible"
|
|
531
|
-
})
|
|
532
|
-
}, _(t.labelLeft), 7)) : p("", !0),
|
|
533
|
-
B.value || t.labelLeft === t.labelRight ? (m(), c("div", {
|
|
534
|
-
key: 4,
|
|
535
|
-
ref: "tooltipMerge",
|
|
536
|
-
class: L({
|
|
537
|
-
"range-tooltip": !0,
|
|
538
|
-
"range-tooltip-visible": C.value,
|
|
539
|
-
"range-tooltip-arrow": !0,
|
|
540
|
-
"range-tooltip-arrow-left": !b.value.arrowLeft && !t.verticalHandles,
|
|
541
|
-
"range-tooltip-arrow-right": !b.value.arrowRight && !t.verticalHandles
|
|
542
|
-
}),
|
|
543
|
-
style: $({
|
|
544
|
-
left: b.value.tooltipCenter,
|
|
545
|
-
width: A.value.width + "px",
|
|
546
|
-
color: F(ee)(t.selectColor),
|
|
547
|
-
backgroundColor: t.selectColor,
|
|
548
|
-
border: `1px solid ${w.value}`,
|
|
549
|
-
zIndex: "4"
|
|
550
|
-
})
|
|
551
|
-
}, _(t.labelLeft === t.labelRight ? t.labelLeft : `${t.labelLeft} - ${t.labelRight}`), 7)) : p("", !0),
|
|
552
|
-
t.labelRight ? (m(), c("div", {
|
|
553
|
-
key: 5,
|
|
554
|
-
ref_key: "tooltipRight",
|
|
555
|
-
ref: P,
|
|
556
|
-
class: L({
|
|
557
|
-
"range-tooltip": !0,
|
|
558
|
-
"range-tooltip-visible": C.value,
|
|
559
|
-
"range-tooltip-arrow": b.value.arrowRight && !t.verticalHandles,
|
|
560
|
-
"range-tooltip-arrow-right": !b.value.arrowRight && !t.verticalHandles
|
|
561
|
-
}),
|
|
562
|
-
style: $({
|
|
563
|
-
left: b.value.tooltipRight,
|
|
564
|
-
color: F(ee)(t.selectColor),
|
|
565
|
-
backgroundColor: t.selectColor,
|
|
566
|
-
border: `1px solid ${w.value}`,
|
|
567
|
-
zIndex: "4",
|
|
568
|
-
visibility: B.value || t.labelLeft === t.labelRight ? "hidden" : "visible"
|
|
569
|
-
})
|
|
570
|
-
}, _(t.labelRight), 7)) : p("", !0)
|
|
571
|
-
], 544)
|
|
572
|
-
], 544));
|
|
573
|
-
}
|
|
574
|
-
}, pt = /* @__PURE__ */ qe(ht, [["__scopeId", "data-v-9dbe0987"]]);
|
|
575
|
-
export {
|
|
576
|
-
pt as S
|
|
577
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as p, openBlock as v, ref as d, computed as g, unref as c, watchEffect as h } from "vue";
|
|
2
|
-
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
const y = {}, B = { class: "vue-data-ui-scanner" };
|
|
4
|
-
function E(a, n) {
|
|
5
|
-
return v(), p("div", B);
|
|
6
|
-
}
|
|
7
|
-
const I = /* @__PURE__ */ A(y, [["render", E], ["__scopeId", "data-v-d6376e44"]]);
|
|
8
|
-
function S({
|
|
9
|
-
config: a,
|
|
10
|
-
dataset: n,
|
|
11
|
-
skeletonDataset: r,
|
|
12
|
-
skeletonConfig: t,
|
|
13
|
-
FINAL_CONFIG: i,
|
|
14
|
-
prepareConfig: _,
|
|
15
|
-
callback: s = null
|
|
16
|
-
}) {
|
|
17
|
-
const u = d(!1), o = g(() => {
|
|
18
|
-
const f = c(a)?.loading ?? !1, e = c(n), m = e == null || Array.isArray(e) && e.length === 0 || Object.keys(e).length === 0;
|
|
19
|
-
return u.value || f || m;
|
|
20
|
-
}), l = d(c(n));
|
|
21
|
-
return h(() => {
|
|
22
|
-
l.value = o.value ? r : c(n), i.value = o.value ? t : _(), s && s();
|
|
23
|
-
}), { loading: o, FINAL_DATASET: l, manualLoading: u, skeletonDataset: r, skeletonConfig: t };
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
I as B,
|
|
27
|
-
S as u
|
|
28
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { A as o, z as n } from "./index-CgShIRes.js";
|
|
2
|
-
function c({ defaultConfig: e, userConfig: r }) {
|
|
3
|
-
if (!Object.keys(r || {}).length)
|
|
4
|
-
return e;
|
|
5
|
-
const t = o({
|
|
6
|
-
defaultConfig: e,
|
|
7
|
-
userConfig: r
|
|
8
|
-
});
|
|
9
|
-
return n(t);
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
c as u
|
|
13
|
-
};
|