@cloudtower/eagle 4100.0.18 → 4100.0.19

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 (266) hide show
  1. package/dist/cjs/core/AccordionCard/index.js +1 -1
  2. package/dist/cjs/core/Alert/alert.style.js +2 -2
  3. package/dist/cjs/core/Antd5Tree/Antd5Tree.style.js +1 -1
  4. package/dist/cjs/core/Avatar/index.js +1 -1
  5. package/dist/cjs/core/Banner/banner.style.js +4 -4
  6. package/dist/cjs/core/BasicCTError/BasicCTError.style.js +1 -1
  7. package/dist/cjs/core/BlankState/style.js +1 -1
  8. package/dist/cjs/core/Breadcrumb/index.js +1 -1
  9. package/dist/cjs/core/Button/index.js +1 -1
  10. package/dist/cjs/core/ButtonGroup/index.js +2 -2
  11. package/dist/cjs/core/Card/CardBody.js +1 -1
  12. package/dist/cjs/core/Card/CardTitle.js +1 -1
  13. package/dist/cjs/core/Card/CardWrapper.js +2 -2
  14. package/dist/cjs/core/Cascader/cascader.style.js +11 -11
  15. package/dist/cjs/core/Checkbox/checkbox.style.js +1 -1
  16. package/dist/cjs/core/DetailCard/index.js +1 -1
  17. package/dist/cjs/core/DonutChart/index.js +2 -2
  18. package/dist/cjs/core/DropdownMenu/index.js +1 -1
  19. package/dist/cjs/core/ExpandableList/ExpandIcon.js +1 -1
  20. package/dist/cjs/core/ExpandableList/ExpandableContainer.js +1 -1
  21. package/dist/cjs/core/ExpandableList/ExpandableItem.js +2 -2
  22. package/dist/cjs/core/ExpandableList/RoundOrder.js +1 -1
  23. package/dist/cjs/core/FailedLoad/index.js +1 -1
  24. package/dist/cjs/core/FormItem/index.js +1 -1
  25. package/dist/cjs/core/Icon/index.js +1 -1
  26. package/dist/cjs/core/ImmersiveDialog/styles.js +14 -14
  27. package/dist/cjs/core/Input/index.js +1 -1
  28. package/dist/cjs/core/InputGroup/index.js +1 -1
  29. package/dist/cjs/core/InputInteger/index.js +1 -1
  30. package/dist/cjs/core/InputNumber/index.js +1 -1
  31. package/dist/cjs/core/InputPassword/index.js +1 -1
  32. package/dist/cjs/core/InputTagItem/index.js +1 -1
  33. package/dist/cjs/core/LegacySelect/select.style.js +1 -1
  34. package/dist/cjs/core/Legend/index.js +5 -5
  35. package/dist/cjs/core/LineChart/AreaHighlightLayer.js +122 -0
  36. package/dist/cjs/core/LineChart/ForecastLineLayer.js +134 -0
  37. package/dist/cjs/core/LineChart/LineChartActions.js +2 -2
  38. package/dist/cjs/core/LineChart/RenderChart.js +274 -20
  39. package/dist/cjs/core/LineChart/ThresholdIntersectionLayer.js +144 -0
  40. package/dist/cjs/core/LineChart/TooltipFormatter.js +44 -39
  41. package/dist/cjs/core/LineChart/areaHighlightUtils.js +89 -0
  42. package/dist/cjs/core/LineChart/index.js +20 -2
  43. package/dist/cjs/core/LineChart/lineChartDisplayUtils.js +32 -0
  44. package/dist/cjs/core/LineChart/lineSegments.js +90 -0
  45. package/dist/cjs/core/LineChart/styled.js +21 -9
  46. package/dist/cjs/core/LineChart/utils.js +93 -4
  47. package/dist/cjs/core/Link/index.js +1 -1
  48. package/dist/cjs/core/Loading/style.js +4 -4
  49. package/dist/cjs/core/LocalUpload/LocalUpload.style.js +2 -2
  50. package/dist/cjs/core/LogView/LogView.style.js +5 -5
  51. package/dist/cjs/core/MediumDialog/MediumDialog.js +1 -1
  52. package/dist/cjs/core/Metric/styled.js +8 -8
  53. package/dist/cjs/core/Nav/index.js +1 -1
  54. package/dist/cjs/core/Nav/style.js +2 -2
  55. package/dist/cjs/core/Overflow/index.js +2 -2
  56. package/dist/cjs/core/Pagination/index.js +2 -2
  57. package/dist/cjs/core/Progress/components.js +2 -2
  58. package/dist/cjs/core/Progress/index.js +2 -2
  59. package/dist/cjs/core/Progress/progress.style.js +4 -4
  60. package/dist/cjs/core/Progress/progress.widgets.js +2 -2
  61. package/dist/cjs/core/Radio/index.js +3 -3
  62. package/dist/cjs/core/SearchInput/SearchInput.style.js +5 -5
  63. package/dist/cjs/core/SegmentControl/index.js +4 -4
  64. package/dist/cjs/core/Select/select.style.js +4 -4
  65. package/dist/cjs/core/Select/select.widgets.js +3 -3
  66. package/dist/cjs/core/SimplePagination/index.js +2 -2
  67. package/dist/cjs/core/Skeleton/Content.js +1 -1
  68. package/dist/cjs/core/SmallDialog/SmallDialog.style.js +7 -7
  69. package/dist/cjs/core/StatusCapsule/index.js +2 -2
  70. package/dist/cjs/core/StepProgress/index.js +1 -1
  71. package/dist/cjs/core/Steps/style.js +5 -5
  72. package/dist/cjs/core/Styled/index.js +40 -40
  73. package/dist/cjs/core/Switch/index.js +2 -2
  74. package/dist/cjs/core/Tab/Tab.js +1 -1
  75. package/dist/cjs/core/Tab/Tab.style.js +4 -4
  76. package/dist/cjs/core/Table/TableSkeleton.js +1 -1
  77. package/dist/cjs/core/Table/TableWidget.js +1 -1
  78. package/dist/cjs/core/Table/index.js +3 -3
  79. package/dist/cjs/core/TableForm/Columns/FormItem.js +1 -1
  80. package/dist/cjs/core/TableForm/style.js +7 -7
  81. package/dist/cjs/core/Tag/SplitTag.js +1 -1
  82. package/dist/cjs/core/Tag/style.js +5 -5
  83. package/dist/cjs/core/Time/index.js +1 -1
  84. package/dist/cjs/core/TimeZoneSelect/index.js +7 -7
  85. package/dist/cjs/core/Timeline/Timeline.style.js +5 -5
  86. package/dist/cjs/core/Token/index.js +4 -4
  87. package/dist/cjs/core/Token/style.js +1 -1
  88. package/dist/cjs/core/Tooltip/EllipsisTooltipContent.js +1 -1
  89. package/dist/cjs/core/Tooltip/index.js +1 -1
  90. package/dist/cjs/core/Truncate/index.js +1 -1
  91. package/dist/cjs/core/Typo/index.js +58 -58
  92. package/dist/cjs/core/WizardDialog/styles.js +4 -4
  93. package/dist/cjs/coreX/BarChart/index.js +1 -1
  94. package/dist/cjs/coreX/BatchOperation/index.js +2 -2
  95. package/dist/cjs/coreX/ChartWithTooltip/index.js +6 -6
  96. package/dist/cjs/coreX/CheckPointList/checkpointlist.style.js +3 -3
  97. package/dist/cjs/coreX/CircleLoading/index.js +1 -1
  98. package/dist/cjs/coreX/CronCalendar/index.js +4 -4
  99. package/dist/cjs/coreX/CronPlan/index.js +4 -4
  100. package/dist/cjs/coreX/DateRangePicker/DateRangePicker.style.js +12 -12
  101. package/dist/cjs/coreX/DateRangePicker/RelativeTime.js +9 -6
  102. package/dist/cjs/coreX/DateRangePicker/common.js +104 -5
  103. package/dist/cjs/coreX/DateRangePicker/index.js +107 -47
  104. package/dist/cjs/coreX/Dialogs/DeleteDialog/DeleteDialog.js +2 -2
  105. package/dist/cjs/coreX/Dialogs/RejectDialog/RejectDialog.js +6 -6
  106. package/dist/cjs/coreX/GoBackButton/index.js +1 -1
  107. package/dist/cjs/coreX/I18nNameTag/index.js +1 -1
  108. package/dist/cjs/coreX/InfoRowList/InfoRow.js +1 -1
  109. package/dist/cjs/coreX/InfoRowList/InfoRowList.js +4 -4
  110. package/dist/cjs/coreX/KubeConfigModal/KubeConfigModal.style.js +8 -8
  111. package/dist/cjs/coreX/NamesTooltip/index.js +3 -3
  112. package/dist/cjs/coreX/OverflowTooltip/index.js +4 -4
  113. package/dist/cjs/coreX/Sider/index.js +3 -3
  114. package/dist/cjs/coreX/SummaryTable/index.js +5 -5
  115. package/dist/cjs/coreX/SwitchWithText/index.js +1 -1
  116. package/dist/cjs/coreX/TabMenu/index.js +2 -2
  117. package/dist/cjs/coreX/UnderlineTootip/index.js +1 -1
  118. package/dist/cjs/coreX/UnitWithChart/index.js +3 -3
  119. package/dist/cjs/index.js +13 -0
  120. package/dist/cjs/stats1.html +1 -1
  121. package/dist/components.css +4504 -4480
  122. package/dist/esm/core/AccordionCard/index.js +1 -1
  123. package/dist/esm/core/Alert/alert.style.js +2 -2
  124. package/dist/esm/core/Antd5Tree/Antd5Tree.style.js +1 -1
  125. package/dist/esm/core/Avatar/index.js +1 -1
  126. package/dist/esm/core/Banner/banner.style.js +4 -4
  127. package/dist/esm/core/BasicCTError/BasicCTError.style.js +1 -1
  128. package/dist/esm/core/BlankState/style.js +1 -1
  129. package/dist/esm/core/Breadcrumb/index.js +1 -1
  130. package/dist/esm/core/Button/index.js +1 -1
  131. package/dist/esm/core/ButtonGroup/index.js +2 -2
  132. package/dist/esm/core/Card/CardBody.js +1 -1
  133. package/dist/esm/core/Card/CardTitle.js +1 -1
  134. package/dist/esm/core/Card/CardWrapper.js +2 -2
  135. package/dist/esm/core/Cascader/cascader.style.js +11 -11
  136. package/dist/esm/core/Checkbox/checkbox.style.js +1 -1
  137. package/dist/esm/core/DetailCard/index.js +1 -1
  138. package/dist/esm/core/DonutChart/index.js +2 -2
  139. package/dist/esm/core/DropdownMenu/index.js +1 -1
  140. package/dist/esm/core/ExpandableList/ExpandIcon.js +1 -1
  141. package/dist/esm/core/ExpandableList/ExpandableContainer.js +1 -1
  142. package/dist/esm/core/ExpandableList/ExpandableItem.js +2 -2
  143. package/dist/esm/core/ExpandableList/RoundOrder.js +1 -1
  144. package/dist/esm/core/FailedLoad/index.js +1 -1
  145. package/dist/esm/core/FormItem/index.js +1 -1
  146. package/dist/esm/core/Icon/index.js +1 -1
  147. package/dist/esm/core/ImmersiveDialog/styles.js +14 -14
  148. package/dist/esm/core/Input/index.js +1 -1
  149. package/dist/esm/core/InputGroup/index.js +1 -1
  150. package/dist/esm/core/InputInteger/index.js +1 -1
  151. package/dist/esm/core/InputNumber/index.js +1 -1
  152. package/dist/esm/core/InputPassword/index.js +1 -1
  153. package/dist/esm/core/InputTagItem/index.js +1 -1
  154. package/dist/esm/core/LegacySelect/select.style.js +1 -1
  155. package/dist/esm/core/Legend/index.js +5 -5
  156. package/dist/esm/core/LineChart/AreaHighlightLayer.js +115 -0
  157. package/dist/esm/core/LineChart/ForecastLineLayer.js +124 -0
  158. package/dist/esm/core/LineChart/LineChartActions.js +2 -2
  159. package/dist/esm/core/LineChart/RenderChart.js +276 -23
  160. package/dist/esm/core/LineChart/ThresholdIntersectionLayer.js +134 -0
  161. package/dist/esm/core/LineChart/TooltipFormatter.js +41 -39
  162. package/dist/esm/core/LineChart/areaHighlightUtils.js +87 -0
  163. package/dist/esm/core/LineChart/index.js +21 -3
  164. package/dist/esm/core/LineChart/lineChartDisplayUtils.js +26 -0
  165. package/dist/esm/core/LineChart/lineSegments.js +87 -0
  166. package/dist/esm/core/LineChart/styled.js +20 -10
  167. package/dist/esm/core/LineChart/utils.js +91 -5
  168. package/dist/esm/core/Link/index.js +1 -1
  169. package/dist/esm/core/Loading/style.js +4 -4
  170. package/dist/esm/core/LocalUpload/LocalUpload.style.js +2 -2
  171. package/dist/esm/core/LogView/LogView.style.js +5 -5
  172. package/dist/esm/core/MediumDialog/MediumDialog.js +1 -1
  173. package/dist/esm/core/Metric/styled.js +8 -8
  174. package/dist/esm/core/Nav/index.js +1 -1
  175. package/dist/esm/core/Nav/style.js +2 -2
  176. package/dist/esm/core/Overflow/index.js +2 -2
  177. package/dist/esm/core/Pagination/index.js +2 -2
  178. package/dist/esm/core/Progress/components.js +2 -2
  179. package/dist/esm/core/Progress/index.js +2 -2
  180. package/dist/esm/core/Progress/progress.style.js +4 -4
  181. package/dist/esm/core/Progress/progress.widgets.js +2 -2
  182. package/dist/esm/core/Radio/index.js +3 -3
  183. package/dist/esm/core/SearchInput/SearchInput.style.js +5 -5
  184. package/dist/esm/core/SegmentControl/index.js +4 -4
  185. package/dist/esm/core/Select/select.style.js +4 -4
  186. package/dist/esm/core/Select/select.widgets.js +3 -3
  187. package/dist/esm/core/SimplePagination/index.js +2 -2
  188. package/dist/esm/core/Skeleton/Content.js +1 -1
  189. package/dist/esm/core/SmallDialog/SmallDialog.style.js +7 -7
  190. package/dist/esm/core/StatusCapsule/index.js +2 -2
  191. package/dist/esm/core/StepProgress/index.js +1 -1
  192. package/dist/esm/core/Steps/style.js +5 -5
  193. package/dist/esm/core/Styled/index.js +40 -40
  194. package/dist/esm/core/Switch/index.js +2 -2
  195. package/dist/esm/core/Tab/Tab.js +1 -1
  196. package/dist/esm/core/Tab/Tab.style.js +4 -4
  197. package/dist/esm/core/Table/TableSkeleton.js +1 -1
  198. package/dist/esm/core/Table/TableWidget.js +1 -1
  199. package/dist/esm/core/Table/index.js +3 -3
  200. package/dist/esm/core/TableForm/Columns/FormItem.js +1 -1
  201. package/dist/esm/core/TableForm/style.js +7 -7
  202. package/dist/esm/core/Tag/SplitTag.js +1 -1
  203. package/dist/esm/core/Tag/style.js +5 -5
  204. package/dist/esm/core/Time/index.js +1 -1
  205. package/dist/esm/core/TimeZoneSelect/index.js +7 -7
  206. package/dist/esm/core/Timeline/Timeline.style.js +5 -5
  207. package/dist/esm/core/Token/index.js +4 -4
  208. package/dist/esm/core/Token/style.js +1 -1
  209. package/dist/esm/core/Tooltip/EllipsisTooltipContent.js +1 -1
  210. package/dist/esm/core/Tooltip/index.js +1 -1
  211. package/dist/esm/core/Truncate/index.js +1 -1
  212. package/dist/esm/core/Typo/index.js +58 -58
  213. package/dist/esm/core/WizardDialog/styles.js +4 -4
  214. package/dist/esm/coreX/BarChart/index.js +1 -1
  215. package/dist/esm/coreX/BatchOperation/index.js +2 -2
  216. package/dist/esm/coreX/ChartWithTooltip/index.js +6 -6
  217. package/dist/esm/coreX/CheckPointList/checkpointlist.style.js +3 -3
  218. package/dist/esm/coreX/CircleLoading/index.js +1 -1
  219. package/dist/esm/coreX/CronCalendar/index.js +4 -4
  220. package/dist/esm/coreX/CronPlan/index.js +4 -4
  221. package/dist/esm/coreX/DateRangePicker/DateRangePicker.style.js +12 -12
  222. package/dist/esm/coreX/DateRangePicker/RelativeTime.js +10 -7
  223. package/dist/esm/coreX/DateRangePicker/common.js +99 -6
  224. package/dist/esm/coreX/DateRangePicker/index.js +108 -48
  225. package/dist/esm/coreX/Dialogs/DeleteDialog/DeleteDialog.js +2 -2
  226. package/dist/esm/coreX/Dialogs/RejectDialog/RejectDialog.js +6 -6
  227. package/dist/esm/coreX/GoBackButton/index.js +1 -1
  228. package/dist/esm/coreX/I18nNameTag/index.js +1 -1
  229. package/dist/esm/coreX/InfoRowList/InfoRow.js +1 -1
  230. package/dist/esm/coreX/InfoRowList/InfoRowList.js +4 -4
  231. package/dist/esm/coreX/KubeConfigModal/KubeConfigModal.style.js +8 -8
  232. package/dist/esm/coreX/NamesTooltip/index.js +3 -3
  233. package/dist/esm/coreX/OverflowTooltip/index.js +4 -4
  234. package/dist/esm/coreX/Sider/index.js +3 -3
  235. package/dist/esm/coreX/SummaryTable/index.js +5 -5
  236. package/dist/esm/coreX/SwitchWithText/index.js +1 -1
  237. package/dist/esm/coreX/TabMenu/index.js +2 -2
  238. package/dist/esm/coreX/UnderlineTootip/index.js +1 -1
  239. package/dist/esm/coreX/UnitWithChart/index.js +3 -3
  240. package/dist/esm/index.js +4 -1
  241. package/dist/esm/stats1.html +1 -1
  242. package/dist/linaria.merged.scss +5086 -5060
  243. package/dist/src/core/LineChart/AreaHighlightLayer.d.ts +31 -0
  244. package/dist/src/core/LineChart/ForecastLineLayer.d.ts +24 -0
  245. package/dist/src/core/LineChart/RenderChart.d.ts +5 -1
  246. package/dist/src/core/LineChart/ThresholdIntersectionLayer.d.ts +19 -0
  247. package/dist/src/core/LineChart/TooltipFormatter.d.ts +10 -0
  248. package/dist/src/core/LineChart/__test__/AreaHighlightLayer.test.d.ts +1 -0
  249. package/dist/src/core/LineChart/__test__/ForecastLineLayer.test.d.ts +1 -0
  250. package/dist/src/core/LineChart/__test__/utils.test.d.ts +1 -0
  251. package/dist/src/core/LineChart/areaHighlightUtils.d.ts +6 -0
  252. package/dist/src/core/LineChart/lineChartDisplayUtils.d.ts +7 -0
  253. package/dist/src/core/LineChart/lineSegments.d.ts +16 -0
  254. package/dist/src/core/LineChart/styled.d.ts +2 -0
  255. package/dist/src/core/LineChart/type.d.ts +94 -8
  256. package/dist/src/core/LineChart/utils.d.ts +31 -4
  257. package/dist/src/coreX/DateRangePicker/__tests__/AbsoluteDate.test.d.ts +1 -0
  258. package/dist/src/coreX/DateRangePicker/__tests__/DateRangePicker.test.d.ts +1 -0
  259. package/dist/src/coreX/DateRangePicker/__tests__/RelativeTime.test.d.ts +1 -0
  260. package/dist/src/coreX/DateRangePicker/__tests__/common.test.d.ts +1 -0
  261. package/dist/src/coreX/DateRangePicker/common.d.ts +12 -3
  262. package/dist/src/coreX/DateRangePicker/dateRangePicker.type.d.ts +5 -1
  263. package/dist/stories/docs/core/LineChart.stories.d.ts +4 -0
  264. package/dist/stories/docs/coreX/DateRangePicker.stories.d.ts +1 -0
  265. package/dist/style.css +4515 -4491
  266. package/package.json +3 -3
@@ -96,10 +96,92 @@ function getLineChartXAxisDomain(dateRange, xaxisLastTime) {
96
96
  const [startDate, endDate] = dateRange;
97
97
  return [startDate.valueOf(), xaxisLastTime != null ? xaxisLastTime : endDate.valueOf()];
98
98
  }
99
+ const getLineChartMetricPayloadMatches = (payload, legends = []) => {
100
+ if (!(payload == null ? void 0 : payload.length)) {
101
+ return [];
102
+ }
103
+ return payload.flatMap((item) => {
104
+ const legend = legends.find((_legend, index) => `v${index}` === item.name);
105
+ if (!legend) {
106
+ return [];
107
+ }
108
+ return [{ payload: item, legend }];
109
+ });
110
+ };
111
+ const getLineChartAreaHighlightRanges = (ranges = [], xDomain) => {
112
+ const [domainStart, domainEnd] = xDomain;
113
+ return ranges.map((range) => __spreadProps(__spreadValues({}, range), {
114
+ start: Math.max(range.start, domainStart),
115
+ end: Math.min(range.end, domainEnd)
116
+ })).filter((range) => range.start < range.end);
117
+ };
99
118
  const getLineChartRangeTimestamp = (dateRange) => {
100
119
  const [startDate, endDate] = dateRange;
101
120
  return endDate.valueOf() - startDate.valueOf();
102
121
  };
122
+ const isSameIntersectionPoint = (prev, next) => {
123
+ if (!prev) {
124
+ return false;
125
+ }
126
+ return prev.streamIndex === next.streamIndex && Math.abs(prev.timestamp - next.timestamp) < 1e-6 && Math.abs(prev.value - next.value) < 1e-6;
127
+ };
128
+ const pushLineChartIntersection = (intersections, next) => {
129
+ if (!isSameIntersectionPoint(intersections[intersections.length - 1], next)) {
130
+ intersections.push(next);
131
+ }
132
+ };
133
+ const isValidLineChartValue = (value) => {
134
+ return ___default.default.isNumber(value) && Number.isFinite(value);
135
+ };
136
+ const getLineChartThresholdIntersections = (streams, thresholdValue, xDomain) => {
137
+ const [domainStart, domainEnd] = xDomain != null ? xDomain : [-Infinity, Infinity];
138
+ return streams.flatMap((stream, streamIndex) => {
139
+ const intersections = [];
140
+ for (let index = 0; index < stream.points.length - 1; index++) {
141
+ const currentPoint = stream.points[index];
142
+ const nextPoint = stream.points[index + 1];
143
+ if (!isValidLineChartValue(currentPoint == null ? void 0 : currentPoint.v) || !isValidLineChartValue(nextPoint == null ? void 0 : nextPoint.v) || currentPoint.t === nextPoint.t) {
144
+ continue;
145
+ }
146
+ const currentDiff = currentPoint.v - thresholdValue;
147
+ const nextDiff = nextPoint.v - thresholdValue;
148
+ if (currentDiff === 0 && nextDiff === 0) {
149
+ continue;
150
+ }
151
+ if (currentDiff === 0 && currentPoint.t >= domainStart && currentPoint.t <= domainEnd) {
152
+ pushLineChartIntersection(intersections, {
153
+ timestamp: currentPoint.t,
154
+ value: thresholdValue,
155
+ legend: stream.legend,
156
+ streamIndex
157
+ });
158
+ }
159
+ if (currentDiff * nextDiff < 0) {
160
+ const ratio = currentDiff / (currentDiff - nextDiff);
161
+ const timestamp = currentPoint.t + (nextPoint.t - currentPoint.t) * ratio;
162
+ if (timestamp >= domainStart && timestamp <= domainEnd) {
163
+ pushLineChartIntersection(intersections, {
164
+ timestamp,
165
+ value: thresholdValue,
166
+ legend: stream.legend,
167
+ streamIndex
168
+ });
169
+ }
170
+ }
171
+ if (nextDiff === 0 && nextPoint.t >= domainStart && nextPoint.t <= domainEnd) {
172
+ pushLineChartIntersection(intersections, {
173
+ timestamp: nextPoint.t,
174
+ value: thresholdValue,
175
+ legend: stream.legend,
176
+ streamIndex
177
+ });
178
+ }
179
+ }
180
+ return intersections.filter(
181
+ (intersection) => intersection.timestamp >= domainStart && intersection.timestamp <= domainEnd
182
+ );
183
+ });
184
+ };
103
185
  const getLineChartStep = (dateRange) => {
104
186
  const [startDate, endDate] = dateRange;
105
187
  const range = endDate.valueOf() - startDate.valueOf();
@@ -292,7 +374,7 @@ const UNIT_FORMATTER = {
292
374
  [type.ILineChartMetricUnit.Temperature]: [tower.formatTemperature, "\u2103"],
293
375
  [type.ILineChartMetricUnit.Load]: [tower.formatCount, ""]
294
376
  };
295
- const getLineChartYDataMax = (dataPoints, type$1) => {
377
+ const getLineChartYDataMax = (dataPoints, type$1, extraValues = []) => {
296
378
  const values = dataPoints.map((p) => {
297
379
  if (___default.default.isNumber(p == null ? void 0 : p.v)) {
298
380
  return p.v;
@@ -316,7 +398,11 @@ const getLineChartYDataMax = (dataPoints, type$1) => {
316
398
  return max;
317
399
  }
318
400
  });
319
- return Math.max(...values, 0);
401
+ return Math.max(
402
+ ...values,
403
+ 0,
404
+ ...extraValues.filter((value) => Number.isFinite(value))
405
+ );
320
406
  };
321
407
  const getYAxisUpperBound = (max, type$1) => {
322
408
  const DIVISOR = 2;
@@ -350,8 +436,8 @@ const getYAxisUpperBound = (max, type$1) => {
350
436
  return 2;
351
437
  }
352
438
  };
353
- const getYAxisDomain = (dataPoints, graphType, unitType) => {
354
- const max = getLineChartYDataMax(dataPoints, graphType);
439
+ const getYAxisDomain = (dataPoints, graphType, unitType, extraValues = []) => {
440
+ const max = getLineChartYDataMax(dataPoints, graphType, extraValues);
355
441
  if (!max) {
356
442
  if (unitType === type.ILineChartMetricUnit.Ratio) {
357
443
  return [0, 1];
@@ -382,8 +468,11 @@ exports.filterLineChartDataOverlapping = filterLineChartDataOverlapping;
382
468
  exports.filterLineChartOverlappingMetric = filterLineChartOverlappingMetric;
383
469
  exports.filterLineChartPointsByDateRange = filterLineChartPointsByDateRange;
384
470
  exports.getFirstExpectedTimestamp = getFirstExpectedTimestamp;
471
+ exports.getLineChartAreaHighlightRanges = getLineChartAreaHighlightRanges;
472
+ exports.getLineChartMetricPayloadMatches = getLineChartMetricPayloadMatches;
385
473
  exports.getLineChartRangeTimestamp = getLineChartRangeTimestamp;
386
474
  exports.getLineChartStep = getLineChartStep;
475
+ exports.getLineChartThresholdIntersections = getLineChartThresholdIntersections;
387
476
  exports.getLineChartXAxisDomain = getLineChartXAxisDomain;
388
477
  exports.getLineChartYDataMax = getLineChartYDataMax;
389
478
  exports.getYAxisDomain = getYAxisDomain;
@@ -37,7 +37,7 @@ var __objRest = (source, exclude) => {
37
37
  }
38
38
  return target;
39
39
  };
40
- const LinkStyle = "E_4100_0_18_l48ei06";
40
+ const LinkStyle = "E_4100_0_19_l48ei06";
41
41
  const Link = React__default.default.forwardRef((_a, ref) => {
42
42
  var _b = _a,
43
43
  {
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const LoadingWrapper = "E_4100_0_18_lht19u8";
4
- const LoadingLine1 = "E_4100_0_18_lk3gkp4";
5
- const LoadingLine2 = "E_4100_0_18_ll4n94n";
6
- const LoadingLine3 = "E_4100_0_18_l17lbdo6";
3
+ const LoadingWrapper = "E_4100_0_19_lht19u8";
4
+ const LoadingLine1 = "E_4100_0_19_lk3gkp4";
5
+ const LoadingLine2 = "E_4100_0_19_ll4n94n";
6
+ const LoadingLine3 = "E_4100_0_19_l17lbdo6";
7
7
 
8
8
  exports.LoadingLine1 = LoadingLine1;
9
9
  exports.LoadingLine2 = LoadingLine2;
@@ -4,10 +4,10 @@ var react = require('@linaria/react');
4
4
 
5
5
  const UploadWrapper = /*#__PURE__*/react.styled('div')({
6
6
  name: "UploadWrapper",
7
- class: "E_4100_0_18_u3l9ivi",
7
+ class: "E_4100_0_19_u3l9ivi",
8
8
  propsAsIs: false
9
9
  });
10
- const FileInfoWrapperStyle = "E_4100_0_18_ftdwz1g";
10
+ const FileInfoWrapperStyle = "E_4100_0_19_ftdwz1g";
11
11
 
12
12
  exports.FileInfoWrapperStyle = FileInfoWrapperStyle;
13
13
  exports.UploadWrapper = UploadWrapper;
@@ -4,25 +4,25 @@ var react = require('@linaria/react');
4
4
 
5
5
  const LogViewContainer = /*#__PURE__*/react.styled('div')({
6
6
  name: "LogViewContainer",
7
- class: "E_4100_0_18_l1v1luhz",
7
+ class: "E_4100_0_19_l1v1luhz",
8
8
  propsAsIs: false
9
9
  });
10
10
  const LogViewInnerContaier = /*#__PURE__*/react.styled('div')({
11
11
  name: "LogViewInnerContaier",
12
- class: "E_4100_0_18_lranxiw",
12
+ class: "E_4100_0_19_lranxiw",
13
13
  propsAsIs: false
14
14
  });
15
15
  const LogTerminal = /*#__PURE__*/react.styled('div')({
16
16
  name: "LogTerminal",
17
- class: "E_4100_0_18_l1y3zqy5",
17
+ class: "E_4100_0_19_l1y3zqy5",
18
18
  propsAsIs: false
19
19
  });
20
20
  const CustomContentOverlay = /*#__PURE__*/react.styled('div')({
21
21
  name: "CustomContentOverlay",
22
- class: "E_4100_0_18_c1x4mn5u",
22
+ class: "E_4100_0_19_c1x4mn5u",
23
23
  propsAsIs: false
24
24
  });
25
- const SearchInputStyle = "E_4100_0_18_s4pilip";
25
+ const SearchInputStyle = "E_4100_0_19_s4pilip";
26
26
 
27
27
  exports.CustomContentOverlay = CustomContentOverlay;
28
28
  exports.LogTerminal = LogTerminal;
@@ -34,7 +34,7 @@ var __objRest = (source, exclude) => {
34
34
  }
35
35
  return target;
36
36
  };
37
- const MediumDialogStyle = "E_4100_0_18_m5foqp8";
37
+ const MediumDialogStyle = "E_4100_0_19_m5foqp8";
38
38
  const MediumDialog = _a => {
39
39
  var _b = _a,
40
40
  {
@@ -2,24 +2,24 @@
2
2
 
3
3
  var react = require('@linaria/react');
4
4
 
5
- const MetricLegendTabStyle = "E_4100_0_18_mp64wfi";
6
- const LegendStyle = "E_4100_0_18_l1oyigan";
7
- const LegendItemStyle = "E_4100_0_18_l1noi4n1";
8
- const ColorBlockStyle = "E_4100_0_18_cz19rz6";
9
- const ExtraResource = "E_4100_0_18_e17r5r9c";
5
+ const MetricLegendTabStyle = "E_4100_0_19_mp64wfi";
6
+ const LegendStyle = "E_4100_0_19_l1oyigan";
7
+ const LegendItemStyle = "E_4100_0_19_l1noi4n1";
8
+ const ColorBlockStyle = "E_4100_0_19_cz19rz6";
9
+ const ExtraResource = "E_4100_0_19_e17r5r9c";
10
10
  const MetricWrapper = /*#__PURE__*/react.styled('div')({
11
11
  name: "MetricWrapper",
12
- class: "E_4100_0_18_m1y1hhnr",
12
+ class: "E_4100_0_19_m1y1hhnr",
13
13
  propsAsIs: false
14
14
  });
15
15
  const TooltipWrapper = /*#__PURE__*/react.styled('div')({
16
16
  name: "TooltipWrapper",
17
- class: "E_4100_0_18_tnvijvs",
17
+ class: "E_4100_0_19_tnvijvs",
18
18
  propsAsIs: false
19
19
  });
20
20
  const TooltipColumn = /*#__PURE__*/react.styled('div')({
21
21
  name: "TooltipColumn",
22
- class: "E_4100_0_18_t1ub2aex",
22
+ class: "E_4100_0_19_t1ub2aex",
23
23
  propsAsIs: false
24
24
  });
25
25
 
@@ -10,7 +10,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
10
  var cs__default = /*#__PURE__*/_interopDefault(cs);
11
11
  var React__default = /*#__PURE__*/_interopDefault(React);
12
12
 
13
- const MinWidth = "E_4100_0_18_m196gn1d";
13
+ const MinWidth = "E_4100_0_19_m196gn1d";
14
14
  const Nav = ({
15
15
  left,
16
16
  right,
@@ -4,10 +4,10 @@ var react = require('@linaria/react');
4
4
 
5
5
  const Header = /*#__PURE__*/react.styled('header')({
6
6
  name: "Header",
7
- class: "E_4100_0_18_h12yihis",
7
+ class: "E_4100_0_19_h12yihis",
8
8
  propsAsIs: false
9
9
  });
10
- const NavCenterStyle = "E_4100_0_18_ncaepor";
10
+ const NavCenterStyle = "E_4100_0_19_ncaepor";
11
11
 
12
12
  exports.Header = Header;
13
13
  exports.NavCenterStyle = NavCenterStyle;
@@ -11,8 +11,8 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
11
11
  var cs__default = /*#__PURE__*/_interopDefault(cs);
12
12
  var React__default = /*#__PURE__*/_interopDefault(React);
13
13
 
14
- const OverflowWrapper = "E_4100_0_18_owd0kml";
15
- const HiddenStyle = "E_4100_0_18_h1jsgezc";
14
+ const OverflowWrapper = "E_4100_0_19_owd0kml";
15
+ const HiddenStyle = "E_4100_0_19_h1jsgezc";
16
16
  const Overflow = props => {
17
17
  const {
18
18
  children,
@@ -15,8 +15,8 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
15
15
  var cs__default = /*#__PURE__*/_interopDefault(cs);
16
16
  var React__default = /*#__PURE__*/_interopDefault(React);
17
17
 
18
- const PaginationStyle = "E_4100_0_18_phljevk";
19
- const DropdownOverlayStyle = "E_4100_0_18_d12rtyeg";
18
+ const PaginationStyle = "E_4100_0_19_phljevk";
19
+ const DropdownOverlayStyle = "E_4100_0_19_d12rtyeg";
20
20
  const Pagination = props => {
21
21
  const {
22
22
  current,
@@ -49,7 +49,7 @@ const _exp = /*#__PURE__*/() => ({
49
49
  }) => color || "";
50
50
  const IconFieldText = /*#__PURE__*/react.styled('div')({
51
51
  name: "IconFieldText",
52
- class: "E_4100_0_18_i14c7jc8",
52
+ class: "E_4100_0_19_i14c7jc8",
53
53
  propsAsIs: false,
54
54
  vars: {
55
55
  "i14c7jc8-0": [_exp()]
@@ -66,7 +66,7 @@ const StatusIconMap = {
66
66
  };
67
67
  const IconFieldWrapper = /*#__PURE__*/react.styled('div')({
68
68
  name: "IconFieldWrapper",
69
- class: "E_4100_0_18_i1ibuolf",
69
+ class: "E_4100_0_19_i1ibuolf",
70
70
  propsAsIs: false
71
71
  });
72
72
  const IconField = _a => {
@@ -44,7 +44,7 @@ var __objRest = (source, exclude) => {
44
44
  };
45
45
  const Row = /*#__PURE__*/react.styled('div')({
46
46
  name: "Row",
47
- class: "E_4100_0_18_r77hffu",
47
+ class: "E_4100_0_19_r77hffu",
48
48
  propsAsIs: false
49
49
  });
50
50
  const _exp = /*#__PURE__*/() => ({
@@ -52,7 +52,7 @@ const _exp = /*#__PURE__*/() => ({
52
52
  }) => type === "rich" ? "6px" : "4px";
53
53
  const ProgressContainer = /*#__PURE__*/react.styled('div')({
54
54
  name: "ProgressContainer",
55
- class: "E_4100_0_18_p1cmxsf7",
55
+ class: "E_4100_0_19_p1cmxsf7",
56
56
  propsAsIs: false,
57
57
  vars: {
58
58
  "p1cmxsf7-0": [_exp()]
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const DescriptionStyle = "E_4100_0_18_d1u4ndxc";
4
- const FlexFullContentStyle = "E_4100_0_18_f6xb0iv";
5
- const BaseProgressStyle = "E_4100_0_18_b1dhu7ov";
6
- const ProgressStyle = "E_4100_0_18_p1as1j2z";
3
+ const DescriptionStyle = "E_4100_0_19_d1u4ndxc";
4
+ const FlexFullContentStyle = "E_4100_0_19_f6xb0iv";
5
+ const BaseProgressStyle = "E_4100_0_19_b1dhu7ov";
6
+ const ProgressStyle = "E_4100_0_19_p1as1j2z";
7
7
 
8
8
  exports.BaseProgressStyle = BaseProgressStyle;
9
9
  exports.DescriptionStyle = DescriptionStyle;
@@ -39,11 +39,11 @@ var __objRest = (source, exclude) => {
39
39
  }
40
40
  return target;
41
41
  };
42
- const titleAreaStyle = "E_4100_0_18_t1gvlxt5";
42
+ const titleAreaStyle = "E_4100_0_19_t1gvlxt5";
43
43
  const _exp2 = /*#__PURE__*/() => props => props.gap;
44
44
  const AreaWrapper = /*#__PURE__*/react.styled('div')({
45
45
  name: "AreaWrapper",
46
- class: "E_4100_0_18_a1ji6r68",
46
+ class: "E_4100_0_19_a1ji6r68",
47
47
  propsAsIs: false,
48
48
  vars: {
49
49
  "a1ji6r68-0": [_exp2(), "px"]
@@ -39,9 +39,9 @@ var __objRest = (source, exclude) => {
39
39
  }
40
40
  return target;
41
41
  };
42
- const RadioStyle = "E_4100_0_18_rapgekc";
43
- const RadioGroupStyle = "E_4100_0_18_rp906go";
44
- const RadioButtonStyle = "E_4100_0_18_rcc63c8";
42
+ const RadioStyle = "E_4100_0_19_rapgekc";
43
+ const RadioGroupStyle = "E_4100_0_19_rp906go";
44
+ const RadioButtonStyle = "E_4100_0_19_rcc63c8";
45
45
  const KitRadioGroupContext = React__default.default.createContext({});
46
46
  const Radio = _a => {
47
47
  var _b = _a,
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- const SearchInputStyles = "E_4100_0_18_s1n7hav7";
4
- const CountTextStyles = "E_4100_0_18_c1tgpyn0";
5
- const IconContainerStyles = "E_4100_0_18_i1cmbu8m";
6
- const DisabledIconStyles = "E_4100_0_18_dxmfsc9";
7
- const SearchInputDropdownStyles = "E_4100_0_18_slbf45q";
3
+ const SearchInputStyles = "E_4100_0_19_s1n7hav7";
4
+ const CountTextStyles = "E_4100_0_19_c1tgpyn0";
5
+ const IconContainerStyles = "E_4100_0_19_i1cmbu8m";
6
+ const DisabledIconStyles = "E_4100_0_19_dxmfsc9";
7
+ const SearchInputDropdownStyles = "E_4100_0_19_slbf45q";
8
8
 
9
9
  exports.CountTextStyles = CountTextStyles;
10
10
  exports.DisabledIconStyles = DisabledIconStyles;
@@ -27,10 +27,10 @@ var __spreadValues = (a, b) => {
27
27
  }
28
28
  return a;
29
29
  };
30
- const Segment = "E_4100_0_18_s11wux3h";
31
- const SmallSegment = "E_4100_0_18_s1t2an3z";
32
- const MediumSegment = "E_4100_0_18_ma64lna";
33
- const ColorSegment = "E_4100_0_18_ckld275";
30
+ const Segment = "E_4100_0_19_s11wux3h";
31
+ const SmallSegment = "E_4100_0_19_s1t2an3z";
32
+ const MediumSegment = "E_4100_0_19_ma64lna";
33
+ const ColorSegment = "E_4100_0_19_ckld275";
34
34
  const SegmentControl = props => {
35
35
  const {
36
36
  size = "middle",
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const SelectStyle = "E_4100_0_18_s4ivdfu";
4
- const SelectIconStyle = "E_4100_0_18_sks9xr8";
5
- const SelectSizeStyle = "E_4100_0_18_swwhohx";
6
- const PlaceholderTextStyle = "E_4100_0_18_p2sxmsl";
3
+ const SelectStyle = "E_4100_0_19_s4ivdfu";
4
+ const SelectIconStyle = "E_4100_0_19_sks9xr8";
5
+ const SelectSizeStyle = "E_4100_0_19_swwhohx";
6
+ const PlaceholderTextStyle = "E_4100_0_19_p2sxmsl";
7
7
 
8
8
  exports.PlaceholderTextStyle = PlaceholderTextStyle;
9
9
  exports.SelectIconStyle = SelectIconStyle;
@@ -33,9 +33,9 @@ var __objRest = (source, exclude) => {
33
33
  }
34
34
  return target;
35
35
  };
36
- const OptionStyle = "E_4100_0_18_oa99sl3";
37
- const LeftStyle = "E_4100_0_18_lvp5pj7";
38
- const SlotStyle = "E_4100_0_18_s1io1lws";
36
+ const OptionStyle = "E_4100_0_19_oa99sl3";
37
+ const LeftStyle = "E_4100_0_19_lvp5pj7";
38
+ const SlotStyle = "E_4100_0_19_s1io1lws";
39
39
  const AntdOption = antd.Select.Option;
40
40
  function getOptions(options) {
41
41
  return options.map(option => {
@@ -15,7 +15,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
15
15
  var cs__default = /*#__PURE__*/_interopDefault(cs);
16
16
  var React__default = /*#__PURE__*/_interopDefault(React);
17
17
 
18
- const inputStyle = "E_4100_0_18_ivqqkzv";
18
+ const inputStyle = "E_4100_0_19_ivqqkzv";
19
19
  const SimplePagination = props => {
20
20
  const {
21
21
  className,
@@ -78,7 +78,7 @@ const SimplePagination = props => {
78
78
  changeValue(event.target.value);
79
79
  }
80
80
  }), /* @__PURE__ */React__default.default.createElement("span", {
81
- className: cs__default.default("E_4100_0_18_c1wk4q29", index$1.Typo.Label.l3_regular_upper)
81
+ className: cs__default.default("E_4100_0_19_c1wk4q29", index$1.Typo.Label.l3_regular_upper)
82
82
  }, `/ ${pageLength}`), showNext && /* @__PURE__ */React__default.default.createElement(index$2, {
83
83
  className: "next-btn",
84
84
  type: "quiet",
@@ -8,7 +8,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
8
  var cs__default = /*#__PURE__*/_interopDefault(cs);
9
9
  var React__default = /*#__PURE__*/_interopDefault(React);
10
10
 
11
- const SkeletonContentStyle = "E_4100_0_18_s20iney";
11
+ const SkeletonContentStyle = "E_4100_0_19_s20iney";
12
12
  const SkeletonContent = props => {
13
13
  const {
14
14
  width = "100%",
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- const DialogStyle = "E_4100_0_18_dxyv8bv";
4
- const FooterStyle = "E_4100_0_18_fbgo4wr";
5
- const ErrorTextStyle = "E_4100_0_18_ekxnz54";
6
- const CloseIconStyle = "E_4100_0_18_ct1041x";
7
- const ModelTitleSkeletonStyle = "E_4100_0_18_m1k84ymw";
8
- const ModelContentSkeletonStyle = "E_4100_0_18_m15ds5xe";
9
- const ModelInitializingErrorStyle = "E_4100_0_18_ma56n19";
3
+ const DialogStyle = "E_4100_0_19_dxyv8bv";
4
+ const FooterStyle = "E_4100_0_19_fbgo4wr";
5
+ const ErrorTextStyle = "E_4100_0_19_ekxnz54";
6
+ const CloseIconStyle = "E_4100_0_19_ct1041x";
7
+ const ModelTitleSkeletonStyle = "E_4100_0_19_m1k84ymw";
8
+ const ModelContentSkeletonStyle = "E_4100_0_19_m15ds5xe";
9
+ const ModelInitializingErrorStyle = "E_4100_0_19_ma56n19";
10
10
 
11
11
  exports.CloseIconStyle = CloseIconStyle;
12
12
  exports.DialogStyle = DialogStyle;
@@ -44,10 +44,10 @@ var __objRest = (source, exclude) => {
44
44
  return target;
45
45
  };
46
46
  const StatusPresetColors = ["blue", "red", "yellow", "green", "gray"];
47
- const StatusCapsuleStyle = "E_4100_0_18_sddwhm6";
47
+ const StatusCapsuleStyle = "E_4100_0_19_sddwhm6";
48
48
  const StatusCode = /*#__PURE__*/react.styled('i')({
49
49
  name: "StatusCode",
50
- class: "E_4100_0_18_satwmqm",
50
+ class: "E_4100_0_19_satwmqm",
51
51
  propsAsIs: false
52
52
  });
53
53
  const StatusIcon = ({
@@ -8,7 +8,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
8
  var cs__default = /*#__PURE__*/_interopDefault(cs);
9
9
  var React__default = /*#__PURE__*/_interopDefault(React);
10
10
 
11
- const CircleProgressStyle = "E_4100_0_18_c1bus5hc";
11
+ const CircleProgressStyle = "E_4100_0_19_c1bus5hc";
12
12
  const CircleProgress = props => {
13
13
  const {
14
14
  percent,
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- const StepsStyle = "E_4100_0_18_sjob3jg";
4
- const HorizontalStyle = "E_4100_0_18_hjvj6s6";
5
- const VerticalStyle = "E_4100_0_18_v4tv3mf";
6
- const HorizontalStepContentStyle = "E_4100_0_18_h6l1tj4";
7
- const VerticalStepContentStyle = "E_4100_0_18_v18frne8";
3
+ const StepsStyle = "E_4100_0_19_sjob3jg";
4
+ const HorizontalStyle = "E_4100_0_19_hjvj6s6";
5
+ const VerticalStyle = "E_4100_0_19_v4tv3mf";
6
+ const HorizontalStepContentStyle = "E_4100_0_19_h6l1tj4";
7
+ const VerticalStepContentStyle = "E_4100_0_19_v18frne8";
8
8
 
9
9
  exports.HorizontalStepContentStyle = HorizontalStepContentStyle;
10
10
  exports.HorizontalStyle = HorizontalStyle;