@cloudtower/eagle 4100.0.17 → 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 (276) 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.hooks.js +5 -2
  50. package/dist/cjs/core/LocalUpload/LocalUpload.js +53 -45
  51. package/dist/cjs/core/LocalUpload/LocalUpload.style.js +2 -2
  52. package/dist/cjs/core/LocalUpload/LocalUpload.widget.js +156 -133
  53. package/dist/cjs/core/LogView/LogView.style.js +5 -5
  54. package/dist/cjs/core/MediumDialog/MediumDialog.js +1 -1
  55. package/dist/cjs/core/Metric/styled.js +8 -8
  56. package/dist/cjs/core/Nav/index.js +1 -1
  57. package/dist/cjs/core/Nav/style.js +2 -2
  58. package/dist/cjs/core/Overflow/index.js +2 -2
  59. package/dist/cjs/core/Pagination/index.js +2 -2
  60. package/dist/cjs/core/Progress/components.js +2 -2
  61. package/dist/cjs/core/Progress/index.js +2 -2
  62. package/dist/cjs/core/Progress/progress.style.js +4 -4
  63. package/dist/cjs/core/Progress/progress.widgets.js +2 -2
  64. package/dist/cjs/core/Radio/index.js +3 -3
  65. package/dist/cjs/core/SearchInput/SearchInput.style.js +5 -5
  66. package/dist/cjs/core/SegmentControl/index.js +4 -4
  67. package/dist/cjs/core/Select/select.style.js +4 -4
  68. package/dist/cjs/core/Select/select.widgets.js +3 -3
  69. package/dist/cjs/core/SimplePagination/index.js +2 -2
  70. package/dist/cjs/core/Skeleton/Content.js +1 -1
  71. package/dist/cjs/core/SmallDialog/SmallDialog.style.js +7 -7
  72. package/dist/cjs/core/StatusCapsule/index.js +2 -2
  73. package/dist/cjs/core/StepProgress/index.js +1 -1
  74. package/dist/cjs/core/Steps/style.js +5 -5
  75. package/dist/cjs/core/Styled/index.js +40 -40
  76. package/dist/cjs/core/Switch/index.js +2 -2
  77. package/dist/cjs/core/Tab/Tab.js +1 -1
  78. package/dist/cjs/core/Tab/Tab.style.js +4 -4
  79. package/dist/cjs/core/Table/TableSkeleton.js +1 -1
  80. package/dist/cjs/core/Table/TableWidget.js +1 -1
  81. package/dist/cjs/core/Table/index.js +3 -3
  82. package/dist/cjs/core/TableForm/Columns/FormItem.js +1 -1
  83. package/dist/cjs/core/TableForm/style.js +7 -7
  84. package/dist/cjs/core/Tag/SplitTag.js +1 -1
  85. package/dist/cjs/core/Tag/style.js +5 -5
  86. package/dist/cjs/core/Time/index.js +1 -1
  87. package/dist/cjs/core/TimeZoneSelect/index.js +7 -7
  88. package/dist/cjs/core/Timeline/Timeline.style.js +5 -5
  89. package/dist/cjs/core/Token/index.js +4 -4
  90. package/dist/cjs/core/Token/style.js +1 -1
  91. package/dist/cjs/core/Tooltip/EllipsisTooltipContent.js +1 -1
  92. package/dist/cjs/core/Tooltip/index.js +1 -1
  93. package/dist/cjs/core/Truncate/index.js +1 -1
  94. package/dist/cjs/core/Typo/index.js +58 -58
  95. package/dist/cjs/core/WizardDialog/styles.js +4 -4
  96. package/dist/cjs/coreX/BarChart/index.js +1 -1
  97. package/dist/cjs/coreX/BatchOperation/index.js +2 -2
  98. package/dist/cjs/coreX/ChartWithTooltip/index.js +6 -6
  99. package/dist/cjs/coreX/CheckPointList/checkpointlist.style.js +3 -3
  100. package/dist/cjs/coreX/CircleLoading/index.js +1 -1
  101. package/dist/cjs/coreX/CronCalendar/index.js +4 -4
  102. package/dist/cjs/coreX/CronPlan/index.js +4 -4
  103. package/dist/cjs/coreX/DateRangePicker/DateRangePicker.style.js +12 -12
  104. package/dist/cjs/coreX/DateRangePicker/RelativeTime.js +9 -6
  105. package/dist/cjs/coreX/DateRangePicker/common.js +104 -5
  106. package/dist/cjs/coreX/DateRangePicker/index.js +107 -47
  107. package/dist/cjs/coreX/Dialogs/DeleteDialog/DeleteDialog.js +2 -2
  108. package/dist/cjs/coreX/Dialogs/RejectDialog/RejectDialog.js +6 -6
  109. package/dist/cjs/coreX/GoBackButton/index.js +1 -1
  110. package/dist/cjs/coreX/I18nNameTag/index.js +1 -1
  111. package/dist/cjs/coreX/InfoRowList/InfoRow.js +1 -1
  112. package/dist/cjs/coreX/InfoRowList/InfoRowList.js +4 -4
  113. package/dist/cjs/coreX/KubeConfigModal/KubeConfigModal.style.js +8 -8
  114. package/dist/cjs/coreX/NamesTooltip/index.js +3 -3
  115. package/dist/cjs/coreX/OverflowTooltip/index.js +4 -4
  116. package/dist/cjs/coreX/Sider/index.js +3 -3
  117. package/dist/cjs/coreX/SummaryTable/index.js +5 -5
  118. package/dist/cjs/coreX/SwitchWithText/index.js +1 -1
  119. package/dist/cjs/coreX/TabMenu/index.js +2 -2
  120. package/dist/cjs/coreX/UnderlineTootip/index.js +1 -1
  121. package/dist/cjs/coreX/UnitWithChart/index.js +3 -3
  122. package/dist/cjs/index.js +13 -0
  123. package/dist/cjs/stats1.html +1 -1
  124. package/dist/components.css +3935 -3863
  125. package/dist/esm/core/AccordionCard/index.js +1 -1
  126. package/dist/esm/core/Alert/alert.style.js +2 -2
  127. package/dist/esm/core/Antd5Tree/Antd5Tree.style.js +1 -1
  128. package/dist/esm/core/Avatar/index.js +1 -1
  129. package/dist/esm/core/Banner/banner.style.js +4 -4
  130. package/dist/esm/core/BasicCTError/BasicCTError.style.js +1 -1
  131. package/dist/esm/core/BlankState/style.js +1 -1
  132. package/dist/esm/core/Breadcrumb/index.js +1 -1
  133. package/dist/esm/core/Button/index.js +1 -1
  134. package/dist/esm/core/ButtonGroup/index.js +2 -2
  135. package/dist/esm/core/Card/CardBody.js +1 -1
  136. package/dist/esm/core/Card/CardTitle.js +1 -1
  137. package/dist/esm/core/Card/CardWrapper.js +2 -2
  138. package/dist/esm/core/Cascader/cascader.style.js +11 -11
  139. package/dist/esm/core/Checkbox/checkbox.style.js +1 -1
  140. package/dist/esm/core/DetailCard/index.js +1 -1
  141. package/dist/esm/core/DonutChart/index.js +2 -2
  142. package/dist/esm/core/DropdownMenu/index.js +1 -1
  143. package/dist/esm/core/ExpandableList/ExpandIcon.js +1 -1
  144. package/dist/esm/core/ExpandableList/ExpandableContainer.js +1 -1
  145. package/dist/esm/core/ExpandableList/ExpandableItem.js +2 -2
  146. package/dist/esm/core/ExpandableList/RoundOrder.js +1 -1
  147. package/dist/esm/core/FailedLoad/index.js +1 -1
  148. package/dist/esm/core/FormItem/index.js +1 -1
  149. package/dist/esm/core/Icon/index.js +1 -1
  150. package/dist/esm/core/ImmersiveDialog/styles.js +14 -14
  151. package/dist/esm/core/Input/index.js +1 -1
  152. package/dist/esm/core/InputGroup/index.js +1 -1
  153. package/dist/esm/core/InputInteger/index.js +1 -1
  154. package/dist/esm/core/InputNumber/index.js +1 -1
  155. package/dist/esm/core/InputPassword/index.js +1 -1
  156. package/dist/esm/core/InputTagItem/index.js +1 -1
  157. package/dist/esm/core/LegacySelect/select.style.js +1 -1
  158. package/dist/esm/core/Legend/index.js +5 -5
  159. package/dist/esm/core/LineChart/AreaHighlightLayer.js +115 -0
  160. package/dist/esm/core/LineChart/ForecastLineLayer.js +124 -0
  161. package/dist/esm/core/LineChart/LineChartActions.js +2 -2
  162. package/dist/esm/core/LineChart/RenderChart.js +276 -23
  163. package/dist/esm/core/LineChart/ThresholdIntersectionLayer.js +134 -0
  164. package/dist/esm/core/LineChart/TooltipFormatter.js +41 -39
  165. package/dist/esm/core/LineChart/areaHighlightUtils.js +87 -0
  166. package/dist/esm/core/LineChart/index.js +21 -3
  167. package/dist/esm/core/LineChart/lineChartDisplayUtils.js +26 -0
  168. package/dist/esm/core/LineChart/lineSegments.js +87 -0
  169. package/dist/esm/core/LineChart/styled.js +20 -10
  170. package/dist/esm/core/LineChart/utils.js +91 -5
  171. package/dist/esm/core/Link/index.js +1 -1
  172. package/dist/esm/core/Loading/style.js +4 -4
  173. package/dist/esm/core/LocalUpload/LocalUpload.hooks.js +6 -3
  174. package/dist/esm/core/LocalUpload/LocalUpload.js +52 -45
  175. package/dist/esm/core/LocalUpload/LocalUpload.style.js +2 -2
  176. package/dist/esm/core/LocalUpload/LocalUpload.widget.js +154 -131
  177. package/dist/esm/core/LogView/LogView.style.js +5 -5
  178. package/dist/esm/core/MediumDialog/MediumDialog.js +1 -1
  179. package/dist/esm/core/Metric/styled.js +8 -8
  180. package/dist/esm/core/Nav/index.js +1 -1
  181. package/dist/esm/core/Nav/style.js +2 -2
  182. package/dist/esm/core/Overflow/index.js +2 -2
  183. package/dist/esm/core/Pagination/index.js +2 -2
  184. package/dist/esm/core/Progress/components.js +2 -2
  185. package/dist/esm/core/Progress/index.js +2 -2
  186. package/dist/esm/core/Progress/progress.style.js +4 -4
  187. package/dist/esm/core/Progress/progress.widgets.js +2 -2
  188. package/dist/esm/core/Radio/index.js +3 -3
  189. package/dist/esm/core/SearchInput/SearchInput.style.js +5 -5
  190. package/dist/esm/core/SegmentControl/index.js +4 -4
  191. package/dist/esm/core/Select/select.style.js +4 -4
  192. package/dist/esm/core/Select/select.widgets.js +3 -3
  193. package/dist/esm/core/SimplePagination/index.js +2 -2
  194. package/dist/esm/core/Skeleton/Content.js +1 -1
  195. package/dist/esm/core/SmallDialog/SmallDialog.style.js +7 -7
  196. package/dist/esm/core/StatusCapsule/index.js +2 -2
  197. package/dist/esm/core/StepProgress/index.js +1 -1
  198. package/dist/esm/core/Steps/style.js +5 -5
  199. package/dist/esm/core/Styled/index.js +40 -40
  200. package/dist/esm/core/Switch/index.js +2 -2
  201. package/dist/esm/core/Tab/Tab.js +1 -1
  202. package/dist/esm/core/Tab/Tab.style.js +4 -4
  203. package/dist/esm/core/Table/TableSkeleton.js +1 -1
  204. package/dist/esm/core/Table/TableWidget.js +1 -1
  205. package/dist/esm/core/Table/index.js +3 -3
  206. package/dist/esm/core/TableForm/Columns/FormItem.js +1 -1
  207. package/dist/esm/core/TableForm/style.js +7 -7
  208. package/dist/esm/core/Tag/SplitTag.js +1 -1
  209. package/dist/esm/core/Tag/style.js +5 -5
  210. package/dist/esm/core/Time/index.js +1 -1
  211. package/dist/esm/core/TimeZoneSelect/index.js +7 -7
  212. package/dist/esm/core/Timeline/Timeline.style.js +5 -5
  213. package/dist/esm/core/Token/index.js +4 -4
  214. package/dist/esm/core/Token/style.js +1 -1
  215. package/dist/esm/core/Tooltip/EllipsisTooltipContent.js +1 -1
  216. package/dist/esm/core/Tooltip/index.js +1 -1
  217. package/dist/esm/core/Truncate/index.js +1 -1
  218. package/dist/esm/core/Typo/index.js +58 -58
  219. package/dist/esm/core/WizardDialog/styles.js +4 -4
  220. package/dist/esm/coreX/BarChart/index.js +1 -1
  221. package/dist/esm/coreX/BatchOperation/index.js +2 -2
  222. package/dist/esm/coreX/ChartWithTooltip/index.js +6 -6
  223. package/dist/esm/coreX/CheckPointList/checkpointlist.style.js +3 -3
  224. package/dist/esm/coreX/CircleLoading/index.js +1 -1
  225. package/dist/esm/coreX/CronCalendar/index.js +4 -4
  226. package/dist/esm/coreX/CronPlan/index.js +4 -4
  227. package/dist/esm/coreX/DateRangePicker/DateRangePicker.style.js +12 -12
  228. package/dist/esm/coreX/DateRangePicker/RelativeTime.js +10 -7
  229. package/dist/esm/coreX/DateRangePicker/common.js +99 -6
  230. package/dist/esm/coreX/DateRangePicker/index.js +108 -48
  231. package/dist/esm/coreX/Dialogs/DeleteDialog/DeleteDialog.js +2 -2
  232. package/dist/esm/coreX/Dialogs/RejectDialog/RejectDialog.js +6 -6
  233. package/dist/esm/coreX/GoBackButton/index.js +1 -1
  234. package/dist/esm/coreX/I18nNameTag/index.js +1 -1
  235. package/dist/esm/coreX/InfoRowList/InfoRow.js +1 -1
  236. package/dist/esm/coreX/InfoRowList/InfoRowList.js +4 -4
  237. package/dist/esm/coreX/KubeConfigModal/KubeConfigModal.style.js +8 -8
  238. package/dist/esm/coreX/NamesTooltip/index.js +3 -3
  239. package/dist/esm/coreX/OverflowTooltip/index.js +4 -4
  240. package/dist/esm/coreX/Sider/index.js +3 -3
  241. package/dist/esm/coreX/SummaryTable/index.js +5 -5
  242. package/dist/esm/coreX/SwitchWithText/index.js +1 -1
  243. package/dist/esm/coreX/TabMenu/index.js +2 -2
  244. package/dist/esm/coreX/UnderlineTootip/index.js +1 -1
  245. package/dist/esm/coreX/UnitWithChart/index.js +3 -3
  246. package/dist/esm/index.js +4 -1
  247. package/dist/esm/stats1.html +1 -1
  248. package/dist/linaria.merged.scss +4544 -4465
  249. package/dist/src/core/LineChart/AreaHighlightLayer.d.ts +31 -0
  250. package/dist/src/core/LineChart/ForecastLineLayer.d.ts +24 -0
  251. package/dist/src/core/LineChart/RenderChart.d.ts +5 -1
  252. package/dist/src/core/LineChart/ThresholdIntersectionLayer.d.ts +19 -0
  253. package/dist/src/core/LineChart/TooltipFormatter.d.ts +10 -0
  254. package/dist/src/core/LineChart/__test__/AreaHighlightLayer.test.d.ts +1 -0
  255. package/dist/src/core/LineChart/__test__/ForecastLineLayer.test.d.ts +1 -0
  256. package/dist/src/core/LineChart/__test__/utils.test.d.ts +1 -0
  257. package/dist/src/core/LineChart/areaHighlightUtils.d.ts +6 -0
  258. package/dist/src/core/LineChart/lineChartDisplayUtils.d.ts +7 -0
  259. package/dist/src/core/LineChart/lineSegments.d.ts +16 -0
  260. package/dist/src/core/LineChart/styled.d.ts +2 -0
  261. package/dist/src/core/LineChart/type.d.ts +94 -8
  262. package/dist/src/core/LineChart/utils.d.ts +31 -4
  263. package/dist/src/core/LocalUpload/LocalUpload.type.d.ts +12 -4
  264. package/dist/src/core/LocalUpload/LocalUpload.widget.d.ts +1 -0
  265. package/dist/src/core/LocalUpload/__test__/LocalUpload.test.d.ts +1 -0
  266. package/dist/src/coreX/DateRangePicker/__tests__/AbsoluteDate.test.d.ts +1 -0
  267. package/dist/src/coreX/DateRangePicker/__tests__/DateRangePicker.test.d.ts +1 -0
  268. package/dist/src/coreX/DateRangePicker/__tests__/RelativeTime.test.d.ts +1 -0
  269. package/dist/src/coreX/DateRangePicker/__tests__/common.test.d.ts +1 -0
  270. package/dist/src/coreX/DateRangePicker/common.d.ts +12 -3
  271. package/dist/src/coreX/DateRangePicker/dateRangePicker.type.d.ts +5 -1
  272. package/dist/stories/docs/core/LineChart.stories.d.ts +4 -0
  273. package/dist/stories/docs/core/LocalUpload.stories.d.ts +32 -13
  274. package/dist/stories/docs/coreX/DateRangePicker.stories.d.ts +1 -0
  275. package/dist/style.css +3936 -3864
  276. package/package.json +3 -3
@@ -1,61 +1,61 @@
1
- const d1_bold_title = "E_4100_0_17_dsnbhzf";
2
- const d1s_bold_title = "E_4100_0_17_d1mvo22k";
3
- const d1s_regular_title = "E_4100_0_17_d1b444tr";
4
- const d1_regular_title = "E_4100_0_17_dvs0kue";
5
- const d2_bold_title = "E_4100_0_17_d1hcbfcq";
6
- const d2_regular_title = "E_4100_0_17_d1cz922v";
7
- const d3_bold_title = "E_4100_0_17_d3nzbrm";
8
- const d3_regular_title = "E_4100_0_17_d1g0p5ob";
9
- const h1_bold_title = "E_4100_0_17_hydo2ej";
10
- const h1_regular_title = "E_4100_0_17_h1hbuq0r";
11
- const h2_bold_title = "E_4100_0_17_h13bondg";
12
- const h2_regular_title = "E_4100_0_17_h1mhvdlx";
13
- const h3_bold_title = "E_4100_0_17_h1inmfq6";
14
- const h3_regular_title = "E_4100_0_17_h1kfc0la";
15
- const h3_bold_upper = "E_4100_0_17_h10xnyuu";
16
- const h3_regular_upper = "E_4100_0_17_hrcmi0v";
17
- const l1_regular = "E_4100_0_17_lzt43lp";
18
- const l1_bold = "E_4100_0_17_l5yc9nt";
19
- const l1_regular_upper = "E_4100_0_17_l1fbkbzo";
20
- const l1_bold_upper = "E_4100_0_17_lahvcax";
21
- const l2_regular = "E_4100_0_17_l11q3pxd";
22
- const l2_medium = "E_4100_0_17_lfuc2qu";
23
- const l2_bold = "E_4100_0_17_l1jmp8r0";
24
- const l2_bold_strikethrough = "E_4100_0_17_lcnm221";
25
- const l2_regular_upper = "E_4100_0_17_lu1z2n5";
26
- const l2_bold_upper = "E_4100_0_17_l1r59djn";
27
- const l3_regular = "E_4100_0_17_ljm2911";
28
- const l3_semibold = "E_4100_0_17_l124mzmr";
29
- const l3_bold = "E_4100_0_17_lb3chel";
30
- const l3_regular_upper = "E_4100_0_17_lv9jstu";
31
- const l3_bold_upper = "E_4100_0_17_lwqlh3x";
32
- const l4_regular = "E_4100_0_17_lalum9y";
33
- const l4_medium = "E_4100_0_17_l1t6dj5o";
34
- const l4_bold = "E_4100_0_17_l12f6ic";
35
- const l4_regular_upper = "E_4100_0_17_l7gmukq";
36
- const l4_bold_upper = "E_4100_0_17_lkwl0yp";
37
- const f1_regular = "E_4100_0_17_f10knv48";
38
- const f2_regular = "E_4100_0_17_f6526ld";
39
- const t1_regular_mono = "E_4100_0_17_t1j81vli";
40
- const t1_regular_slash = "E_4100_0_17_t1x7n1mk";
41
- const t2_regular_mono = "E_4100_0_17_t9fqufz";
42
- const t2_medium_mono = "E_4100_0_17_t1iwnybd";
43
- const t2_regular_slash = "E_4100_0_17_tprtm1e";
44
- const t2_medium_slash = "E_4100_0_17_t1lln87h";
45
- const t16_bold_slash = "E_4100_0_17_t2pb48l";
46
- const l1_regular_title = "E_4100_0_17_li9emkw";
47
- const l1_bold_title = "E_4100_0_17_l1nrg7da";
48
- const l2_regular_title = "E_4100_0_17_l17k1i3n";
49
- const l2_bold_title = "E_4100_0_17_l1tvuj2e";
50
- const l3_regular_title = "E_4100_0_17_l17uajlu";
51
- const l3_semibold_title = "E_4100_0_17_l114zbyz";
52
- const l3_bold_title = "E_4100_0_17_l1il0kvi";
53
- const l4_regular_title = "E_4100_0_17_l10dv8p1";
54
- const l4_medium_title = "E_4100_0_17_lc2oqpq";
55
- const l4_bold_title = "E_4100_0_17_lzvddmc";
56
- const f1_regular_title = "E_4100_0_17_f18llj45";
57
- const f2_regular_title = "E_4100_0_17_f1rw95vc";
58
- const u1 = "E_4100_0_17_u1fx9fic";
1
+ const d1_bold_title = "E_4100_0_19_dsnbhzf";
2
+ const d1s_bold_title = "E_4100_0_19_d1mvo22k";
3
+ const d1s_regular_title = "E_4100_0_19_d1b444tr";
4
+ const d1_regular_title = "E_4100_0_19_dvs0kue";
5
+ const d2_bold_title = "E_4100_0_19_d1hcbfcq";
6
+ const d2_regular_title = "E_4100_0_19_d1cz922v";
7
+ const d3_bold_title = "E_4100_0_19_d3nzbrm";
8
+ const d3_regular_title = "E_4100_0_19_d1g0p5ob";
9
+ const h1_bold_title = "E_4100_0_19_hydo2ej";
10
+ const h1_regular_title = "E_4100_0_19_h1hbuq0r";
11
+ const h2_bold_title = "E_4100_0_19_h13bondg";
12
+ const h2_regular_title = "E_4100_0_19_h1mhvdlx";
13
+ const h3_bold_title = "E_4100_0_19_h1inmfq6";
14
+ const h3_regular_title = "E_4100_0_19_h1kfc0la";
15
+ const h3_bold_upper = "E_4100_0_19_h10xnyuu";
16
+ const h3_regular_upper = "E_4100_0_19_hrcmi0v";
17
+ const l1_regular = "E_4100_0_19_lzt43lp";
18
+ const l1_bold = "E_4100_0_19_l5yc9nt";
19
+ const l1_regular_upper = "E_4100_0_19_l1fbkbzo";
20
+ const l1_bold_upper = "E_4100_0_19_lahvcax";
21
+ const l2_regular = "E_4100_0_19_l11q3pxd";
22
+ const l2_medium = "E_4100_0_19_lfuc2qu";
23
+ const l2_bold = "E_4100_0_19_l1jmp8r0";
24
+ const l2_bold_strikethrough = "E_4100_0_19_lcnm221";
25
+ const l2_regular_upper = "E_4100_0_19_lu1z2n5";
26
+ const l2_bold_upper = "E_4100_0_19_l1r59djn";
27
+ const l3_regular = "E_4100_0_19_ljm2911";
28
+ const l3_semibold = "E_4100_0_19_l124mzmr";
29
+ const l3_bold = "E_4100_0_19_lb3chel";
30
+ const l3_regular_upper = "E_4100_0_19_lv9jstu";
31
+ const l3_bold_upper = "E_4100_0_19_lwqlh3x";
32
+ const l4_regular = "E_4100_0_19_lalum9y";
33
+ const l4_medium = "E_4100_0_19_l1t6dj5o";
34
+ const l4_bold = "E_4100_0_19_l12f6ic";
35
+ const l4_regular_upper = "E_4100_0_19_l7gmukq";
36
+ const l4_bold_upper = "E_4100_0_19_lkwl0yp";
37
+ const f1_regular = "E_4100_0_19_f10knv48";
38
+ const f2_regular = "E_4100_0_19_f6526ld";
39
+ const t1_regular_mono = "E_4100_0_19_t1j81vli";
40
+ const t1_regular_slash = "E_4100_0_19_t1x7n1mk";
41
+ const t2_regular_mono = "E_4100_0_19_t9fqufz";
42
+ const t2_medium_mono = "E_4100_0_19_t1iwnybd";
43
+ const t2_regular_slash = "E_4100_0_19_tprtm1e";
44
+ const t2_medium_slash = "E_4100_0_19_t1lln87h";
45
+ const t16_bold_slash = "E_4100_0_19_t2pb48l";
46
+ const l1_regular_title = "E_4100_0_19_li9emkw";
47
+ const l1_bold_title = "E_4100_0_19_l1nrg7da";
48
+ const l2_regular_title = "E_4100_0_19_l17k1i3n";
49
+ const l2_bold_title = "E_4100_0_19_l1tvuj2e";
50
+ const l3_regular_title = "E_4100_0_19_l17uajlu";
51
+ const l3_semibold_title = "E_4100_0_19_l114zbyz";
52
+ const l3_bold_title = "E_4100_0_19_l1il0kvi";
53
+ const l4_regular_title = "E_4100_0_19_l10dv8p1";
54
+ const l4_medium_title = "E_4100_0_19_lc2oqpq";
55
+ const l4_bold_title = "E_4100_0_19_lzvddmc";
56
+ const f1_regular_title = "E_4100_0_19_f18llj45";
57
+ const f2_regular_title = "E_4100_0_19_f1rw95vc";
58
+ const u1 = "E_4100_0_19_u1fx9fic";
59
59
  const Typo = {
60
60
  Display: {
61
61
  d1_bold_title,
@@ -1,6 +1,6 @@
1
- const StepStyle = "E_4100_0_17_sqv6dmy";
2
- const PrevIconStyle = "E_4100_0_17_p1rm8wzb";
3
- const StepContentStyle = "E_4100_0_17_sd7qcf4";
4
- const RightPanelStyle = "E_4100_0_17_r1fxc9gq";
1
+ const StepStyle = "E_4100_0_19_sqv6dmy";
2
+ const PrevIconStyle = "E_4100_0_19_p1rm8wzb";
3
+ const StepContentStyle = "E_4100_0_19_sd7qcf4";
4
+ const RightPanelStyle = "E_4100_0_19_r1fxc9gq";
5
5
 
6
6
  export { PrevIconStyle, RightPanelStyle, StepContentStyle, StepStyle };
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
19
19
  }
20
20
  return a;
21
21
  };
22
- const StackBar = "E_4100_0_17_skwah65";
22
+ const StackBar = "E_4100_0_19_skwah65";
23
23
  const useShapeStyle = (shape, color) => {
24
24
  return useMemo(() => {
25
25
  switch (shape) {
@@ -26,8 +26,8 @@ var __spreadValues = (a, b) => {
26
26
  }
27
27
  return a;
28
28
  };
29
- const SelectToolbar = "E_4100_0_17_s1ebs0ra";
30
- const MenuItemInnerStyle = "E_4100_0_17_mzzncgx";
29
+ const SelectToolbar = "E_4100_0_19_s1ebs0ra";
30
+ const MenuItemInnerStyle = "E_4100_0_19_mzzncgx";
31
31
  const renderBatchOperationMenuItem = (act, idx = 0) => {
32
32
  if (act === "divider") {
33
33
  return /* @__PURE__ */React__default.createElement(Menu.Divider, {
@@ -28,29 +28,29 @@ const units = {
28
28
  };
29
29
  const ChartContent = /*#__PURE__*/styled('div')({
30
30
  name: "ChartContent",
31
- class: "E_4100_0_17_c18bcrac",
31
+ class: "E_4100_0_19_c18bcrac",
32
32
  propsAsIs: false
33
33
  });
34
34
  const ChartTooltipContainer = /*#__PURE__*/styled('div')({
35
35
  name: "ChartTooltipContainer",
36
- class: "E_4100_0_17_cro7kg2",
36
+ class: "E_4100_0_19_cro7kg2",
37
37
  propsAsIs: false
38
38
  });
39
39
  const ChartTooltipRow = /*#__PURE__*/styled('div')({
40
40
  name: "ChartTooltipRow",
41
- class: "E_4100_0_17_c14wcxf0",
41
+ class: "E_4100_0_19_c14wcxf0",
42
42
  propsAsIs: false
43
43
  });
44
44
  const _exp = /*#__PURE__*/() => ChartTooltipRow;
45
45
  const ChartTooltipTitle = /*#__PURE__*/styled(_exp())({
46
46
  name: "ChartTooltipTitle",
47
- class: "E_4100_0_17_coy29mj",
47
+ class: "E_4100_0_19_coy29mj",
48
48
  propsAsIs: true
49
49
  });
50
50
  const _exp2 = /*#__PURE__*/() => props => props.color;
51
51
  const SpaceStatus = /*#__PURE__*/styled('i')({
52
52
  name: "SpaceStatus",
53
- class: "E_4100_0_17_s11212zy",
53
+ class: "E_4100_0_19_s11212zy",
54
54
  propsAsIs: false,
55
55
  vars: {
56
56
  "s11212zy-0": [_exp2()]
@@ -58,7 +58,7 @@ const SpaceStatus = /*#__PURE__*/styled('i')({
58
58
  });
59
59
  const PrimaryUnit = /*#__PURE__*/styled('div')({
60
60
  name: "PrimaryUnit",
61
- class: "E_4100_0_17_p1lyky6c",
61
+ class: "E_4100_0_19_p1lyky6c",
62
62
  propsAsIs: false
63
63
  });
64
64
  const ChartWithUnit = props => {
@@ -1,5 +1,5 @@
1
- const CheckPointListStyle = "E_4100_0_17_cyms3br";
2
- const CheckPointItemStyle = "E_4100_0_17_c157gu4z";
3
- const EmptyWrapper = "E_4100_0_17_eu1sysj";
1
+ const CheckPointListStyle = "E_4100_0_19_cyms3br";
2
+ const CheckPointItemStyle = "E_4100_0_19_c157gu4z";
3
+ const EmptyWrapper = "E_4100_0_19_eu1sysj";
4
4
 
5
5
  export { CheckPointItemStyle, CheckPointListStyle, EmptyWrapper };
@@ -32,7 +32,7 @@ var __objRest = (source, exclude) => {
32
32
  }
33
33
  return target;
34
34
  };
35
- const LoadingWrapper = "E_4100_0_17_l12xdkhl";
35
+ const LoadingWrapper = "E_4100_0_19_l12xdkhl";
36
36
  const CircleLoading = _a => {
37
37
  var _b = _a,
38
38
  {
@@ -10,10 +10,10 @@ import dayjs from 'dayjs';
10
10
  import moment from 'moment';
11
11
  import React__default, { useState, useMemo } from 'react';
12
12
 
13
- const CronCalendarWrapper = "E_4100_0_17_clm1wy1";
14
- const Title = "E_4100_0_17_t1tsm00v";
15
- const Control = "E_4100_0_17_c167wnad";
16
- const Cell = "E_4100_0_17_cxhf7dh";
13
+ const CronCalendarWrapper = "E_4100_0_19_clm1wy1";
14
+ const Title = "E_4100_0_19_t1tsm00v";
15
+ const Control = "E_4100_0_19_c167wnad";
16
+ const Cell = "E_4100_0_19_cxhf7dh";
17
17
  const CronCalendar = ({
18
18
  plans
19
19
  }) => {
@@ -37,10 +37,10 @@ var __spreadValues = (a, b) => {
37
37
  return a;
38
38
  };
39
39
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
40
- const CronPlanWrapper = "E_4100_0_17_c1up1pdz";
41
- const CronPlanHeader = "E_4100_0_17_c156wh19";
42
- const ModeTabs = "E_4100_0_17_m126spxy";
43
- const Wrapper = "E_4100_0_17_wpbf4pq";
40
+ const CronPlanWrapper = "E_4100_0_19_c1up1pdz";
41
+ const CronPlanHeader = "E_4100_0_19_c156wh19";
42
+ const ModeTabs = "E_4100_0_19_m126spxy";
43
+ const Wrapper = "E_4100_0_19_wpbf4pq";
44
44
  const stringifyPlan = (mode, daily, weekly, monthly, i18n) => {
45
45
  const isZh = i18n.language === ParrotLngs.zh;
46
46
  const mark = i18n.t("components.date_mark");
@@ -2,22 +2,22 @@ import { styled } from '@linaria/react';
2
2
 
3
3
  const CalendarWrapper = /*#__PURE__*/styled('div')({
4
4
  name: "CalendarWrapper",
5
- class: "E_4100_0_17_c1kchka8",
5
+ class: "E_4100_0_19_c1kchka8",
6
6
  propsAsIs: false
7
7
  });
8
8
  const CalendarYearWrapper = /*#__PURE__*/styled('div')({
9
9
  name: "CalendarYearWrapper",
10
- class: "E_4100_0_17_ctdb951",
10
+ class: "E_4100_0_19_ctdb951",
11
11
  propsAsIs: false
12
12
  });
13
13
  const CalendarWeekWrapper = /*#__PURE__*/styled('ul')({
14
14
  name: "CalendarWeekWrapper",
15
- class: "E_4100_0_17_cvgtyx0",
15
+ class: "E_4100_0_19_cvgtyx0",
16
16
  propsAsIs: false
17
17
  });
18
18
  const CalendarMonthWrapper = /*#__PURE__*/styled('div')({
19
19
  name: "CalendarMonthWrapper",
20
- class: "E_4100_0_17_crprfvb",
20
+ class: "E_4100_0_19_crprfvb",
21
21
  propsAsIs: false
22
22
  });
23
23
  const CalendarStyle = {
@@ -28,7 +28,7 @@ const CalendarStyle = {
28
28
  };
29
29
  const InputTimeWrapper = /*#__PURE__*/styled('div')({
30
30
  name: "InputTimeWrapper",
31
- class: "E_4100_0_17_ipbxcfl",
31
+ class: "E_4100_0_19_ipbxcfl",
32
32
  propsAsIs: false
33
33
  });
34
34
  const InputTimeStyle = {
@@ -36,12 +36,12 @@ const InputTimeStyle = {
36
36
  };
37
37
  const AbsoluteTimeWrapper = /*#__PURE__*/styled('div')({
38
38
  name: "AbsoluteTimeWrapper",
39
- class: "E_4100_0_17_a120uq8m",
39
+ class: "E_4100_0_19_a120uq8m",
40
40
  propsAsIs: false
41
41
  });
42
42
  const AbsoluteTimeSectionWrapper = /*#__PURE__*/styled('div')({
43
43
  name: "AbsoluteTimeSectionWrapper",
44
- class: "E_4100_0_17_a15s9m0d",
44
+ class: "E_4100_0_19_a15s9m0d",
45
45
  propsAsIs: false
46
46
  });
47
47
  const AbsoluteTimeStyle = {
@@ -50,7 +50,7 @@ const AbsoluteTimeStyle = {
50
50
  };
51
51
  const RelativeTimeWrapper = /*#__PURE__*/styled('div')({
52
52
  name: "RelativeTimeWrapper",
53
- class: "E_4100_0_17_r5hl59d",
53
+ class: "E_4100_0_19_r5hl59d",
54
54
  propsAsIs: false
55
55
  });
56
56
  const RelativeTimeStyle = {
@@ -58,13 +58,13 @@ const RelativeTimeStyle = {
58
58
  };
59
59
  const DateRangePickerWrapper = /*#__PURE__*/styled('div')({
60
60
  name: "DateRangePickerWrapper",
61
- class: "E_4100_0_17_dhqt3dw",
61
+ class: "E_4100_0_19_dhqt3dw",
62
62
  propsAsIs: false
63
63
  });
64
- const DateRangePickerPopover = "E_4100_0_17_d956d92";
64
+ const DateRangePickerPopover = "E_4100_0_19_d956d92";
65
65
  const DateRangePickerHistory = /*#__PURE__*/styled('div')({
66
66
  name: "DateRangePickerHistory",
67
- class: "E_4100_0_17_d1tc7lgk",
67
+ class: "E_4100_0_19_d1tc7lgk",
68
68
  propsAsIs: false
69
69
  });
70
70
  const DateRangePickerStyle = {
@@ -72,6 +72,6 @@ const DateRangePickerStyle = {
72
72
  Popover: DateRangePickerPopover,
73
73
  History: DateRangePickerHistory
74
74
  };
75
- const ResetPopoverStyle = "E_4100_0_17_rzaik16";
75
+ const ResetPopoverStyle = "E_4100_0_19_rzaik16";
76
76
 
77
77
  export { AbsoluteTimeStyle, CalendarStyle, DateRangePickerStyle, InputTimeStyle, RelativeTimeStyle, ResetPopoverStyle };
@@ -4,15 +4,16 @@ import { Typo } from '../../core/Typo/index.js';
4
4
  import useParrotTranslation from '../../hooks/useParrotTranslation.js';
5
5
  import React__default, { useRef, useState } from 'react';
6
6
  import Highlighter from 'react-highlight-words';
7
- import { BASIC_RELATIVE_TIME_CONFIG, getDateText } from './common.js';
7
+ import { BASIC_RELATIVE_TIME_CONFIG, normalizeRelativeTime, getDateText } from './common.js';
8
8
  import { RelativeTimeStyle } from './DateRangePicker.style.js';
9
9
 
10
- const HighlightKeywordStyle = "E_4100_0_17_h1ol2wl7";
10
+ const HighlightKeywordStyle = "E_4100_0_19_h1ol2wl7";
11
11
  const RelativeTime = props => {
12
12
  const {
13
13
  value,
14
14
  config,
15
15
  search,
16
+ type = "past",
16
17
  onChange
17
18
  } = props;
18
19
  const {
@@ -20,8 +21,9 @@ const RelativeTime = props => {
20
21
  } = useParrotTranslation();
21
22
  const configRef = useRef(config || BASIC_RELATIVE_TIME_CONFIG);
22
23
  const [keyword, setKeyword] = useState("");
24
+ const normalizedValue = value ? normalizeRelativeTime(value, type) : void 0;
23
25
  const configList = configRef.current.filter(config2 => {
24
- const text = getDateText(config2, t);
26
+ const text = getDateText(config2, t, type);
25
27
  return text.indexOf(keyword) > -1;
26
28
  });
27
29
  return /* @__PURE__ */React__default.createElement(RelativeTimeStyle.Wrapper, null, search ? /* @__PURE__ */React__default.createElement(Input, {
@@ -32,12 +34,13 @@ const RelativeTime = props => {
32
34
  }) : null, /* @__PURE__ */React__default.createElement("ul", {
33
35
  className: cx("past-time-list", !search && "no-search")
34
36
  }, configList.map((config2, index) => {
35
- const selected = config2.unit === (value == null ? void 0 : value.unit) && config2.value === (value == null ? void 0 : value.value);
36
- const text = getDateText(config2, t);
37
+ const normalizedConfig = normalizeRelativeTime(config2, type);
38
+ const selected = normalizedConfig.unit === (normalizedValue == null ? void 0 : normalizedValue.unit) && normalizedConfig.value === (normalizedValue == null ? void 0 : normalizedValue.value) && normalizedConfig.type === (normalizedValue == null ? void 0 : normalizedValue.type);
39
+ const text = getDateText(normalizedConfig, t, type);
37
40
  return /* @__PURE__ */React__default.createElement("li", {
38
41
  key: index,
39
- className: cx(Typo.Label.l2_regular, selected && "selected", config2.disabled && "disabled"),
40
- onClick: () => onChange == null ? void 0 : onChange(config2)
42
+ className: cx(Typo.Label.l2_regular, selected && "selected", normalizedConfig.disabled && "disabled"),
43
+ onClick: () => onChange == null ? void 0 : onChange(normalizedConfig)
41
44
  }, /* @__PURE__ */React__default.createElement(Highlighter, {
42
45
  highlightClassName: cx(HighlightKeywordStyle, "highlight"),
43
46
  searchWords: [keyword],
@@ -2,6 +2,25 @@ import { cx } from '@linaria/core';
2
2
  import { Typo } from '../../core/Typo/index.js';
3
3
  import dayjs from 'dayjs';
4
4
 
5
+ var __defProp = Object.defineProperty;
6
+ var __defProps = Object.defineProperties;
7
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
+ var __spreadValues = (a, b) => {
13
+ for (var prop in b || (b = {}))
14
+ if (__hasOwnProp.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ if (__getOwnPropSymbols)
17
+ for (var prop of __getOwnPropSymbols(b)) {
18
+ if (__propIsEnum.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
20
+ }
21
+ return a;
22
+ };
23
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
5
24
  const BASIC_RELATIVE_TIME_CONFIG = [
6
25
  {
7
26
  unit: "m",
@@ -138,15 +157,89 @@ function time2string(time) {
138
157
  return _time;
139
158
  }
140
159
  }
141
- function getDateText(date, t) {
142
- const count = date.value;
160
+ function normalizeRelativeTime(date, defaultType = "past") {
161
+ if (date.type) {
162
+ return date;
163
+ }
164
+ return __spreadProps(__spreadValues({}, date), {
165
+ type: defaultType
166
+ });
167
+ }
168
+ function getRelativeTimeRange(date, defaultType = "past", nowDate = dayjs()) {
169
+ const normalizedDate = normalizeRelativeTime(date, defaultType);
170
+ const rangeEnd = normalizedDate.type === "future" ? nowDate.add(normalizedDate.value, normalizedDate.unit) : nowDate.subtract(normalizedDate.value, normalizedDate.unit);
171
+ return [nowDate, rangeEnd];
172
+ }
173
+ function getEffectiveAbsoluteTimeBounds(type = "past", minDate, maxDate, nowDate = dayjs()) {
174
+ if (type !== "future") {
175
+ return {
176
+ minDate,
177
+ maxDate
178
+ };
179
+ }
180
+ let effectiveMinDate = nowDate.startOf("day");
181
+ let effectiveMaxDate = nowDate.add(1, "year");
182
+ if (minDate) {
183
+ const parsedMinDate = dayjs(minDate);
184
+ if (parsedMinDate.isValid() && parsedMinDate.isAfter(effectiveMinDate)) {
185
+ effectiveMinDate = parsedMinDate;
186
+ }
187
+ }
188
+ if (maxDate) {
189
+ const parsedMaxDate = dayjs(maxDate);
190
+ if (parsedMaxDate.isValid() && parsedMaxDate.isBefore(effectiveMaxDate)) {
191
+ effectiveMaxDate = parsedMaxDate;
192
+ }
193
+ }
194
+ return {
195
+ minDate: effectiveMinDate,
196
+ maxDate: effectiveMaxDate
197
+ };
198
+ }
199
+ function isAbsoluteTimeRangeWithinBounds(range, minDate, maxDate) {
200
+ const [start, end] = range;
201
+ const min = minDate ? dayjs(minDate) : void 0;
202
+ const max = maxDate ? dayjs(maxDate) : void 0;
203
+ if (!(start == null ? void 0 : start.isValid()) || !(end == null ? void 0 : end.isValid()) || start.isAfter(end) || min && !min.isValid() || max && !max.isValid() || min && max && min.isAfter(max)) {
204
+ return false;
205
+ }
206
+ return (!min || !start.isBefore(min)) && (!max || !end.isAfter(max));
207
+ }
208
+ function hasAbsoluteTimeRangeIntersection(range, minDate, maxDate) {
209
+ const [start, end] = range;
210
+ const min = minDate ? dayjs(minDate) : void 0;
211
+ const max = maxDate ? dayjs(maxDate) : void 0;
212
+ if (!(start == null ? void 0 : start.isValid()) || !(end == null ? void 0 : end.isValid()) || start.isAfter(end) || min && !min.isValid() || max && !max.isValid() || min && max && min.isAfter(max)) {
213
+ return false;
214
+ }
215
+ return (!min || !end.isBefore(min)) && (!max || !start.isAfter(max));
216
+ }
217
+ function clampAbsoluteTimeRangeToBounds(range, minDate, maxDate) {
218
+ if (!hasAbsoluteTimeRangeIntersection(range, minDate, maxDate)) {
219
+ return void 0;
220
+ }
221
+ const [start, end] = range;
222
+ const min = minDate ? dayjs(minDate) : void 0;
223
+ const max = maxDate ? dayjs(maxDate) : void 0;
224
+ const clampedRange = [
225
+ min && start.isBefore(min) ? min : start,
226
+ max && end.isAfter(max) ? max : end
227
+ ];
228
+ return isAbsoluteTimeRangeWithinBounds(clampedRange, minDate, maxDate) ? clampedRange : void 0;
229
+ }
230
+ function getDateText(date, t, defaultType = "past") {
231
+ const normalizedDate = normalizeRelativeTime(date, defaultType);
232
+ const count = normalizedDate.value;
143
233
  const dateString = {
144
234
  d: t("common.day_count", { count }),
145
235
  h: t("common.hour_count", { count }),
146
236
  m: t("common.minute_count", { count }),
147
- M: t("common.month_measure_count", { count })
148
- }[date.unit];
149
- return `${t("components.past")} ${dateString}`;
237
+ M: t("common.month_measure_count", { count }),
238
+ y: t("common.year_count", { count })
239
+ }[normalizedDate.unit];
240
+ return `${t(
241
+ normalizedDate.type === "future" ? "components.future" : "components.past"
242
+ )} ${dateString}`;
150
243
  }
151
244
  function checkDateNotInRange(date, minDate, maxDate) {
152
245
  if (!minDate && !maxDate) {
@@ -182,4 +275,4 @@ function copyDay(day) {
182
275
  return day.clone().set("millisecond", 0);
183
276
  }
184
277
 
185
- export { BASIC_RELATIVE_TIME_CONFIG, checkDateNotInRange, copyDay, getClassNameForDateBlock, getDateText, getDiffMonthAndDate, getTime, isSameDate, time2string, time2stringByUnit, trimTime };
278
+ export { BASIC_RELATIVE_TIME_CONFIG, checkDateNotInRange, clampAbsoluteTimeRangeToBounds, copyDay, getClassNameForDateBlock, getDateText, getDiffMonthAndDate, getEffectiveAbsoluteTimeBounds, getRelativeTimeRange, getTime, hasAbsoluteTimeRangeIntersection, isAbsoluteTimeRangeWithinBounds, isSameDate, normalizeRelativeTime, time2string, time2stringByUnit, trimTime };