@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.
- package/dist/cjs/core/AccordionCard/index.js +1 -1
- package/dist/cjs/core/Alert/alert.style.js +2 -2
- package/dist/cjs/core/Antd5Tree/Antd5Tree.style.js +1 -1
- package/dist/cjs/core/Avatar/index.js +1 -1
- package/dist/cjs/core/Banner/banner.style.js +4 -4
- package/dist/cjs/core/BasicCTError/BasicCTError.style.js +1 -1
- package/dist/cjs/core/BlankState/style.js +1 -1
- package/dist/cjs/core/Breadcrumb/index.js +1 -1
- package/dist/cjs/core/Button/index.js +1 -1
- package/dist/cjs/core/ButtonGroup/index.js +2 -2
- package/dist/cjs/core/Card/CardBody.js +1 -1
- package/dist/cjs/core/Card/CardTitle.js +1 -1
- package/dist/cjs/core/Card/CardWrapper.js +2 -2
- package/dist/cjs/core/Cascader/cascader.style.js +11 -11
- package/dist/cjs/core/Checkbox/checkbox.style.js +1 -1
- package/dist/cjs/core/DetailCard/index.js +1 -1
- package/dist/cjs/core/DonutChart/index.js +2 -2
- package/dist/cjs/core/DropdownMenu/index.js +1 -1
- package/dist/cjs/core/ExpandableList/ExpandIcon.js +1 -1
- package/dist/cjs/core/ExpandableList/ExpandableContainer.js +1 -1
- package/dist/cjs/core/ExpandableList/ExpandableItem.js +2 -2
- package/dist/cjs/core/ExpandableList/RoundOrder.js +1 -1
- package/dist/cjs/core/FailedLoad/index.js +1 -1
- package/dist/cjs/core/FormItem/index.js +1 -1
- package/dist/cjs/core/Icon/index.js +1 -1
- package/dist/cjs/core/ImmersiveDialog/styles.js +14 -14
- package/dist/cjs/core/Input/index.js +1 -1
- package/dist/cjs/core/InputGroup/index.js +1 -1
- package/dist/cjs/core/InputInteger/index.js +1 -1
- package/dist/cjs/core/InputNumber/index.js +1 -1
- package/dist/cjs/core/InputPassword/index.js +1 -1
- package/dist/cjs/core/InputTagItem/index.js +1 -1
- package/dist/cjs/core/LegacySelect/select.style.js +1 -1
- package/dist/cjs/core/Legend/index.js +5 -5
- package/dist/cjs/core/LineChart/AreaHighlightLayer.js +122 -0
- package/dist/cjs/core/LineChart/ForecastLineLayer.js +134 -0
- package/dist/cjs/core/LineChart/LineChartActions.js +2 -2
- package/dist/cjs/core/LineChart/RenderChart.js +274 -20
- package/dist/cjs/core/LineChart/ThresholdIntersectionLayer.js +144 -0
- package/dist/cjs/core/LineChart/TooltipFormatter.js +44 -39
- package/dist/cjs/core/LineChart/areaHighlightUtils.js +89 -0
- package/dist/cjs/core/LineChart/index.js +20 -2
- package/dist/cjs/core/LineChart/lineChartDisplayUtils.js +32 -0
- package/dist/cjs/core/LineChart/lineSegments.js +90 -0
- package/dist/cjs/core/LineChart/styled.js +21 -9
- package/dist/cjs/core/LineChart/utils.js +93 -4
- package/dist/cjs/core/Link/index.js +1 -1
- package/dist/cjs/core/Loading/style.js +4 -4
- package/dist/cjs/core/LocalUpload/LocalUpload.style.js +2 -2
- package/dist/cjs/core/LogView/LogView.style.js +5 -5
- package/dist/cjs/core/MediumDialog/MediumDialog.js +1 -1
- package/dist/cjs/core/Metric/styled.js +8 -8
- package/dist/cjs/core/Nav/index.js +1 -1
- package/dist/cjs/core/Nav/style.js +2 -2
- package/dist/cjs/core/Overflow/index.js +2 -2
- package/dist/cjs/core/Pagination/index.js +2 -2
- package/dist/cjs/core/Progress/components.js +2 -2
- package/dist/cjs/core/Progress/index.js +2 -2
- package/dist/cjs/core/Progress/progress.style.js +4 -4
- package/dist/cjs/core/Progress/progress.widgets.js +2 -2
- package/dist/cjs/core/Radio/index.js +3 -3
- package/dist/cjs/core/SearchInput/SearchInput.style.js +5 -5
- package/dist/cjs/core/SegmentControl/index.js +4 -4
- package/dist/cjs/core/Select/select.style.js +4 -4
- package/dist/cjs/core/Select/select.widgets.js +3 -3
- package/dist/cjs/core/SimplePagination/index.js +2 -2
- package/dist/cjs/core/Skeleton/Content.js +1 -1
- package/dist/cjs/core/SmallDialog/SmallDialog.style.js +7 -7
- package/dist/cjs/core/StatusCapsule/index.js +2 -2
- package/dist/cjs/core/StepProgress/index.js +1 -1
- package/dist/cjs/core/Steps/style.js +5 -5
- package/dist/cjs/core/Styled/index.js +40 -40
- package/dist/cjs/core/Switch/index.js +2 -2
- package/dist/cjs/core/Tab/Tab.js +1 -1
- package/dist/cjs/core/Tab/Tab.style.js +4 -4
- package/dist/cjs/core/Table/TableSkeleton.js +1 -1
- package/dist/cjs/core/Table/TableWidget.js +1 -1
- package/dist/cjs/core/Table/index.js +3 -3
- package/dist/cjs/core/TableForm/Columns/FormItem.js +1 -1
- package/dist/cjs/core/TableForm/style.js +7 -7
- package/dist/cjs/core/Tag/SplitTag.js +1 -1
- package/dist/cjs/core/Tag/style.js +5 -5
- package/dist/cjs/core/Time/index.js +1 -1
- package/dist/cjs/core/TimeZoneSelect/index.js +7 -7
- package/dist/cjs/core/Timeline/Timeline.style.js +5 -5
- package/dist/cjs/core/Token/index.js +4 -4
- package/dist/cjs/core/Token/style.js +1 -1
- package/dist/cjs/core/Tooltip/EllipsisTooltipContent.js +1 -1
- package/dist/cjs/core/Tooltip/index.js +1 -1
- package/dist/cjs/core/Truncate/index.js +1 -1
- package/dist/cjs/core/Typo/index.js +58 -58
- package/dist/cjs/core/WizardDialog/styles.js +4 -4
- package/dist/cjs/coreX/BarChart/index.js +1 -1
- package/dist/cjs/coreX/BatchOperation/index.js +2 -2
- package/dist/cjs/coreX/ChartWithTooltip/index.js +6 -6
- package/dist/cjs/coreX/CheckPointList/checkpointlist.style.js +3 -3
- package/dist/cjs/coreX/CircleLoading/index.js +1 -1
- package/dist/cjs/coreX/CronCalendar/index.js +4 -4
- package/dist/cjs/coreX/CronPlan/index.js +4 -4
- package/dist/cjs/coreX/DateRangePicker/DateRangePicker.style.js +12 -12
- package/dist/cjs/coreX/DateRangePicker/RelativeTime.js +9 -6
- package/dist/cjs/coreX/DateRangePicker/common.js +104 -5
- package/dist/cjs/coreX/DateRangePicker/index.js +107 -47
- package/dist/cjs/coreX/Dialogs/DeleteDialog/DeleteDialog.js +2 -2
- package/dist/cjs/coreX/Dialogs/RejectDialog/RejectDialog.js +6 -6
- package/dist/cjs/coreX/GoBackButton/index.js +1 -1
- package/dist/cjs/coreX/I18nNameTag/index.js +1 -1
- package/dist/cjs/coreX/InfoRowList/InfoRow.js +1 -1
- package/dist/cjs/coreX/InfoRowList/InfoRowList.js +4 -4
- package/dist/cjs/coreX/KubeConfigModal/KubeConfigModal.style.js +8 -8
- package/dist/cjs/coreX/NamesTooltip/index.js +3 -3
- package/dist/cjs/coreX/OverflowTooltip/index.js +4 -4
- package/dist/cjs/coreX/Sider/index.js +3 -3
- package/dist/cjs/coreX/SummaryTable/index.js +5 -5
- package/dist/cjs/coreX/SwitchWithText/index.js +1 -1
- package/dist/cjs/coreX/TabMenu/index.js +2 -2
- package/dist/cjs/coreX/UnderlineTootip/index.js +1 -1
- package/dist/cjs/coreX/UnitWithChart/index.js +3 -3
- package/dist/cjs/index.js +13 -0
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +4504 -4480
- package/dist/esm/core/AccordionCard/index.js +1 -1
- package/dist/esm/core/Alert/alert.style.js +2 -2
- package/dist/esm/core/Antd5Tree/Antd5Tree.style.js +1 -1
- package/dist/esm/core/Avatar/index.js +1 -1
- package/dist/esm/core/Banner/banner.style.js +4 -4
- package/dist/esm/core/BasicCTError/BasicCTError.style.js +1 -1
- package/dist/esm/core/BlankState/style.js +1 -1
- package/dist/esm/core/Breadcrumb/index.js +1 -1
- package/dist/esm/core/Button/index.js +1 -1
- package/dist/esm/core/ButtonGroup/index.js +2 -2
- package/dist/esm/core/Card/CardBody.js +1 -1
- package/dist/esm/core/Card/CardTitle.js +1 -1
- package/dist/esm/core/Card/CardWrapper.js +2 -2
- package/dist/esm/core/Cascader/cascader.style.js +11 -11
- package/dist/esm/core/Checkbox/checkbox.style.js +1 -1
- package/dist/esm/core/DetailCard/index.js +1 -1
- package/dist/esm/core/DonutChart/index.js +2 -2
- package/dist/esm/core/DropdownMenu/index.js +1 -1
- package/dist/esm/core/ExpandableList/ExpandIcon.js +1 -1
- package/dist/esm/core/ExpandableList/ExpandableContainer.js +1 -1
- package/dist/esm/core/ExpandableList/ExpandableItem.js +2 -2
- package/dist/esm/core/ExpandableList/RoundOrder.js +1 -1
- package/dist/esm/core/FailedLoad/index.js +1 -1
- package/dist/esm/core/FormItem/index.js +1 -1
- package/dist/esm/core/Icon/index.js +1 -1
- package/dist/esm/core/ImmersiveDialog/styles.js +14 -14
- package/dist/esm/core/Input/index.js +1 -1
- package/dist/esm/core/InputGroup/index.js +1 -1
- package/dist/esm/core/InputInteger/index.js +1 -1
- package/dist/esm/core/InputNumber/index.js +1 -1
- package/dist/esm/core/InputPassword/index.js +1 -1
- package/dist/esm/core/InputTagItem/index.js +1 -1
- package/dist/esm/core/LegacySelect/select.style.js +1 -1
- package/dist/esm/core/Legend/index.js +5 -5
- package/dist/esm/core/LineChart/AreaHighlightLayer.js +115 -0
- package/dist/esm/core/LineChart/ForecastLineLayer.js +124 -0
- package/dist/esm/core/LineChart/LineChartActions.js +2 -2
- package/dist/esm/core/LineChart/RenderChart.js +276 -23
- package/dist/esm/core/LineChart/ThresholdIntersectionLayer.js +134 -0
- package/dist/esm/core/LineChart/TooltipFormatter.js +41 -39
- package/dist/esm/core/LineChart/areaHighlightUtils.js +87 -0
- package/dist/esm/core/LineChart/index.js +21 -3
- package/dist/esm/core/LineChart/lineChartDisplayUtils.js +26 -0
- package/dist/esm/core/LineChart/lineSegments.js +87 -0
- package/dist/esm/core/LineChart/styled.js +20 -10
- package/dist/esm/core/LineChart/utils.js +91 -5
- package/dist/esm/core/Link/index.js +1 -1
- package/dist/esm/core/Loading/style.js +4 -4
- package/dist/esm/core/LocalUpload/LocalUpload.style.js +2 -2
- package/dist/esm/core/LogView/LogView.style.js +5 -5
- package/dist/esm/core/MediumDialog/MediumDialog.js +1 -1
- package/dist/esm/core/Metric/styled.js +8 -8
- package/dist/esm/core/Nav/index.js +1 -1
- package/dist/esm/core/Nav/style.js +2 -2
- package/dist/esm/core/Overflow/index.js +2 -2
- package/dist/esm/core/Pagination/index.js +2 -2
- package/dist/esm/core/Progress/components.js +2 -2
- package/dist/esm/core/Progress/index.js +2 -2
- package/dist/esm/core/Progress/progress.style.js +4 -4
- package/dist/esm/core/Progress/progress.widgets.js +2 -2
- package/dist/esm/core/Radio/index.js +3 -3
- package/dist/esm/core/SearchInput/SearchInput.style.js +5 -5
- package/dist/esm/core/SegmentControl/index.js +4 -4
- package/dist/esm/core/Select/select.style.js +4 -4
- package/dist/esm/core/Select/select.widgets.js +3 -3
- package/dist/esm/core/SimplePagination/index.js +2 -2
- package/dist/esm/core/Skeleton/Content.js +1 -1
- package/dist/esm/core/SmallDialog/SmallDialog.style.js +7 -7
- package/dist/esm/core/StatusCapsule/index.js +2 -2
- package/dist/esm/core/StepProgress/index.js +1 -1
- package/dist/esm/core/Steps/style.js +5 -5
- package/dist/esm/core/Styled/index.js +40 -40
- package/dist/esm/core/Switch/index.js +2 -2
- package/dist/esm/core/Tab/Tab.js +1 -1
- package/dist/esm/core/Tab/Tab.style.js +4 -4
- package/dist/esm/core/Table/TableSkeleton.js +1 -1
- package/dist/esm/core/Table/TableWidget.js +1 -1
- package/dist/esm/core/Table/index.js +3 -3
- package/dist/esm/core/TableForm/Columns/FormItem.js +1 -1
- package/dist/esm/core/TableForm/style.js +7 -7
- package/dist/esm/core/Tag/SplitTag.js +1 -1
- package/dist/esm/core/Tag/style.js +5 -5
- package/dist/esm/core/Time/index.js +1 -1
- package/dist/esm/core/TimeZoneSelect/index.js +7 -7
- package/dist/esm/core/Timeline/Timeline.style.js +5 -5
- package/dist/esm/core/Token/index.js +4 -4
- package/dist/esm/core/Token/style.js +1 -1
- package/dist/esm/core/Tooltip/EllipsisTooltipContent.js +1 -1
- package/dist/esm/core/Tooltip/index.js +1 -1
- package/dist/esm/core/Truncate/index.js +1 -1
- package/dist/esm/core/Typo/index.js +58 -58
- package/dist/esm/core/WizardDialog/styles.js +4 -4
- package/dist/esm/coreX/BarChart/index.js +1 -1
- package/dist/esm/coreX/BatchOperation/index.js +2 -2
- package/dist/esm/coreX/ChartWithTooltip/index.js +6 -6
- package/dist/esm/coreX/CheckPointList/checkpointlist.style.js +3 -3
- package/dist/esm/coreX/CircleLoading/index.js +1 -1
- package/dist/esm/coreX/CronCalendar/index.js +4 -4
- package/dist/esm/coreX/CronPlan/index.js +4 -4
- package/dist/esm/coreX/DateRangePicker/DateRangePicker.style.js +12 -12
- package/dist/esm/coreX/DateRangePicker/RelativeTime.js +10 -7
- package/dist/esm/coreX/DateRangePicker/common.js +99 -6
- package/dist/esm/coreX/DateRangePicker/index.js +108 -48
- package/dist/esm/coreX/Dialogs/DeleteDialog/DeleteDialog.js +2 -2
- package/dist/esm/coreX/Dialogs/RejectDialog/RejectDialog.js +6 -6
- package/dist/esm/coreX/GoBackButton/index.js +1 -1
- package/dist/esm/coreX/I18nNameTag/index.js +1 -1
- package/dist/esm/coreX/InfoRowList/InfoRow.js +1 -1
- package/dist/esm/coreX/InfoRowList/InfoRowList.js +4 -4
- package/dist/esm/coreX/KubeConfigModal/KubeConfigModal.style.js +8 -8
- package/dist/esm/coreX/NamesTooltip/index.js +3 -3
- package/dist/esm/coreX/OverflowTooltip/index.js +4 -4
- package/dist/esm/coreX/Sider/index.js +3 -3
- package/dist/esm/coreX/SummaryTable/index.js +5 -5
- package/dist/esm/coreX/SwitchWithText/index.js +1 -1
- package/dist/esm/coreX/TabMenu/index.js +2 -2
- package/dist/esm/coreX/UnderlineTootip/index.js +1 -1
- package/dist/esm/coreX/UnitWithChart/index.js +3 -3
- package/dist/esm/index.js +4 -1
- package/dist/esm/stats1.html +1 -1
- package/dist/linaria.merged.scss +5086 -5060
- package/dist/src/core/LineChart/AreaHighlightLayer.d.ts +31 -0
- package/dist/src/core/LineChart/ForecastLineLayer.d.ts +24 -0
- package/dist/src/core/LineChart/RenderChart.d.ts +5 -1
- package/dist/src/core/LineChart/ThresholdIntersectionLayer.d.ts +19 -0
- package/dist/src/core/LineChart/TooltipFormatter.d.ts +10 -0
- package/dist/src/core/LineChart/__test__/AreaHighlightLayer.test.d.ts +1 -0
- package/dist/src/core/LineChart/__test__/ForecastLineLayer.test.d.ts +1 -0
- package/dist/src/core/LineChart/__test__/utils.test.d.ts +1 -0
- package/dist/src/core/LineChart/areaHighlightUtils.d.ts +6 -0
- package/dist/src/core/LineChart/lineChartDisplayUtils.d.ts +7 -0
- package/dist/src/core/LineChart/lineSegments.d.ts +16 -0
- package/dist/src/core/LineChart/styled.d.ts +2 -0
- package/dist/src/core/LineChart/type.d.ts +94 -8
- package/dist/src/core/LineChart/utils.d.ts +31 -4
- package/dist/src/coreX/DateRangePicker/__tests__/AbsoluteDate.test.d.ts +1 -0
- package/dist/src/coreX/DateRangePicker/__tests__/DateRangePicker.test.d.ts +1 -0
- package/dist/src/coreX/DateRangePicker/__tests__/RelativeTime.test.d.ts +1 -0
- package/dist/src/coreX/DateRangePicker/__tests__/common.test.d.ts +1 -0
- package/dist/src/coreX/DateRangePicker/common.d.ts +12 -3
- package/dist/src/coreX/DateRangePicker/dateRangePicker.type.d.ts +5 -1
- package/dist/stories/docs/core/LineChart.stories.d.ts +4 -0
- package/dist/stories/docs/coreX/DateRangePicker.stories.d.ts +1 -0
- package/dist/style.css +4515 -4491
- package/package.json +3 -3
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
const d1_bold_title = "
|
|
2
|
-
const d1s_bold_title = "
|
|
3
|
-
const d1s_regular_title = "
|
|
4
|
-
const d1_regular_title = "
|
|
5
|
-
const d2_bold_title = "
|
|
6
|
-
const d2_regular_title = "
|
|
7
|
-
const d3_bold_title = "
|
|
8
|
-
const d3_regular_title = "
|
|
9
|
-
const h1_bold_title = "
|
|
10
|
-
const h1_regular_title = "
|
|
11
|
-
const h2_bold_title = "
|
|
12
|
-
const h2_regular_title = "
|
|
13
|
-
const h3_bold_title = "
|
|
14
|
-
const h3_regular_title = "
|
|
15
|
-
const h3_bold_upper = "
|
|
16
|
-
const h3_regular_upper = "
|
|
17
|
-
const l1_regular = "
|
|
18
|
-
const l1_bold = "
|
|
19
|
-
const l1_regular_upper = "
|
|
20
|
-
const l1_bold_upper = "
|
|
21
|
-
const l2_regular = "
|
|
22
|
-
const l2_medium = "
|
|
23
|
-
const l2_bold = "
|
|
24
|
-
const l2_bold_strikethrough = "
|
|
25
|
-
const l2_regular_upper = "
|
|
26
|
-
const l2_bold_upper = "
|
|
27
|
-
const l3_regular = "
|
|
28
|
-
const l3_semibold = "
|
|
29
|
-
const l3_bold = "
|
|
30
|
-
const l3_regular_upper = "
|
|
31
|
-
const l3_bold_upper = "
|
|
32
|
-
const l4_regular = "
|
|
33
|
-
const l4_medium = "
|
|
34
|
-
const l4_bold = "
|
|
35
|
-
const l4_regular_upper = "
|
|
36
|
-
const l4_bold_upper = "
|
|
37
|
-
const f1_regular = "
|
|
38
|
-
const f2_regular = "
|
|
39
|
-
const t1_regular_mono = "
|
|
40
|
-
const t1_regular_slash = "
|
|
41
|
-
const t2_regular_mono = "
|
|
42
|
-
const t2_medium_mono = "
|
|
43
|
-
const t2_regular_slash = "
|
|
44
|
-
const t2_medium_slash = "
|
|
45
|
-
const t16_bold_slash = "
|
|
46
|
-
const l1_regular_title = "
|
|
47
|
-
const l1_bold_title = "
|
|
48
|
-
const l2_regular_title = "
|
|
49
|
-
const l2_bold_title = "
|
|
50
|
-
const l3_regular_title = "
|
|
51
|
-
const l3_semibold_title = "
|
|
52
|
-
const l3_bold_title = "
|
|
53
|
-
const l4_regular_title = "
|
|
54
|
-
const l4_medium_title = "
|
|
55
|
-
const l4_bold_title = "
|
|
56
|
-
const f1_regular_title = "
|
|
57
|
-
const f2_regular_title = "
|
|
58
|
-
const u1 = "
|
|
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 = "
|
|
2
|
-
const PrevIconStyle = "
|
|
3
|
-
const StepContentStyle = "
|
|
4
|
-
const RightPanelStyle = "
|
|
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 };
|
|
@@ -26,8 +26,8 @@ var __spreadValues = (a, b) => {
|
|
|
26
26
|
}
|
|
27
27
|
return a;
|
|
28
28
|
};
|
|
29
|
-
const SelectToolbar = "
|
|
30
|
-
const MenuItemInnerStyle = "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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 = "
|
|
2
|
-
const CheckPointItemStyle = "
|
|
3
|
-
const EmptyWrapper = "
|
|
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 };
|
|
@@ -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 = "
|
|
14
|
-
const Title = "
|
|
15
|
-
const Control = "
|
|
16
|
-
const Cell = "
|
|
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 = "
|
|
41
|
-
const CronPlanHeader = "
|
|
42
|
-
const ModeTabs = "
|
|
43
|
-
const Wrapper = "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
61
|
+
class: "E_4100_0_19_dhqt3dw",
|
|
62
62
|
propsAsIs: false
|
|
63
63
|
});
|
|
64
|
-
const DateRangePickerPopover = "
|
|
64
|
+
const DateRangePickerPopover = "E_4100_0_19_d956d92";
|
|
65
65
|
const DateRangePickerHistory = /*#__PURE__*/styled('div')({
|
|
66
66
|
name: "DateRangePickerHistory",
|
|
67
|
-
class: "
|
|
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 = "
|
|
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 = "
|
|
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
|
|
36
|
-
const
|
|
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",
|
|
40
|
-
onClick: () => onChange == null ? void 0 : onChange(
|
|
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
|
|
142
|
-
|
|
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
|
-
|
|
149
|
-
|
|
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 };
|