vue-data-ui 3.22.9 → 3.22.11

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 (216) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-DKx74WtM.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-3n8udWmh.js} +2 -2
  3. package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CP5RWnqt.js} +1 -1
  4. package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-DsWphmIb.js} +1 -1
  5. package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-C9_ygNN4.js} +2 -2
  6. package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-3N_HVgXs.js} +2 -2
  7. package/dist/{DataTable-BxpTMgfK.js → DataTable-DzPEVvSo.js} +2 -2
  8. package/dist/{Legend-ROt6ugzW.js → Legend-C0xAnJdO.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-B_mE5UbR.js} +3 -3
  10. package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-1MNr72Bz.js} +1 -1
  11. package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CSMVXpg2.js} +3 -3
  12. package/dist/{Shape-UpH0a4Ur.js → Shape-BfnXr1nJ.js} +3 -3
  13. package/dist/Slicer-C6qNUmZ4.js +1149 -0
  14. package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-BIdvqU32.js} +554 -553
  15. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-uoUiL_P8.js} +1 -1
  16. package/dist/{Title-CcNiYzEo.js → Title-BuPs74IB.js} +1 -1
  17. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CA1rtSyl.js} +1 -1
  18. package/dist/{UserOptions-trvJ26nz.js → UserOptions-B69xBEVP.js} +6 -5
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-BdAFKZQg.js} +1 -1
  89. package/dist/exposedLib-Ciw6TGtP.js +25 -0
  90. package/dist/{geoProjections-BbN7z57k.js → geoProjections-BCP_PoiB.js} +94 -94
  91. package/dist/{img-DnP3eXuv.js → img-Bikk1dGb.js} +1 -1
  92. package/dist/{labelUtils-DBEh078l.js → labelUtils-BUhssos9.js} +1 -1
  93. package/dist/{lib-JqW18y5I.js → lib-CFm_J26b.js} +121 -110
  94. package/dist/{package-ByOT60IK.js → package-Bf-Nk9qU.js} +1 -1
  95. package/dist/{pdf-hj3gzrE7.js → pdf-zmz3l2uy.js} +1 -1
  96. package/dist/{render-common-D18VrP0h.js → render-common-DEb-WjM1.js} +10 -10
  97. package/dist/ssr/vue-ui-donut.js +1 -1
  98. package/dist/ssr/vue-ui-xy.js +1 -1
  99. package/dist/ssr.js +2 -2
  100. package/dist/style.css +1 -1
  101. package/dist/types/utils.d.ts +40 -0
  102. package/dist/types/vue-data-ui.d.ts +1 -0
  103. package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-C9RNjsGv.js} +4 -4
  104. package/dist/{useConfig-DYM3f6EI.js → useConfig-C0V0eG7L.js} +1 -0
  105. package/dist/{useFitSvgText-CT3nmlaS.js → useFitSvgText-CXTzBplU.js} +3 -1
  106. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-BY6DNN3i.js} +2 -2
  107. package/dist/{useObjectBindings-CD31syQb.js → useObjectBindings-Djwpii4d.js} +1 -1
  108. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-BH-xle1O.js} +2 -2
  109. package/dist/{canvas-lib-BOP_HS11.js → useResponsive-ZtArZtUf.js} +19 -1
  110. package/dist/{useSvgExport-SVIsDot8.js → useSvgExport-Ba9qBr9M.js} +6 -5
  111. package/dist/{useTableResponsive-B24Uwt2E.js → useTableResponsive-BAqJPR68.js} +2 -1
  112. package/dist/{useTimeLabels-BmBRv27Y.js → useTimeLabels-B9CEuiLZ.js} +1 -1
  113. package/dist/utils.js +26 -24
  114. package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bme9usjG.js} +68 -68
  115. package/dist/vue-data-ui.js +77 -77
  116. package/dist/vue-ui-3d-bar-Ds1BPxqb.js +1824 -0
  117. package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-nNxnZTg9.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CNCrH8Kd.js +1246 -0
  119. package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BfZ8RTzJ.js} +17 -11
  120. package/dist/vue-ui-bullet-DscMmM2b.js +709 -0
  121. package/dist/vue-ui-bump-BvwU1_-N.js +1248 -0
  122. package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-Cp6r8ktf.js} +288 -288
  123. package/dist/vue-ui-carousel-table-CbtccW1g.js +455 -0
  124. package/dist/vue-ui-chestnut-C3Hmf1-m.js +2042 -0
  125. package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-DJk9j45J.js} +45 -46
  126. package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CJe2wETT.js} +50 -51
  127. package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-BAi9omna.js} +6 -6
  128. package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-D7BEbS71.js} +41 -39
  129. package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BYFQjwgC.js} +70 -70
  130. package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-Bx8nZl9d.js} +4 -4
  131. package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-BUX4ybT6.js} +208 -208
  132. package/dist/vue-ui-donut-evolution-MWDjQPQ5.js +1521 -0
  133. package/dist/vue-ui-donut-jXRV-3ON.js +2418 -0
  134. package/dist/vue-ui-dumbbell-CnwsHaIy.js +1564 -0
  135. package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-CKXGk4Lm.js} +74 -75
  136. package/dist/vue-ui-funnel-CJwD7s7e.js +781 -0
  137. package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-DL85_SWR.js} +275 -276
  138. package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-Dkx-aUQr.js} +177 -178
  139. package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-fkLF1rHB.js} +28 -27
  140. package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-S8w_p769.js} +9 -9
  141. package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-Dopkbn2N.js} +330 -331
  142. package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-DDYpEapS.js} +413 -414
  143. package/dist/vue-ui-horizontal-bar-Bi8WvKeD.js +1689 -0
  144. package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BeJ-ajaS.js} +4 -4
  145. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-D9pprk2c.js} +3 -3
  146. package/dist/vue-ui-molecule-CBTgGZ-s.js +932 -0
  147. package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-CF83PcCx.js} +260 -261
  148. package/dist/vue-ui-nested-donuts-D5dO-Uyg.js +1492 -0
  149. package/dist/vue-ui-onion-BxjaQKo8.js +1199 -0
  150. package/dist/vue-ui-parallel-coordinate-plot-Dz6ozRAM.js +1415 -0
  151. package/dist/vue-ui-quadrant-Bnxpa6m5.js +1985 -0
  152. package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-CAE0-NYj.js} +112 -113
  153. package/dist/vue-ui-radar-O4BhBOyp.js +1286 -0
  154. package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-DbxK-ftN.js} +101 -101
  155. package/dist/vue-ui-relation-circle-BZ0Xf-Nc.js +923 -0
  156. package/dist/vue-ui-ridgeline-DHVTPiM6.js +1627 -0
  157. package/dist/vue-ui-rings-DAfY1V--.js +1251 -0
  158. package/dist/vue-ui-scatter-Cb63SWJT.js +2421 -0
  159. package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-DoIqQtIV.js} +100 -100
  160. package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-Da2jgkb7.js} +18 -18
  161. package/dist/vue-ui-spark-trend-Db-FsXch.js +442 -0
  162. package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-Ce55FP_3.js} +67 -67
  163. package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-hB59dXm7.js} +65 -65
  164. package/dist/vue-ui-sparkhistogram-DjnaStBw.js +575 -0
  165. package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-D1dyhLvG.js} +54 -55
  166. package/dist/vue-ui-sparkstackbar-BhOBFjts.js +674 -0
  167. package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-BZKw8WYn.js} +123 -122
  168. package/dist/vue-ui-stackline-DLFNVbAz.js +2425 -0
  169. package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-DyN2WELD.js} +68 -69
  170. package/dist/vue-ui-table-DL_R4ppI.js +1339 -0
  171. package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-C9gF__Np.js} +16 -16
  172. package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-CT-0w9-a.js} +26 -24
  173. package/dist/vue-ui-thermometer-MP0dliC3.js +769 -0
  174. package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-B5S-6Da4.js} +7 -8
  175. package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-DcJiLDsm.js} +20 -21
  176. package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-CjldCPnX.js} +615 -603
  177. package/dist/vue-ui-waffle-dZM-9z1J.js +1367 -0
  178. package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-or7a6-Ce.js} +47 -48
  179. package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-8BwQ0cuB.js} +40 -37
  180. package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-Q0KZb7A_.js} +210 -210
  181. package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-4uzwZJcj.js} +141 -141
  182. package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-DZIs53tH.js} +791 -783
  183. package/dist/vue-ui-xy-canvas-Dz9aii7f.js +1790 -0
  184. package/package.json +2 -2
  185. package/dist/Slicer-CW_XPIKL.js +0 -1150
  186. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  187. package/dist/useResponsive-BfnK0KxU.js +0 -19
  188. package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
  189. package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
  190. package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
  191. package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
  192. package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
  193. package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
  194. package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
  195. package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
  196. package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
  197. package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
  198. package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
  199. package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
  200. package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
  201. package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
  202. package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
  203. package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
  204. package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
  205. package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
  206. package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
  207. package/dist/vue-ui-rings-J990vNbX.js +0 -1252
  208. package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
  209. package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
  210. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
  211. package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
  212. package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
  213. package/dist/vue-ui-table-uudidrYt.js +0 -1338
  214. package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
  215. package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
  216. package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
@@ -1,1150 +0,0 @@
1
- import { B as e, G as t, M as n, P as r, qt as i, r as a, t as o, z as ee } from "./lib-JqW18y5I.js";
2
- import { t as s } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { c, r as te } from "./canvas-lib-BOP_HS11.js";
4
- import { t as l } from "./useResponsive-BfnK0KxU.js";
5
- import { t as ne } from "./BaseIcon-UdRAvP2h.js";
6
- import { t as re } from "./DefGrad-DVBqDjhO.js";
7
- import { Fragment as u, computed as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as ie, mergeProps as ae, nextTick as oe, normalizeClass as h, normalizeProps as se, normalizeStyle as g, onBeforeUnmount as ce, onMounted as le, onUpdated as ue, openBlock as _, ref as v, renderList as y, renderSlot as de, toDisplayString as fe, unref as pe, useCssVars as me, vModelText as he, watch as b, withDirectives as ge } from "vue";
8
- //#region src/atoms/Slicer.vue
9
- var _e = ["data-minimap"], ve = {
10
- class: "vue-data-ui-slicer-labels",
11
- style: {
12
- position: "relative",
13
- "z-index": "1",
14
- "pointer-events": "none"
15
- }
16
- }, ye = {
17
- key: 0,
18
- style: {
19
- width: "100%",
20
- position: "relative",
21
- "pointer-events": "all"
22
- }
23
- }, be = {
24
- key: 0,
25
- class: "minimap",
26
- style: { width: "100%" }
27
- }, xe = ["xmlns", "viewBox"], Se = [
28
- "width",
29
- "height",
30
- "stroke"
31
- ], Ce = ["d", "stroke"], we = [
32
- "x",
33
- "width",
34
- "y",
35
- "height",
36
- "fill"
37
- ], Te = ["d", "stroke"], Ee = [
38
- "cx",
39
- "cy",
40
- "fill",
41
- "stroke"
42
- ], De = [
43
- "x",
44
- "width",
45
- "height",
46
- "fill",
47
- "rx"
48
- ], Oe = [
49
- "x",
50
- "width",
51
- "height",
52
- "rx",
53
- "fill"
54
- ], ke = [
55
- "x",
56
- "width",
57
- "height",
58
- "fill",
59
- "rx"
60
- ], Ae = [
61
- "x2",
62
- "y1",
63
- "y2",
64
- "stroke"
65
- ], je = ["d", "fill"], Me = ["d", "stroke"], Ne = { key: 6 }, Pe = [
66
- "x",
67
- "width",
68
- "y",
69
- "height",
70
- "fill"
71
- ], Fe = ["d", "stroke"], Ie = [
72
- "x",
73
- "width",
74
- "height",
75
- "fill",
76
- "stroke",
77
- "stroke-width"
78
- ], Le = [
79
- "x",
80
- "width",
81
- "height"
82
- ], Re = ["fill", "stroke"], ze = ["stroke"], Be = ["fill"], Ve = [
83
- "x",
84
- "width",
85
- "height",
86
- "fill",
87
- "stroke",
88
- "stroke-width"
89
- ], He = [
90
- "x",
91
- "width",
92
- "height"
93
- ], Ue = ["fill", "stroke"], We = ["stroke"], Ge = ["fill"], Ke = [
94
- "cx",
95
- "cy",
96
- "stroke",
97
- "fill"
98
- ], qe = [
99
- "cx",
100
- "cy",
101
- "fill"
102
- ], Je = [
103
- "cx",
104
- "cy",
105
- "stroke",
106
- "fill"
107
- ], Ye = [
108
- "cx",
109
- "cy",
110
- "fill"
111
- ], Xe = { key: 12 }, Ze = [
112
- "cx",
113
- "cy",
114
- "fill",
115
- "stroke"
116
- ], Qe = [
117
- "cx",
118
- "cy",
119
- "stroke",
120
- "fill"
121
- ], $e = [
122
- "cx",
123
- "cy",
124
- "fill"
125
- ], et = [
126
- "cx",
127
- "cy",
128
- "stroke",
129
- "fill"
130
- ], tt = [
131
- "cx",
132
- "cy",
133
- "fill"
134
- ], nt = [
135
- "height",
136
- "x",
137
- "width",
138
- "onMouseenter"
139
- ], rt = ["min", "max"], it = ["min", "max"], at = 48, ot = /*#__PURE__*/ s({
140
- __name: "Slicer",
141
- props: {
142
- background: {
143
- type: String,
144
- default: "#FFFFFF"
145
- },
146
- borderColor: {
147
- type: String,
148
- default: "#FFFFFF"
149
- },
150
- fontSize: {
151
- type: Number,
152
- default: 14
153
- },
154
- labelLeft: {
155
- type: [String, Number],
156
- default: ""
157
- },
158
- labelRight: {
159
- type: [String, Number],
160
- default: ""
161
- },
162
- textColor: {
163
- type: String,
164
- default: "#1A1A1A"
165
- },
166
- inputColor: {
167
- type: String,
168
- default: "#1A1A1A"
169
- },
170
- max: {
171
- type: Number,
172
- default: 0
173
- },
174
- min: {
175
- type: Number,
176
- default: 0
177
- },
178
- selectColor: {
179
- type: String,
180
- default: "#4A4A4A"
181
- },
182
- useResetSlot: {
183
- type: Boolean,
184
- default: !1
185
- },
186
- valueStart: {
187
- type: [Number, String],
188
- default: 0
189
- },
190
- valueEnd: {
191
- type: [Number, String],
192
- default: 0
193
- },
194
- minimap: {
195
- type: Array,
196
- default: []
197
- },
198
- smoothMinimap: {
199
- type: Boolean,
200
- default: !1
201
- },
202
- minimapSelectedColor: {
203
- type: String,
204
- default: "#1f77b4"
205
- },
206
- minimapSelectionRadius: {
207
- type: Number,
208
- default: 12
209
- },
210
- minimapLineColor: {
211
- type: String,
212
- default: "#2D353C"
213
- },
214
- minimapSelectedColorOpacity: {
215
- type: Number,
216
- default: .2
217
- },
218
- minimapSelectedIndex: {
219
- type: Number,
220
- default: null
221
- },
222
- minimapIndicatorColor: {
223
- type: String,
224
- default: "#2D353C"
225
- },
226
- refreshStartPoint: {
227
- type: Number,
228
- default: 0
229
- },
230
- refreshEndPoint: {
231
- type: Number,
232
- default: null
233
- },
234
- enableRangeHandles: {
235
- type: Boolean,
236
- default: !1
237
- },
238
- enableSelectionDrag: {
239
- type: Boolean,
240
- default: !0
241
- },
242
- verticalHandles: {
243
- type: Boolean,
244
- default: !1
245
- },
246
- minimapCompact: {
247
- type: Boolean,
248
- default: !1
249
- },
250
- allMinimaps: {
251
- type: Array,
252
- default() {
253
- return [];
254
- }
255
- },
256
- minimapMerged: {
257
- type: Boolean,
258
- default: !1
259
- },
260
- minimapFrameColor: {
261
- type: String,
262
- default: "#e1e5e8"
263
- },
264
- cutNullValues: {
265
- type: Boolean,
266
- default: !1
267
- },
268
- focusOnDrag: {
269
- type: Boolean,
270
- default: !1
271
- },
272
- focusRangeRatio: {
273
- type: Number,
274
- default: .1
275
- },
276
- maxWidth: {
277
- type: Number,
278
- default: null
279
- },
280
- isCursorPointer: {
281
- type: Boolean,
282
- default: !1
283
- },
284
- additionalMinimapHeight: {
285
- type: Number,
286
- default: 0
287
- },
288
- handleType: {
289
- type: String,
290
- default: ""
291
- },
292
- handleWidth: {
293
- type: Number,
294
- default: 20
295
- },
296
- handleBorderWidth: {
297
- type: Number,
298
- default: 1
299
- },
300
- handleIconColor: {
301
- type: String,
302
- default: null
303
- },
304
- handleBorderColor: {
305
- type: String,
306
- default: null
307
- },
308
- handleFill: {
309
- type: String,
310
- default: null
311
- }
312
- },
313
- emits: [
314
- "update:start",
315
- "update:end",
316
- "reset",
317
- "trapMouse"
318
- ],
319
- setup(s, { expose: ot, emit: st }) {
320
- me((e) => ({
321
- v78171e72: St.value,
322
- v5be9f93b: j.value,
323
- v3bad6e6c: wt.value,
324
- v3c1f3a6b: s.selectColor,
325
- v430a7779: Ct.value
326
- }));
327
- let x = s, S = v(null), C = v(x.min), w = v(x.max), T = d(() => !!x.allMinimaps.length), ct = v(t()), E = d(() => T.value && x.minimapCompact), lt = v(0);
328
- le(() => {
329
- let e = () => {
330
- S.value && (lt.value = S.value.getBoundingClientRect().width);
331
- };
332
- e();
333
- let t = c(e, 50);
334
- window.addEventListener("resize", t), ce(() => {
335
- window.removeEventListener("resize", t);
336
- });
337
- });
338
- let ut = d(() => x.refreshEndPoint === null ? x.max : x.refreshEndPoint), D = st, O = d(() => {
339
- if (E.value) {
340
- let e = Math.max(1, xn.value - 1);
341
- return bt.value / e * 100;
342
- }
343
- let e = Math.max(1, x.max - x.min);
344
- return (C.value - x.min) / e * 100;
345
- }), dt = d(() => {
346
- if (E.value) {
347
- let e = Math.max(1, xn.value - 1);
348
- return xt.value / e * 100;
349
- }
350
- let e = Math.max(1, x.max - x.min);
351
- return (w.value - x.min) / e * 100;
352
- }), ft = d(() => (O.value + dt.value) / 2), pt = d(() => {
353
- if (!S.value) return !1;
354
- let e = S.value.getBoundingClientRect().width;
355
- return O.value / 100 * e - pn.value / 2 < 0;
356
- }), mt = d(() => {
357
- if (!S.value) return !1;
358
- let e = S.value.getBoundingClientRect().width;
359
- return dt.value / 100 * e + mn.value / 2 > e;
360
- }), k = d(() => {
361
- let e = mt.value ? `calc(${ft.value}% - ${bn.value.width}px)` : pt.value ? `calc(${ft.value}% - 8px)` : `calc(${ft.value}% - ${bn.value.width / 2}px)`;
362
- return {
363
- left: `${O.value}%`,
364
- width: `${Math.max(0, dt.value - O.value)}%`,
365
- background: x.selectColor,
366
- tooltipLeft: `calc(${O.value}% - ${pt.value ? 9 : pn.value / 2}px)`,
367
- tooltipRight: `calc(${dt.value}% - ${mt.value ? mn.value - 9 : mn.value / 2}px)`,
368
- tooltipCenter: e,
369
- arrowLeft: !pt.value,
370
- arrowRight: !mt.value
371
- };
372
- }), A = d(() => Math.max(0, (P.value || 1) - 1)), ht = d(() => Math.max(0, (xn.value || 1) - 1));
373
- function gt(e) {
374
- return ht.value === 0 ? 0 : Math.round(e / ht.value * A.value);
375
- }
376
- function _t(e) {
377
- return A.value === 0 ? 0 : Math.round(e / A.value * ht.value);
378
- }
379
- let vt = (e) => Math.floor(x.min + e), yt = (e) => Math.ceil(x.min + e), bt = d({
380
- get() {
381
- return E.value ? gt(Q.value) : Number(C.value);
382
- },
383
- set(e) {
384
- if (E.value) {
385
- let t = Math.round(+e || 0), n = Math.max(0, gt(Math.max(0, $.value - 1)));
386
- H(vt(_t(Math.min(Math.max(0, t), n))));
387
- } else {
388
- let t = Math.round(+e || 0), n = Number(w.value) - 1;
389
- H(Math.min(Math.max(x.min, t), n));
390
- }
391
- }
392
- }), xt = d({
393
- get() {
394
- return E.value ? gt(Math.max(Q.value, $.value - 1)) : Number(w.value);
395
- },
396
- set(e) {
397
- if (E.value) {
398
- let t = Math.round(+e || 0), n = gt(Q.value);
399
- U(yt(_t(Math.max(t, n)) + 1));
400
- } else {
401
- let t = Math.round(+e || 0), n = Number(C.value) + 1;
402
- U(Math.max(n, Math.min(t, x.max)));
403
- }
404
- }
405
- }), St = d(() => x.inputColor), Ct = d(() => x.background), wt = d(() => `${x.selectColor}33`), j = d(() => x.borderColor), Tt = d(() => {
406
- let e = [];
407
- for (let t = 0; t < x.max; t += 1) e.push(t);
408
- return e;
409
- });
410
- function Et() {
411
- D("reset");
412
- }
413
- b(() => x.min, (e) => {
414
- Number(C.value) < Number(e) && (C.value = Number(e)), Number(w.value) < Number(e) && (w.value = Number(e));
415
- }), b(() => x.max, (e) => {
416
- Number(C.value) > Number(e) && (C.value = Number(e)), Number(w.value) > Number(e) && (w.value = Number(e));
417
- });
418
- let Dt = v(null), M = v({
419
- width: 1,
420
- height: 1
421
- }), N = v(null);
422
- le(() => {
423
- if (T.value) {
424
- let e = c(() => {
425
- let { width: e, height: t } = l({ chart: Dt.value });
426
- M.value.width = e, M.value.height = t - 47;
427
- });
428
- N.value = new ResizeObserver(e), N.value.observe(Dt.value);
429
- }
430
- }), ce(() => {
431
- N.value && N.value.disconnect();
432
- });
433
- let P = d(() => Math.max(...x.allMinimaps.map((e) => e.series.length), x.minimap.length || 0)), F = d(() => {
434
- if (!P.value) return 0;
435
- let e = Math.max(1, P.value - +!!x.minimapCompact);
436
- return M.value.width / e;
437
- }), Ot = d(() => {
438
- let e = [];
439
- 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));
440
- return e.length ? {
441
- min: Math.min(...e),
442
- max: Math.max(...e)
443
- } : {
444
- min: 0,
445
- max: 1
446
- };
447
- }), I = d(() => Ot.value.min), L = d(() => Ot.value.max), kt = d(() => I.value < 0 && L.value > 0 || L.value <= 0 ? I.value : 0), At = d(() => Math.max(1e-9, Math.max(Math.abs(I.value), Math.abs(L.value)))), jt = d(() => I.value < 0 && L.value > 0), Mt = (e) => {
448
- let t = Math.max(1, M.value.height);
449
- if (jt.value) {
450
- let n = At.value;
451
- return (1 - (Math.max(-1, Math.min(1, e / n)) + 1) / 2) * t;
452
- } else {
453
- let n = Math.min(0, I.value), r = Math.max(0, L.value);
454
- return t - (e - n) / Math.max(1e-9, r - n) * t;
455
- }
456
- }, Nt = d(() => Mt(0)), Pt = d(() => x.allMinimaps.length ? x.allMinimaps.filter((e) => e.type === "bar").length : 0), Ft = d(() => F.value / (Pt.value || 1) * .8);
457
- function It(e, t, n) {
458
- let r = Ft.value, i = Math.max(1, Pt.value), a = P.value - 1;
459
- return n === 0 ? e + r / 2 * t : n === a ? e - r / 2 * (i - t) : e - i * r / 2 + t * r;
460
- }
461
- function Lt(e, t) {
462
- return [0, P.value - 1].includes(t) ? Ft.value / 2 : Ft.value;
463
- }
464
- function Rt(e, t, n) {
465
- let r = (e, t, n) => Math.max(t, Math.min(n, e)), i = 1e-9;
466
- if (t <= 0) {
467
- let t = Math.max(i, 0 - e);
468
- return (r) => n - (r - e) / t * n;
469
- }
470
- if (e >= 0) {
471
- let e = Math.max(i, t - 0);
472
- return (t) => n - (t - 0) / e * n;
473
- }
474
- let a = Math.max(i, Math.max(Math.abs(e), Math.abs(t)));
475
- return (e) => (1 - (r(e / a, -1, 1) + 1) / 2) * n;
476
- }
477
- function zt(t, i = !1) {
478
- if (!t || !t.length) return {
479
- fullSet: "",
480
- points: [],
481
- selectionSet: "",
482
- sliced: [],
483
- firstPlot: null,
484
- lastPlot: null,
485
- hasFull: !1,
486
- hasSelection: !1,
487
- fullMarkers: [],
488
- selectionMarkers: []
489
- };
490
- let a = Math.max(1, M.value.height), o = Rt(I.value, L.value, a), s = t.length, c = Math.min(Math.max(0, Q.value), Math.max(0, s - 1)), te = Math.min(s, Math.max(c + 1, $.value)), l = t.map((e, t) => {
491
- let n = e, r = Number.isFinite(n), i = F.value * t + (x.minimapCompact ? 0 : F.value / 2), a = o(0);
492
- return {
493
- x: i,
494
- y: r ? o(n) : NaN,
495
- v: n,
496
- value: n == null ? null : r ? n : null,
497
- y0: a,
498
- i: t
499
- };
500
- }), 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)), u = re.filter((e) => e.i >= c && e.i < te), d = l.slice(c, te);
501
- return {
502
- fullSet: l.length >= 2 ? x.smoothMinimap || i ? x.cutNullValues ? r(l) : n(l.filter((e) => e.value != null)) : x.cutNullValues ? e(l) : ee(l.filter((e) => e.value != null)) : "",
503
- points: l,
504
- selectionSet: d.length >= 2 ? x.smoothMinimap || i ? x.cutNullValues ? r(d) : n(d.filter((e) => e.value != null)) : x.cutNullValues ? e(d) : ee(d.filter((e) => e.value != null)) : "",
505
- sliced: d,
506
- firstPlot: l[c] || null,
507
- lastPlot: l[Math.max(0, te - 1)] || null,
508
- hasFull: l.length >= 2,
509
- hasSelection: d.length >= 2,
510
- fullMarkers: re,
511
- selectionMarkers: u
512
- };
513
- }
514
- let R = d(() => x.minimap.length ? zt(x.minimap) : {
515
- fullSet: "",
516
- selectionSet: "",
517
- sliced: [],
518
- firstPlot: null,
519
- lastPlot: null,
520
- hasFull: !1,
521
- hasSelection: !1
522
- }), z = d(() => x.allMinimaps.length ? x.allMinimaps.map((e, t) => {
523
- let n = zt(e?.series || [], !!e.smooth), r = e?.id ?? e?.name ?? t;
524
- return {
525
- key: typeof r == "object" ? JSON.stringify(r) : String(r),
526
- color: e?.color,
527
- ...n,
528
- isVisible: e.isVisible,
529
- type: e.type || "line"
530
- };
531
- }) : []), B = d(() => {
532
- let e = Q.value, t = Math.max(e + 1, $.value);
533
- return {
534
- x: F.value * e + (x.minimapCompact ? 0 : F.value / 2),
535
- width: F.value * (t - e) - F.value
536
- };
537
- }), V = v(x.minimapSelectedIndex);
538
- function Bt(e) {
539
- V.value = Sn(x.valueStart) + e;
540
- }
541
- let Vt = te(Bt, 60);
542
- b(() => x.minimapSelectedIndex, (e, t) => {
543
- if ([null, void 0].includes(e)) {
544
- V.value = null;
545
- return;
546
- }
547
- e !== t && Vt(e);
548
- }, { immediate: !0 });
549
- function Ht(e) {
550
- V.value = e;
551
- let t = Q.value, n = $.value;
552
- e >= t && e < n && !Y.value && D("trapMouse", e - t);
553
- }
554
- let Ut = v(null), Wt = v(null);
555
- function H(e) {
556
- C.value = e, Ut.value && (Ut.value.value = e), D("update:start", Number(C.value));
557
- }
558
- function U(e) {
559
- w.value = e, Wt.value && (Wt.value.value = e), D("update:end", Number(w.value));
560
- }
561
- let Gt = d(() => x.valueEnd - x.valueStart), Kt = d(() => Gt.value < x.max - x.min), W = v(!1), qt = v(null), Jt = d(() => (lt.value - 48) / (x.max - x.min) * Gt.value), Yt = d(() => Math.max(1, lt.value - at - Jt.value)), Xt = d(() => Math.max(1, x.max - x.min - Gt.value)), Zt = d(() => Xt.value / Yt.value), Qt = v(0), $t = v(0), en = v(0), tn = v(0), G = null, K = null, q = null, J = null, nn = v(x.min);
562
- function rn(e) {
563
- if (!S.value) return x.min;
564
- let t = S.value.getBoundingClientRect(), n = t.left + at / 2, r = t.right - at / 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);
565
- return Math.round(x.min + a * o);
566
- }
567
- let an = async (e) => {
568
- if (Z.value = !0, !x.enableSelectionDrag) return;
569
- let t = e.type === "touchstart";
570
- t || e.stopPropagation();
571
- let n = t && e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null, r = t ? n ? n.target : null : e.target;
572
- if (!r || !(r instanceof Element) || r.classList && r.classList.contains("range-handle")) return;
573
- W.value = !0;
574
- let a = t ? n ? n.clientX : 0 : e.clientX;
575
- if (qt.value = a, Qt.value = a, x.focusOnDrag && !Kt.value && S.value) {
576
- nn.value = rn(a);
577
- 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 = nn.value - r;
578
- o = Math.max(x.min, Math.min(o, x.max - n));
579
- let ee = Math.min(x.max, o + n);
580
- H(o), U(ee), i(S.value, "mouseup"), await oe(), i(S.value, "mousedown", { clientX: a });
581
- }
582
- $t.value = Number(C.value), en.value = Number(w.value), tn.value = Zt.value, G = t ? "touchmove" : "mousemove", K = t ? "touchend" : "mouseup", q = t ? sn : on, J = t ? un : ln, window.addEventListener(G, q, { passive: !1 }), window.addEventListener(K, J);
583
- };
584
- function on(e) {
585
- W.value && cn(e.clientX);
586
- }
587
- function sn(e) {
588
- if (!W.value || !S.value) return;
589
- let t = e.target;
590
- if (!(t instanceof Element) || !S.value.contains(t) || t.classList && t.classList.contains("range-handle")) return;
591
- e.preventDefault();
592
- let n = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
593
- n && cn(n.clientX);
594
- }
595
- function cn(e) {
596
- if (!W.value) return;
597
- let t = rn(Qt.value), n = rn(e) - t, r = Math.max(1, en.value - $t.value), i = Math.round($t.value + n), a = x.min, o = x.max - r;
598
- i < a && (i = a), i > o && (i = o);
599
- let ee = i + r;
600
- H(i), U(ee);
601
- }
602
- function ln() {
603
- dn();
604
- }
605
- function un() {
606
- dn();
607
- }
608
- function dn() {
609
- W.value = !1, G && q && window.removeEventListener(G, q), K && J && window.removeEventListener(K, J), G = K = null, q = J = null;
610
- }
611
- let Y = v(!1), X = v(null), fn = v(null), pn = v(1), mn = v(1), Z = v(!1);
612
- function hn() {
613
- X.value && (pn.value = X.value.getBoundingClientRect().width);
614
- }
615
- function gn() {
616
- fn.value && (mn.value = fn.value.getBoundingClientRect().width);
617
- }
618
- let _n = v(0);
619
- function vn(e) {
620
- _n.value = +(e === "start");
621
- }
622
- let yn = v(!1), bn = v({
623
- width: 0,
624
- left: 0
625
- });
626
- b([C, w], async () => {
627
- if (await oe(), !X.value || !fn.value) {
628
- yn.value = !1, bn.value = {
629
- width: 0,
630
- left: 0
631
- };
632
- return;
633
- }
634
- let e = X.value.getBoundingClientRect(), t = fn.value.getBoundingClientRect();
635
- yn.value = e.x + e.width > t.x;
636
- let n = e.x + e.width / 2, r = t.x + t.width / 2, i = e.width + t.width;
637
- bn.value = {
638
- width: i,
639
- left: (n + r) / 2 - i / 2
640
- };
641
- }), ue(() => {
642
- hn(), gn();
643
- }), b(() => x.labelLeft, () => {
644
- oe(hn);
645
- }, { deep: !0 }), b(() => x.labelRight, () => {
646
- oe(gn);
647
- }, { deep: !0 }), ot({
648
- setStartValue: H,
649
- setEndValue: U
650
- }), ce(() => {
651
- N.value && N.value.disconnect(), G && q && window.removeEventListener(G, q), K && J && window.removeEventListener(K, J), G = K = null, q = J = null;
652
- });
653
- let xn = d(() => Math.max(1, x.max - x.min));
654
- function Sn(e) {
655
- let t = Math.floor(e - x.min);
656
- return Math.min(Math.max(0, t), xn.value);
657
- }
658
- function Cn(e) {
659
- let t = Math.ceil(e - x.min);
660
- return Math.min(Math.max(0, t), xn.value);
661
- }
662
- let Q = d(() => Sn(C.value)), $ = d(() => Cn(w.value)), wn = d(() => {
663
- if (!Tt.value.length) return null;
664
- if (V.value >= Q.value && V.value < $.value) {
665
- let e = V.value;
666
- return {
667
- x1: F.value * e + (x.minimapCompact ? 0 : F.value / 2),
668
- x2: F.value * e + (x.minimapCompact ? 0 : F.value / 2),
669
- y1: 0,
670
- y2: Math.max(M.value.height, 0),
671
- stroke: x.minimapIndicatorColor,
672
- "stroke-linecap": "round",
673
- "stroke-dasharray": 2,
674
- "stroke-width": 1
675
- };
676
- } else return null;
677
- });
678
- return (e, t) => (_(), p("div", {
679
- "data-minimap": T.value,
680
- "data-dom-to-png-ignore": "",
681
- "data-dom-to-png-ignore-layout": "",
682
- style: g([{ padding: "0 48px" }, {
683
- maxWidth: s.maxWidth ? s.maxWidth + "px" : void 0,
684
- margin: s.maxWidth ? "0 auto" : void 0
685
- }]),
686
- class: "vue-data-ui-zoom",
687
- ref_key: "zoomWrapper",
688
- ref: S,
689
- onMousedown: an,
690
- onTouchstart: an,
691
- onTouchend: t[11] ||= (e) => Z.value = !1
692
- }, [m("div", ve, [s.valueStart !== s.refreshStartPoint || s.valueEnd !== ut.value ? (_(), p("div", ye, [de(e.$slots, "reset-action", { reset: Et }, () => [m("button", {
693
- tabindex: "0",
694
- role: "button",
695
- class: "vue-data-ui-refresh-button",
696
- style: g({
697
- top: T.value ? "36px" : "-16px",
698
- cursor: s.isCursorPointer ? "pointer" : "default"
699
- }),
700
- onClick: Et
701
- }, [ie(ne, {
702
- name: "refresh",
703
- stroke: s.textColor
704
- }, null, 8, ["stroke"])], 4)], !0)])) : f("", !0)]), m("div", {
705
- class: "double-range-slider",
706
- ref_key: "minimapWrapper",
707
- ref: Dt,
708
- style: g([{ "z-index": "0" }, T.value ? {
709
- "--minimap-unit-px": F.value + "px",
710
- "--minimap-offset-px": (s.minimapCompact ? 0 : F.value / 2) + "px"
711
- } : void 0]),
712
- onMouseenter: t[9] ||= (e) => Z.value = !0,
713
- onMouseleave: t[10] ||= (e) => Z.value = !1
714
- }, [
715
- T.value ? (_(), p("div", be, [(_(), p("svg", {
716
- key: `mm-${s.minimapMerged ? "merged" : "split"}-${s.minimapCompact ? "compact" : "normal"}`,
717
- xmlns: pe(o),
718
- viewBox: `0 0 ${Math.max(0, M.value.width)} ${Math.max(0, M.value.height)}`
719
- }, [
720
- m("defs", null, [ie(re, {
721
- t: "linear",
722
- id: ct.value,
723
- x1: "0%",
724
- y1: "0%",
725
- x2: "0%",
726
- y2: "100%",
727
- stops: [[
728
- "0%",
729
- s.minimapLineColor,
730
- .31
731
- ], [
732
- "100%",
733
- "transparent",
734
- 0
735
- ]]
736
- }, null, 8, ["id", "stops"])]),
737
- s.minimapCompact ? (_(), p("rect", {
738
- key: 0,
739
- class: "vue-ui-zoom-minimap-frame",
740
- x: 0,
741
- y: 0,
742
- width: M.value.width,
743
- height: M.value.height,
744
- fill: "none",
745
- stroke: s.minimapFrameColor,
746
- rx: 3
747
- }, null, 8, Se)) : f("", !0),
748
- s.minimapMerged ? (_(), p("path", {
749
- key: 1,
750
- d: `M${R.value.fullSet}`,
751
- stroke: `${s.minimapLineColor}`,
752
- fill: "none",
753
- "stroke-width": "1",
754
- "stroke-linecap": "round",
755
- "stroke-linejoin": "round",
756
- style: { opacity: "0.6" }
757
- }, null, 8, Ce)) : (_(), 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", {
758
- key: 0,
759
- x: It(n.x, t, r),
760
- width: Lt(t, r),
761
- y: n.v >= 0 ? n.y : n.y0,
762
- height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
763
- fill: e.color,
764
- style: { opacity: "0.6" }
765
- }, null, 8, we)) : 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", {
766
- key: 0,
767
- d: `M ${e.fullSet}`,
768
- fill: "none",
769
- stroke: e.color,
770
- style: { opacity: "0.6" }
771
- }, null, 8, Te)) : f("", !0), e.isVisible ? (_(!0), p(u, { key: 1 }, y(e.fullMarkers, (t) => (_(), p("circle", {
772
- key: `sel-dot-under-${e.key}-${t.i}`,
773
- cx: t.x,
774
- cy: t.y,
775
- r: "2",
776
- fill: e.color,
777
- stroke: j.value,
778
- "stroke-width": "0.5",
779
- style: { opacity: "0.6" }
780
- }, null, 8, Ee))), 128)) : f("", !0)]))), 128))], 64)),
781
- m("rect", {
782
- x: B.value.x,
783
- width: B.value.width < 0 ? 0 : B.value.width,
784
- height: Math.max(M.value.height, 0),
785
- y: 0,
786
- fill: j.value,
787
- rx: s.minimapSelectionRadius,
788
- stroke: "none"
789
- }, null, 8, De),
790
- m("rect", {
791
- x: B.value.x,
792
- width: B.value.width < 0 ? 0 : B.value.width,
793
- height: Math.max(M.value.height, 0),
794
- y: 0,
795
- rx: s.minimapSelectionRadius,
796
- fill: j.value
797
- }, null, 8, Oe),
798
- m("rect", {
799
- x: B.value.x,
800
- width: B.value.width < 0 ? 0 : B.value.width,
801
- height: Math.max(M.value.height, 0),
802
- y: 0,
803
- fill: s.minimapSelectedColor,
804
- rx: s.minimapSelectionRadius,
805
- style: g({ opacity: s.minimapSelectedColorOpacity })
806
- }, null, 12, ke),
807
- V.value !== null && !Y.value ? (_(), p("line", se(ae({ key: 3 }, wn.value)), null, 16)) : f("", !0),
808
- !s.minimapMerged && kt.value < 0 ? (_(), p("line", {
809
- key: 4,
810
- class: "slicer-minimap-zero-line",
811
- x1: 0,
812
- x2: M.value.width,
813
- y1: Nt.value,
814
- y2: Nt.value,
815
- stroke: s.minimapFrameColor,
816
- "stroke-width": "0.5"
817
- }, null, 8, Ae)) : f("", !0),
818
- s.minimapMerged ? (_(), p(u, { key: 5 }, [R.value && R.value.sliced && R.value.sliced.length ? (_(), p(u, { key: 0 }, [R.value.selectionSet ? (_(), p("path", {
819
- key: 0,
820
- 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`,
821
- fill: `url(#${ct.value})`,
822
- stroke: "none",
823
- style: { opacity: "1" }
824
- }, null, 8, je)) : f("", !0), R.value.selectionSet ? (_(), p("path", {
825
- key: 1,
826
- d: `M ${R.value.selectionSet}`,
827
- stroke: `${s.minimapLineColor}`,
828
- fill: "transparent",
829
- "stroke-width": "2",
830
- "stroke-linecap": "round",
831
- "stroke-linejoin": "round"
832
- }, null, 8, Me)) : f("", !0)], 64)) : f("", !0)], 64)) : (_(), p("g", Ne, [(_(!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", {
833
- key: 0,
834
- x: It(n.x, t, r),
835
- width: Lt(t, r),
836
- y: n.v >= 0 ? n.y : n.y0,
837
- height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
838
- fill: e.color,
839
- style: g({ opacity: +(r >= s.valueStart && r <= s.valueEnd - 1) })
840
- }, null, 12, Pe)) : 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", {
841
- key: 0,
842
- d: `M ${e.selectionSet}`,
843
- stroke: e.color,
844
- fill: "transparent",
845
- "stroke-width": "2",
846
- "stroke-linecap": "round",
847
- "stroke-linejoin": "round"
848
- }, null, 8, Fe)) : f("", !0)]))), 128))])),
849
- T.value && s.minimapCompact ? (_(), p("rect", {
850
- key: 7,
851
- class: "vue-ui-zoom-compact-minimap-handle",
852
- x: B.value.x - Math.min(40, Math.max(20, s.handleWidth)),
853
- y: 0,
854
- width: Math.min(40, Math.max(20, s.handleWidth)),
855
- height: M.value.height,
856
- fill: s.handleFill || j.value,
857
- stroke: s.handleBorderColor || s.textColor,
858
- "stroke-width": s.handleBorderWidth,
859
- rx: 3
860
- }, null, 8, Ie)) : f("", !0),
861
- s.handleType && s.handleType !== "empty" ? (_(), p("svg", {
862
- key: 8,
863
- x: B.value.x - Math.min(40, Math.max(20, s.handleWidth)),
864
- y: 0,
865
- width: Math.min(40, Math.max(20, s.handleWidth)),
866
- height: M.value.height,
867
- viewBox: "0 0 20 20"
868
- }, [s.handleType === "arrow" ? (_(), p("path", {
869
- key: 0,
870
- 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",
871
- fill: j.value,
872
- stroke: s.handleIconColor || s.textColor,
873
- "stroke-width": .618,
874
- "stroke-linejoin": "round",
875
- "stroke-linecap": "round"
876
- }, null, 8, Re)) : s.handleType === "chevron" ? (_(), p("path", {
877
- key: 1,
878
- d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
879
- fill: "none",
880
- stroke: s.handleIconColor || s.textColor,
881
- "stroke-width": .618,
882
- "stroke-linejoin": "round",
883
- "stroke-linecap": "round"
884
- }, null, 8, ze)) : s.handleType === "grab" ? (_(), p("path", {
885
- key: 2,
886
- 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",
887
- fill: s.handleIconColor || s.textColor,
888
- stroke: "none",
889
- opacity: "0.6"
890
- }, null, 8, Be)) : f("", !0)], 8, Le)) : f("", !0),
891
- T.value && s.minimapCompact ? (_(), p("rect", {
892
- key: 9,
893
- class: "vue-ui-zoom-compact-minimap-handle",
894
- x: B.value.x + B.value.width,
895
- y: 0,
896
- width: Math.min(40, Math.max(20, s.handleWidth)),
897
- height: M.value.height,
898
- fill: s.handleFill || j.value,
899
- stroke: s.handleBorderColor || s.textColor,
900
- "stroke-width": s.handleBorderWidth,
901
- rx: 3
902
- }, null, 8, Ve)) : f("", !0),
903
- s.handleType && s.handleType !== "empty" ? (_(), p("svg", {
904
- key: 10,
905
- x: B.value.x + B.value.width,
906
- y: 0,
907
- width: Math.min(40, Math.max(20, s.handleWidth)),
908
- height: M.value.height,
909
- viewBox: "0 0 20 20"
910
- }, [s.handleType === "arrow" ? (_(), p("path", {
911
- key: 0,
912
- 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",
913
- fill: j.value,
914
- stroke: s.handleIconColor || s.textColor,
915
- "stroke-width": .618,
916
- "stroke-linejoin": "round",
917
- "stroke-linecap": "round"
918
- }, null, 8, Ue)) : s.handleType === "chevron" ? (_(), p("path", {
919
- key: 1,
920
- d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
921
- fill: "none",
922
- stroke: s.handleIconColor || s.textColor,
923
- "stroke-width": .618,
924
- "stroke-linejoin": "round",
925
- "stroke-linecap": "round"
926
- }, null, 8, We)) : s.handleType === "grab" ? (_(), p("path", {
927
- key: 2,
928
- 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",
929
- fill: s.handleIconColor || s.textColor,
930
- stroke: "none",
931
- opacity: "0.6"
932
- }, null, 8, Ge)) : f("", !0)], 8, He)) : f("", !0),
933
- s.minimapMerged ? (_(), p(u, { key: 11 }, [
934
- R.value && R.value.firstPlot && R.value.firstPlot.value !== null ? (_(), p("circle", {
935
- key: 0,
936
- cx: R.value.firstPlot.x,
937
- cy: R.value.firstPlot.y,
938
- "stroke-width": "0.5",
939
- stroke: j.value,
940
- r: "4",
941
- fill: s.minimapLineColor
942
- }, null, 8, Ke)) : f("", !0),
943
- R.value && R.value.firstPlot && R.value.firstPlot.value !== null ? (_(), p("circle", {
944
- key: 1,
945
- cx: R.value.firstPlot.x,
946
- cy: R.value.firstPlot.y,
947
- r: "2",
948
- fill: j.value
949
- }, null, 8, qe)) : f("", !0),
950
- R.value && R.value.lastPlot && R.value.lastPlot.value !== null ? (_(), p("circle", {
951
- key: 2,
952
- cx: R.value.lastPlot.x,
953
- cy: R.value.lastPlot.y,
954
- "stroke-width": "0.5",
955
- stroke: j.value,
956
- r: "4",
957
- fill: s.minimapLineColor
958
- }, null, 8, Je)) : f("", !0),
959
- R.value && R.value.lastPlot && R.value.lastPlot.value !== null ? (_(), p("circle", {
960
- key: 3,
961
- cx: R.value.lastPlot.x,
962
- cy: R.value.lastPlot.y,
963
- r: "2",
964
- fill: j.value
965
- }, null, 8, Ye)) : f("", !0)
966
- ], 64)) : (_(), p("g", Xe, [(_(!0), p(u, null, y(z.value.filter((e) => e.type === "line"), (e) => (_(), p("g", { key: String(e.key) }, [
967
- e.isVisible ? (_(!0), p(u, { key: 0 }, y(e.selectionMarkers, (t) => (_(), p("circle", {
968
- key: `sel-dot-${e.key}-${t.i}`,
969
- cx: t.x,
970
- cy: t.y,
971
- r: "2.5",
972
- fill: e.color,
973
- stroke: j.value,
974
- "stroke-width": "0.5"
975
- }, null, 8, Ze))), 128)) : f("", !0),
976
- e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (_(), p("circle", {
977
- key: 1,
978
- cx: e.firstPlot.x,
979
- cy: e.firstPlot.y,
980
- "stroke-width": "0.5",
981
- stroke: j.value,
982
- r: "4",
983
- fill: e.color
984
- }, null, 8, Qe)) : f("", !0),
985
- e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (_(), p("circle", {
986
- key: 2,
987
- cx: e.firstPlot.x,
988
- cy: e.firstPlot.y,
989
- r: "2",
990
- fill: j.value
991
- }, null, 8, $e)) : f("", !0),
992
- e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (_(), p("circle", {
993
- key: 3,
994
- cx: e.lastPlot.x,
995
- cy: e.lastPlot.y,
996
- "stroke-width": "0.5",
997
- stroke: j.value,
998
- r: "4",
999
- fill: e.color
1000
- }, null, 8, et)) : f("", !0),
1001
- e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (_(), p("circle", {
1002
- key: 4,
1003
- cx: e.lastPlot.x,
1004
- cy: e.lastPlot.y,
1005
- r: "2",
1006
- fill: j.value
1007
- }, null, 8, tt)) : f("", !0)
1008
- ]))), 128))])),
1009
- (_(!0), p(u, null, y(Tt.value, (e, n) => (_(), p("rect", {
1010
- key: `trap-${n}`,
1011
- y: 0,
1012
- height: Math.max(M.value.height, 0),
1013
- fill: "transparent",
1014
- style: g([{ "pointer-events": "all !important" }, { cursor: e >= Q.value && e < $.value && s.enableSelectionDrag ? Y.value ? "grabbing" : "grab" : "default" }]),
1015
- x: F.value * n - (s.minimapCompact ? F.value / 2 : 0),
1016
- width: F.value < 0 ? 0 : F.value,
1017
- onMousedown: t[0] ||= (e) => Y.value = !0,
1018
- onMouseup: t[1] ||= (e) => Y.value = !1,
1019
- onMouseenter: (t) => Ht(e),
1020
- onMouseleave: t[2] ||= (e) => {
1021
- V.value = null, D("trapMouse", null);
1022
- }
1023
- }, null, 44, nt))), 128))
1024
- ], 8, xe))])) : f("", !0),
1025
- m("div", {
1026
- class: "slider-track",
1027
- style: g({ visibility: T.value && s.minimapCompact ? "hidden" : "visible" })
1028
- }, null, 4),
1029
- m("div", {
1030
- class: h({
1031
- "range-highlight": !0,
1032
- move: s.enableSelectionDrag
1033
- }),
1034
- onMousedown: t[3] ||= (e) => Y.value = !0,
1035
- onMouseup: t[4] ||= (e) => Y.value = !1,
1036
- style: g({
1037
- ...k.value,
1038
- cursor: Y.value ? "grabbing" : "grab",
1039
- visibility: T.value && s.minimapCompact ? "hidden" : "visible"
1040
- })
1041
- }, null, 38),
1042
- s.enableRangeHandles ? ge((_(), p("input", {
1043
- key: 1,
1044
- ref_key: "rangeStart",
1045
- ref: Ut,
1046
- type: "range",
1047
- class: h({
1048
- "range-left": !0,
1049
- "range-handle": !0,
1050
- "range-minimap": T.value && s.verticalHandles,
1051
- "range-invisible": T.value && s.minimapCompact
1052
- }),
1053
- min: s.min,
1054
- max: E.value && s.minimapCompact ? A.value : s.max,
1055
- step: 1,
1056
- "onUpdate:modelValue": t[5] ||= (e) => bt.value = e,
1057
- onMouseenter: t[6] ||= (e) => vn("start")
1058
- }, null, 42, rt)), [[
1059
- he,
1060
- bt.value,
1061
- void 0,
1062
- { number: !0 }
1063
- ]]) : f("", !0),
1064
- s.enableRangeHandles ? ge((_(), p("input", {
1065
- key: 2,
1066
- ref_key: "rangeEnd",
1067
- ref: Wt,
1068
- type: "range",
1069
- class: h({
1070
- "range-right": !0,
1071
- "range-handle": !0,
1072
- "range-minimap": T.value && s.verticalHandles,
1073
- "range-invisible": T.value && s.minimapCompact
1074
- }),
1075
- min: s.min,
1076
- max: E.value && s.minimapCompact ? A.value : s.max,
1077
- step: 1,
1078
- "onUpdate:modelValue": t[7] ||= (e) => xt.value = e,
1079
- onMouseenter: t[8] ||= (e) => vn("end")
1080
- }, null, 42, it)), [[
1081
- he,
1082
- xt.value,
1083
- void 0,
1084
- { number: !0 }
1085
- ]]) : f("", !0),
1086
- s.labelLeft ? (_(), p("div", {
1087
- key: 3,
1088
- ref_key: "tooltipLeft",
1089
- ref: X,
1090
- class: h({
1091
- "range-tooltip": !0,
1092
- "range-tooltip-visible": Z.value,
1093
- "range-tooltip-arrow": k.value.arrowLeft && !s.verticalHandles,
1094
- "range-tooltip-arrow-left": !k.value.arrowLeft && !s.verticalHandles
1095
- }),
1096
- style: g({
1097
- left: k.value.tooltipLeft,
1098
- color: pe(a)(s.selectColor),
1099
- backgroundColor: s.selectColor,
1100
- border: `1px solid ${j.value}`,
1101
- zIndex: `${_n.value + 4}`,
1102
- visibility: yn.value || s.labelLeft === s.labelRight ? "hidden" : "visible",
1103
- top: T.value && s.minimapCompact ? "calc(-100% - 18px)" : "-100%"
1104
- })
1105
- }, fe(s.labelLeft), 7)) : f("", !0),
1106
- (yn.value || s.labelLeft === s.labelRight) && (s.labelLeft || s.labelRight) ? (_(), p("div", {
1107
- key: 4,
1108
- ref: "tooltipMerge",
1109
- class: h({
1110
- "range-tooltip": !0,
1111
- "range-tooltip-visible": Z.value,
1112
- "range-tooltip-arrow": !0,
1113
- "range-tooltip-arrow-left": !k.value.arrowLeft && !s.verticalHandles,
1114
- "range-tooltip-arrow-right": !k.value.arrowRight && !s.verticalHandles
1115
- }),
1116
- style: g({
1117
- left: k.value.tooltipCenter,
1118
- width: bn.value.width + "px",
1119
- color: pe(a)(s.selectColor),
1120
- backgroundColor: s.selectColor,
1121
- border: `1px solid ${j.value}`,
1122
- zIndex: "4",
1123
- top: T.value && s.minimapCompact ? "calc(-100% - 18px)" : "-100%"
1124
- })
1125
- }, fe(s.labelLeft === s.labelRight ? s.labelLeft : `${s.labelLeft} - ${s.labelRight}`), 7)) : f("", !0),
1126
- s.labelRight ? (_(), p("div", {
1127
- key: 5,
1128
- ref_key: "tooltipRight",
1129
- ref: fn,
1130
- class: h({
1131
- "range-tooltip": !0,
1132
- "range-tooltip-visible": Z.value,
1133
- "range-tooltip-arrow": k.value.arrowRight && !s.verticalHandles,
1134
- "range-tooltip-arrow-right": !k.value.arrowRight && !s.verticalHandles
1135
- }),
1136
- style: g({
1137
- left: k.value.tooltipRight,
1138
- color: pe(a)(s.selectColor),
1139
- backgroundColor: s.selectColor,
1140
- border: `1px solid ${j.value}`,
1141
- zIndex: "4",
1142
- visibility: yn.value || s.labelLeft === s.labelRight ? "hidden" : "visible",
1143
- top: T.value && s.minimapCompact ? "calc(-100% - 18px)" : "-100%"
1144
- })
1145
- }, fe(s.labelRight), 7)) : f("", !0)
1146
- ], 36)], 44, _e));
1147
- }
1148
- }, [["__scopeId", "data-v-902e8a0c"]]);
1149
- //#endregion
1150
- export { ot as t };