vue-data-ui 3.23.0 → 3.23.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.
Files changed (194) hide show
  1. package/dist/{Arrow-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
  2. package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
  3. package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
  4. package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
  5. package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
  6. package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
  7. package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
  8. package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
  9. package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
  11. package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-D6d8SCp9.js} +1 -1
  12. package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
  13. package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
  14. package/dist/Slicer-CIk57nL4.js +1163 -0
  15. package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
  16. package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
  17. package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
  18. package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
  19. package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.js} +2 -2
  20. package/dist/components/arrow.js +1 -1
  21. package/dist/components/vue-ui-3d-bar.js +1 -1
  22. package/dist/components/vue-ui-accordion.js +1 -1
  23. package/dist/components/vue-ui-age-pyramid.js +1 -1
  24. package/dist/components/vue-ui-annotator.js +1 -1
  25. package/dist/components/vue-ui-bullet.js +1 -1
  26. package/dist/components/vue-ui-bump.js +1 -1
  27. package/dist/components/vue-ui-candlestick.js +1 -1
  28. package/dist/components/vue-ui-carousel-table.js +1 -1
  29. package/dist/components/vue-ui-chestnut.js +1 -1
  30. package/dist/components/vue-ui-chord.js +1 -1
  31. package/dist/components/vue-ui-circle-pack.js +1 -1
  32. package/dist/components/vue-ui-cursor.js +1 -1
  33. package/dist/components/vue-ui-dag.js +1 -1
  34. package/dist/components/vue-ui-dashboard.js +1 -1
  35. package/dist/components/vue-ui-digits.js +1 -1
  36. package/dist/components/vue-ui-donut-evolution.js +1 -1
  37. package/dist/components/vue-ui-donut.js +1 -1
  38. package/dist/components/vue-ui-dumbbell.js +1 -1
  39. package/dist/components/vue-ui-flow.js +1 -1
  40. package/dist/components/vue-ui-funnel.js +1 -1
  41. package/dist/components/vue-ui-galaxy.js +1 -1
  42. package/dist/components/vue-ui-gauge.js +1 -1
  43. package/dist/components/vue-ui-geo.js +1 -1
  44. package/dist/components/vue-ui-gizmo.js +1 -1
  45. package/dist/components/vue-ui-heatmap.js +1 -1
  46. package/dist/components/vue-ui-hill.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/composables.js +1 -1
  91. package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
  92. package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
  93. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  94. package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
  95. package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
  96. package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
  97. package/dist/{package-BMc_ZieJ.js → package-KvlL5CqE.js} +1 -1
  98. package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
  99. package/dist/{render-common-Ktg2LZFG.js → render-common-oDYGTc5P.js} +2 -2
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +3 -0
  105. package/dist/{useConfig-BilxnBNr.js → useConfig-D3scuR88.js} +7 -1
  106. package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
  107. package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-Brg8mm5J.js} +1 -1
  108. package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
  109. package/dist/{useSvgExport-Ba9qBr9M.js → useSvgExport-DH-FfcqQ.js} +1 -1
  110. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  111. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  112. package/dist/utils.js +3 -3
  113. package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-DGWDPCwC.js} +69 -69
  114. package/dist/vue-data-ui.js +74 -74
  115. package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-C_Su9fve.js} +45 -45
  116. package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-BxGriZik.js} +4 -4
  117. package/dist/{vue-ui-age-pyramid-CgnPWA93.js → vue-ui-age-pyramid-D4k1MkAL.js} +41 -40
  118. package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-CCtnM8Rv.js} +41 -68
  119. package/dist/{vue-ui-bullet-Bc3-WaN1.js → vue-ui-bullet-DLZr2Uk8.js} +21 -21
  120. package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-CcdzJZ9n.js} +32 -32
  121. package/dist/{vue-ui-candlestick-DvvsrIdp.js → vue-ui-candlestick-EEEt7ORC.js} +50 -48
  122. package/dist/{vue-ui-carousel-table-DtsNVim8.js → vue-ui-carousel-table-BicIpNAD.js} +8 -8
  123. package/dist/vue-ui-chestnut-BI7mC5dd.js +2068 -0
  124. package/dist/{vue-ui-chord-xX5gWZy8.js → vue-ui-chord-DXaq8ZMu.js} +46 -46
  125. package/dist/{vue-ui-circle-pack-D8wykmqg.js → vue-ui-circle-pack-XHJBMG51.js} +362 -341
  126. package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-BqHr0n1Z.js} +4 -4
  127. package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-jMLVoQkb.js} +715 -720
  128. package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-DVAUFETR.js} +70 -70
  129. package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Dy4gG6qm.js} +5 -5
  130. package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-C0cWRLbU.js} +48 -47
  131. package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-CYpxGBhl.js} +18 -17
  132. package/dist/{vue-ui-donut-evolution-D6vH_hfx.js → vue-ui-donut-evolution-DwR47A2r.js} +58 -53
  133. package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-DxVbRjKR.js} +85 -85
  134. package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-DWaZF4FS.js} +37 -37
  135. package/dist/{vue-ui-funnel-CjYosIik.js → vue-ui-funnel-Bmpx5GHR.js} +24 -24
  136. package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-CWBP9oH9.js} +151 -151
  137. package/dist/{vue-ui-gauge-CByT0_vF.js → vue-ui-gauge-ByE_txav.js} +20 -20
  138. package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-ZA7CBy8f.js} +186 -186
  139. package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-SQCou0bQ.js} +4 -4
  140. package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-CHd9gs_p.js} +385 -385
  141. package/dist/vue-ui-hill-BT183G-_.js +1768 -0
  142. package/dist/{vue-ui-history-plot-BhcU94Pt.js → vue-ui-history-plot-BwnlC1mx.js} +511 -510
  143. package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-BUar2HUH.js} +235 -235
  144. package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-BF_9WWoo.js} +4 -4
  145. package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CvfukjXi.js} +3 -3
  146. package/dist/vue-ui-molecule-Bi2CKHer.js +958 -0
  147. package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-_zpbmvJs.js} +50 -50
  148. package/dist/{vue-ui-nested-donuts-aS4YzaB3.js → vue-ui-nested-donuts-qHZAJ70u.js} +43 -43
  149. package/dist/vue-ui-onion-CB5RYIy5.js +1258 -0
  150. package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-BUwt-apg.js} +54 -54
  151. package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-CoROD3er.js} +74 -74
  152. package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-BcH7eY4-.js} +96 -88
  153. package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-DGbaXGme.js} +191 -191
  154. package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-Bo3zD3yW.js} +3 -3
  155. package/dist/{vue-ui-relation-circle-FLs8vOxQ.js → vue-ui-relation-circle-DaU1eTsG.js} +32 -32
  156. package/dist/vue-ui-ridgeline-BCaGcyfk.js +1664 -0
  157. package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-BJUBn8_b.js} +40 -40
  158. package/dist/{vue-ui-scatter-CNA7jF-o.js → vue-ui-scatter-Pcft1bUt.js} +50 -50
  159. package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-EeJcGbCo.js} +4 -4
  160. package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-D0gibt5c.js} +3 -3
  161. package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-BRoQ7JpQ.js} +11 -11
  162. package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-DFp2k7-7.js} +4 -4
  163. package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-D0Bq85Hs.js} +4 -4
  164. package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-BPln7v63.js} +13 -13
  165. package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-C6Q45Dqp.js} +7 -6
  166. package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-CjK4bcQg.js} +5 -5
  167. package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-Ca8EPf3e.js} +83 -80
  168. package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Pz5WWlWT.js} +189 -186
  169. package/dist/{vue-ui-strip-plot-ACeYOoHj.js → vue-ui-strip-plot-Dw4MGDSO.js} +66 -66
  170. package/dist/vue-ui-table-Bjg-ujJu.js +1352 -0
  171. package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-ljeYW8Wc.js} +10 -10
  172. package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-iRFmtK5S.js} +8 -8
  173. package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-D8uiOaeA.js} +26 -26
  174. package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-CYw983oL.js} +6 -6
  175. package/dist/vue-ui-tiremarks-CekiW2Ru.js +559 -0
  176. package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-h4VbnqPA.js} +77 -77
  177. package/dist/{vue-ui-waffle-iPpdk1Bm.js → vue-ui-waffle-cu0w_s6L.js} +41 -41
  178. package/dist/vue-ui-wheel-tLvJadk5.js +892 -0
  179. package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-BjpGSsod.js} +68 -68
  180. package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-B4fCS3jN.js} +184 -184
  181. package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-7ZT9IRD8.js} +60 -60
  182. package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-BnLEwBpi.js} +20 -18
  183. package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-gyNS0yH0.js} +329 -326
  184. package/package.json +4 -4
  185. package/dist/Slicer-5yIrdoJv.js +0 -1149
  186. package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
  187. package/dist/vue-ui-chestnut-ArloORzP.js +0 -2068
  188. package/dist/vue-ui-hill-D7LYAgAL.js +0 -1768
  189. package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
  190. package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
  191. package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
  192. package/dist/vue-ui-table-rFy16bp0.js +0 -1347
  193. package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
  194. package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
@@ -0,0 +1,1163 @@
1
+ import { Ct as e, H as t, I as n, P as r, V as i, Yt as a, q as o, r as s, t as ee } from "./lib-Bttd6u5E.js";
2
+ import { t as c } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
+ import { i as te, l, t as ne } from "./useResponsive-ZtArZtUf.js";
4
+ import { t as re } from "./BaseIcon-BfndwIWE.js";
5
+ import { t as ie } from "./DefGrad-DVBqDjhO.js";
6
+ import { Fragment as u, computed as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as ae, mergeProps as oe, nextTick as se, normalizeClass as h, normalizeProps as ce, normalizeStyle as g, onBeforeUnmount as le, onMounted as ue, onUpdated as de, openBlock as _, ref as v, renderList as y, renderSlot as fe, toDisplayString as pe, unref as me, useCssVars as he, vModelText as ge, watch as b, withDirectives as _e } from "vue";
7
+ //#region src/atoms/Slicer.vue
8
+ var ve = ["data-minimap"], ye = {
9
+ class: "vue-data-ui-slicer-labels",
10
+ style: {
11
+ position: "relative",
12
+ "z-index": "1",
13
+ "pointer-events": "none"
14
+ }
15
+ }, be = {
16
+ key: 0,
17
+ style: {
18
+ width: "100%",
19
+ position: "relative",
20
+ "pointer-events": "all"
21
+ }
22
+ }, xe = {
23
+ key: 0,
24
+ class: "minimap",
25
+ style: { width: "100%" }
26
+ }, Se = ["xmlns", "viewBox"], Ce = [
27
+ "width",
28
+ "height",
29
+ "stroke"
30
+ ], we = ["d", "stroke"], Te = [
31
+ "x",
32
+ "width",
33
+ "y",
34
+ "height",
35
+ "fill"
36
+ ], Ee = ["d", "stroke"], De = [
37
+ "cx",
38
+ "cy",
39
+ "fill",
40
+ "stroke"
41
+ ], Oe = [
42
+ "x",
43
+ "width",
44
+ "height",
45
+ "fill",
46
+ "rx"
47
+ ], ke = [
48
+ "x",
49
+ "width",
50
+ "height",
51
+ "rx",
52
+ "fill"
53
+ ], Ae = [
54
+ "x",
55
+ "width",
56
+ "height",
57
+ "fill",
58
+ "rx"
59
+ ], je = [
60
+ "x2",
61
+ "y1",
62
+ "y2",
63
+ "stroke"
64
+ ], Me = ["d", "fill"], Ne = ["d", "stroke"], Pe = { key: 6 }, Fe = [
65
+ "x",
66
+ "width",
67
+ "y",
68
+ "height",
69
+ "fill"
70
+ ], Ie = ["d", "stroke"], Le = [
71
+ "x",
72
+ "width",
73
+ "height",
74
+ "fill",
75
+ "stroke",
76
+ "stroke-width"
77
+ ], Re = [
78
+ "x",
79
+ "width",
80
+ "height"
81
+ ], ze = ["fill", "stroke"], Be = ["stroke"], Ve = ["fill"], He = [
82
+ "x",
83
+ "width",
84
+ "height",
85
+ "fill",
86
+ "stroke",
87
+ "stroke-width"
88
+ ], Ue = [
89
+ "x",
90
+ "width",
91
+ "height"
92
+ ], We = ["fill", "stroke"], Ge = ["stroke"], Ke = ["fill"], qe = [
93
+ "cx",
94
+ "cy",
95
+ "stroke",
96
+ "fill"
97
+ ], Je = [
98
+ "cx",
99
+ "cy",
100
+ "fill"
101
+ ], Ye = [
102
+ "cx",
103
+ "cy",
104
+ "stroke",
105
+ "fill"
106
+ ], Xe = [
107
+ "cx",
108
+ "cy",
109
+ "fill"
110
+ ], Ze = { key: 12 }, Qe = [
111
+ "cx",
112
+ "cy",
113
+ "fill",
114
+ "stroke"
115
+ ], $e = [
116
+ "cx",
117
+ "cy",
118
+ "stroke",
119
+ "fill"
120
+ ], et = [
121
+ "cx",
122
+ "cy",
123
+ "fill"
124
+ ], tt = [
125
+ "cx",
126
+ "cy",
127
+ "stroke",
128
+ "fill"
129
+ ], nt = [
130
+ "cx",
131
+ "cy",
132
+ "fill"
133
+ ], rt = [
134
+ "height",
135
+ "x",
136
+ "width",
137
+ "onMouseenter"
138
+ ], it = ["min", "max"], at = ["min", "max"], ot = 48, st = /*#__PURE__*/ c({
139
+ __name: "Slicer",
140
+ props: {
141
+ background: {
142
+ type: String,
143
+ default: "#FFFFFF"
144
+ },
145
+ borderColor: {
146
+ type: String,
147
+ default: "#FFFFFF"
148
+ },
149
+ fontSize: {
150
+ type: Number,
151
+ default: 14
152
+ },
153
+ labelLeft: {
154
+ type: [String, Number],
155
+ default: ""
156
+ },
157
+ labelRight: {
158
+ type: [String, Number],
159
+ default: ""
160
+ },
161
+ textColor: {
162
+ type: String,
163
+ default: "#1A1A1A"
164
+ },
165
+ inputColor: {
166
+ type: String,
167
+ default: "#1A1A1A"
168
+ },
169
+ max: {
170
+ type: Number,
171
+ default: 0
172
+ },
173
+ min: {
174
+ type: Number,
175
+ default: 0
176
+ },
177
+ selectColor: {
178
+ type: String,
179
+ default: "#4A4A4A"
180
+ },
181
+ useResetSlot: {
182
+ type: Boolean,
183
+ default: !1
184
+ },
185
+ valueStart: {
186
+ type: [Number, String],
187
+ default: 0
188
+ },
189
+ valueEnd: {
190
+ type: [Number, String],
191
+ default: 0
192
+ },
193
+ minimap: {
194
+ type: Array,
195
+ default: []
196
+ },
197
+ smoothMinimap: {
198
+ type: Boolean,
199
+ default: !1
200
+ },
201
+ minimapSelectedColor: {
202
+ type: String,
203
+ default: "#1f77b4"
204
+ },
205
+ minimapSelectionRadius: {
206
+ type: Number,
207
+ default: 12
208
+ },
209
+ minimapLineColor: {
210
+ type: String,
211
+ default: "#2D353C"
212
+ },
213
+ minimapSelectedColorOpacity: {
214
+ type: Number,
215
+ default: .2
216
+ },
217
+ minimapSelectedIndex: {
218
+ type: Number,
219
+ default: null
220
+ },
221
+ minimapIndicatorColor: {
222
+ type: String,
223
+ default: "#2D353C"
224
+ },
225
+ refreshStartPoint: {
226
+ type: Number,
227
+ default: 0
228
+ },
229
+ refreshEndPoint: {
230
+ type: Number,
231
+ default: null
232
+ },
233
+ enableRangeHandles: {
234
+ type: Boolean,
235
+ default: !1
236
+ },
237
+ enableSelectionDrag: {
238
+ type: Boolean,
239
+ default: !0
240
+ },
241
+ verticalHandles: {
242
+ type: Boolean,
243
+ default: !1
244
+ },
245
+ minimapCompact: {
246
+ type: Boolean,
247
+ default: !1
248
+ },
249
+ allMinimaps: {
250
+ type: Array,
251
+ default() {
252
+ return [];
253
+ }
254
+ },
255
+ minimapMerged: {
256
+ type: Boolean,
257
+ default: !1
258
+ },
259
+ minimapFrameColor: {
260
+ type: String,
261
+ default: "#e1e5e8"
262
+ },
263
+ cutNullValues: {
264
+ type: Boolean,
265
+ default: !1
266
+ },
267
+ focusOnDrag: {
268
+ type: Boolean,
269
+ default: !1
270
+ },
271
+ focusRangeRatio: {
272
+ type: Number,
273
+ default: .1
274
+ },
275
+ maxWidth: {
276
+ type: Number,
277
+ default: null
278
+ },
279
+ minimapLeftInsetRatio: {
280
+ type: Number,
281
+ default: null
282
+ },
283
+ minimapRightInsetRatio: {
284
+ type: Number,
285
+ default: null
286
+ },
287
+ isCursorPointer: {
288
+ type: Boolean,
289
+ default: !1
290
+ },
291
+ additionalMinimapHeight: {
292
+ type: Number,
293
+ default: 0
294
+ },
295
+ handleType: {
296
+ type: String,
297
+ default: ""
298
+ },
299
+ handleWidth: {
300
+ type: Number,
301
+ default: 20
302
+ },
303
+ handleBorderWidth: {
304
+ type: Number,
305
+ default: 1
306
+ },
307
+ handleIconColor: {
308
+ type: String,
309
+ default: null
310
+ },
311
+ handleBorderColor: {
312
+ type: String,
313
+ default: null
314
+ },
315
+ handleFill: {
316
+ type: String,
317
+ default: null
318
+ }
319
+ },
320
+ emits: [
321
+ "update:start",
322
+ "update:end",
323
+ "reset",
324
+ "trapMouse"
325
+ ],
326
+ setup(c, { expose: st, emit: ct }) {
327
+ he((e) => ({
328
+ v9125c8a2: Tt.value,
329
+ v4f62a423: j.value,
330
+ edb76958: Dt.value,
331
+ v2f97e553: c.selectColor,
332
+ v22e36e61: Et.value
333
+ }));
334
+ let x = c, S = v(null), C = v(x.min), w = v(x.max), T = d(() => !!x.allMinimaps.length), lt = d(() => e(x.minimapLeftInsetRatio) && e(x.minimapRightInsetRatio)), ut = d(() => {
335
+ let e = Math.min(1, Math.max(0, x.minimapLeftInsetRatio)) * 100, t = Math.min(1, Math.max(0, x.minimapRightInsetRatio)) * 100;
336
+ return {
337
+ padding: lt.value ? `0 ${t}% 0 ${e}%` : "0 48px",
338
+ maxWidth: x.maxWidth && !lt.value ? `${x.maxWidth}px` : void 0,
339
+ margin: x.maxWidth && !lt.value ? "0 auto" : void 0
340
+ };
341
+ }), dt = v(o()), E = d(() => T.value && x.minimapCompact), ft = v(0);
342
+ ue(() => {
343
+ let e = () => {
344
+ S.value && (ft.value = S.value.getBoundingClientRect().width);
345
+ };
346
+ e();
347
+ let t = l(e, 50);
348
+ window.addEventListener("resize", t), le(() => {
349
+ window.removeEventListener("resize", t);
350
+ });
351
+ });
352
+ let pt = d(() => x.refreshEndPoint === null ? x.max : x.refreshEndPoint), D = ct, O = d(() => {
353
+ if (E.value) {
354
+ let e = Math.max(1, wn.value - 1);
355
+ return Ct.value / e * 100;
356
+ }
357
+ let e = Math.max(1, x.max - x.min);
358
+ return (C.value - x.min) / e * 100;
359
+ }), mt = d(() => {
360
+ if (E.value) {
361
+ let e = Math.max(1, wn.value - 1);
362
+ return wt.value / e * 100;
363
+ }
364
+ let e = Math.max(1, x.max - x.min);
365
+ return (w.value - x.min) / e * 100;
366
+ }), ht = d(() => (O.value + mt.value) / 2), gt = d(() => {
367
+ if (!S.value) return !1;
368
+ let e = S.value.getBoundingClientRect().width;
369
+ return O.value / 100 * e - gn.value / 2 < 0;
370
+ }), _t = d(() => {
371
+ if (!S.value) return !1;
372
+ let e = S.value.getBoundingClientRect().width;
373
+ return mt.value / 100 * e + _n.value / 2 > e;
374
+ }), k = d(() => {
375
+ let e = _t.value ? `calc(${ht.value}% - ${Cn.value.width}px)` : gt.value ? `calc(${ht.value}% - 8px)` : `calc(${ht.value}% - ${Cn.value.width / 2}px)`;
376
+ return {
377
+ left: `${O.value}%`,
378
+ width: `${Math.max(0, mt.value - O.value)}%`,
379
+ background: x.selectColor,
380
+ tooltipLeft: `calc(${O.value}% - ${gt.value ? 9 : gn.value / 2}px)`,
381
+ tooltipRight: `calc(${mt.value}% - ${_t.value ? _n.value - 9 : _n.value / 2}px)`,
382
+ tooltipCenter: e,
383
+ arrowLeft: !gt.value,
384
+ arrowRight: !_t.value
385
+ };
386
+ }), A = d(() => Math.max(0, (P.value || 1) - 1)), vt = d(() => Math.max(0, (wn.value || 1) - 1));
387
+ function yt(e) {
388
+ return vt.value === 0 ? 0 : Math.round(e / vt.value * A.value);
389
+ }
390
+ function bt(e) {
391
+ return A.value === 0 ? 0 : Math.round(e / A.value * vt.value);
392
+ }
393
+ let xt = (e) => Math.floor(x.min + e), St = (e) => Math.ceil(x.min + e), Ct = d({
394
+ get() {
395
+ return E.value ? yt(Q.value) : Number(C.value);
396
+ },
397
+ set(e) {
398
+ if (E.value) {
399
+ let t = Math.round(+e || 0), n = Math.max(0, yt(Math.max(0, $.value - 1))), r = bt(Math.min(Math.max(0, t), n));
400
+ H(xt(r));
401
+ } else {
402
+ let t = Math.round(+e || 0), n = Number(w.value) - 1;
403
+ H(Math.min(Math.max(x.min, t), n));
404
+ }
405
+ }
406
+ }), wt = d({
407
+ get() {
408
+ return E.value ? yt(Math.max(Q.value, $.value - 1)) : Number(w.value);
409
+ },
410
+ set(e) {
411
+ if (E.value) {
412
+ let t = Math.round(+e || 0), n = yt(Q.value), r = bt(Math.max(t, n));
413
+ U(St(r + 1));
414
+ } else {
415
+ let t = Math.round(+e || 0), n = Number(C.value) + 1;
416
+ U(Math.max(n, Math.min(t, x.max)));
417
+ }
418
+ }
419
+ }), Tt = d(() => x.inputColor), Et = d(() => x.background), Dt = d(() => `${x.selectColor}33`), j = d(() => x.borderColor), Ot = d(() => {
420
+ let e = [];
421
+ for (let t = 0; t < x.max; t += 1) e.push(t);
422
+ return e;
423
+ });
424
+ function kt() {
425
+ D("reset");
426
+ }
427
+ b(() => x.min, (e) => {
428
+ Number(C.value) < Number(e) && (C.value = Number(e)), Number(w.value) < Number(e) && (w.value = Number(e));
429
+ }), b(() => x.max, (e) => {
430
+ Number(C.value) > Number(e) && (C.value = Number(e)), Number(w.value) > Number(e) && (w.value = Number(e));
431
+ });
432
+ let At = v(null), M = v({
433
+ width: 1,
434
+ height: 1
435
+ }), N = v(null);
436
+ ue(() => {
437
+ if (T.value) {
438
+ let e = l(() => {
439
+ let { width: e, height: t } = ne({ chart: At.value });
440
+ M.value.width = e, M.value.height = t - 47;
441
+ });
442
+ N.value = new ResizeObserver(e), N.value.observe(At.value);
443
+ }
444
+ }), le(() => {
445
+ N.value && N.value.disconnect();
446
+ });
447
+ let P = d(() => Math.max(...x.allMinimaps.map((e) => e.series.length), x.minimap.length || 0)), F = d(() => {
448
+ if (!P.value) return 0;
449
+ let e = Math.max(1, P.value - +!!x.minimapCompact);
450
+ return M.value.width / e;
451
+ }), jt = d(() => {
452
+ let e = [];
453
+ if (Array.isArray(x.minimap) && x.minimap.length && x.minimapMerged && e.push(...x.minimap.filter(Number.isFinite)), Array.isArray(x.allMinimaps) && x.allMinimaps.length) for (let t of x.allMinimaps) t?.isVisible && Array.isArray(t?.series) && e.push(...t.series.filter(Number.isFinite));
454
+ return e.length ? {
455
+ min: Math.min(...e),
456
+ max: Math.max(...e)
457
+ } : {
458
+ min: 0,
459
+ max: 1
460
+ };
461
+ }), I = d(() => jt.value.min), L = d(() => jt.value.max), Mt = d(() => I.value < 0 && L.value > 0 || L.value <= 0 ? I.value : 0), Nt = d(() => Math.max(1e-9, Math.max(Math.abs(I.value), Math.abs(L.value)))), Pt = d(() => I.value < 0 && L.value > 0), Ft = (e) => {
462
+ let t = Math.max(1, M.value.height);
463
+ if (Pt.value) {
464
+ let n = Nt.value;
465
+ return (1 - (Math.max(-1, Math.min(1, e / n)) + 1) / 2) * t;
466
+ }
467
+ {
468
+ let n = Math.min(0, I.value), r = Math.max(0, L.value);
469
+ return t - (e - n) / Math.max(1e-9, r - n) * t;
470
+ }
471
+ }, It = d(() => Ft(0)), Lt = d(() => x.allMinimaps.length ? x.allMinimaps.filter((e) => e.type === "bar").length : 0), Rt = d(() => F.value / (Lt.value || 1) * .8);
472
+ function zt(e, t, n) {
473
+ let r = Rt.value, i = Math.max(1, Lt.value), a = P.value - 1;
474
+ return n === 0 ? e + r / 2 * t : n === a ? e - r / 2 * (i - t) : e - i * r / 2 + t * r;
475
+ }
476
+ function Bt(e, t) {
477
+ return [0, P.value - 1].includes(t) ? Rt.value / 2 : Rt.value;
478
+ }
479
+ function Vt(e, t, n) {
480
+ let r = (e, t, n) => Math.max(t, Math.min(n, e)), i = 1e-9;
481
+ if (t <= 0) {
482
+ let t = Math.max(i, 0 - e);
483
+ return (r) => n - (r - e) / t * n;
484
+ }
485
+ if (e >= 0) {
486
+ let e = Math.max(i, t - 0);
487
+ return (t) => n - (t - 0) / e * n;
488
+ }
489
+ let a = Math.max(i, Math.max(Math.abs(e), Math.abs(t)));
490
+ return (e) => (1 - (r(e / a, -1, 1) + 1) / 2) * n;
491
+ }
492
+ function Ht(e, a = !1) {
493
+ if (!e || !e.length) return {
494
+ fullSet: "",
495
+ points: [],
496
+ selectionSet: "",
497
+ sliced: [],
498
+ firstPlot: null,
499
+ lastPlot: null,
500
+ hasFull: !1,
501
+ hasSelection: !1,
502
+ fullMarkers: [],
503
+ selectionMarkers: []
504
+ };
505
+ let o = Math.max(1, M.value.height), s = Vt(I.value, L.value, o), ee = e.length, c = Math.min(Math.max(0, Q.value), Math.max(0, ee - 1)), te = Math.min(ee, Math.max(c + 1, $.value)), l = e.map((e, t) => {
506
+ let n = e, r = Number.isFinite(n), i = F.value * t + (x.minimapCompact ? 0 : F.value / 2), a = s(0);
507
+ return {
508
+ x: i,
509
+ y: r ? s(n) : NaN,
510
+ v: n,
511
+ value: n == null ? null : r ? n : null,
512
+ y0: a,
513
+ i: t
514
+ };
515
+ }), ne = (e) => e >= 0 && e < l.length && Number.isFinite(l[e]?.value), re = l.filter((e) => Number.isFinite(e.value) && !ne(e.i - 1) && !ne(e.i + 1)), ie = re.filter((e) => e.i >= c && e.i < te), u = l.slice(c, te);
516
+ return {
517
+ fullSet: l.length >= 2 ? x.smoothMinimap || a ? x.cutNullValues ? n(l) : r(l.filter((e) => e.value != null)) : x.cutNullValues ? t(l) : i(l.filter((e) => e.value != null)) : "",
518
+ points: l,
519
+ selectionSet: u.length >= 2 ? x.smoothMinimap || a ? x.cutNullValues ? n(u) : r(u.filter((e) => e.value != null)) : x.cutNullValues ? t(u) : i(u.filter((e) => e.value != null)) : "",
520
+ sliced: u,
521
+ firstPlot: l[c] || null,
522
+ lastPlot: l[Math.max(0, te - 1)] || null,
523
+ hasFull: l.length >= 2,
524
+ hasSelection: u.length >= 2,
525
+ fullMarkers: re,
526
+ selectionMarkers: ie
527
+ };
528
+ }
529
+ let R = d(() => x.minimap.length ? Ht(x.minimap) : {
530
+ fullSet: "",
531
+ selectionSet: "",
532
+ sliced: [],
533
+ firstPlot: null,
534
+ lastPlot: null,
535
+ hasFull: !1,
536
+ hasSelection: !1
537
+ }), z = d(() => x.allMinimaps.length ? x.allMinimaps.map((e, t) => {
538
+ let n = Ht(e?.series || [], !!e.smooth), r = e?.id ?? e?.name ?? t;
539
+ return {
540
+ key: typeof r == "object" ? JSON.stringify(r) : String(r),
541
+ color: e?.color,
542
+ ...n,
543
+ isVisible: e.isVisible,
544
+ type: e.type || "line"
545
+ };
546
+ }) : []), B = d(() => {
547
+ let e = Q.value, t = Math.max(e + 1, $.value);
548
+ return {
549
+ x: F.value * e + (x.minimapCompact ? 0 : F.value / 2),
550
+ width: F.value * (t - e) - F.value
551
+ };
552
+ }), V = v(x.minimapSelectedIndex);
553
+ function Ut(e) {
554
+ V.value = Tn(x.valueStart) + e;
555
+ }
556
+ let Wt = te(Ut, 60);
557
+ b(() => x.minimapSelectedIndex, (e, t) => {
558
+ if ([null, void 0].includes(e)) {
559
+ V.value = null;
560
+ return;
561
+ }
562
+ e !== t && Wt(e);
563
+ }, { immediate: !0 });
564
+ function Gt(e) {
565
+ V.value = e;
566
+ let t = Q.value, n = $.value;
567
+ e >= t && e < n && !Y.value && D("trapMouse", e - t);
568
+ }
569
+ let Kt = v(null), qt = v(null);
570
+ function H(e) {
571
+ C.value = e, Kt.value && (Kt.value.value = e), D("update:start", Number(C.value));
572
+ }
573
+ function U(e) {
574
+ w.value = e, qt.value && (qt.value.value = e), D("update:end", Number(w.value));
575
+ }
576
+ let Jt = d(() => x.valueEnd - x.valueStart), Yt = d(() => Jt.value < x.max - x.min), W = v(!1), Xt = v(null), Zt = d(() => (ft.value - 48) / (x.max - x.min) * Jt.value), Qt = d(() => Math.max(1, ft.value - ot - Zt.value)), $t = d(() => Math.max(1, x.max - x.min - Jt.value)), en = d(() => $t.value / Qt.value), tn = v(0), nn = v(0), rn = v(0), an = v(0), G = null, K = null, q = null, J = null, on = v(x.min);
577
+ function sn(e) {
578
+ if (!S.value) return x.min;
579
+ let t = S.value.getBoundingClientRect(), n = t.left + ot / 2, r = t.right - ot / 2, i = Math.max(1, r - n), a = (Math.max(n, Math.min(e, r)) - n) / i, o = Math.max(1, x.max - x.min);
580
+ return Math.round(x.min + a * o);
581
+ }
582
+ let cn = async (e) => {
583
+ if (Z.value = !0, !x.enableSelectionDrag) return;
584
+ let t = e.type === "touchstart";
585
+ t || e.stopPropagation();
586
+ let n = t && e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null, r = t ? n ? n.target : null : e.target;
587
+ if (!r || !(r instanceof Element) || r.classList && r.classList.contains("range-handle")) return;
588
+ W.value = !0;
589
+ let i = t ? n ? n.clientX : 0 : e.clientX;
590
+ if (Xt.value = i, tn.value = i, x.focusOnDrag && !Yt.value && S.value) {
591
+ on.value = sn(i);
592
+ let e = Math.min(.95, Math.max(.05, x.focusRangeRatio)), t = x.max - x.min, n = Math.max(1, Math.round(t * e)), r = Math.floor(n / 2), o = on.value - r;
593
+ o = Math.max(x.min, Math.min(o, x.max - n));
594
+ let s = Math.min(x.max, o + n);
595
+ H(o), U(s), a(S.value, "mouseup"), await se(), a(S.value, "mousedown", { clientX: i });
596
+ }
597
+ nn.value = Number(C.value), rn.value = Number(w.value), an.value = en.value, G = t ? "touchmove" : "mousemove", K = t ? "touchend" : "mouseup", q = t ? un : ln, J = t ? pn : fn, window.addEventListener(G, q, { passive: !1 }), window.addEventListener(K, J);
598
+ };
599
+ function ln(e) {
600
+ W.value && dn(e.clientX);
601
+ }
602
+ function un(e) {
603
+ if (!W.value || !S.value) return;
604
+ let t = e.target;
605
+ if (!(t instanceof Element) || !S.value.contains(t) || t.classList && t.classList.contains("range-handle")) return;
606
+ e.preventDefault();
607
+ let n = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
608
+ n && dn(n.clientX);
609
+ }
610
+ function dn(e) {
611
+ if (!W.value) return;
612
+ let t = sn(tn.value), n = sn(e) - t, r = Math.max(1, rn.value - nn.value), i = Math.round(nn.value + n), a = x.min, o = x.max - r;
613
+ i < a && (i = a), i > o && (i = o);
614
+ let s = i + r;
615
+ H(i), U(s);
616
+ }
617
+ function fn() {
618
+ mn();
619
+ }
620
+ function pn() {
621
+ mn();
622
+ }
623
+ function mn() {
624
+ W.value = !1, G && q && window.removeEventListener(G, q), K && J && window.removeEventListener(K, J), G = K = null, q = J = null;
625
+ }
626
+ let Y = v(!1), X = v(null), hn = v(null), gn = v(1), _n = v(1), Z = v(!1);
627
+ function vn() {
628
+ X.value && (gn.value = X.value.getBoundingClientRect().width);
629
+ }
630
+ function yn() {
631
+ hn.value && (_n.value = hn.value.getBoundingClientRect().width);
632
+ }
633
+ let bn = v(0);
634
+ function xn(e) {
635
+ bn.value = +(e === "start");
636
+ }
637
+ let Sn = v(!1), Cn = v({
638
+ width: 0,
639
+ left: 0
640
+ });
641
+ b([C, w], async () => {
642
+ if (await se(), !X.value || !hn.value) {
643
+ Sn.value = !1, Cn.value = {
644
+ width: 0,
645
+ left: 0
646
+ };
647
+ return;
648
+ }
649
+ let e = X.value.getBoundingClientRect(), t = hn.value.getBoundingClientRect();
650
+ Sn.value = e.x + e.width > t.x;
651
+ let n = e.x + e.width / 2, r = t.x + t.width / 2, i = e.width + t.width, a = (n + r) / 2;
652
+ Cn.value = {
653
+ width: i,
654
+ left: a - i / 2
655
+ };
656
+ }), de(() => {
657
+ vn(), yn();
658
+ }), b(() => x.labelLeft, () => {
659
+ se(vn);
660
+ }, { deep: !0 }), b(() => x.labelRight, () => {
661
+ se(yn);
662
+ }, { deep: !0 }), st({
663
+ setStartValue: H,
664
+ setEndValue: U
665
+ }), le(() => {
666
+ N.value && N.value.disconnect(), G && q && window.removeEventListener(G, q), K && J && window.removeEventListener(K, J), G = K = null, q = J = null;
667
+ });
668
+ let wn = d(() => Math.max(1, x.max - x.min));
669
+ function Tn(e) {
670
+ let t = Math.floor(e - x.min);
671
+ return Math.min(Math.max(0, t), wn.value);
672
+ }
673
+ function En(e) {
674
+ let t = Math.ceil(e - x.min);
675
+ return Math.min(Math.max(0, t), wn.value);
676
+ }
677
+ let Q = d(() => Tn(C.value)), $ = d(() => En(w.value)), Dn = d(() => {
678
+ if (!Ot.value.length) return null;
679
+ if (V.value >= Q.value && V.value < $.value) {
680
+ let e = V.value;
681
+ return {
682
+ x1: F.value * e + (x.minimapCompact ? 0 : F.value / 2),
683
+ x2: F.value * e + (x.minimapCompact ? 0 : F.value / 2),
684
+ y1: 0,
685
+ y2: Math.max(M.value.height, 0),
686
+ stroke: x.minimapIndicatorColor,
687
+ "stroke-linecap": "round",
688
+ "stroke-dasharray": 2,
689
+ "stroke-width": 1
690
+ };
691
+ }
692
+ return null;
693
+ });
694
+ return (e, t) => (_(), p("div", {
695
+ "data-minimap": T.value,
696
+ "data-dom-to-png-ignore": "",
697
+ "data-dom-to-png-ignore-layout": "",
698
+ class: "vue-data-ui-zoom",
699
+ ref_key: "zoomWrapper",
700
+ ref: S,
701
+ onMousedown: cn,
702
+ onTouchstart: cn,
703
+ onTouchend: t[11] ||= (e) => Z.value = !1,
704
+ style: g(ut.value)
705
+ }, [m("div", ye, [c.valueStart !== c.refreshStartPoint || c.valueEnd !== pt.value ? (_(), p("div", be, [fe(e.$slots, "reset-action", { reset: kt }, () => [m("button", {
706
+ tabindex: "0",
707
+ role: "button",
708
+ class: "vue-data-ui-refresh-button",
709
+ style: g({
710
+ top: T.value ? "36px" : "-16px",
711
+ cursor: c.isCursorPointer ? "pointer" : "default"
712
+ }),
713
+ onClick: kt
714
+ }, [ae(re, {
715
+ name: "refresh",
716
+ stroke: c.textColor
717
+ }, null, 8, ["stroke"])], 4)], !0)])) : f("", !0)]), m("div", {
718
+ class: "double-range-slider",
719
+ ref_key: "minimapWrapper",
720
+ ref: At,
721
+ style: g([{ "z-index": "0" }, T.value ? {
722
+ "--minimap-unit-px": F.value + "px",
723
+ "--minimap-offset-px": (c.minimapCompact ? 0 : F.value / 2) + "px"
724
+ } : void 0]),
725
+ onMouseenter: t[9] ||= (e) => Z.value = !0,
726
+ onMouseleave: t[10] ||= (e) => Z.value = !1
727
+ }, [
728
+ T.value ? (_(), p("div", xe, [(_(), p("svg", {
729
+ key: `mm-${c.minimapMerged ? "merged" : "split"}-${c.minimapCompact ? "compact" : "normal"}`,
730
+ xmlns: me(ee),
731
+ viewBox: `0 0 ${Math.max(0, M.value.width)} ${Math.max(0, M.value.height)}`
732
+ }, [
733
+ m("defs", null, [ae(ie, {
734
+ t: "linear",
735
+ id: dt.value,
736
+ x1: "0%",
737
+ y1: "0%",
738
+ x2: "0%",
739
+ y2: "100%",
740
+ stops: [[
741
+ "0%",
742
+ c.minimapLineColor,
743
+ .31
744
+ ], [
745
+ "100%",
746
+ "transparent",
747
+ 0
748
+ ]]
749
+ }, null, 8, ["id", "stops"])]),
750
+ c.minimapCompact ? (_(), p("rect", {
751
+ key: 0,
752
+ class: "vue-ui-zoom-minimap-frame",
753
+ x: 0,
754
+ y: 0,
755
+ width: M.value.width,
756
+ height: M.value.height,
757
+ fill: "none",
758
+ stroke: c.minimapFrameColor,
759
+ rx: 3
760
+ }, null, 8, Ce)) : f("", !0),
761
+ c.minimapMerged ? (_(), p("path", {
762
+ key: 1,
763
+ d: `M${R.value.fullSet}`,
764
+ stroke: `${c.minimapLineColor}`,
765
+ fill: "none",
766
+ "stroke-width": "1",
767
+ "stroke-linecap": "round",
768
+ "stroke-linejoin": "round",
769
+ style: { opacity: "0.6" }
770
+ }, null, 8, we)) : (_(), p(u, { key: 2 }, [(_(!0), p(u, null, y(z.value.filter((e) => e.type === "bar"), (e, t) => (_(), p("g", null, [(_(!0), p(u, null, y(e.points, (n, r) => (_(), p(u, null, [e.isVisible && !isNaN(n.y) ? (_(), p("rect", {
771
+ key: 0,
772
+ x: zt(n.x, t, r),
773
+ width: Bt(t, r),
774
+ y: n.v >= 0 ? n.y : n.y0,
775
+ height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
776
+ fill: e.color,
777
+ style: { opacity: "0.6" }
778
+ }, null, 8, Te)) : f("", !0)], 64))), 256))]))), 256)), (_(!0), p(u, null, y(z.value.filter((e) => e.type === "line"), (e) => (_(), p("g", { key: String(e.key) }, [e.isVisible ? (_(), p("path", {
779
+ key: 0,
780
+ d: `M ${e.fullSet}`,
781
+ fill: "none",
782
+ stroke: e.color,
783
+ style: { opacity: "0.6" }
784
+ }, null, 8, Ee)) : f("", !0), e.isVisible ? (_(!0), p(u, { key: 1 }, y(e.fullMarkers, (t) => (_(), p("circle", {
785
+ key: `sel-dot-under-${e.key}-${t.i}`,
786
+ cx: t.x,
787
+ cy: t.y,
788
+ r: "2",
789
+ fill: e.color,
790
+ stroke: j.value,
791
+ "stroke-width": "0.5",
792
+ style: { opacity: "0.6" }
793
+ }, null, 8, De))), 128)) : f("", !0)]))), 128))], 64)),
794
+ m("rect", {
795
+ x: B.value.x,
796
+ width: B.value.width < 0 ? 0 : B.value.width,
797
+ height: Math.max(M.value.height, 0),
798
+ y: 0,
799
+ fill: j.value,
800
+ rx: c.minimapSelectionRadius,
801
+ stroke: "none"
802
+ }, null, 8, Oe),
803
+ m("rect", {
804
+ x: B.value.x,
805
+ width: B.value.width < 0 ? 0 : B.value.width,
806
+ height: Math.max(M.value.height, 0),
807
+ y: 0,
808
+ rx: c.minimapSelectionRadius,
809
+ fill: j.value
810
+ }, null, 8, ke),
811
+ m("rect", {
812
+ x: B.value.x,
813
+ width: B.value.width < 0 ? 0 : B.value.width,
814
+ height: Math.max(M.value.height, 0),
815
+ y: 0,
816
+ fill: c.minimapSelectedColor,
817
+ rx: c.minimapSelectionRadius,
818
+ style: g({ opacity: c.minimapSelectedColorOpacity })
819
+ }, null, 12, Ae),
820
+ V.value !== null && !Y.value ? (_(), p("line", ce(oe({ key: 3 }, Dn.value)), null, 16)) : f("", !0),
821
+ !c.minimapMerged && Mt.value < 0 ? (_(), p("line", {
822
+ key: 4,
823
+ class: "slicer-minimap-zero-line",
824
+ x1: 0,
825
+ x2: M.value.width,
826
+ y1: It.value,
827
+ y2: It.value,
828
+ stroke: c.minimapFrameColor,
829
+ "stroke-width": "0.5"
830
+ }, null, 8, je)) : f("", !0),
831
+ c.minimapMerged ? (_(), p(u, { key: 5 }, [R.value && R.value.sliced && R.value.sliced.length ? (_(), p(u, { key: 0 }, [R.value.selectionSet ? (_(), p("path", {
832
+ key: 0,
833
+ d: `M${R.value.sliced[0].x},${Math.max(M.value.height, 0)} ${R.value.selectionSet} L${R.value.sliced[R.value.sliced.length - 1].x},${Math.max(M.value.height, 0)}Z`,
834
+ fill: `url(#${dt.value})`,
835
+ stroke: "none",
836
+ style: { opacity: "1" }
837
+ }, null, 8, Me)) : f("", !0), R.value.selectionSet ? (_(), p("path", {
838
+ key: 1,
839
+ d: `M ${R.value.selectionSet}`,
840
+ stroke: `${c.minimapLineColor}`,
841
+ fill: "transparent",
842
+ "stroke-width": "2",
843
+ "stroke-linecap": "round",
844
+ "stroke-linejoin": "round"
845
+ }, null, 8, Ne)) : f("", !0)], 64)) : f("", !0)], 64)) : (_(), p("g", Pe, [(_(!0), p(u, null, y(z.value.filter((e) => e.type === "bar"), (e, t) => (_(), p("g", null, [(_(!0), p(u, null, y(e.points, (n, r) => (_(), p(u, null, [e.isVisible && !isNaN(n.y) ? (_(), p("rect", {
846
+ key: 0,
847
+ x: zt(n.x, t, r),
848
+ width: Bt(t, r),
849
+ y: n.v >= 0 ? n.y : n.y0,
850
+ height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
851
+ fill: e.color,
852
+ style: g({ opacity: +(r >= c.valueStart && r <= c.valueEnd - 1) })
853
+ }, null, 12, Fe)) : f("", !0)], 64))), 256))]))), 256)), (_(!0), p(u, null, y(z.value.filter((e) => e.type === "line"), (e) => (_(), p("g", { key: String(e.key) }, [e && e.hasSelection && e.selectionSet && e.isVisible ? (_(), p("path", {
854
+ key: 0,
855
+ d: `M ${e.selectionSet}`,
856
+ stroke: e.color,
857
+ fill: "transparent",
858
+ "stroke-width": "2",
859
+ "stroke-linecap": "round",
860
+ "stroke-linejoin": "round"
861
+ }, null, 8, Ie)) : f("", !0)]))), 128))])),
862
+ T.value && c.minimapCompact ? (_(), p("rect", {
863
+ key: 7,
864
+ class: "vue-ui-zoom-compact-minimap-handle",
865
+ x: B.value.x - Math.min(40, Math.max(20, c.handleWidth)),
866
+ y: 0,
867
+ width: Math.min(40, Math.max(20, c.handleWidth)),
868
+ height: M.value.height,
869
+ fill: c.handleFill || j.value,
870
+ stroke: c.handleBorderColor || c.textColor,
871
+ "stroke-width": c.handleBorderWidth,
872
+ rx: 3
873
+ }, null, 8, Le)) : f("", !0),
874
+ c.handleType && c.handleType !== "empty" ? (_(), p("svg", {
875
+ key: 8,
876
+ x: B.value.x - Math.min(40, Math.max(20, c.handleWidth)),
877
+ y: 0,
878
+ width: Math.min(40, Math.max(20, c.handleWidth)),
879
+ height: M.value.height,
880
+ viewBox: "0 0 20 20"
881
+ }, [c.handleType === "arrow" ? (_(), p("path", {
882
+ key: 0,
883
+ d: "M 7 7 L 3 10 L 7 13 L 7 7 M 13 7 L 17 10 L 13 13 L 13 7",
884
+ fill: j.value,
885
+ stroke: c.handleIconColor || c.textColor,
886
+ "stroke-width": .618,
887
+ "stroke-linejoin": "round",
888
+ "stroke-linecap": "round"
889
+ }, null, 8, ze)) : c.handleType === "chevron" ? (_(), p("path", {
890
+ key: 1,
891
+ d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
892
+ fill: "none",
893
+ stroke: c.handleIconColor || c.textColor,
894
+ "stroke-width": .618,
895
+ "stroke-linejoin": "round",
896
+ "stroke-linecap": "round"
897
+ }, null, 8, Be)) : c.handleType === "grab" ? (_(), p("path", {
898
+ key: 2,
899
+ d: "M 8 5 A 1 1 0 0 0 8 7 A 1 1 0 0 0 8 5 M 8 9 A 1 1 0 0 0 8 11 A 1 1 0 0 0 8 9 M 8 13 A 1 1 0 0 0 8 15 A 1 1 0 0 0 8 13 M 12 5 A 1 1 0 0 0 12 7 A 1 1 0 0 0 12 5 M 12 9 A 1 1 0 0 0 12 11 A 1 1 0 0 0 12 9 M 12 13 A 1 1 0 0 0 12 15 A 1 1 0 0 0 12 13",
900
+ fill: c.handleIconColor || c.textColor,
901
+ stroke: "none",
902
+ opacity: "0.6"
903
+ }, null, 8, Ve)) : f("", !0)], 8, Re)) : f("", !0),
904
+ T.value && c.minimapCompact ? (_(), p("rect", {
905
+ key: 9,
906
+ class: "vue-ui-zoom-compact-minimap-handle",
907
+ x: B.value.x + B.value.width,
908
+ y: 0,
909
+ width: Math.min(40, Math.max(20, c.handleWidth)),
910
+ height: M.value.height,
911
+ fill: c.handleFill || j.value,
912
+ stroke: c.handleBorderColor || c.textColor,
913
+ "stroke-width": c.handleBorderWidth,
914
+ rx: 3
915
+ }, null, 8, He)) : f("", !0),
916
+ c.handleType && c.handleType !== "empty" ? (_(), p("svg", {
917
+ key: 10,
918
+ x: B.value.x + B.value.width,
919
+ y: 0,
920
+ width: Math.min(40, Math.max(20, c.handleWidth)),
921
+ height: M.value.height,
922
+ viewBox: "0 0 20 20"
923
+ }, [c.handleType === "arrow" ? (_(), p("path", {
924
+ key: 0,
925
+ d: "M 7 7 L 3 10 L 7 13 L 7 7 M 13 7 L 17 10 L 13 13 L 13 7",
926
+ fill: j.value,
927
+ stroke: c.handleIconColor || c.textColor,
928
+ "stroke-width": .618,
929
+ "stroke-linejoin": "round",
930
+ "stroke-linecap": "round"
931
+ }, null, 8, We)) : c.handleType === "chevron" ? (_(), p("path", {
932
+ key: 1,
933
+ d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
934
+ fill: "none",
935
+ stroke: c.handleIconColor || c.textColor,
936
+ "stroke-width": .618,
937
+ "stroke-linejoin": "round",
938
+ "stroke-linecap": "round"
939
+ }, null, 8, Ge)) : c.handleType === "grab" ? (_(), p("path", {
940
+ key: 2,
941
+ d: "M 8 5 A 1 1 0 0 0 8 7 A 1 1 0 0 0 8 5 M 8 9 A 1 1 0 0 0 8 11 A 1 1 0 0 0 8 9 M 8 13 A 1 1 0 0 0 8 15 A 1 1 0 0 0 8 13 M 12 5 A 1 1 0 0 0 12 7 A 1 1 0 0 0 12 5 M 12 9 A 1 1 0 0 0 12 11 A 1 1 0 0 0 12 9 M 12 13 A 1 1 0 0 0 12 15 A 1 1 0 0 0 12 13",
942
+ fill: c.handleIconColor || c.textColor,
943
+ stroke: "none",
944
+ opacity: "0.6"
945
+ }, null, 8, Ke)) : f("", !0)], 8, Ue)) : f("", !0),
946
+ c.minimapMerged ? (_(), p(u, { key: 11 }, [
947
+ R.value && R.value.firstPlot && R.value.firstPlot.value !== null ? (_(), p("circle", {
948
+ key: 0,
949
+ cx: R.value.firstPlot.x,
950
+ cy: R.value.firstPlot.y,
951
+ "stroke-width": "0.5",
952
+ stroke: j.value,
953
+ r: "4",
954
+ fill: c.minimapLineColor
955
+ }, null, 8, qe)) : f("", !0),
956
+ R.value && R.value.firstPlot && R.value.firstPlot.value !== null ? (_(), p("circle", {
957
+ key: 1,
958
+ cx: R.value.firstPlot.x,
959
+ cy: R.value.firstPlot.y,
960
+ r: "2",
961
+ fill: j.value
962
+ }, null, 8, Je)) : f("", !0),
963
+ R.value && R.value.lastPlot && R.value.lastPlot.value !== null ? (_(), p("circle", {
964
+ key: 2,
965
+ cx: R.value.lastPlot.x,
966
+ cy: R.value.lastPlot.y,
967
+ "stroke-width": "0.5",
968
+ stroke: j.value,
969
+ r: "4",
970
+ fill: c.minimapLineColor
971
+ }, null, 8, Ye)) : f("", !0),
972
+ R.value && R.value.lastPlot && R.value.lastPlot.value !== null ? (_(), p("circle", {
973
+ key: 3,
974
+ cx: R.value.lastPlot.x,
975
+ cy: R.value.lastPlot.y,
976
+ r: "2",
977
+ fill: j.value
978
+ }, null, 8, Xe)) : f("", !0)
979
+ ], 64)) : (_(), p("g", Ze, [(_(!0), p(u, null, y(z.value.filter((e) => e.type === "line"), (e) => (_(), p("g", { key: String(e.key) }, [
980
+ e.isVisible ? (_(!0), p(u, { key: 0 }, y(e.selectionMarkers, (t) => (_(), p("circle", {
981
+ key: `sel-dot-${e.key}-${t.i}`,
982
+ cx: t.x,
983
+ cy: t.y,
984
+ r: "2.5",
985
+ fill: e.color,
986
+ stroke: j.value,
987
+ "stroke-width": "0.5"
988
+ }, null, 8, Qe))), 128)) : f("", !0),
989
+ e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (_(), p("circle", {
990
+ key: 1,
991
+ cx: e.firstPlot.x,
992
+ cy: e.firstPlot.y,
993
+ "stroke-width": "0.5",
994
+ stroke: j.value,
995
+ r: "4",
996
+ fill: e.color
997
+ }, null, 8, $e)) : f("", !0),
998
+ e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (_(), p("circle", {
999
+ key: 2,
1000
+ cx: e.firstPlot.x,
1001
+ cy: e.firstPlot.y,
1002
+ r: "2",
1003
+ fill: j.value
1004
+ }, null, 8, et)) : f("", !0),
1005
+ e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (_(), p("circle", {
1006
+ key: 3,
1007
+ cx: e.lastPlot.x,
1008
+ cy: e.lastPlot.y,
1009
+ "stroke-width": "0.5",
1010
+ stroke: j.value,
1011
+ r: "4",
1012
+ fill: e.color
1013
+ }, null, 8, tt)) : f("", !0),
1014
+ e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (_(), p("circle", {
1015
+ key: 4,
1016
+ cx: e.lastPlot.x,
1017
+ cy: e.lastPlot.y,
1018
+ r: "2",
1019
+ fill: j.value
1020
+ }, null, 8, nt)) : f("", !0)
1021
+ ]))), 128))])),
1022
+ (_(!0), p(u, null, y(Ot.value, (e, n) => (_(), p("rect", {
1023
+ key: `trap-${n}`,
1024
+ y: 0,
1025
+ height: Math.max(M.value.height, 0),
1026
+ fill: "transparent",
1027
+ style: g([{ "pointer-events": "all !important" }, { cursor: e >= Q.value && e < $.value && c.enableSelectionDrag ? Y.value ? "grabbing" : "grab" : "default" }]),
1028
+ x: F.value * n - (c.minimapCompact ? F.value / 2 : 0),
1029
+ width: F.value < 0 ? 0 : F.value,
1030
+ onMousedown: t[0] ||= (e) => Y.value = !0,
1031
+ onMouseup: t[1] ||= (e) => Y.value = !1,
1032
+ onMouseenter: (t) => Gt(e),
1033
+ onMouseleave: t[2] ||= (e) => {
1034
+ V.value = null, D("trapMouse", null);
1035
+ }
1036
+ }, null, 44, rt))), 128))
1037
+ ], 8, Se))])) : f("", !0),
1038
+ m("div", {
1039
+ class: "slider-track",
1040
+ style: g({ visibility: T.value && c.minimapCompact ? "hidden" : "visible" })
1041
+ }, null, 4),
1042
+ m("div", {
1043
+ class: h({
1044
+ "range-highlight": !0,
1045
+ move: c.enableSelectionDrag
1046
+ }),
1047
+ onMousedown: t[3] ||= (e) => Y.value = !0,
1048
+ onMouseup: t[4] ||= (e) => Y.value = !1,
1049
+ style: g({
1050
+ ...k.value,
1051
+ cursor: Y.value ? "grabbing" : "grab",
1052
+ visibility: T.value && c.minimapCompact ? "hidden" : "visible"
1053
+ })
1054
+ }, null, 38),
1055
+ c.enableRangeHandles ? _e((_(), p("input", {
1056
+ key: 1,
1057
+ ref_key: "rangeStart",
1058
+ ref: Kt,
1059
+ type: "range",
1060
+ class: h({
1061
+ "range-left": !0,
1062
+ "range-handle": !0,
1063
+ "range-minimap": T.value && c.verticalHandles,
1064
+ "range-invisible": T.value && c.minimapCompact
1065
+ }),
1066
+ min: c.min,
1067
+ max: E.value && c.minimapCompact ? A.value : c.max,
1068
+ step: 1,
1069
+ "onUpdate:modelValue": t[5] ||= (e) => Ct.value = e,
1070
+ onMouseenter: t[6] ||= (e) => xn("start")
1071
+ }, null, 42, it)), [[
1072
+ ge,
1073
+ Ct.value,
1074
+ void 0,
1075
+ { number: !0 }
1076
+ ]]) : f("", !0),
1077
+ c.enableRangeHandles ? _e((_(), p("input", {
1078
+ key: 2,
1079
+ ref_key: "rangeEnd",
1080
+ ref: qt,
1081
+ type: "range",
1082
+ class: h({
1083
+ "range-right": !0,
1084
+ "range-handle": !0,
1085
+ "range-minimap": T.value && c.verticalHandles,
1086
+ "range-invisible": T.value && c.minimapCompact
1087
+ }),
1088
+ min: c.min,
1089
+ max: E.value && c.minimapCompact ? A.value : c.max,
1090
+ step: 1,
1091
+ "onUpdate:modelValue": t[7] ||= (e) => wt.value = e,
1092
+ onMouseenter: t[8] ||= (e) => xn("end")
1093
+ }, null, 42, at)), [[
1094
+ ge,
1095
+ wt.value,
1096
+ void 0,
1097
+ { number: !0 }
1098
+ ]]) : f("", !0),
1099
+ c.labelLeft ? (_(), p("div", {
1100
+ key: 3,
1101
+ ref_key: "tooltipLeft",
1102
+ ref: X,
1103
+ class: h({
1104
+ "range-tooltip": !0,
1105
+ "range-tooltip-visible": Z.value,
1106
+ "range-tooltip-arrow": k.value.arrowLeft && !c.verticalHandles,
1107
+ "range-tooltip-arrow-left": !k.value.arrowLeft && !c.verticalHandles
1108
+ }),
1109
+ style: g({
1110
+ left: k.value.tooltipLeft,
1111
+ color: me(s)(c.selectColor),
1112
+ backgroundColor: c.selectColor,
1113
+ border: `1px solid ${j.value}`,
1114
+ zIndex: `${bn.value + 4}`,
1115
+ visibility: Sn.value || c.labelLeft === c.labelRight ? "hidden" : "visible",
1116
+ top: T.value && c.minimapCompact ? "calc(-100% - 18px)" : "-100%"
1117
+ })
1118
+ }, pe(c.labelLeft), 7)) : f("", !0),
1119
+ (Sn.value || c.labelLeft === c.labelRight) && (c.labelLeft || c.labelRight) ? (_(), p("div", {
1120
+ key: 4,
1121
+ ref: "tooltipMerge",
1122
+ class: h({
1123
+ "range-tooltip": !0,
1124
+ "range-tooltip-visible": Z.value,
1125
+ "range-tooltip-arrow": !0,
1126
+ "range-tooltip-arrow-left": !k.value.arrowLeft && !c.verticalHandles,
1127
+ "range-tooltip-arrow-right": !k.value.arrowRight && !c.verticalHandles
1128
+ }),
1129
+ style: g({
1130
+ left: k.value.tooltipCenter,
1131
+ width: Cn.value.width + "px",
1132
+ color: me(s)(c.selectColor),
1133
+ backgroundColor: c.selectColor,
1134
+ border: `1px solid ${j.value}`,
1135
+ zIndex: "4",
1136
+ top: T.value && c.minimapCompact ? "calc(-100% - 18px)" : "-100%"
1137
+ })
1138
+ }, pe(c.labelLeft === c.labelRight ? c.labelLeft : `${c.labelLeft} - ${c.labelRight}`), 7)) : f("", !0),
1139
+ c.labelRight ? (_(), p("div", {
1140
+ key: 5,
1141
+ ref_key: "tooltipRight",
1142
+ ref: hn,
1143
+ class: h({
1144
+ "range-tooltip": !0,
1145
+ "range-tooltip-visible": Z.value,
1146
+ "range-tooltip-arrow": k.value.arrowRight && !c.verticalHandles,
1147
+ "range-tooltip-arrow-right": !k.value.arrowRight && !c.verticalHandles
1148
+ }),
1149
+ style: g({
1150
+ left: k.value.tooltipRight,
1151
+ color: me(s)(c.selectColor),
1152
+ backgroundColor: c.selectColor,
1153
+ border: `1px solid ${j.value}`,
1154
+ zIndex: "4",
1155
+ visibility: Sn.value || c.labelLeft === c.labelRight ? "hidden" : "visible",
1156
+ top: T.value && c.minimapCompact ? "calc(-100% - 18px)" : "-100%"
1157
+ })
1158
+ }, pe(c.labelRight), 7)) : f("", !0)
1159
+ ], 36)], 44, ve));
1160
+ }
1161
+ }, [["__scopeId", "data-v-cdd352c4"]]);
1162
+ //#endregion
1163
+ export { st as t };