vue-data-ui 3.22.10 → 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 (186) hide show
  1. package/dist/{Arrow-Ku6rQ87g.js → Arrow-DKx74WtM.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CdkCqtag.js → BaseDraggableDialog-3n8udWmh.js} +2 -2
  3. package/dist/{BaseIcon-CDTIUIKV.js → BaseIcon-CP5RWnqt.js} +1 -1
  4. package/dist/{BaseLegendToggle-BrQ2OlzI.js → BaseLegendToggle-DsWphmIb.js} +1 -1
  5. package/dist/{BaseZoomControls-CkEX0292.js → BaseZoomControls-C9_ygNN4.js} +2 -2
  6. package/dist/{ColorPicker-C959ZIW9.js → ColorPicker-3N_HVgXs.js} +2 -2
  7. package/dist/{DataTable-ByZy5gt1.js → DataTable-DzPEVvSo.js} +2 -2
  8. package/dist/{Legend-5VQGLnmx.js → Legend-C0xAnJdO.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-Bd8OzTqw.js → NonSvgPenAndPaper-B_mE5UbR.js} +3 -3
  10. package/dist/{PackageVersion-BoTvk0i5.js → PackageVersion-1MNr72Bz.js} +1 -1
  11. package/dist/{PenAndPaper-CLaZJl6K.js → PenAndPaper-CSMVXpg2.js} +3 -3
  12. package/dist/{Shape-B5ksaGa1.js → Shape-BfnXr1nJ.js} +1 -1
  13. package/dist/Slicer-C6qNUmZ4.js +1149 -0
  14. package/dist/SlicerPreview-BIdvqU32.js +1689 -0
  15. package/dist/{SparkTooltip-CbYYc-xb.js → SparkTooltip-uoUiL_P8.js} +1 -1
  16. package/dist/{Title-Cr3jP7Qd.js → Title-BuPs74IB.js} +1 -1
  17. package/dist/{Tooltip-CDbLl3TD.js → Tooltip-CA1rtSyl.js} +1 -1
  18. package/dist/{UserOptions-BUQOnoPR.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-COPbGrdd.js → dom-to-png-BdAFKZQg.js} +1 -1
  89. package/dist/{exposedLib-CZbtc2a6.js → exposedLib-Ciw6TGtP.js} +1 -1
  90. package/dist/{geoProjections-BbN7z57k.js → geoProjections-BCP_PoiB.js} +94 -94
  91. package/dist/{img-CNdXiUfZ.js → img-Bikk1dGb.js} +1 -1
  92. package/dist/{labelUtils-JaoYKi2N.js → labelUtils-BUhssos9.js} +1 -1
  93. package/dist/{lib-CnHx5WfV.js → lib-CFm_J26b.js} +3 -3
  94. package/dist/{package-BRBLwZUc.js → package-Bf-Nk9qU.js} +1 -1
  95. package/dist/{pdf-CEMzBeuV.js → pdf-zmz3l2uy.js} +1 -1
  96. package/dist/{render-common-DJXFRGhU.js → render-common-DEb-WjM1.js} +2 -2
  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/vue-data-ui.d.ts +1 -0
  102. package/dist/{useAutoSizeLabelsInsideViewbox-BUPt2iaP.js → useAutoSizeLabelsInsideViewbox-C9RNjsGv.js} +4 -4
  103. package/dist/{useConfig-DYM3f6EI.js → useConfig-C0V0eG7L.js} +1 -0
  104. package/dist/{useFitSvgText-CT3nmlaS.js → useFitSvgText-CXTzBplU.js} +3 -1
  105. package/dist/{useNestedProp-D8NuRneO.js → useNestedProp-BY6DNN3i.js} +1 -1
  106. package/dist/{useObjectBindings-CD31syQb.js → useObjectBindings-Djwpii4d.js} +1 -1
  107. package/dist/{usePrinter-B-X_Pub0.js → usePrinter-BH-xle1O.js} +2 -2
  108. package/dist/{canvas-lib-BOP_HS11.js → useResponsive-ZtArZtUf.js} +19 -1
  109. package/dist/{useSvgExport-SVIsDot8.js → useSvgExport-Ba9qBr9M.js} +6 -5
  110. package/dist/{useTableResponsive-B24Uwt2E.js → useTableResponsive-BAqJPR68.js} +2 -1
  111. package/dist/{useTimeLabels-BmBRv27Y.js → useTimeLabels-B9CEuiLZ.js} +1 -1
  112. package/dist/utils.js +3 -3
  113. package/dist/{vue-data-ui-Bx_8d3b_.js → vue-data-ui-Bme9usjG.js} +68 -68
  114. package/dist/vue-data-ui.js +72 -72
  115. package/dist/{vue-ui-3d-bar-CfUfbpSE.js → vue-ui-3d-bar-Ds1BPxqb.js} +9 -10
  116. package/dist/{vue-ui-accordion-Oo3IsX3-.js → vue-ui-accordion-nNxnZTg9.js} +4 -4
  117. package/dist/{vue-ui-age-pyramid-DD-4y5Jd.js → vue-ui-age-pyramid-CNCrH8Kd.js} +9 -10
  118. package/dist/{vue-ui-annotator-BvGE3lzE.js → vue-ui-annotator-BfZ8RTzJ.js} +15 -9
  119. package/dist/{vue-ui-bullet-DYOdbaO2.js → vue-ui-bullet-DscMmM2b.js} +10 -11
  120. package/dist/{vue-ui-bump-B8fJoxHF.js → vue-ui-bump-BvwU1_-N.js} +10 -11
  121. package/dist/{vue-ui-candlestick-BUP1JoNs.js → vue-ui-candlestick-Cp6r8ktf.js} +13 -13
  122. package/dist/{vue-ui-carousel-table-D-Bwhydt.js → vue-ui-carousel-table-CbtccW1g.js} +5 -5
  123. package/dist/{vue-ui-chestnut-C2VK2NEx.js → vue-ui-chestnut-C3Hmf1-m.js} +11 -11
  124. package/dist/{vue-ui-chord-AA-QjUQI.js → vue-ui-chord-DJk9j45J.js} +11 -12
  125. package/dist/{vue-ui-circle-pack-CdBFGYOK.js → vue-ui-circle-pack-CJe2wETT.js} +19 -20
  126. package/dist/{vue-ui-cursor-Cm_J_5Gk.js → vue-ui-cursor-BAi9omna.js} +4 -4
  127. package/dist/{vue-ui-dag-CgRph4-n.js → vue-ui-dag-D7BEbS71.js} +16 -14
  128. package/dist/{vue-ui-dashboard-BuPw5QjB.js → vue-ui-dashboard-BYFQjwgC.js} +70 -70
  129. package/dist/{vue-ui-digits-ClrukmcB.js → vue-ui-digits-Bx8nZl9d.js} +4 -4
  130. package/dist/{vue-ui-donut-DtQCrMKL.js → vue-ui-donut-BUX4ybT6.js} +3 -3
  131. package/dist/{vue-ui-donut-evolution-DHkiY-BD.js → vue-ui-donut-evolution-MWDjQPQ5.js} +13 -14
  132. package/dist/{vue-ui-donut-Bc-EPZvu.js → vue-ui-donut-jXRV-3ON.js} +17 -18
  133. package/dist/{vue-ui-dumbbell-BlHEH4Mw.js → vue-ui-dumbbell-CnwsHaIy.js} +13 -13
  134. package/dist/{vue-ui-flow-PjwAW2tY.js → vue-ui-flow-CKXGk4Lm.js} +10 -11
  135. package/dist/{vue-ui-funnel-DojI09FV.js → vue-ui-funnel-CJwD7s7e.js} +9 -10
  136. package/dist/{vue-ui-galaxy-txYIK_LG.js → vue-ui-galaxy-DL85_SWR.js} +12 -13
  137. package/dist/{vue-ui-gauge-CoL0OzSd.js → vue-ui-gauge-Dkx-aUQr.js} +10 -11
  138. package/dist/{vue-ui-geo-yuL-_sqF.js → vue-ui-geo-fkLF1rHB.js} +15 -14
  139. package/dist/{vue-ui-gizmo-CbC5zV3K.js → vue-ui-gizmo-S8w_p769.js} +4 -4
  140. package/dist/{vue-ui-heatmap-CwqsZIsR.js → vue-ui-heatmap-Dopkbn2N.js} +12 -13
  141. package/dist/{vue-ui-history-plot-CuWssH-D.js → vue-ui-history-plot-DDYpEapS.js} +11 -12
  142. package/dist/{vue-ui-horizontal-bar-Dyje3GND.js → vue-ui-horizontal-bar-Bi8WvKeD.js} +17 -17
  143. package/dist/{vue-ui-kpi-BdYenScF.js → vue-ui-kpi-BeJ-ajaS.js} +4 -4
  144. package/dist/{vue-ui-mini-loader-BbwE3vBT.js → vue-ui-mini-loader-D9pprk2c.js} +3 -3
  145. package/dist/{vue-ui-molecule-BBh31vmd.js → vue-ui-molecule-CBTgGZ-s.js} +9 -8
  146. package/dist/{vue-ui-mood-radar-B_6GFlaR.js → vue-ui-mood-radar-CF83PcCx.js} +10 -11
  147. package/dist/{vue-ui-nested-donuts-BWq-At5Y.js → vue-ui-nested-donuts-D5dO-Uyg.js} +12 -13
  148. package/dist/{vue-ui-onion-BwGbSE-6.js → vue-ui-onion-BxjaQKo8.js} +13 -14
  149. package/dist/{vue-ui-parallel-coordinate-plot-Bh9hNoqf.js → vue-ui-parallel-coordinate-plot-Dz6ozRAM.js} +12 -13
  150. package/dist/{vue-ui-quadrant-B72Y4Zuw.js → vue-ui-quadrant-Bnxpa6m5.js} +19 -18
  151. package/dist/{vue-ui-quick-chart-B3LF2ViM.js → vue-ui-quick-chart-CAE0-NYj.js} +11 -12
  152. package/dist/{vue-ui-radar-4v_E8oGX.js → vue-ui-radar-O4BhBOyp.js} +12 -13
  153. package/dist/{vue-ui-rating-CzLGCFWK.js → vue-ui-rating-DbxK-ftN.js} +3 -3
  154. package/dist/{vue-ui-relation-circle-B_8dyIv2.js → vue-ui-relation-circle-BZ0Xf-Nc.js} +10 -11
  155. package/dist/{vue-ui-ridgeline-BArLhskj.js → vue-ui-ridgeline-DHVTPiM6.js} +13 -14
  156. package/dist/{vue-ui-rings-Csn5BgLk.js → vue-ui-rings-DAfY1V--.js} +13 -14
  157. package/dist/{vue-ui-scatter-BBaOx94M.js → vue-ui-scatter-Cb63SWJT.js} +13 -14
  158. package/dist/{vue-ui-skeleton-KeIPGp9U.js → vue-ui-skeleton-DoIqQtIV.js} +4 -4
  159. package/dist/{vue-ui-smiley-C1mYDh4R.js → vue-ui-smiley-Da2jgkb7.js} +3 -3
  160. package/dist/{vue-ui-spark-trend-EqCqmHmU.js → vue-ui-spark-trend-Db-FsXch.js} +6 -7
  161. package/dist/{vue-ui-sparkbar-BPh45vBP.js → vue-ui-sparkbar-Ce55FP_3.js} +4 -4
  162. package/dist/{vue-ui-sparkgauge-CtouPcyW.js → vue-ui-sparkgauge-hB59dXm7.js} +4 -4
  163. package/dist/{vue-ui-sparkhistogram-D4sI0DHN.js → vue-ui-sparkhistogram-DjnaStBw.js} +7 -8
  164. package/dist/{vue-ui-sparkline-BDFZ78Fz.js → vue-ui-sparkline-D1dyhLvG.js} +6 -7
  165. package/dist/{vue-ui-sparkstackbar-CbTXIfxm.js → vue-ui-sparkstackbar-BhOBFjts.js} +5 -5
  166. package/dist/{vue-ui-stackbar-nMXIY9x8.js → vue-ui-stackbar-BZKw8WYn.js} +25 -24
  167. package/dist/{vue-ui-stackline-CzfXl5ah.js → vue-ui-stackline-DLFNVbAz.js} +25 -25
  168. package/dist/{vue-ui-strip-plot-BCf5nthl.js → vue-ui-strip-plot-DyN2WELD.js} +10 -11
  169. package/dist/{vue-ui-table-BAKkFXki.js → vue-ui-table-DL_R4ppI.js} +12 -11
  170. package/dist/{vue-ui-table-heatmap-CUMxqHKK.js → vue-ui-table-heatmap-C9gF__Np.js} +6 -6
  171. package/dist/{vue-ui-table-sparkline-BVTm16fd.js → vue-ui-table-sparkline-CT-0w9-a.js} +10 -8
  172. package/dist/{vue-ui-thermometer-CGeEW1KV.js → vue-ui-thermometer-MP0dliC3.js} +10 -11
  173. package/dist/{vue-ui-timer-Bz7EnsM1.js → vue-ui-timer-B5S-6Da4.js} +7 -8
  174. package/dist/{vue-ui-tiremarks-IOqtk_Rr.js → vue-ui-tiremarks-DcJiLDsm.js} +9 -10
  175. package/dist/{vue-ui-treemap-JxNNtb7v.js → vue-ui-treemap-CjldCPnX.js} +501 -489
  176. package/dist/{vue-ui-waffle-D34mcJWi.js → vue-ui-waffle-dZM-9z1J.js} +13 -14
  177. package/dist/{vue-ui-wheel-B_qEhyvk.js → vue-ui-wheel-or7a6-Ce.js} +10 -11
  178. package/dist/{vue-ui-word-cloud-TtObhd91.js → vue-ui-word-cloud-8BwQ0cuB.js} +15 -12
  179. package/dist/{vue-ui-world-R9o00A6c.js → vue-ui-world-Q0KZb7A_.js} +10 -10
  180. package/dist/{vue-ui-xy-Do34-UbE.js → vue-ui-xy-4uzwZJcj.js} +9 -9
  181. package/dist/{vue-ui-xy-CUt6sU1s.js → vue-ui-xy-DZIs53tH.js} +38 -30
  182. package/dist/{vue-ui-xy-canvas-C6eRRH--.js → vue-ui-xy-canvas-Dz9aii7f.js} +27 -27
  183. package/package.json +2 -2
  184. package/dist/Slicer-WsWTQPKt.js +0 -1150
  185. package/dist/SlicerPreview-3n516NyE.js +0 -1688
  186. package/dist/useResponsive-BfnK0KxU.js +0 -19
@@ -1,1688 +0,0 @@
1
- import { B as e, F as t, Jt as n, K as r, N as i, St as a, V as o, bt as ee, r as te, t as ne, z as re } from "./lib-CnHx5WfV.js";
2
- import { t as s } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { c, r as l } from "./canvas-lib-BOP_HS11.js";
4
- import { t as ie } from "./useResponsive-BfnK0KxU.js";
5
- import { t as ae } from "./BaseIcon-CDTIUIKV.js";
6
- import { t as oe } from "./DefGrad-DVBqDjhO.js";
7
- import { Fragment as u, computed as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as se, mergeProps as ce, nextTick as le, normalizeClass as h, normalizeProps as ue, normalizeStyle as g, onBeforeUnmount as de, onMounted as fe, onUpdated as pe, openBlock as _, ref as v, renderList as y, renderSlot as me, toDisplayString as he, unref as ge, useCssVars as _e, vModelText as ve, watch as ye, withDirectives as be, withKeys as xe, withModifiers as Se } from "vue";
8
- //#region src/atoms/SlicerPreview.vue
9
- var Ce = ["data-minimap"], we = {
10
- class: "vue-data-ui-slicer-labels",
11
- style: {
12
- position: "relative",
13
- "z-index": "1",
14
- "pointer-events": "none"
15
- }
16
- }, Te = {
17
- key: 0,
18
- style: {
19
- width: "100%",
20
- position: "relative",
21
- "pointer-events": "all"
22
- }
23
- }, Ee = {
24
- key: 0,
25
- class: "minimap",
26
- style: { width: "100%" }
27
- }, De = ["xmlns", "viewBox"], Oe = ["id"], ke = [
28
- "x",
29
- "width",
30
- "height"
31
- ], Ae = [
32
- "width",
33
- "height",
34
- "stroke"
35
- ], je = ["d", "stroke"], Me = ["d", "fill"], Ne = [
36
- "x",
37
- "y",
38
- "width",
39
- "height",
40
- "fill"
41
- ], Pe = [
42
- "d",
43
- "stroke",
44
- "stroke-dasharray"
45
- ], Fe = [
46
- "cx",
47
- "cy",
48
- "fill",
49
- "stroke"
50
- ], Ie = [
51
- "cx",
52
- "cy",
53
- "fill",
54
- "stroke"
55
- ], Le = [
56
- "x",
57
- "width",
58
- "height",
59
- "fill",
60
- "rx"
61
- ], Re = [
62
- "x",
63
- "width",
64
- "height",
65
- "rx",
66
- "fill"
67
- ], ze = [
68
- "x",
69
- "width",
70
- "height",
71
- "fill",
72
- "rx",
73
- "aria-valuemin",
74
- "aria-valuemax",
75
- "aria-valuenow",
76
- "aria-valuetext"
77
- ], Be = [
78
- "x2",
79
- "y1",
80
- "y2",
81
- "stroke"
82
- ], Ve = { key: "merged-tree" }, He = ["d", "stroke"], Ue = [
83
- "cx",
84
- "cy",
85
- "stroke",
86
- "fill"
87
- ], We = [
88
- "cx",
89
- "cy",
90
- "stroke",
91
- "fill"
92
- ], Ge = { key: "split-tree" }, Ke = [
93
- "x",
94
- "y",
95
- "width",
96
- "height",
97
- "fill"
98
- ], qe = [
99
- "d",
100
- "stroke",
101
- "stroke-dasharray"
102
- ], Je = [
103
- "cx",
104
- "cy",
105
- "fill",
106
- "stroke"
107
- ], Ye = ["width", "height"], Xe = [
108
- "x",
109
- "width",
110
- "height",
111
- "fill",
112
- "stroke",
113
- "stroke-width"
114
- ], Ze = ["transform"], Qe = ["width", "height"], $e = ["fill", "stroke"], et = ["stroke"], tt = ["fill"], nt = [
115
- "x",
116
- "width",
117
- "height",
118
- "fill",
119
- "stroke",
120
- "stroke-width"
121
- ], rt = ["transform"], it = ["width", "height"], at = ["fill", "stroke"], ot = ["stroke"], st = ["fill"], ct = {
122
- key: "merged-tree",
123
- style: { "pointer-events": "none" }
124
- }, lt = [
125
- "cx",
126
- "cy",
127
- "stroke",
128
- "fill"
129
- ], ut = [
130
- "cx",
131
- "cy",
132
- "fill"
133
- ], dt = [
134
- "cx",
135
- "cy",
136
- "stroke",
137
- "fill"
138
- ], ft = [
139
- "cx",
140
- "cy",
141
- "fill"
142
- ], pt = {
143
- key: 1,
144
- style: { "pointer-events": "none" }
145
- }, mt = [
146
- "d",
147
- "stroke",
148
- "stroke-dasharray"
149
- ], ht = [
150
- "cx",
151
- "cy",
152
- "fill",
153
- "stroke"
154
- ], gt = [
155
- "cx",
156
- "cy",
157
- "stroke",
158
- "fill"
159
- ], _t = [
160
- "cx",
161
- "cy",
162
- "fill"
163
- ], vt = [
164
- "cx",
165
- "cy",
166
- "stroke",
167
- "fill"
168
- ], yt = [
169
- "cx",
170
- "cy",
171
- "fill"
172
- ], bt = [
173
- "cx",
174
- "cy",
175
- "fill",
176
- "stroke"
177
- ], xt = [
178
- "step",
179
- "min",
180
- "max",
181
- "tabindex"
182
- ], St = [
183
- "step",
184
- "min",
185
- "max",
186
- "tabindex"
187
- ], Ct = {
188
- key: 3,
189
- class: "minimap-handle-overlay"
190
- }, wt = ["xmlns", "viewBox"], Tt = [
191
- "x",
192
- "width",
193
- "height"
194
- ], Et = [
195
- "x",
196
- "width",
197
- "height"
198
- ], Dt = 48, Ot = /*#__PURE__*/ s({
199
- __name: "SlicerPreview",
200
- props: {
201
- uuid: {
202
- type: String,
203
- default: ""
204
- },
205
- immediate: {
206
- type: Boolean,
207
- default: !0
208
- },
209
- background: {
210
- type: String,
211
- default: "#FFFFFF"
212
- },
213
- borderColor: {
214
- type: String,
215
- default: "#FFFFFF"
216
- },
217
- fontSize: {
218
- type: Number,
219
- default: 14
220
- },
221
- labelLeft: {
222
- type: [String, Number],
223
- default: ""
224
- },
225
- labelRight: {
226
- type: [String, Number],
227
- default: ""
228
- },
229
- textColor: {
230
- type: String,
231
- default: "#1A1A1A"
232
- },
233
- inputColor: {
234
- type: String,
235
- default: "#1A1A1A"
236
- },
237
- max: {
238
- type: Number,
239
- default: 0
240
- },
241
- min: {
242
- type: Number,
243
- default: 0
244
- },
245
- selectColor: {
246
- type: String,
247
- default: "#4A4A4A"
248
- },
249
- useResetSlot: {
250
- type: Boolean,
251
- default: !1
252
- },
253
- valueStart: {
254
- type: [Number, String],
255
- default: 0
256
- },
257
- valueEnd: {
258
- type: [Number, String],
259
- default: 0
260
- },
261
- minimap: {
262
- type: Array,
263
- default: []
264
- },
265
- smoothMinimap: {
266
- type: Boolean,
267
- default: !1
268
- },
269
- minimapSelectedColor: {
270
- type: String,
271
- default: "#1f77b4"
272
- },
273
- minimapSelectionRadius: {
274
- type: Number,
275
- default: 12
276
- },
277
- minimapLineColor: {
278
- type: String,
279
- default: "#2D353C"
280
- },
281
- minimapSelectedColorOpacity: {
282
- type: Number,
283
- default: .2
284
- },
285
- minimapSelectedIndex: {
286
- type: Number,
287
- default: null
288
- },
289
- minimapIndicatorColor: {
290
- type: String,
291
- default: "#2D353C"
292
- },
293
- refreshStartPoint: {
294
- type: Number,
295
- default: 0
296
- },
297
- refreshEndPoint: {
298
- type: Number,
299
- default: null
300
- },
301
- enableRangeHandles: {
302
- type: Boolean,
303
- default: !1
304
- },
305
- enableSelectionDrag: {
306
- type: Boolean,
307
- default: !0
308
- },
309
- verticalHandles: {
310
- type: Boolean,
311
- default: !1
312
- },
313
- timeLabels: { type: Array },
314
- isPreview: {
315
- type: Boolean,
316
- default: !1
317
- },
318
- preciseLabels: {
319
- type: Array,
320
- default() {
321
- return [];
322
- }
323
- },
324
- usePreciseLabels: {
325
- type: Boolean,
326
- default: !1
327
- },
328
- selectedSeries: { type: Object },
329
- customFormat: { type: [Function, null] },
330
- minimapCompact: {
331
- type: Boolean,
332
- default: !1
333
- },
334
- allMinimaps: {
335
- type: Array,
336
- default() {
337
- return [];
338
- }
339
- },
340
- minimapMerged: {
341
- type: Boolean,
342
- default: !1
343
- },
344
- minimapFrameColor: {
345
- type: String,
346
- default: "#e1e5e8"
347
- },
348
- cutNullValues: {
349
- type: Boolean,
350
- default: !1
351
- },
352
- focusOnDrag: {
353
- type: Boolean,
354
- default: !1
355
- },
356
- focusRangeRatio: {
357
- type: Number,
358
- default: .1
359
- },
360
- minScale: {
361
- type: Number,
362
- default: null
363
- },
364
- maxScale: {
365
- type: Number,
366
- default: null
367
- },
368
- forceZeroCenter: {
369
- type: Boolean,
370
- default: !1
371
- },
372
- maxWidth: {
373
- type: Number,
374
- default: null
375
- },
376
- isCursorPointer: {
377
- type: Boolean,
378
- default: !1
379
- },
380
- additionalMinimapHeight: {
381
- type: Number,
382
- default: 0
383
- },
384
- handleType: {
385
- type: String,
386
- default: ""
387
- },
388
- handleWidth: {
389
- type: Number,
390
- default: 20
391
- },
392
- handleBorderWidth: {
393
- type: Number,
394
- default: 1
395
- },
396
- handleIconColor: {
397
- type: String,
398
- default: null
399
- },
400
- handleBorderColor: {
401
- type: String,
402
- default: null
403
- },
404
- handleFill: {
405
- type: String,
406
- default: null
407
- },
408
- precision: {
409
- type: Number,
410
- default: 0
411
- },
412
- useValueRange: {
413
- type: Boolean,
414
- default: !1
415
- }
416
- },
417
- emits: [
418
- "futureStart",
419
- "futureEnd",
420
- "update:start",
421
- "update:end",
422
- "reset",
423
- "trapMouse",
424
- "trapMouseValue"
425
- ],
426
- setup(s, { expose: Ot, emit: kt }) {
427
- _e((e) => ({
428
- v387ab4e8: nn.value,
429
- v7bb82e00: P.value,
430
- v42303b71: an.value,
431
- v5bed6f30: s.selectColor,
432
- v99127c84: rn.value,
433
- v27b98ef0: b.additionalMinimapHeight
434
- }));
435
- let b = s;
436
- function At(e) {
437
- let t = Number(e) || 0;
438
- return b.precision <= 0 ? Math.round(t) : Number(t.toFixed(b.precision));
439
- }
440
- let x = v(null), S = v(b.min), C = v(b.max), w = d(() => !!b.allMinimaps.length), jt = v(r()), T = v(!1), E = d(() => w.value && b.minimapCompact), D = v(null), Mt = v(!1), Nt = v(0), Pt = v(0), Ft = v(null), It = v(!1), Lt = d(() => D.value !== null), Rt = d(() => b.useValueRange ? C.value : C.value - 1), zt = d(() => Math.max(1, Number(b.max) - Number(b.min)));
441
- function Bt(e) {
442
- return (Number(e) - Number(b.min)) / zt.value * 100;
443
- }
444
- function Vt(e) {
445
- return I.value.width * (Bt(e) / 100);
446
- }
447
- function Ht(e) {
448
- let t = Math.min(1, Math.max(0, e / Math.max(1, I.value.width)));
449
- return At(Number(b.min) + zt.value * t);
450
- }
451
- function Ut(e) {
452
- let t = b.useValueRange ? e?.y : e;
453
- return a(t) ? Number(t) : null;
454
- }
455
- function Wt(e, t) {
456
- return b.useValueRange ? Number(e?.x) : t + Number(b.min);
457
- }
458
- function Gt(e, t) {
459
- return b.useValueRange ? Vt(Wt(e, t)) : V.value * t + (b.minimapCompact ? 0 : V.value / 2);
460
- }
461
- let Kt = d(() => Math.min(40, Math.max(20, b.handleWidth))), qt = v(0), Jt = c((e) => M("futureStart", e), 0), Yt = c((e) => M("futureEnd", e), 0), O = d(() => b.precision > 0 ? 1 / 10 ** b.precision : 1), k = d({
462
- get: () => S.value,
463
- set(e) {
464
- let t = Math.min(Number(e), Number(C.value) - O.value);
465
- t !== S.value && (S.value = t, zn.value && (zn.value.value = String(t)), b.immediate ? M("update:start", Number(t)) : T.value && Jt(t));
466
- }
467
- }), A = d({
468
- get: () => C.value,
469
- set(e) {
470
- let t = Math.max(Number(e), Number(S.value) + O.value);
471
- t !== C.value && (C.value = t, Bn.value && (Bn.value.value = String(t)), b.immediate ? M("update:end", Number(t)) : T.value && Yt(t));
472
- }
473
- });
474
- function j() {
475
- clearTimeout(null), b.immediate || (M("update:start", Number(S.value)), M("update:end", Number(C.value))), T.value = !1;
476
- }
477
- let Xt = d(() => b.refreshEndPoint === null ? b.max : b.refreshEndPoint), M = kt, Zt = d(() => {
478
- if (b.useValueRange) return Bt(S.value);
479
- if (E.value) {
480
- let e = Math.max(1, R.value - 1);
481
- return An.value / e * 100;
482
- }
483
- let e = Math.max(1, b.max - b.min);
484
- return (S.value - b.min) / e * 100;
485
- }), Qt = d(() => {
486
- if (b.useValueRange) return Bt(C.value);
487
- if (E.value) {
488
- let e = Math.max(1, R.value - 1);
489
- return jn.value / e * 100;
490
- }
491
- let e = Math.max(1, b.max - b.min);
492
- return (C.value - b.min) / e * 100;
493
- }), $t = d(() => (Zt.value + Qt.value) / 2), en = d(() => {
494
- if (!x.value) return !1;
495
- let e = Math.max(1, b.max - b.min);
496
- return x.value.getBoundingClientRect().width * ((S.value - b.min) / e) - hr.value / 2 < 0;
497
- }), tn = d(() => {
498
- if (!x.value) return !1;
499
- let e = Math.max(1, b.max - b.min), t = x.value.getBoundingClientRect().width;
500
- return t * ((C.value - b.min) / e) + gr.value / 2 > t;
501
- }), N = d(() => {
502
- let e = tn.value ? `calc(${$t.value}% - ${Sr.value.width}px)` : en.value ? `calc(${$t.value}% - 8px)` : `calc(${$t.value}% - ${Sr.value.width / 2}px)`;
503
- return {
504
- left: `${Zt.value}%`,
505
- width: `${Math.max(0, Qt.value - Zt.value)}%`,
506
- background: b.selectColor,
507
- tooltipLeft: `calc(${Zt.value}% - ${en.value ? 9 : hr.value / 2}px)`,
508
- tooltipRight: `calc(${Qt.value}% - ${tn.value ? gr.value - 9 : gr.value / 2}px)`,
509
- tooltipCenter: e,
510
- arrowLeft: !en.value,
511
- arrowRight: !tn.value
512
- };
513
- }), nn = d(() => b.inputColor), rn = d(() => b.background), an = d(() => `${b.selectColor}33`), P = d(() => b.borderColor), on = d(() => Number(b.max) > Number(b.min));
514
- function sn() {
515
- M("reset");
516
- }
517
- ye(() => b.min, (e) => {
518
- Number(S.value) < Number(e) && (S.value = Number(e)), Number(C.value) < Number(e) && (C.value = Number(e));
519
- }), ye(() => b.max, (e) => {
520
- Number(S.value) > Number(e) && (S.value = Number(e)), Number(C.value) > Number(e) && (C.value = Number(e));
521
- });
522
- let F = v(null), I = v({
523
- width: 1,
524
- height: 1
525
- }), L = v(null);
526
- fe(() => {
527
- if (w.value) {
528
- let e = c(() => {
529
- if (!F.value) return;
530
- let { width: e, height: t } = ie({ chart: F.value }), n = Math.max(0, Math.round(e)), r = Math.max(0, Math.round(t - 47));
531
- (n !== I.value.width || r !== I.value.height) && (I.value.width = n, I.value.height = r + b.additionalMinimapHeight);
532
- }, 0);
533
- L.value = new ResizeObserver(e), L.value.observe(F.value);
534
- }
535
- }), de(() => {
536
- L.value && L.value.disconnect();
537
- });
538
- let R = d(() => Math.max(1, b.max - b.min));
539
- function cn(e) {
540
- let t = Math.floor(e - b.min);
541
- return Math.min(Math.max(0, t), R.value);
542
- }
543
- function ln(e) {
544
- let t = Math.ceil(e - b.min);
545
- return Math.min(Math.max(0, t), R.value);
546
- }
547
- let z = d(() => cn(S.value)), B = d(() => ln(C.value)), un = d(() => Math.max(...b.allMinimaps.map((e) => e.series.length))), dn = d(() => w.value && b.minimapCompact ? 40 : 0), fn = d(() => dn.value / 2);
548
- d(() => Math.max(1, I.value.width - fn.value * 2));
549
- let V = d(() => {
550
- if (b.minimapCompact && !b.useValueRange) return I.value.width / Math.max(1, R.value - 1);
551
- let e = Math.max(1, un.value - +!!b.minimapCompact);
552
- return I.value.width / e;
553
- }), pn = d(() => b.allMinimaps.length ? b.allMinimaps.filter((e) => e.type === "bar" && e.isVisible).length : 0), mn = d(() => V.value / (pn.value || 1) * .8);
554
- function hn(e, t, n) {
555
- let r = mn.value, i = Math.max(1, pn.value), a = un.value - 1;
556
- return n === 0 ? e + r / 2 * t : n === a ? e - r / 2 * (i - t) : e - i * r / 2 + t * r;
557
- }
558
- function gn(e, t) {
559
- return [0, un.value - 1].includes(t) ? mn.value / 2 : mn.value;
560
- }
561
- let _n = d(() => {
562
- let e = [];
563
- if (Array.isArray(b.minimap) && b.minimap.length && b.minimapMerged && e.push(...b.minimap.map(Ut).filter(Number.isFinite)), Array.isArray(b.allMinimaps) && b.allMinimaps.length) for (let t of b.allMinimaps) t?.isVisible && Array.isArray(t?.series) && e.push(...t.series.map(Ut).filter(Number.isFinite));
564
- return e.length ? {
565
- min: Math.min(...e),
566
- max: Math.max(...e)
567
- } : {
568
- min: 0,
569
- max: 1
570
- };
571
- }), vn = d(() => {
572
- if (b.minScale == null && b.forceZeroCenter) return null;
573
- let e = Number(b.minScale);
574
- return Number.isFinite(e) ? e : null;
575
- }), yn = d(() => {
576
- if (b.maxScale == null && b.forceZeroCenter) return null;
577
- let e = Number(b.maxScale);
578
- return Number.isFinite(e) ? e : null;
579
- }), bn = d(() => vn.value !== null && yn.value !== null), xn = d(() => {
580
- let { min: e, max: t } = _n.value, n = vn.value, r = yn.value, i, a;
581
- return n !== null && r !== null ? (i = Math.min(n, e), a = Math.max(r, t)) : (i = n === null ? e : n, a = r === null ? t : r), Number.isFinite(i) || (i = 0), Number.isFinite(a) || (a = 1), i === a ? a = i + 1 : i > a && ([i, a] = [a, i]), {
582
- min: i,
583
- max: a
584
- };
585
- }), Sn = d(() => xn.value.min), Cn = d(() => xn.value.max), wn = d(() => Sn.value < 0 && Cn.value > 0 || Cn.value <= 0 ? Sn.value : 0), Tn = (e) => {
586
- let t = Math.max(1, I.value.height);
587
- return Dn(Sn.value, Cn.value, t, bn.value)(e);
588
- }, En = d(() => Tn(0));
589
- function Dn(e, t, n, r = !1) {
590
- let i = (e, t, n) => Math.max(t, Math.min(n, e)), a = 1e-9, o = Math.max(a, t - e);
591
- if (r) return (t) => n - (t - e) / o * n;
592
- if (t <= 0) {
593
- let t = Math.max(a, 0 - e);
594
- return (r) => n - (r - e) / t * n;
595
- } else if (e >= 0) {
596
- let e = Math.max(a, t - 0);
597
- return (t) => n - (t - 0) / e * n;
598
- } else {
599
- let r = Math.max(a, Math.max(Math.abs(e), Math.abs(t)));
600
- return (e) => (1 - (i(e / r, -1, 1) + 1) / 2) * n;
601
- }
602
- }
603
- function On(n, r = !1, a = !1) {
604
- if (!n || !n.length) return {
605
- fullSet: "",
606
- points: [],
607
- selectionSet: "",
608
- sliced: [],
609
- firstPlot: null,
610
- lastPlot: null,
611
- hasFull: !1,
612
- hasSelection: !1,
613
- fullMarkers: [],
614
- selectionMarkers: [],
615
- dashed: !1
616
- };
617
- let ee = Math.max(1, I.value.height), te = Dn(Sn.value, Cn.value, ee, bn.value), ne = n.length, s = Math.min(Math.max(0, z.value), Math.max(0, ne - 1)), c = Math.min(ne, Math.max(s + 1, B.value)), l = n.map((e, t) => {
618
- let n = Ut(e), r = Number.isFinite(n), i = Gt(e, t), a = te(bn.value ? ((e, t, n) => Math.max(t, Math.min(n, e)))(0, Sn.value, Cn.value) : 0);
619
- return {
620
- x: i,
621
- y: r ? te(n) : NaN,
622
- v: n,
623
- value: r ? n : null,
624
- y0: a,
625
- i: t,
626
- xValue: Wt(e, t)
627
- };
628
- }), ie = (e) => e >= 0 && e < l.length && Number.isFinite(l[e]?.value), ae = l.filter((e) => Number.isFinite(e.value) && !ie(e.i - 1) && !ie(e.i + 1)), oe = b.useValueRange ? ae.filter((e) => e.xValue >= Number(S.value) && e.xValue <= Number(C.value)) : ae.filter((e) => e.i >= s && e.i < c), u = b.useValueRange ? l.filter((e) => e.xValue >= Number(S.value) && e.xValue <= Number(C.value)) : l.slice(s, c);
629
- return {
630
- fullSet: l.length >= 2 ? a ? re(b.cutNullValues ? l : l.filter((e) => e.value != null)) : b.smoothMinimap || r ? b.cutNullValues ? t(l) : i(l.filter((e) => e.value != null)) : b.cutNullValues ? o(l) : e(l.filter((e) => e.value != null)) : "",
631
- points: l,
632
- selectionSet: u.length >= 2 ? a ? re(b.cutNullValues ? u : u.filter((e) => e.value != null)) : b.smoothMinimap || r ? b.cutNullValues ? t(u) : i(u.filter((e) => e.value != null)) : b.cutNullValues ? o(u) : e(u.filter((e) => e.value != null)) : "",
633
- sliced: u,
634
- firstPlot: b.useValueRange ? u[0] || null : l[s] || null,
635
- lastPlot: b.useValueRange ? u[u.length - 1] || null : l[Math.max(0, c - 1)] || null,
636
- hasFull: l.length >= 2,
637
- hasSelection: u.length >= 2,
638
- fullMarkers: ae,
639
- selectionMarkers: oe
640
- };
641
- }
642
- let H = d(() => b.minimap.length ? On(b.minimap) : []), U = d(() => b.allMinimaps.length ? b.allMinimaps.map((e, t) => {
643
- let n = On(e?.series || [], !!e.smooth, !!e.useStepper), r = e?.id ?? e?.name ?? t;
644
- return {
645
- key: typeof r == "object" ? JSON.stringify(r) : String(r),
646
- color: e?.color,
647
- ...n,
648
- temperatureColors: e?.temperatureColors ?? null,
649
- isVisible: e.isVisible,
650
- type: e.type || void 0,
651
- dashed: e.dashed ?? !1,
652
- useStepper: !!e.useStepper
653
- };
654
- }) : []), W = d(() => {
655
- if (b.useValueRange) {
656
- let e = Vt(S.value), t = Vt(C.value);
657
- return {
658
- x: e,
659
- width: Math.max(0, t - e)
660
- };
661
- }
662
- let e = z.value, t = Math.max(e + 1, B.value);
663
- return {
664
- x: V.value * e + (b.minimapCompact ? 0 : V.value / 2),
665
- width: V.value * (t - e) - V.value
666
- };
667
- }), G = v(b.minimapSelectedIndex), kn = (e) => Math.round(b.min + e), An = d({
668
- get() {
669
- return E.value ? z.value : Number(k.value);
670
- },
671
- set(e) {
672
- if (E.value) {
673
- if (b.useValueRange) {
674
- let t = At(e);
675
- Un(Math.min(Math.max(Number(b.min), t), Number(C.value) - O.value));
676
- return;
677
- }
678
- Un(kn(Math.round(+e || 0)));
679
- } else {
680
- let t = At(e), n = Number(C.value) - O.value, r = Math.min(Math.max(b.min, t), n);
681
- zn.value && (zn.value.valueAsNumber = r), Un(r);
682
- }
683
- }
684
- }), jn = d({
685
- get() {
686
- return E.value ? Math.max(z.value, B.value - 1) : Number(A.value);
687
- },
688
- set(e) {
689
- if (E.value) {
690
- if (b.useValueRange) {
691
- let t = At(e);
692
- Gn(Math.max(Number(S.value) + O.value, Math.min(t, Number(b.max))));
693
- return;
694
- }
695
- Gn(kn(Math.round(+e || 0) + 1));
696
- } else {
697
- let t = At(e), n = Number(S.value) + O.value, r = Math.max(n, Math.min(t, b.max));
698
- Bn.value && (Bn.value.valueAsNumber = r), Gn(r);
699
- }
700
- }
701
- }), Mn = 0;
702
- function Nn(e, t) {
703
- if (t === Mn) {
704
- if (b.useValueRange) {
705
- G.value = Number.isFinite(Number(e)) ? Vt(Number(e)) : null;
706
- return;
707
- }
708
- G.value = cn(b.valueStart) + e;
709
- }
710
- }
711
- let Pn = l(Nn, 60);
712
- ye(() => b.minimapSelectedIndex, (e, t) => {
713
- if (Mn += 1, [null, void 0].includes(e)) {
714
- G.value = null;
715
- return;
716
- }
717
- e !== t && Pn(e, Mn);
718
- }, { immediate: !0 });
719
- function Fn(e) {
720
- if (Lt.value) return;
721
- G.value = e;
722
- let t = z.value, n = B.value;
723
- e >= t && e < n && !X.value && M("trapMouse", e - t);
724
- }
725
- function In(e) {
726
- let t = Ht(e), n = b.allMinimaps.flatMap((e) => (e.series || []).map((e, n) => ({
727
- point: e,
728
- index: n,
729
- x: Number(e?.x),
730
- distance: Math.abs(Number(e?.x) - t)
731
- }))).filter((e) => Number.isFinite(e.x));
732
- return n.length ? n.reduce((e, t) => t.distance < e.distance ? t : e, n[0]) : null;
733
- }
734
- function Ln(e) {
735
- if (!on.value || Lt.value) return;
736
- let t = Rr(e.clientX);
737
- if (b.useValueRange) {
738
- let e = In(t);
739
- if (!e) {
740
- Rn();
741
- return;
742
- }
743
- G.value = Vt(e.x), M("trapMouse", e.index), M("trapMouseValue", e.x);
744
- return;
745
- }
746
- Fn(zr(t));
747
- }
748
- function Rn() {
749
- G.value = null, !Lt.value && (M("trapMouse", null), M("trapMouseValue", null));
750
- }
751
- let zn = v(null), Bn = v(null);
752
- function Vn(e) {
753
- if (typeof e == "object" && e && "target" in e) {
754
- let t = e.target, n = "valueAsNumber" in t ? t.valueAsNumber : +t.value;
755
- return Number.isFinite(n) ? n : NaN;
756
- }
757
- let t = +e;
758
- return Number.isFinite(t) ? t : NaN;
759
- }
760
- let Hn = 0;
761
- function Un(e) {
762
- T.value = !0;
763
- let t = Vn(e);
764
- Number.isFinite(t) && (cancelAnimationFrame(Hn), Hn = requestAnimationFrame(() => {
765
- k.value = t;
766
- }));
767
- }
768
- let Wn = 0;
769
- function Gn(e) {
770
- T.value = !0;
771
- let t = Vn(e);
772
- Number.isFinite(t) && (cancelAnimationFrame(Wn), Wn = requestAnimationFrame(() => {
773
- A.value = t;
774
- }));
775
- }
776
- de(() => {
777
- cancelAnimationFrame(Hn), cancelAnimationFrame(Wn);
778
- });
779
- let Kn = d(() => b.valueEnd - b.valueStart), qn = d(() => Kn.value < b.max - b.min), Jn = v(!1), Yn = v(null), Xn = d(() => (qt.value - 48) / (b.max - b.min) * Kn.value), Zn = d(() => Math.max(1, qt.value - Dt - Xn.value)), Qn = d(() => Math.max(1, b.max - b.min - Kn.value)), $n = d(() => Qn.value / Zn.value), er = v(0), tr = v(0), nr = v(0), rr = v(0), K = null, q = null, J = null, Y = null, ir = v(b.min);
780
- function ar(e) {
781
- if (!x.value) return b.min;
782
- let t = x.value.getBoundingClientRect(), n = t.left + Dt / 2, r = t.right - Dt / 2, i = Math.max(1, r - n), a = (Math.max(n, Math.min(e, r)) - n) / i, o = Math.max(1, b.max - b.min);
783
- return Math.round(b.min + a * o);
784
- }
785
- let or = async (e) => {
786
- if (T.value = !0, Z.value = !0, !b.enableSelectionDrag) return;
787
- let t = e.type === "touchstart";
788
- t || e.stopPropagation();
789
- let r = t && e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null, i = t ? r ? r.target : null : e.target;
790
- if (!i || !(i instanceof Element) || i.classList?.contains("range-handle") || i.classList?.contains("vue-ui-zoom-compact-minimap-handle") || i.closest(".vue-ui-zoom-compact-minimap-handle")) return;
791
- Jn.value = !0;
792
- let a = t ? r ? r.clientX : 0 : e.clientX;
793
- if (Yn.value = a, er.value = a, b.focusOnDrag && !qn.value && x.value && !It.value) {
794
- It.value = !0;
795
- try {
796
- ir.value = ar(a);
797
- let e = Math.min(.95, Math.max(.05, b.focusRangeRatio)), t = Number(b.max) - Number(b.min), r = Math.max(1, Math.round(t * e)), i = Math.floor(r / 2), o = ir.value - i;
798
- o = Math.max(Number(b.min), Math.min(o, Number(b.max) - r));
799
- let ee = Math.min(Number(b.max), o + r);
800
- k.value = o, A.value = ee, Jt(o), Yt(ee), n(x.value, "mouseup"), await le(), n(x.value, "mousedown", { clientX: a });
801
- } finally {
802
- It.value = !1;
803
- }
804
- return;
805
- }
806
- tr.value = S.value, nr.value = C.value, rr.value = $n.value, K = t ? "touchmove" : "mousemove", q = t ? "touchend" : "mouseup", J = t ? cr : sr, Y = t ? dr : ur, window.addEventListener(K, J, { passive: !1 }), window.addEventListener(q, Y);
807
- };
808
- function sr(e) {
809
- Jn.value && lr(e.clientX);
810
- }
811
- function cr(e) {
812
- if (!Jn.value || !x.value) return;
813
- let t = e.target;
814
- if (!(t instanceof Element) || !x.value.contains(t) || t.classList && t.classList.contains("range-handle")) return;
815
- e.preventDefault();
816
- let n = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
817
- n && lr(n.clientX);
818
- }
819
- function lr(e) {
820
- if (!Jn.value) return;
821
- let t = ar(er.value), n = ar(e) - t, r = Math.round(tr.value + n);
822
- r = Math.max(b.min, Math.min(r, b.max - Kn.value));
823
- let i = r + Kn.value;
824
- k.value = r, A.value = i, Jt(r), Yt(i);
825
- }
826
- function ur() {
827
- fr();
828
- }
829
- function dr() {
830
- fr();
831
- }
832
- function fr() {
833
- Jn.value = !1, K && J && window.removeEventListener(K, J), q && Y && window.removeEventListener(q, Y), K = q = null, J = Y = null, j();
834
- }
835
- let X = v(!1), pr = v(null), mr = v(null), hr = v(1), gr = v(1), Z = v(!1);
836
- function _r() {
837
- if (pr.value) {
838
- let e = Math.round(pr.value.getBoundingClientRect().width);
839
- e !== hr.value && (hr.value = e);
840
- }
841
- }
842
- function vr() {
843
- if (mr.value) {
844
- let e = Math.round(mr.value.getBoundingClientRect().width);
845
- e !== gr.value && (gr.value = e);
846
- }
847
- }
848
- pe(() => {
849
- _r(), vr();
850
- });
851
- let yr = v(0);
852
- function br(e) {
853
- yr.value = +(e === "start");
854
- }
855
- let xr = v(!1), Sr = v({
856
- width: 0,
857
- left: 0
858
- });
859
- ye([S, C], async () => {
860
- if (await le(), !pr.value || !mr.value) {
861
- xr.value = !1, Sr.value = {
862
- width: 0,
863
- left: 0
864
- };
865
- return;
866
- }
867
- let e = pr.value.getBoundingClientRect(), t = mr.value.getBoundingClientRect();
868
- xr.value = e.x + e.width > t.x;
869
- let n = e.x + e.width / 2, r = t.x + t.width / 2, i = e.width + t.width;
870
- Sr.value = {
871
- width: i,
872
- left: (n + r) / 2 - i / 2
873
- };
874
- }), pe(() => {
875
- _r(), vr();
876
- }), ye(() => b.labelLeft, () => {
877
- le(_r);
878
- }, { deep: !0 }), ye(() => b.labelRight, () => {
879
- le(vr);
880
- }, { deep: !0 });
881
- let Q = d(() => {
882
- let e = "", t = "", n = !1;
883
- if (ee(b.customFormat)) try {
884
- let r = b.customFormat({
885
- absoluteIndex: S.value,
886
- seriesIndex: S.value,
887
- datapoint: b.selectedSeries,
888
- timeLabel: b.preciseLabels[S.value],
889
- side: "left"
890
- }), i = b.customFormat({
891
- absoluteIndex: Rt.value,
892
- seriesIndex: -1,
893
- datapoint: b.selectedSeries,
894
- timeLabel: b.useValueRange ? null : b.preciseLabels[Rt.value],
895
- side: "right"
896
- });
897
- typeof r == "string" && typeof i == "string" && (e = r, t = i, n = !0);
898
- } catch {
899
- n = !1;
900
- }
901
- if (!n) {
902
- let n = b.useValueRange ? { text: String(Math.round(S.value * 1e3) / 1e3) } : b.usePreciseLabels ? b.preciseLabels.find((e) => e.absoluteIndex === S.value) : b.timeLabels.find((e) => e.absoluteIndex === S.value), r = b.useValueRange ? { text: String(Math.round(C.value * 1e3) / 1e3) } : b.usePreciseLabels ? b.preciseLabels.find((e) => e.absoluteIndex === Rt.value) : b.timeLabels.find((e) => e.absoluteIndex === Rt.value);
903
- e = n ? n.text : "", t = r ? r.text : "";
904
- }
905
- return {
906
- left: e,
907
- right: t
908
- };
909
- });
910
- de(() => {
911
- L.value && L.value.disconnect(), K && J && window.removeEventListener(K, J), q && Y && window.removeEventListener(q, Y), K = q = null, J = Y = null, clearTimeout(null);
912
- });
913
- let Cr = d(() => {
914
- if (!on.value || G.value === null) return null;
915
- if (b.useValueRange) {
916
- let e = G.value;
917
- return e < W.value.x || e > W.value.x + W.value.width ? null : {
918
- x1: e,
919
- x2: e,
920
- y1: 0,
921
- y2: Math.max(I.value.height, 0),
922
- stroke: b.minimapIndicatorColor,
923
- "stroke-linecap": "round",
924
- "stroke-dasharray": 2,
925
- "stroke-width": 1
926
- };
927
- }
928
- if (G.value >= z.value && G.value < B.value) {
929
- let e = G.value, t = V.value * e + (b.minimapCompact ? 0 : V.value / 2);
930
- return {
931
- x1: t,
932
- x2: t,
933
- y1: 0,
934
- y2: Math.max(I.value.height, 0),
935
- stroke: b.minimapIndicatorColor,
936
- "stroke-linecap": "round",
937
- "stroke-dasharray": 2,
938
- "stroke-width": 1
939
- };
940
- }
941
- return null;
942
- }), wr = d(() => Number(S.value) < Number(C.value) - 1), Tr = d(() => Number(S.value) > Number(b.min)), Er = d(() => Number(C.value) < Number(b.max)), Dr = d(() => Number(C.value) > Number(S.value) + 1);
943
- function Or(e) {
944
- let t = Number(S.value) + e;
945
- e > 0 && !wr.value || e < 0 && !Tr.value || (T.value = !0, k.value = t, j());
946
- }
947
- function kr(e) {
948
- let t = Number(C.value) + e;
949
- e > 0 && !Er.value || e < 0 && !Dr.value || (T.value = !0, A.value = t, j());
950
- }
951
- let Ar = {
952
- plus: () => Or(1),
953
- minus: () => Or(-1),
954
- canPlus: wr,
955
- canMinus: Tr
956
- }, jr = {
957
- plus: () => kr(1),
958
- minus: () => kr(-1),
959
- canPlus: Er,
960
- canMinus: Dr
961
- };
962
- function Mr(e) {
963
- if (!e || Nr(e.target)) return;
964
- let t = e.key, n = t === "ArrowLeft" || t === "ArrowDown" || t === "-" || t === "Subtract", r = t === "ArrowRight" || t === "ArrowUp" || t === "+" || t === "Add";
965
- !n && !r || (e.preventDefault(), e.stopPropagation(), r ? (Ar.plus(), jr.plus()) : (Ar.minus(), jr.minus()));
966
- }
967
- function Nr(e) {
968
- return e instanceof HTMLElement && (e.isContentEditable || e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.tagName === "SELECT");
969
- }
970
- function Pr(e) {
971
- if (!w.value || !b.minimapCompact) return;
972
- let t = x.value;
973
- if (!t) return;
974
- let n = e === "start" ? "[data-cy=\"slicer-compact-handle-left\"]" : "[data-cy=\"slicer-compact-handle-right\"]", r = t.querySelector(n);
975
- r && r instanceof SVGElement && typeof r.focus == "function" && r.focus();
976
- }
977
- function Fr(e, t) {
978
- if (!t || Nr(t.target)) return;
979
- let n = t.key, r = n === "ArrowLeft" || n === "ArrowDown" || n === "-" || n === "Subtract", i = n === "ArrowRight" || n === "ArrowUp" || n === "+" || n === "Add";
980
- !r && !i || (t.preventDefault(), t.stopPropagation(), e === "start" ? i ? Ar.plus() : Ar.minus() : i ? jr.plus() : jr.minus(), le(() => Pr(e)));
981
- }
982
- let Ir = d(() => ({
983
- tabindex: 0,
984
- role: "slider",
985
- "aria-label": "Range start",
986
- "aria-valuemin": Number(b.min),
987
- "aria-valuemax": Math.max(Number(b.min), Number(C.value) - 1),
988
- "aria-valuenow": Number(S.value)
989
- })), Lr = d(() => ({
990
- tabindex: 0,
991
- role: "slider",
992
- "aria-label": "Range end",
993
- "aria-valuemin": Math.min(Number(b.max), Number(S.value) + 1),
994
- "aria-valuemax": Number(b.max),
995
- "aria-valuenow": Number(C.value)
996
- }));
997
- function Rr(e) {
998
- if (!Ft.value) return 0;
999
- let t = Ft.value.getBoundingClientRect();
1000
- if (!t.width) return 0;
1001
- let n = (e - t.left) / t.width;
1002
- return Math.min(1, Math.max(0, n)) * I.value.width;
1003
- }
1004
- function zr(e) {
1005
- let t = Math.max(0, R.value - 1), n = Math.max(1, I.value.width), r = Math.min(1, Math.max(0, e / n));
1006
- return Math.min(t, Math.max(0, Math.round(r * t)));
1007
- }
1008
- function Br(e) {
1009
- let t = Math.min(Math.max(0, e), Math.max(1, I.value.width));
1010
- if (b.useValueRange) {
1011
- let e = Ht(t);
1012
- if (D.value === "start") {
1013
- let t = Math.min(e, Number(C.value) - O.value);
1014
- k.value = t, Jt(t);
1015
- return;
1016
- }
1017
- if (D.value === "end") {
1018
- let t = Math.max(Number(S.value) + O.value, e), n = Math.min(Number(b.max), t);
1019
- A.value = n, Yt(n);
1020
- return;
1021
- }
1022
- }
1023
- let n = zr(t);
1024
- if (D.value === "start") {
1025
- let e = Math.min(b.min + n, Number(C.value) - 1);
1026
- k.value = e, Jt(e);
1027
- return;
1028
- }
1029
- if (D.value === "end") {
1030
- let e = Math.max(Number(S.value) + 1, b.min + n + 1), t = Math.min(b.max, e);
1031
- A.value = t, Yt(t);
1032
- }
1033
- }
1034
- function Vr(e) {
1035
- if (!D.value || !F.value) return;
1036
- let t = e.clientX - Nt.value;
1037
- if (!Mt.value) {
1038
- if (Math.abs(t) < 4) return;
1039
- Mt.value = !0, T.value = !0, Z.value = !0;
1040
- }
1041
- let n = Rr(e.clientX) - Pt.value;
1042
- Br(D.value === "start" ? n + Kt.value : n);
1043
- }
1044
- function Hr() {
1045
- if (!D.value) return;
1046
- window.removeEventListener("mousemove", Vr, !0), window.removeEventListener("mouseup", Hr, !0);
1047
- let e = Mt.value;
1048
- D.value = null, Mt.value = !1, Nt.value = 0, Pt.value = 0, e && j();
1049
- }
1050
- function Ur(e, t) {
1051
- if (!w.value || !b.minimapCompact || !F.value) return;
1052
- t.preventDefault(), t.stopPropagation(), G.value = null;
1053
- let n = Rr(t.clientX), r = e === "start" ? W.value.x - Kt.value : W.value.x + W.value.width;
1054
- D.value = e, Mt.value = !1, Nt.value = t.clientX, Pt.value = n - r, window.addEventListener("mousemove", Vr, !0), window.addEventListener("mouseup", Hr, !0);
1055
- }
1056
- let Wr = d(() => z.value), Gr = d(() => Math.max(z.value, B.value - 1));
1057
- d(() => {
1058
- if (!w.value || !b.minimapCompact || !b.allMinimaps.length) return [];
1059
- let e = Wr.value, t = Gr.value;
1060
- return U.value.flatMap((n) => {
1061
- if (!n?.isVisible || !["line", "plot"].includes(n.type) || !n.type) return [];
1062
- let r = [], i = n.points?.find((t) => t.i === e && t.value !== null), a = n.points?.find((e) => e.i === t && e.value !== null);
1063
- return i && r.push({
1064
- key: `${n.key}-left-${i.i}`,
1065
- x: i.x,
1066
- y: i.y,
1067
- color: n.color
1068
- }), a && t !== e && r.push({
1069
- key: `${n.key}-right-${a.i}`,
1070
- x: a.x,
1071
- y: a.y,
1072
- color: n.color
1073
- }), r;
1074
- });
1075
- });
1076
- let $ = d(() => Math.min(40, Math.max(20, b.handleWidth))), Kr = d(() => W.value.x - $.value), qr = d(() => W.value.x + W.value.width);
1077
- return Ot({
1078
- setStartValue: Un,
1079
- setEndValue: Gn
1080
- }), (e, t) => (_(), p("div", {
1081
- "data-minimap": w.value,
1082
- "data-dom-to-png-ignore": "",
1083
- "data-dom-to-png-ignore-layout": "",
1084
- style: g([{ padding: "0 48px" }, {
1085
- maxWidth: s.maxWidth ? s.maxWidth + "px" : void 0,
1086
- margin: s.maxWidth ? "0 auto" : void 0
1087
- }]),
1088
- class: "vue-data-ui-zoom",
1089
- ref_key: "zoomWrapper",
1090
- ref: x,
1091
- onMousedown: or,
1092
- onTouchstart: or
1093
- }, [m("div", we, [s.valueStart !== s.refreshStartPoint || s.valueEnd !== Xt.value ? (_(), p("div", Te, [me(e.$slots, "reset-action", { reset: sn }, () => [m("button", {
1094
- tabindex: "0",
1095
- role: "button",
1096
- class: "vue-data-ui-refresh-button",
1097
- style: g({
1098
- top: w.value ? "36px" : "-16px",
1099
- cursor: s.isCursorPointer ? "pointer" : "default"
1100
- }),
1101
- onClick: sn
1102
- }, [se(ae, {
1103
- name: "refresh",
1104
- stroke: s.textColor
1105
- }, null, 8, ["stroke"])], 4)], !0)])) : f("", !0)]), m("div", {
1106
- class: "double-range-slider",
1107
- ref_key: "minimapWrapper",
1108
- ref: F,
1109
- style: g([{ "z-index": "0" }, w.value ? {
1110
- "--minimap-unit-px": V.value + "px",
1111
- "--minimap-offset-px": (s.minimapCompact ? 0 : V.value / 2) + "px"
1112
- } : void 0]),
1113
- onMouseenter: t[18] ||= (e) => Z.value = !0,
1114
- onMouseleave: t[19] ||= (e) => Z.value = !1
1115
- }, [
1116
- w.value ? (_(), p("div", Ee, [(_(), p("svg", {
1117
- ref_key: "minimapSvg",
1118
- ref: Ft,
1119
- key: `mm-${s.minimapMerged ? "merged" : "split"}-${s.minimapCompact ? "compact" : "normal"}`,
1120
- xmlns: ge(ne),
1121
- viewBox: `0 0 ${Math.max(0, I.value.width)} ${Math.max(0, I.value.height)}`,
1122
- preserveAspectRatio: "none"
1123
- }, [
1124
- m("defs", null, [se(oe, {
1125
- t: "linear",
1126
- id: jt.value,
1127
- x1: "0%",
1128
- y1: "0%",
1129
- x2: "0%",
1130
- y2: "100%",
1131
- stops: [[
1132
- "0%",
1133
- s.minimapLineColor,
1134
- .31
1135
- ], [
1136
- "100%",
1137
- "transparent",
1138
- 0
1139
- ]]
1140
- }, null, 8, ["id", "stops"]), m("clipPath", { id: `selection_clip_${jt.value}` }, [m("rect", {
1141
- x: W.value.x,
1142
- y: "0",
1143
- width: Math.max(0, W.value.width),
1144
- height: Math.max(I.value.height, 0)
1145
- }, null, 8, ke)], 8, Oe)]),
1146
- s.minimapCompact ? (_(), p("rect", {
1147
- key: 0,
1148
- class: "vue-ui-zoom-minimap-frame",
1149
- x: 0,
1150
- y: 0,
1151
- width: I.value.width,
1152
- height: I.value.height,
1153
- fill: "none",
1154
- stroke: s.minimapFrameColor,
1155
- rx: 3
1156
- }, null, 8, Ae)) : f("", !0),
1157
- e.$slots.slotMap ? f("", !0) : (_(), p(u, { key: 1 }, [s.minimapMerged ? (_(), p("path", {
1158
- key: 0,
1159
- d: `M${H.value.fullSet}`,
1160
- stroke: `${s.minimapLineColor}`,
1161
- fill: "none",
1162
- "stroke-width": "1",
1163
- "stroke-linecap": "round",
1164
- "stroke-linejoin": "round",
1165
- style: { opacity: "0.6" }
1166
- }, null, 8, je)) : f("", !0), s.minimapMerged && !s.minimapCompact ? (_(), p("path", {
1167
- key: 1,
1168
- d: `M${V.value / 2},${Math.max(I.value.height, 0)} ${H.value.fullSet} L${I.value.width - V.value / 2},${Math.max(I.value.height, 0)}Z`,
1169
- fill: `url(#${jt.value})`,
1170
- stroke: "none",
1171
- style: { opacity: "0.6" }
1172
- }, null, 8, Me)) : s.minimapMerged ? f("", !0) : (_(), p(u, { key: 2 }, [
1173
- (_(!0), p(u, null, y(U.value.filter((e) => e.type === "bar" && e.isVisible), (e, t) => (_(), p("g", null, [(_(!0), p(u, null, y(e.points, (n, r) => (_(), p(u, null, [e && !isNaN(n.y) ? (_(), p("rect", {
1174
- key: 0,
1175
- x: hn(n.x, t, r),
1176
- y: n.v >= 0 ? n.y : n.y0,
1177
- width: gn(t, r),
1178
- height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
1179
- fill: e.color,
1180
- style: { opacity: .6 }
1181
- }, null, 8, Ne)) : f("", !0)], 64))), 256))]))), 256)),
1182
- (_(!0), p(u, null, y(U.value.filter((e) => e.type === "line"), (e) => (_(), p("g", null, [e.isVisible ? (_(), p("path", {
1183
- key: 0,
1184
- d: `M ${e.fullSet}`,
1185
- fill: "none",
1186
- stroke: e.color,
1187
- style: { opacity: "0.6" },
1188
- "stroke-dasharray": e.dashed ? "2 4" : 0
1189
- }, null, 8, Pe)) : f("", !0), e.isVisible && s.cutNullValues ? (_(!0), p(u, { key: 1 }, y(e.fullMarkers, (t) => (_(), p("circle", {
1190
- key: `sel-dot-under-${e.key}-${t.i}`,
1191
- cx: t.x,
1192
- cy: t.y,
1193
- r: "2",
1194
- fill: e.color,
1195
- stroke: P.value,
1196
- "stroke-width": "0.5",
1197
- style: { opacity: "0.6" }
1198
- }, null, 8, Fe))), 128)) : f("", !0)]))), 256)),
1199
- (_(!0), p(u, null, y(U.value.filter((e) => e.type === "plot"), (e) => (_(), p("g", null, [(_(!0), p(u, null, y(e.points, (t) => (_(), p("g", null, [e.isVisible && t.value !== null ? (_(), p("circle", {
1200
- key: `sel-plot-under-${e.key}-${t.i}`,
1201
- cx: t.x,
1202
- cy: t.y,
1203
- r: "2",
1204
- fill: e.color,
1205
- stroke: P.value,
1206
- "stroke-width": "0.5",
1207
- style: { opacity: "0.6" }
1208
- }, null, 8, Ie)) : f("", !0)]))), 256))]))), 256))
1209
- ], 64))], 64)),
1210
- m("rect", {
1211
- x: W.value.x,
1212
- y: 0,
1213
- width: Math.max(0, W.value.width),
1214
- height: Math.max(I.value.height, 0),
1215
- fill: P.value,
1216
- rx: s.minimapSelectionRadius,
1217
- stroke: "none"
1218
- }, null, 8, Le),
1219
- m("rect", {
1220
- x: W.value.x,
1221
- y: 0,
1222
- width: W.value.width < 0 ? 0 : W.value.width,
1223
- height: Math.max(I.value.height, 0),
1224
- rx: s.minimapSelectionRadius,
1225
- fill: P.value,
1226
- style: g({ opacity: Jn.value || T.value ? 0 : 1 })
1227
- }, null, 12, Re),
1228
- m("rect", {
1229
- x: W.value.x,
1230
- y: 0,
1231
- width: W.value.width < 0 ? 0 : W.value.width,
1232
- height: Math.max(I.value.height, 0),
1233
- fill: s.minimapSelectedColor,
1234
- rx: s.minimapSelectionRadius,
1235
- style: g({ opacity: s.minimapSelectedColorOpacity }),
1236
- tabindex: "0",
1237
- role: "slider",
1238
- "aria-label": "Selected range",
1239
- "aria-valuemin": Number(b.min),
1240
- "aria-valuemax": Number(b.max),
1241
- "aria-valuenow": Number(S.value),
1242
- "aria-valuetext": Q.value.left && Q.value.right ? `${Q.value.left} – ${Q.value.right}` : void 0,
1243
- onKeydown: Mr
1244
- }, null, 44, ze),
1245
- !s.minimapMerged && wn.value < 0 ? (_(), p("line", {
1246
- key: 2,
1247
- class: "slicer-minimap-zero-line",
1248
- x1: 0,
1249
- x2: I.value.width,
1250
- y1: En.value,
1251
- y2: En.value,
1252
- stroke: s.minimapFrameColor,
1253
- "stroke-width": "0.5"
1254
- }, null, 8, Be)) : f("", !0),
1255
- e.$slots.slotMap ? f("", !0) : (_(), p(u, { key: 3 }, [s.minimapMerged ? (_(), p("g", Ve, [
1256
- H.value && H.value.sliced && H.value.sliced.length ? (_(), p(u, { key: 0 }, [H.value.selectionSet ? (_(), p("path", {
1257
- key: 0,
1258
- d: `M ${H.value.selectionSet}`,
1259
- stroke: `${s.minimapLineColor}`,
1260
- fill: "transparent",
1261
- "stroke-width": "2",
1262
- "stroke-linecap": "round",
1263
- "stroke-linejoin": "round"
1264
- }, null, 8, He)) : f("", !0)], 64)) : f("", !0),
1265
- H.value && H.value.firstPlot ? (_(), p("circle", {
1266
- key: 1,
1267
- cx: H.value.firstPlot.x,
1268
- cy: H.value.firstPlot.y,
1269
- "stroke-width": "0.5",
1270
- stroke: P.value,
1271
- r: "3",
1272
- fill: s.minimapLineColor
1273
- }, null, 8, Ue)) : f("", !0),
1274
- H.value && H.value.lastPlot ? (_(), p("circle", {
1275
- key: 2,
1276
- cx: H.value.lastPlot.x,
1277
- cy: H.value.lastPlot.y,
1278
- "stroke-width": "0.5",
1279
- stroke: P.value,
1280
- r: "3",
1281
- fill: s.minimapLineColor
1282
- }, null, 8, We)) : f("", !0)
1283
- ])) : (_(), p("g", Ge, [
1284
- (_(!0), p(u, null, y(U.value.filter((e) => e.type === "bar" && e.isVisible), (e, t) => (_(), p("g", null, [(_(!0), p(u, null, y(e.points, (n, r) => (_(), p(u, null, [e && !isNaN(n.y) ? (_(), p("rect", {
1285
- key: 0,
1286
- x: hn(n.x, t, r),
1287
- y: n.v >= 0 ? n.y : n.y0,
1288
- width: gn(t, r),
1289
- height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
1290
- fill: e.color,
1291
- style: g({ opacity: +(r >= k.value && r < A.value) })
1292
- }, null, 12, Ke)) : f("", !0)], 64))), 256))]))), 256)),
1293
- (_(!0), p(u, null, y(U.value.filter((e) => e.type === "line"), (e, t) => (_(), p("g", { key: String(e.key) }, [e && e.hasSelection && e.selectionSet && e.isVisible ? (_(), p("path", {
1294
- key: 0,
1295
- d: `M ${e.selectionSet}`,
1296
- stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${s.uuid})` : e.color,
1297
- fill: "transparent",
1298
- "stroke-width": "2",
1299
- "stroke-linecap": "round",
1300
- "stroke-linejoin": "round",
1301
- "stroke-dasharray": e.dashed ? "2 4" : 0
1302
- }, null, 8, qe)) : f("", !0)]))), 128)),
1303
- (_(!0), p(u, null, y(U.value.filter((e) => e.type === "plot"), (e) => (_(), p("g", { key: String(e.key) }, [(_(!0), p(u, null, y(e.sliced, (t) => (_(), p("g", null, [e.isVisible && t.value !== null ? (_(), p("circle", {
1304
- key: 0,
1305
- cx: t.x,
1306
- cy: t.y,
1307
- r: "2",
1308
- fill: e.color,
1309
- stroke: P.value,
1310
- "stroke-width": "0.5",
1311
- style: { opacity: "0.6" }
1312
- }, null, 8, Je)) : f("", !0)]))), 256))]))), 128))
1313
- ]))], 64)),
1314
- e.$slots.slotMap ? me(e.$slots, "slotMap", ue(ce({ key: 4 }, {
1315
- width: Math.max(0, I.value.width),
1316
- height: Math.max(0, I.value.height),
1317
- zeroY: En.value,
1318
- unitW: Math.max(0, V.value)
1319
- })), void 0, !0) : f("", !0),
1320
- G.value !== null && !X.value ? (_(), p("line", ue(ce({ key: 5 }, Cr.value)), null, 16)) : f("", !0),
1321
- m("rect", {
1322
- x: 0,
1323
- y: 0,
1324
- width: Math.max(0, I.value.width),
1325
- height: Math.max(0, I.value.height),
1326
- fill: "transparent",
1327
- style: g([{ "pointer-events": "all !important" }, { cursor: s.enableSelectionDrag ? X.value ? "grabbing" : "grab" : "default" }]),
1328
- onMousedown: t[0] ||= (e) => X.value = !0,
1329
- onMouseup: t[1] ||= (e) => X.value = !1,
1330
- onMousemove: Ln,
1331
- onMouseleave: Rn
1332
- }, null, 44, Ye),
1333
- w.value && s.minimapCompact ? (_(), p(u, { key: 6 }, [
1334
- m("rect", {
1335
- class: "vue-ui-zoom-compact-minimap-handle",
1336
- x: Kr.value,
1337
- y: 0,
1338
- width: $.value,
1339
- height: I.value.height,
1340
- fill: s.handleFill || P.value,
1341
- stroke: s.handleBorderColor || s.textColor,
1342
- "stroke-width": s.handleBorderWidth,
1343
- rx: 3
1344
- }, null, 8, Xe),
1345
- s.handleType && s.handleType !== "empty" ? (_(), p("g", {
1346
- key: 0,
1347
- class: "compact-handle-icon",
1348
- transform: `translate(${Kr.value}, 0)`,
1349
- style: { "pointer-events": "none" }
1350
- }, [(_(), p("svg", {
1351
- width: $.value,
1352
- height: I.value.height,
1353
- viewBox: "0 0 20 20",
1354
- preserveAspectRatio: "xMidYMid meet"
1355
- }, [s.handleType === "arrow" ? (_(), p("path", {
1356
- key: 0,
1357
- 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",
1358
- fill: P.value,
1359
- stroke: s.handleIconColor || s.textColor,
1360
- "stroke-width": .618,
1361
- "stroke-linejoin": "round",
1362
- "stroke-linecap": "round"
1363
- }, null, 8, $e)) : s.handleType === "chevron" ? (_(), p("path", {
1364
- key: 1,
1365
- d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
1366
- fill: "none",
1367
- stroke: s.handleIconColor || s.textColor,
1368
- "stroke-width": .618,
1369
- "stroke-linejoin": "round",
1370
- "stroke-linecap": "round"
1371
- }, null, 8, et)) : s.handleType === "grab" ? (_(), p("path", {
1372
- key: 2,
1373
- 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",
1374
- fill: s.handleIconColor || s.textColor,
1375
- stroke: "none",
1376
- opacity: "0.6"
1377
- }, null, 8, tt)) : f("", !0)], 8, Qe))], 8, Ze)) : f("", !0),
1378
- m("rect", {
1379
- class: "vue-ui-zoom-compact-minimap-handle",
1380
- x: qr.value,
1381
- y: 0,
1382
- width: $.value,
1383
- height: I.value.height,
1384
- fill: s.handleFill || P.value,
1385
- stroke: s.handleBorderColor || s.textColor,
1386
- "stroke-width": s.handleBorderWidth,
1387
- rx: 3
1388
- }, null, 8, nt),
1389
- s.handleType && s.handleType !== "empty" ? (_(), p("g", {
1390
- key: 1,
1391
- class: "compact-handle-icon",
1392
- transform: `translate(${qr.value}, 0)`,
1393
- style: { "pointer-events": "none" }
1394
- }, [(_(), p("svg", {
1395
- width: $.value,
1396
- height: I.value.height,
1397
- viewBox: "0 0 20 20",
1398
- preserveAspectRatio: "xMidYMid meet"
1399
- }, [s.handleType === "arrow" ? (_(), p("path", {
1400
- key: 0,
1401
- 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",
1402
- fill: P.value,
1403
- stroke: s.handleIconColor || s.textColor,
1404
- "stroke-width": .618,
1405
- "stroke-linejoin": "round",
1406
- "stroke-linecap": "round"
1407
- }, null, 8, at)) : s.handleType === "chevron" ? (_(), p("path", {
1408
- key: 1,
1409
- d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
1410
- fill: "none",
1411
- stroke: s.handleIconColor || s.textColor,
1412
- "stroke-width": .618,
1413
- "stroke-linejoin": "round",
1414
- "stroke-linecap": "round"
1415
- }, null, 8, ot)) : s.handleType === "grab" ? (_(), p("path", {
1416
- key: 2,
1417
- 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",
1418
- fill: s.handleIconColor || s.textColor,
1419
- stroke: "none",
1420
- opacity: "0.6"
1421
- }, null, 8, st)) : f("", !0)], 8, it))], 8, rt)) : f("", !0)
1422
- ], 64)) : f("", !0),
1423
- e.$slots.slotMap ? f("", !0) : (_(), p(u, { key: 7 }, [s.minimapMerged ? (_(), p("g", ct, [
1424
- H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (_(), p("circle", {
1425
- key: 0,
1426
- cx: H.value.firstPlot.x,
1427
- cy: H.value.firstPlot.y,
1428
- "stroke-width": "0.5",
1429
- stroke: P.value,
1430
- r: "4",
1431
- fill: s.minimapLineColor
1432
- }, null, 8, lt)) : f("", !0),
1433
- H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (_(), p("circle", {
1434
- key: 1,
1435
- cx: H.value.firstPlot.x,
1436
- cy: H.value.firstPlot.y,
1437
- r: 2,
1438
- fill: P.value
1439
- }, null, 8, ut)) : f("", !0),
1440
- H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (_(), p("circle", {
1441
- key: 2,
1442
- cx: H.value.lastPlot.x,
1443
- cy: H.value.lastPlot.y,
1444
- "stroke-width": "0.5",
1445
- stroke: P.value,
1446
- r: "4",
1447
- fill: s.minimapLineColor
1448
- }, null, 8, dt)) : f("", !0),
1449
- H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (_(), p("circle", {
1450
- key: 3,
1451
- cx: H.value.lastPlot.x,
1452
- cy: H.value.lastPlot.y,
1453
- r: "2",
1454
- fill: P.value
1455
- }, null, 8, ft)) : f("", !0)
1456
- ])) : (_(), p("g", pt, [(_(!0), p(u, null, y(U.value.filter((e) => e.type === "line"), (e, t) => (_(), p("g", { key: String(e.key) }, [
1457
- e && e.hasSelection && e.selectionSet && e.isVisible ? (_(), p("path", {
1458
- key: 0,
1459
- d: `M ${e.selectionSet}`,
1460
- stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${s.uuid})` : e.color,
1461
- fill: "transparent",
1462
- "stroke-width": "2",
1463
- "stroke-linecap": "round",
1464
- "stroke-linejoin": "round",
1465
- "stroke-dasharray": e.dashed ? "2 4" : 0
1466
- }, null, 8, mt)) : f("", !0),
1467
- e.isVisible && s.cutNullValues ? (_(!0), p(u, { key: 1 }, y(e.selectionMarkers, (t) => (_(), p("circle", {
1468
- key: `sel-dot-${e.key}-${t.i}`,
1469
- cx: t.x,
1470
- cy: t.y,
1471
- r: "2.5",
1472
- fill: e.color,
1473
- stroke: P.value,
1474
- "stroke-width": "0.5"
1475
- }, null, 8, ht))), 128)) : f("", !0),
1476
- e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (_(), p("circle", {
1477
- key: 2,
1478
- cx: e.firstPlot.x,
1479
- cy: e.firstPlot.y,
1480
- "stroke-width": "0.5",
1481
- stroke: P.value,
1482
- r: "4",
1483
- fill: e.color
1484
- }, null, 8, gt)) : f("", !0),
1485
- e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (_(), p("circle", {
1486
- key: 3,
1487
- cx: e.firstPlot.x,
1488
- cy: e.firstPlot.y,
1489
- r: "2",
1490
- fill: P.value
1491
- }, null, 8, _t)) : f("", !0),
1492
- e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (_(), p("circle", {
1493
- key: 4,
1494
- cx: e.lastPlot.x,
1495
- cy: e.lastPlot.y,
1496
- "stroke-width": "0.5",
1497
- stroke: P.value,
1498
- r: "4",
1499
- fill: e.color
1500
- }, null, 8, vt)) : f("", !0),
1501
- e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (_(), p("circle", {
1502
- key: 5,
1503
- cx: e.lastPlot.x,
1504
- cy: e.lastPlot.y,
1505
- r: "2",
1506
- fill: P.value
1507
- }, null, 8, yt)) : f("", !0)
1508
- ]))), 128)), (_(!0), p(u, null, y(U.value.filter((e) => e.type === "plot"), (e) => (_(), p("g", { key: String(e.key) }, [(_(!0), p(u, null, y(e.points, (t) => (_(), p("g", null, [e.isVisible && s.cutNullValues && t.value !== null ? (_(), p("circle", {
1509
- key: `sel-plot-${e.key}-${t.i}`,
1510
- cx: t.x,
1511
- cy: t.y,
1512
- r: "2.5",
1513
- fill: e.color,
1514
- stroke: P.value,
1515
- "stroke-width": "0.5"
1516
- }, null, 8, bt)) : f("", !0)]))), 256))]))), 128))]))], 64))
1517
- ], 8, De))])) : f("", !0),
1518
- m("div", {
1519
- class: "slider-track",
1520
- style: g({ visibility: w.value && s.minimapCompact ? "hidden" : "visible" })
1521
- }, null, 4),
1522
- m("div", {
1523
- class: h({
1524
- "range-highlight": !0,
1525
- move: s.enableSelectionDrag
1526
- }),
1527
- onMousedown: t[2] ||= (e) => X.value = !0,
1528
- onMouseup: t[3] ||= (e) => X.value = !1,
1529
- style: g({
1530
- ...N.value,
1531
- cursor: X.value ? "grabbing" : "grab",
1532
- visibility: w.value && s.minimapCompact ? "hidden" : "visible"
1533
- })
1534
- }, null, 38),
1535
- s.enableRangeHandles ? be((_(), p("input", {
1536
- key: 1,
1537
- "aria-label": "range-handle-left",
1538
- ref_key: "rangeStart",
1539
- ref: zn,
1540
- type: "range",
1541
- step: s.precision > 0 ? 1 / 10 ** s.precision : 1,
1542
- class: h({
1543
- "range-left": !0,
1544
- "range-handle": !0,
1545
- "range-minimap": w.value && s.verticalHandles,
1546
- "range-invisible": w.value && s.minimapCompact
1547
- }),
1548
- min: s.min,
1549
- max: s.minimapCompact && w.value && !s.useValueRange ? Math.max(0, R.value - 1) : s.max,
1550
- tabindex: w.value ? -1 : 0,
1551
- "onUpdate:modelValue": t[4] ||= (e) => An.value = e,
1552
- onFocus: t[5] ||= (e) => w.value && e.target.blur(),
1553
- onInput: t[6] ||= (e) => An.value = e.target.valueAsNumber,
1554
- onChange: j,
1555
- onKeyup: xe(j, ["enter"]),
1556
- onBlur: j,
1557
- onMouseenter: t[7] ||= (e) => br("start"),
1558
- onPointerup: j
1559
- }, null, 42, xt)), [[
1560
- ve,
1561
- An.value,
1562
- void 0,
1563
- { number: !0 }
1564
- ]]) : f("", !0),
1565
- s.enableRangeHandles ? be((_(), p("input", {
1566
- key: 2,
1567
- "aria-label": "range-handle-right",
1568
- ref_key: "rangeEnd",
1569
- ref: Bn,
1570
- type: "range",
1571
- step: s.precision > 0 ? 1 / 10 ** s.precision : 1,
1572
- class: h({
1573
- "range-right": !0,
1574
- "range-handle": !0,
1575
- "range-minimap": w.value && s.verticalHandles,
1576
- "range-invisible": w.value && s.minimapCompact
1577
- }),
1578
- min: s.min,
1579
- max: s.minimapCompact && w.value && !s.useValueRange ? Math.max(0, R.value - 1) : s.max,
1580
- tabindex: w.value ? -1 : 0,
1581
- onFocus: t[8] ||= (e) => w.value && e.target.blur(),
1582
- "onUpdate:modelValue": t[9] ||= (e) => jn.value = e,
1583
- onInput: t[10] ||= (e) => jn.value = e.target.valueAsNumber,
1584
- onChange: j,
1585
- onKeyup: xe(j, ["enter"]),
1586
- onBlur: j,
1587
- onMouseenter: t[11] ||= (e) => br("end"),
1588
- onPointerup: j
1589
- }, null, 42, St)), [[
1590
- ve,
1591
- jn.value,
1592
- void 0,
1593
- { number: !0 }
1594
- ]]) : f("", !0),
1595
- w.value && s.minimapCompact ? (_(), p("div", Ct, [(_(), p("svg", {
1596
- xmlns: ge(ne),
1597
- viewBox: `0 0 ${Math.max(0, I.value.width)} ${Math.max(0, I.value.height + 1)}`
1598
- }, [m("rect", ce({
1599
- class: "vue-ui-zoom-compact-minimap-handle",
1600
- x: Kr.value,
1601
- y: 0,
1602
- width: $.value,
1603
- height: I.value.height,
1604
- fill: "transparent",
1605
- stroke: "none"
1606
- }, Ir.value, {
1607
- onKeydown: t[12] ||= (e) => Fr("start", e),
1608
- onMousedown: t[13] ||= Se((e) => Ur("start", e), ["stop", "prevent"]),
1609
- onClick: t[14] ||= Se(() => {}, ["stop", "prevent"])
1610
- }), null, 16, Tt), m("rect", ce({
1611
- class: "vue-ui-zoom-compact-minimap-handle",
1612
- x: qr.value,
1613
- y: 0,
1614
- width: $.value,
1615
- height: I.value.height,
1616
- fill: "transparent",
1617
- stroke: "none",
1618
- rx: 3
1619
- }, Lr.value, {
1620
- onKeydown: t[15] ||= (e) => Fr("end", e),
1621
- onMousedown: t[16] ||= Se((e) => Ur("end", e), ["stop", "prevent"]),
1622
- onClick: t[17] ||= Se(() => {}, ["stop", "prevent"])
1623
- }), null, 16, Et)], 8, wt))])) : f("", !0),
1624
- Q.value.left ? (_(), p("div", {
1625
- key: 4,
1626
- ref_key: "tooltipLeft",
1627
- ref: pr,
1628
- class: h({
1629
- "range-tooltip": !0,
1630
- "range-tooltip-visible": Z.value,
1631
- "range-tooltip-arrow": N.value.arrowLeft && !s.verticalHandles,
1632
- "range-tooltip-arrow-left": !N.value.arrowLeft && !s.verticalHandles
1633
- }),
1634
- style: g({
1635
- left: N.value.tooltipLeft,
1636
- color: ge(te)(s.selectColor),
1637
- backgroundColor: s.selectColor,
1638
- border: `1px solid ${P.value}`,
1639
- zIndex: `${yr.value + 4}`,
1640
- visibility: xr.value || Q.value.left === Q.value.right ? "hidden" : "visible",
1641
- top: w.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
1642
- })
1643
- }, he(Q.value.left), 7)) : f("", !0),
1644
- (xr.value || Q.value.left === Q.value.right) && (Q.value.left || Q.value.right) ? (_(), p("div", {
1645
- key: 5,
1646
- ref: "tooltipMerge",
1647
- class: h({
1648
- "range-tooltip": !0,
1649
- "range-tooltip-visible": Z.value,
1650
- "range-tooltip-arrow": !0,
1651
- "range-tooltip-arrow-left": !N.value.arrowLeft && !s.verticalHandles,
1652
- "range-tooltip-arrow-right": !N.value.arrowRight && !s.verticalHandles
1653
- }),
1654
- style: g({
1655
- left: N.value.tooltipCenter,
1656
- width: Sr.value.width + "px",
1657
- color: ge(te)(s.selectColor),
1658
- backgroundColor: s.selectColor,
1659
- border: `1px solid ${P.value}`,
1660
- zIndex: "4",
1661
- top: w.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
1662
- })
1663
- }, he(Q.value.left === Q.value.right ? Q.value.left : `${Q.value.left} - ${Q.value.right}`), 7)) : f("", !0),
1664
- Q.value.right ? (_(), p("div", {
1665
- key: 6,
1666
- ref_key: "tooltipRight",
1667
- ref: mr,
1668
- class: h({
1669
- "range-tooltip": !0,
1670
- "range-tooltip-visible": Z.value,
1671
- "range-tooltip-arrow": N.value.arrowRight && !s.verticalHandles,
1672
- "range-tooltip-arrow-right": !N.value.arrowRight && !s.verticalHandles
1673
- }),
1674
- style: g({
1675
- left: N.value.tooltipRight,
1676
- color: ge(te)(s.selectColor),
1677
- backgroundColor: s.selectColor,
1678
- border: `1px solid ${P.value}`,
1679
- zIndex: "4",
1680
- visibility: xr.value || Q.value.left === Q.value.right ? "hidden" : "visible",
1681
- top: w.value && s.minimapCompact ? "calc(-100% - 12px)" : "-100%"
1682
- })
1683
- }, he(Q.value.right), 7)) : f("", !0)
1684
- ], 36)], 44, Ce));
1685
- }
1686
- }, [["__scopeId", "data-v-86199147"]]);
1687
- //#endregion
1688
- export { Ot as t };