@synerise/ds-date-range-picker 1.6.11 → 1.6.13
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/CHANGELOG.md +8 -0
- package/dist/AddonCollapse/AddonCollapse.d.ts +2 -2
- package/dist/AddonCollapse/AddonCollapse.js +22 -19
- package/dist/AddonCollapse/AddonCollapse.styles.d.ts +5 -5
- package/dist/AddonCollapse/AddonCollapse.styles.js +16 -13
- package/dist/AddonCollapse/AddonCollapse.types.d.ts +1 -1
- package/dist/AddonCollapse/AddonCollapse.types.js +1 -1
- package/dist/DateRangePicker.d.ts +2 -2
- package/dist/DateRangePicker.js +64 -112
- package/dist/DateRangePicker.styles.d.ts +8 -8
- package/dist/DateRangePicker.styles.js +24 -24
- package/dist/DateRangePicker.types.d.ts +11 -11
- package/dist/DateRangePicker.types.js +1 -1
- package/dist/Footer/Footer.d.ts +2 -2
- package/dist/Footer/Footer.js +63 -65
- package/dist/Footer/Footer.styles.d.ts +6 -6
- package/dist/Footer/Footer.styles.js +19 -27
- package/dist/Footer/Footer.types.d.ts +3 -3
- package/dist/Footer/Footer.types.js +1 -1
- package/dist/RangeFilter/Filters/DailyFilter/DailyFilter.d.ts +8 -8
- package/dist/RangeFilter/Filters/DailyFilter/DailyFilter.js +55 -44
- package/dist/RangeFilter/Filters/DailyFilter/DailyFilter.styles.d.ts +1 -1
- package/dist/RangeFilter/Filters/DailyFilter/DailyFilter.styles.js +6 -3
- package/dist/RangeFilter/Filters/MonthlyFilter/MonthlyFilter.d.ts +3 -3
- package/dist/RangeFilter/Filters/MonthlyFilter/MonthlyFilter.js +283 -324
- package/dist/RangeFilter/Filters/MonthlyFilter/MonthlyFilter.styles.d.ts +11 -11
- package/dist/RangeFilter/Filters/MonthlyFilter/MonthlyFilter.styles.js +26 -18
- package/dist/RangeFilter/Filters/MonthlyFilter/MonthlyFilter.types.d.ts +7 -7
- package/dist/RangeFilter/Filters/MonthlyFilter/MonthlyFilter.types.js +1 -1
- package/dist/RangeFilter/Filters/WeeklyFilter/WeeklyFilter.d.ts +1 -1
- package/dist/RangeFilter/Filters/WeeklyFilter/WeeklyFilter.js +45 -44
- package/dist/RangeFilter/Filters/WeeklyFilter/WeeklyFilter.types.d.ts +5 -5
- package/dist/RangeFilter/Filters/WeeklyFilter/WeeklyFilter.types.js +1 -1
- package/dist/RangeFilter/Filters/new/Daily/Daily.d.ts +2 -2
- package/dist/RangeFilter/Filters/new/Daily/Daily.js +72 -92
- package/dist/RangeFilter/Filters/new/Daily/Daily.types.d.ts +6 -6
- package/dist/RangeFilter/Filters/new/Daily/Daily.types.js +1 -1
- package/dist/RangeFilter/Filters/new/Filters.types.d.ts +3 -3
- package/dist/RangeFilter/Filters/new/Filters.types.js +1 -1
- package/dist/RangeFilter/Filters/new/Monthly/Monthly.d.ts +2 -2
- package/dist/RangeFilter/Filters/new/Monthly/Monthly.js +207 -264
- package/dist/RangeFilter/Filters/new/Monthly/Monthly.types.d.ts +7 -7
- package/dist/RangeFilter/Filters/new/Monthly/Monthly.types.js +1 -1
- package/dist/RangeFilter/Filters/new/Monthly/utils.d.ts +2 -2
- package/dist/RangeFilter/Filters/new/Monthly/utils.js +17 -20
- package/dist/RangeFilter/Filters/new/Weekly/Weekly.d.ts +2 -2
- package/dist/RangeFilter/Filters/new/Weekly/Weekly.js +173 -227
- package/dist/RangeFilter/Filters/new/Weekly/Weekly.types.d.ts +6 -6
- package/dist/RangeFilter/Filters/new/Weekly/Weekly.types.js +1 -1
- package/dist/RangeFilter/Filters/new/Weekly/utils.d.ts +2 -2
- package/dist/RangeFilter/Filters/new/Weekly/utils.js +22 -26
- package/dist/RangeFilter/Filters/new/constants.js +17 -9
- package/dist/RangeFilter/Filters/new/filters.spec.constants.d.ts +333 -0
- package/dist/RangeFilter/Filters/new/filters.spec.constants.js +218 -0
- package/dist/RangeFilter/Filters/new/hooks/useShiftAndControlKeys.d.ts +1 -1
- package/dist/RangeFilter/Filters/new/hooks/useShiftAndControlKeys.js +16 -23
- package/dist/RangeFilter/RangeFilter.d.ts +3 -3
- package/dist/RangeFilter/RangeFilter.js +171 -168
- package/dist/RangeFilter/RangeFilter.styles.d.ts +9 -9
- package/dist/RangeFilter/RangeFilter.styles.js +24 -17
- package/dist/RangeFilter/RangeFilter.types.d.ts +6 -6
- package/dist/RangeFilter/RangeFilter.types.js +1 -1
- package/dist/RangeFilter/Shared/AddButton/AddButton.d.ts +2 -2
- package/dist/RangeFilter/Shared/AddButton/AddButton.js +17 -19
- package/dist/RangeFilter/Shared/AddButton/AddButton.types.d.ts +2 -2
- package/dist/RangeFilter/Shared/AddButton/AddButton.types.js +1 -1
- package/dist/RangeFilter/Shared/FilterDropdown/FilterDropdown.d.ts +2 -2
- package/dist/RangeFilter/Shared/FilterDropdown/FilterDropdown.js +31 -54
- package/dist/RangeFilter/Shared/FilterDropdown/FilterDropdown.styles.d.ts +3 -3
- package/dist/RangeFilter/Shared/FilterDropdown/FilterDropdown.styles.js +11 -6
- package/dist/RangeFilter/Shared/FilterDropdown/FilterDropdown.types.d.ts +2 -2
- package/dist/RangeFilter/Shared/FilterDropdown/FilterDropdown.types.js +1 -1
- package/dist/RangeFilter/Shared/RangeFilterStatus/RangeFilterStatus.d.ts +2 -2
- package/dist/RangeFilter/Shared/RangeFilterStatus/RangeFilterStatus.js +34 -46
- package/dist/RangeFilter/Shared/RangeFilterStatus/RangeFilterStatus.styles.d.ts +6 -6
- package/dist/RangeFilter/Shared/RangeFilterStatus/RangeFilterStatus.styles.js +21 -17
- package/dist/RangeFilter/Shared/RangeFilterStatus/RangeFilterStatus.types.d.ts +3 -3
- package/dist/RangeFilter/Shared/RangeFilterStatus/RangeFilterStatus.types.js +1 -1
- package/dist/RangeFilter/Shared/SaveFilterForm/SaveFilterForm.d.ts +2 -2
- package/dist/RangeFilter/Shared/SaveFilterForm/SaveFilterForm.js +26 -45
- package/dist/RangeFilter/Shared/SaveFilterForm/SaveFilterForm.styles.d.ts +2 -2
- package/dist/RangeFilter/Shared/SaveFilterForm/SaveFilterForm.styles.js +9 -5
- package/dist/RangeFilter/Shared/SaveFilterForm/SaveFilterForm.types.d.ts +1 -1
- package/dist/RangeFilter/Shared/SaveFilterForm/SaveFilterForm.types.js +1 -1
- package/dist/RangeFilter/Shared/SelectionCount/SelectionCount.d.ts +2 -2
- package/dist/RangeFilter/Shared/SelectionCount/SelectionCount.js +18 -7
- package/dist/RangeFilter/Shared/SelectionCount/SelectionCount.styles.d.ts +2 -2
- package/dist/RangeFilter/Shared/SelectionCount/SelectionCount.styles.js +8 -4
- package/dist/RangeFilter/Shared/SelectionCount/SelectionCount.types.d.ts +1 -1
- package/dist/RangeFilter/Shared/SelectionCount/SelectionCount.types.js +1 -1
- package/dist/RangeFilter/Shared/SelectionHint/SelectionHint.d.ts +2 -2
- package/dist/RangeFilter/Shared/SelectionHint/SelectionHint.js +17 -12
- package/dist/RangeFilter/Shared/TimeWindow/Day/Day.d.ts +2 -2
- package/dist/RangeFilter/Shared/TimeWindow/Day/Day.js +39 -66
- package/dist/RangeFilter/Shared/TimeWindow/Day/Day.styles.d.ts +4 -4
- package/dist/RangeFilter/Shared/TimeWindow/Day/Day.styles.js +13 -13
- package/dist/RangeFilter/Shared/TimeWindow/Day/Day.types.d.ts +4 -4
- package/dist/RangeFilter/Shared/TimeWindow/Day/Day.types.js +1 -1
- package/dist/RangeFilter/Shared/TimeWindow/Grid/Grid.d.ts +2 -2
- package/dist/RangeFilter/Shared/TimeWindow/Grid/Grid.js +43 -47
- package/dist/RangeFilter/Shared/TimeWindow/Grid/Grid.types.d.ts +4 -4
- package/dist/RangeFilter/Shared/TimeWindow/Grid/Grid.types.js +1 -1
- package/dist/RangeFilter/Shared/TimeWindow/Header/Header.d.ts +1 -1
- package/dist/RangeFilter/Shared/TimeWindow/Header/Header.js +15 -20
- package/dist/RangeFilter/Shared/TimeWindow/Header/Header.styles.d.ts +5 -5
- package/dist/RangeFilter/Shared/TimeWindow/Header/Header.styles.js +14 -7
- package/dist/RangeFilter/Shared/TimeWindow/RangeActions/RangeActions.d.ts +2 -2
- package/dist/RangeFilter/Shared/TimeWindow/RangeActions/RangeActions.js +33 -56
- package/dist/RangeFilter/Shared/TimeWindow/RangeActions/RangeActions.styles.d.ts +2 -2
- package/dist/RangeFilter/Shared/TimeWindow/RangeActions/RangeActions.styles.js +9 -5
- package/dist/RangeFilter/Shared/TimeWindow/RangeActions/RangeActions.types.d.ts +2 -2
- package/dist/RangeFilter/Shared/TimeWindow/RangeActions/RangeActions.types.js +1 -1
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.constants.d.ts +1 -1
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.constants.js +22 -14
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.d.ts +2 -2
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.js +89 -157
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.styles.d.ts +5 -5
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.styles.js +13 -13
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types.d.ts +4 -4
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types.js +1 -1
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.utils.js +18 -14
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeFormContainer.d.ts +2 -2
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeFormContainer.js +100 -117
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeFormContainer.styles.d.ts +1 -1
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeFormContainer.styles.js +6 -3
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeFormContainer.types.d.ts +6 -6
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeFormContainer.types.js +1 -1
- package/dist/RangeFilter/Shared/TimeWindow/RangeSummary/RangeSummary.d.ts +2 -2
- package/dist/RangeFilter/Shared/TimeWindow/RangeSummary/RangeSummary.js +26 -18
- package/dist/RangeFilter/Shared/TimeWindow/RangeSummary/RangeSummary.styles.d.ts +2 -2
- package/dist/RangeFilter/Shared/TimeWindow/RangeSummary/RangeSummary.styles.js +9 -9
- package/dist/RangeFilter/Shared/TimeWindow/RangeSummary/RangeSummary.types.d.ts +3 -3
- package/dist/RangeFilter/Shared/TimeWindow/RangeSummary/RangeSummary.types.js +1 -1
- package/dist/RangeFilter/Shared/TimeWindow/TimeWindow.d.ts +3 -3
- package/dist/RangeFilter/Shared/TimeWindow/TimeWindow.js +324 -345
- package/dist/RangeFilter/Shared/TimeWindow/TimeWindow.styles.d.ts +8 -8
- package/dist/RangeFilter/Shared/TimeWindow/TimeWindow.styles.js +23 -19
- package/dist/RangeFilter/Shared/TimeWindow/TimeWindow.types.d.ts +9 -9
- package/dist/RangeFilter/Shared/TimeWindow/TimeWindow.types.js +1 -1
- package/dist/RangeFilter/Shared/TimeWindow/constants/timeWindow.constants.js +10 -4
- package/dist/RangeFilter/Shared/TimeWindow/utils.d.ts +2 -2
- package/dist/RangeFilter/Shared/TimeWindow/utils.js +24 -22
- package/dist/RangeFilter/Shared/index.js +16 -7
- package/dist/RangeFilter/constants.d.ts +6 -6
- package/dist/RangeFilter/constants.js +120 -86
- package/dist/RangeFilter/utils.d.ts +2 -2
- package/dist/RangeFilter/utils.js +165 -186
- package/dist/RangePicker/RangePicker.d.ts +2 -2
- package/dist/RangePicker/RangePicker.js +351 -330
- package/dist/RangePicker/RangePicker.styles.d.ts +5 -5
- package/dist/RangePicker/RangePicker.styles.js +19 -13
- package/dist/RangePicker/RangePicker.types.d.ts +3 -3
- package/dist/RangePicker/RangePicker.types.js +1 -1
- package/dist/RangePicker/utils.d.ts +3 -3
- package/dist/RangePicker/utils.js +84 -80
- package/dist/RangePickerInput/RangePickerInput.d.ts +2 -2
- package/dist/RangePickerInput/RangePickerInput.js +76 -103
- package/dist/RangePickerInput/RangePickerInput.styles.d.ts +8 -8
- package/dist/RangePickerInput/RangePickerInput.styles.js +25 -25
- package/dist/RangePickerInput/RangePickerInput.types.d.ts +5 -5
- package/dist/RangePickerInput/RangePickerInput.types.js +1 -1
- package/dist/RawDateRangePicker.d.ts +3 -3
- package/dist/RawDateRangePicker.js +195 -253
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/CustomRangeForm.d.ts +2 -2
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/CustomRangeForm.js +40 -60
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/CustomRangeForm.types.d.ts +2 -2
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/CustomRangeForm.types.js +1 -1
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/DurationField/DurationField.d.ts +2 -2
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/DurationField/DurationField.js +43 -52
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/DurationField/DurationField.types.d.ts +1 -1
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/DurationField/DurationField.types.js +1 -1
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/OffsetField/OffsetField.d.ts +2 -2
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/OffsetField/OffsetField.js +41 -49
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/OffsetField/OffsetField.types.d.ts +1 -1
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/OffsetField/OffsetField.types.js +1 -1
- package/dist/RelativeRangePicker/Elements/ModeDropdown/ModeDropdown.d.ts +2 -2
- package/dist/RelativeRangePicker/Elements/ModeDropdown/ModeDropdown.js +29 -53
- package/dist/RelativeRangePicker/Elements/ModeDropdown/ModeDropdown.types.d.ts +2 -2
- package/dist/RelativeRangePicker/Elements/ModeDropdown/ModeDropdown.types.js +1 -1
- package/dist/RelativeRangePicker/Elements/RangeButtons/RangeButtons.d.ts +2 -2
- package/dist/RelativeRangePicker/Elements/RangeButtons/RangeButtons.js +21 -22
- package/dist/RelativeRangePicker/Elements/RangeButtons/RangeButtons.types.d.ts +2 -2
- package/dist/RelativeRangePicker/Elements/RangeButtons/RangeButtons.types.js +1 -1
- package/dist/RelativeRangePicker/Elements/RangeDropdown/RangeDropdown.d.ts +3 -3
- package/dist/RelativeRangePicker/Elements/RangeDropdown/RangeDropdown.js +57 -87
- package/dist/RelativeRangePicker/Elements/RangeDropdown/RangeDropdown.types.d.ts +2 -2
- package/dist/RelativeRangePicker/Elements/RangeDropdown/RangeDropdown.types.js +1 -1
- package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampDuration/TimestampDuration.d.ts +2 -2
- package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampDuration/TimestampDuration.js +39 -68
- package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampDuration/TimestampDuration.types.d.ts +2 -2
- package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampDuration/TimestampDuration.types.js +1 -1
- package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampRange.d.ts +2 -2
- package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampRange.js +70 -102
- package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampRange.types.d.ts +2 -2
- package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampRange.types.js +1 -1
- package/dist/RelativeRangePicker/RelativeRangePicker.d.ts +4 -4
- package/dist/RelativeRangePicker/RelativeRangePicker.js +189 -170
- package/dist/RelativeRangePicker/RelativeRangePicker.styles.d.ts +17 -17
- package/dist/RelativeRangePicker/RelativeRangePicker.styles.js +47 -48
- package/dist/RelativeRangePicker/RelativeRangePicker.types.d.ts +3 -3
- package/dist/RelativeRangePicker/RelativeRangePicker.types.js +1 -1
- package/dist/RelativeRangePicker/utils/findMatchingPreset.utils.d.ts +7 -7
- package/dist/RelativeRangePicker/utils/findMatchingPreset.utils.js +12 -9
- package/dist/RelativeRangePicker/utils/findRangeByKey.utils.d.ts +1 -1
- package/dist/RelativeRangePicker/utils/findRangeByKey.utils.js +6 -5
- package/dist/RelativeRangePicker/utils/getCurrentGroupFromProps.utils.d.ts +2 -2
- package/dist/RelativeRangePicker/utils/getCurrentGroupFromProps.utils.js +8 -4
- package/dist/RelativeRangePicker/utils/getDefaultCustomRange.utils.d.ts +1 -1
- package/dist/RelativeRangePicker/utils/getDefaultCustomRange.utils.js +18 -17
- package/dist/RelativeRangePicker/utils/index.js +20 -9
- package/dist/RelativeRangePicker/utils/isAbsolute.utils.d.ts +1 -1
- package/dist/RelativeRangePicker/utils/isAbsolute.utils.js +5 -4
- package/dist/RelativeRangePicker/utils/setDurationValue.utils.d.ts +1 -1
- package/dist/RelativeRangePicker/utils/setDurationValue.utils.js +9 -6
- package/dist/RelativeRangePicker/utils/setFuture.utils.js +6 -3
- package/dist/RelativeRangePicker/utils/setOffsetValue.utils.d.ts +1 -1
- package/dist/RelativeRangePicker/utils/setOffsetValue.utils.js +9 -6
- package/dist/RelativeRangePicker/utils/updatePresetKey.utils.d.ts +1 -1
- package/dist/RelativeRangePicker/utils/updatePresetKey.utils.js +14 -10
- package/dist/constants.d.ts +3 -3
- package/dist/constants.js +112 -85
- package/dist/date.types.d.ts +3 -3
- package/dist/date.types.js +1 -1
- package/dist/dateUtils/Date.d.ts +1 -1
- package/dist/dateUtils/Date.js +14 -16
- package/dist/dateUtils/add.d.ts +7 -7
- package/dist/dateUtils/add.js +12 -9
- package/dist/dateUtils/difference.d.ts +7 -7
- package/dist/dateUtils/difference.js +12 -9
- package/dist/dateUtils/endOf.d.ts +7 -7
- package/dist/dateUtils/endOf.js +12 -9
- package/dist/dateUtils/format.js +14 -15
- package/dist/dateUtils/get.d.ts +3 -3
- package/dist/dateUtils/get.js +8 -5
- package/dist/dateUtils/getDateFromString.js +3 -3
- package/dist/dateUtils/getRelativePresetForRange.d.ts +1 -1
- package/dist/dateUtils/getRelativePresetForRange.js +9 -9
- package/dist/dateUtils/index.js +2 -1
- package/dist/dateUtils/relativeToAbsolute.d.ts +1 -1
- package/dist/dateUtils/relativeToAbsolute.js +35 -27
- package/dist/dateUtils/set.d.ts +3 -3
- package/dist/dateUtils/set.js +8 -5
- package/dist/dateUtils/startOf.d.ts +7 -7
- package/dist/dateUtils/startOf.js +12 -9
- package/dist/dateUtils/sub.d.ts +7 -7
- package/dist/dateUtils/sub.js +12 -9
- package/dist/fns.d.ts +20 -20
- package/dist/fns.js +42 -40
- package/dist/index.js +44 -13
- package/dist/utils.d.ts +5 -5
- package/dist/utils.js +158 -153
- package/package.json +24 -24
|
@@ -1,103 +1,73 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
* @param fallback whether to accept existing properties, but set to `undefined`, default `false`
|
|
21
|
-
*/
|
|
22
|
-
export var isLifetime = function isLifetime(range, fallback) {
|
|
23
|
-
if (fallback === void 0) {
|
|
24
|
-
fallback = false;
|
|
25
|
-
}
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import isEqual from "lodash.isequal";
|
|
3
|
+
import find from "ramda/src/find";
|
|
4
|
+
import { useState, useRef, useCallback } from "react";
|
|
5
|
+
import { theme } from "@synerise/ds-core";
|
|
6
|
+
import Icon, { CheckS, AngleDownS } from "@synerise/ds-icon";
|
|
7
|
+
import Scrollbar from "@synerise/ds-scrollbar";
|
|
8
|
+
import { useOnClickOutside } from "@synerise/ds-utils";
|
|
9
|
+
import { ALL_TIME } from "../../../constants.js";
|
|
10
|
+
import { OverlayWrapper, DropMenu, DropMenuItem, DropdownContainer, Range } from "../../RelativeRangePicker.styles.js";
|
|
11
|
+
import "../../utils/setFuture.utils.js";
|
|
12
|
+
import "ramda/src/lensPath";
|
|
13
|
+
import "ramda/src/set";
|
|
14
|
+
import { findRangeByKey } from "../../utils/findRangeByKey.utils.js";
|
|
15
|
+
const MAX_ITEMS_COUNT = 7;
|
|
16
|
+
const ITEMS_HEIGHT = 32;
|
|
17
|
+
const DROPDOWN_WIDTH = 160;
|
|
18
|
+
const DROPDOWN_PADDING = 8;
|
|
19
|
+
const isLifetime = (range, fallback = false) => {
|
|
26
20
|
if (!range) {
|
|
27
21
|
return false;
|
|
28
22
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
var legacyValueButLifetimeForSure = reasonableDef && range.translationKey === 'allTime';
|
|
23
|
+
const keys = Object.keys(range);
|
|
24
|
+
const legacyDef = range.type === "ABSOLUTE" && !keys.includes("from") && !keys.includes("to");
|
|
25
|
+
const reasonableDef = range.type === "ABSOLUTE" && range.from === void 0 && range.to === void 0;
|
|
26
|
+
const legacyValueButLifetimeForSure = reasonableDef && range.translationKey === "allTime";
|
|
34
27
|
return legacyDef || fallback && reasonableDef || legacyValueButLifetimeForSure;
|
|
35
28
|
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
dropVisible = _useState[0],
|
|
47
|
-
setDropVisible = _useState[1];
|
|
48
|
-
var dropdownRef = useRef(null);
|
|
49
|
-
useOnClickOutside(dropdownRef, function () {
|
|
29
|
+
const RangeDropdown = ({
|
|
30
|
+
ranges,
|
|
31
|
+
currentRange,
|
|
32
|
+
texts,
|
|
33
|
+
onChange,
|
|
34
|
+
valueTransformer = (e) => e
|
|
35
|
+
}) => {
|
|
36
|
+
const [dropVisible, setDropVisible] = useState(false);
|
|
37
|
+
const dropdownRef = useRef(null);
|
|
38
|
+
useOnClickOutside(dropdownRef, () => {
|
|
50
39
|
setDropVisible(false);
|
|
51
40
|
});
|
|
52
|
-
|
|
53
|
-
|
|
41
|
+
const onMenuItemClick = useCallback((itemData) => {
|
|
42
|
+
const range = findRangeByKey(ranges, itemData.key);
|
|
54
43
|
onChange(range);
|
|
55
44
|
setDropVisible(false);
|
|
56
45
|
}, [onChange, ranges]);
|
|
57
46
|
if (!ranges || ranges.length === 0) {
|
|
58
47
|
return null;
|
|
59
48
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
var containsCurrentRange = currentRange && find(function (range) {
|
|
66
|
-
var key = isLifetime(currentRange) ? ALL_TIME : currentRange.key;
|
|
49
|
+
const mappedRanges = ranges.map(valueTransformer);
|
|
50
|
+
const transformedCurrentRange = valueTransformer(currentRange);
|
|
51
|
+
const anyOfTransformedRangesMatchesCurrentRange = isLifetime(transformedCurrentRange) ? false : find((r) => isEqual(transformedCurrentRange, r), mappedRanges);
|
|
52
|
+
const containsCurrentRange = currentRange && find((range) => {
|
|
53
|
+
const key = isLifetime(currentRange) ? ALL_TIME : currentRange.key;
|
|
67
54
|
return range.key === key;
|
|
68
55
|
}, ranges) || anyOfTransformedRangesMatchesCurrentRange;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
color: theme.palette['green-600']
|
|
87
|
-
})
|
|
88
|
-
}, range.translationKey ? texts[range.translationKey] : range.key);
|
|
89
|
-
}))));
|
|
90
|
-
return /*#__PURE__*/React.createElement(S.DropdownContainer, {
|
|
91
|
-
ref: dropdownRef
|
|
92
|
-
}, /*#__PURE__*/React.createElement(S.Range, {
|
|
93
|
-
"data-testid": "relative-ranges-dropdown",
|
|
94
|
-
activated: !!containsCurrentRange,
|
|
95
|
-
mode: "label-icon",
|
|
96
|
-
onClick: function onClick() {
|
|
97
|
-
return setDropVisible(!dropVisible);
|
|
98
|
-
}
|
|
99
|
-
}, currentRange && texts[containsCurrentRange && currentRange.translationKey ? currentRange.translationKey : 'more'], /*#__PURE__*/React.createElement(Icon, {
|
|
100
|
-
component: /*#__PURE__*/React.createElement(AngleDownS, null)
|
|
101
|
-
})), overlay);
|
|
56
|
+
const overlay = /* @__PURE__ */ jsx(OverlayWrapper, { visible: dropVisible, width: DROPDOWN_WIDTH, children: /* @__PURE__ */ jsx(Scrollbar, { maxHeight: MAX_ITEMS_COUNT * ITEMS_HEIGHT, style: {
|
|
57
|
+
width: DROPDOWN_WIDTH - DROPDOWN_PADDING
|
|
58
|
+
}, absolute: true, children: /* @__PURE__ */ jsx(DropMenu, { children: ranges.map((range) => {
|
|
59
|
+
const selected = currentRange?.key === range.key || isLifetime(currentRange) && range.key === ALL_TIME;
|
|
60
|
+
return /* @__PURE__ */ jsx(DropMenuItem, { onClick: onMenuItemClick, itemKey: range.key || range.id, suffixel: selected && /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(CheckS, {}), color: theme.palette["green-600"] }), children: range.translationKey ? texts[range.translationKey] : range.key }, range.key || range.id);
|
|
61
|
+
}) }) }) });
|
|
62
|
+
return /* @__PURE__ */ jsxs(DropdownContainer, { ref: dropdownRef, children: [
|
|
63
|
+
/* @__PURE__ */ jsxs(Range, { "data-testid": "relative-ranges-dropdown", activated: !!containsCurrentRange, mode: "label-icon", onClick: () => setDropVisible(!dropVisible), children: [
|
|
64
|
+
currentRange && texts[containsCurrentRange && currentRange.translationKey ? currentRange.translationKey : "more"],
|
|
65
|
+
/* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(AngleDownS, {}) })
|
|
66
|
+
] }),
|
|
67
|
+
overlay
|
|
68
|
+
] });
|
|
69
|
+
};
|
|
70
|
+
export {
|
|
71
|
+
RangeDropdown as default,
|
|
72
|
+
isLifetime
|
|
102
73
|
};
|
|
103
|
-
export default RangeDropdown;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { DateRangePickerProps, Texts } from '../../../DateRangePicker.types';
|
|
2
|
+
import { DateRange } from '../../../date.types';
|
|
3
3
|
export type RangeDropdownProps = {
|
|
4
4
|
ranges: DateRange[];
|
|
5
5
|
currentRange: DateRange;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampDuration/TimestampDuration.js
CHANGED
|
@@ -1,69 +1,40 @@
|
|
|
1
|
-
import
|
|
2
|
-
import InputNumber from
|
|
3
|
-
import Select from
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
})), /*#__PURE__*/React.createElement(InputNumber, {
|
|
41
|
-
min: 1,
|
|
42
|
-
max: CONST.RELATIVE_DURATION_MAX,
|
|
43
|
-
precision: 0,
|
|
44
|
-
step: 1,
|
|
45
|
-
value: value,
|
|
46
|
-
onChange: handleDurationValueChange
|
|
47
|
-
}), /*#__PURE__*/React.createElement(Select, {
|
|
48
|
-
value: unit,
|
|
49
|
-
dropdownStyle: {
|
|
50
|
-
minWidth: '125px'
|
|
51
|
-
},
|
|
52
|
-
onChange: function onChange(type) {
|
|
53
|
-
return onDurationUnitChange(type);
|
|
54
|
-
},
|
|
55
|
-
dropdownAlign: {
|
|
56
|
-
points: ['bl', 'tl'],
|
|
57
|
-
offset: [0, SELECT_DROPDOWN_OFFSET]
|
|
58
|
-
},
|
|
59
|
-
getPopupContainer: function getPopupContainer(node) {
|
|
60
|
-
return node.parentElement !== null ? node.parentElement : document.body;
|
|
61
|
-
}
|
|
62
|
-
}, CONST.RELATIVE_UNITS.map(function (type) {
|
|
63
|
-
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
64
|
-
key: type,
|
|
65
|
-
value: type
|
|
66
|
-
}, texts[type.toLowerCase()]);
|
|
67
|
-
}))));
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import InputNumber from "@synerise/ds-input-number";
|
|
3
|
+
import Select from "@synerise/ds-select";
|
|
4
|
+
import { RELATIVE_DURATION_MAX, RELATIVE_UNITS, DURATION_MODIFIERS } from "../../../../constants.js";
|
|
5
|
+
import { Title, InputSelectGroup } from "../../../RelativeRangePicker.styles.js";
|
|
6
|
+
const SELECT_DROPDOWN_OFFSET = -4;
|
|
7
|
+
const TimestampDuration = ({
|
|
8
|
+
handleDurationValueChange,
|
|
9
|
+
durationModifier,
|
|
10
|
+
onDurationModifierChange,
|
|
11
|
+
value,
|
|
12
|
+
onDurationUnitChange,
|
|
13
|
+
unit,
|
|
14
|
+
texts
|
|
15
|
+
}) => {
|
|
16
|
+
const durationModiferValues = Object.values(DURATION_MODIFIERS);
|
|
17
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
18
|
+
/* @__PURE__ */ jsx(Title, { children: texts.timestampTill }),
|
|
19
|
+
/* @__PURE__ */ jsxs(InputSelectGroup, { compact: true, children: [
|
|
20
|
+
/* @__PURE__ */ jsx(Select, { className: "ds-select-duration-type", value: durationModifier, onChange: (modifier) => {
|
|
21
|
+
onDurationModifierChange(modifier);
|
|
22
|
+
}, dropdownStyle: {
|
|
23
|
+
minWidth: "125px"
|
|
24
|
+
}, dropdownAlign: {
|
|
25
|
+
points: ["bl", "tl"],
|
|
26
|
+
offset: [0, SELECT_DROPDOWN_OFFSET]
|
|
27
|
+
}, getPopupContainer: (node) => node.parentElement !== null ? node.parentElement : document.body, children: durationModiferValues.map((modifier) => /* @__PURE__ */ jsx(Select.Option, { value: modifier, children: texts[modifier] }, modifier)) }),
|
|
28
|
+
/* @__PURE__ */ jsx(InputNumber, { min: 1, max: RELATIVE_DURATION_MAX, precision: 0, step: 1, value, onChange: handleDurationValueChange }),
|
|
29
|
+
/* @__PURE__ */ jsx(Select, { value: unit, dropdownStyle: {
|
|
30
|
+
minWidth: "125px"
|
|
31
|
+
}, onChange: (type) => onDurationUnitChange(type), dropdownAlign: {
|
|
32
|
+
points: ["bl", "tl"],
|
|
33
|
+
offset: [0, SELECT_DROPDOWN_OFFSET]
|
|
34
|
+
}, getPopupContainer: (node) => node.parentElement !== null ? node.parentElement : document.body, children: RELATIVE_UNITS.map((type) => /* @__PURE__ */ jsx(Select.Option, { value: type, children: texts[type.toLowerCase()] }, type)) })
|
|
35
|
+
] })
|
|
36
|
+
] });
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
TimestampDuration as default
|
|
68
40
|
};
|
|
69
|
-
export default TimestampDuration;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Texts } from '../../../../DateRangePicker.types';
|
|
2
|
+
import { RelativeDateRange } from '../../../../date.types';
|
|
3
3
|
export type Props = {
|
|
4
4
|
currentRange: RelativeDateRange;
|
|
5
5
|
handleDurationValueChange: (value?: string | number | null) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TimestampRangeProps as Props } from './TimestampRange.types';
|
|
3
3
|
declare const TimestampRange: React.FC<Props>;
|
|
4
4
|
export default TimestampRange;
|
|
@@ -1,126 +1,94 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
durationValue = _React$useState2[0],
|
|
38
|
-
setDurationValue = _React$useState2[1];
|
|
39
|
-
var _React$useState3 = React.useState(currentRange == null || (_currentRange$duratio2 = currentRange.duration) == null ? void 0 : _currentRange$duratio2.type),
|
|
40
|
-
durationUnit = _React$useState3[0],
|
|
41
|
-
setDurationUnit = _React$useState3[1];
|
|
42
|
-
var _React$useState4 = React.useState(!timestamp),
|
|
43
|
-
error = _React$useState4[0],
|
|
44
|
-
setError = _React$useState4[1];
|
|
45
|
-
var intl = useIntl();
|
|
46
|
-
var allTexts = getDefaultTexts(intl, texts);
|
|
47
|
-
React.useEffect(function () {
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { useIntl } from "react-intl";
|
|
4
|
+
import DatePicker from "@synerise/ds-date-picker/dist/DatePicker";
|
|
5
|
+
import { getDefaultTexts } from "@synerise/ds-date-picker/dist/utils/getDefaultTexts";
|
|
6
|
+
import { DURATION_MODIFIERS, CUSTOM_RANGE_KEY } from "../../../constants.js";
|
|
7
|
+
import { DEFAULT_RANGE } from "../../../utils.js";
|
|
8
|
+
import { RangeFormColumn, DatePickerWrapper } from "../../RelativeRangePicker.styles.js";
|
|
9
|
+
import TimestampDuration from "./TimestampDuration/TimestampDuration.js";
|
|
10
|
+
const TimestampRange = ({
|
|
11
|
+
currentRange,
|
|
12
|
+
handleChange,
|
|
13
|
+
texts,
|
|
14
|
+
onTimestampChange,
|
|
15
|
+
getValueOnReset = () => ({
|
|
16
|
+
...DEFAULT_RANGE,
|
|
17
|
+
type: "RELATIVE",
|
|
18
|
+
offset: {
|
|
19
|
+
type: "SINCE",
|
|
20
|
+
value: /* @__PURE__ */ new Date()
|
|
21
|
+
},
|
|
22
|
+
duration: {
|
|
23
|
+
type: "DAYS",
|
|
24
|
+
value: 30
|
|
25
|
+
},
|
|
26
|
+
translationKey: CUSTOM_RANGE_KEY
|
|
27
|
+
}),
|
|
28
|
+
timestamp
|
|
29
|
+
}) => {
|
|
30
|
+
const [durationModifier, setDurationModifier] = React.useState(currentRange?.future ? DURATION_MODIFIERS.NEXT : DURATION_MODIFIERS.LAST);
|
|
31
|
+
const [durationValue, setDurationValue] = React.useState(currentRange?.duration?.value);
|
|
32
|
+
const [durationUnit, setDurationUnit] = React.useState(currentRange?.duration?.type);
|
|
33
|
+
const [error, setError] = React.useState(!timestamp);
|
|
34
|
+
const intl = useIntl();
|
|
35
|
+
const allTexts = getDefaultTexts(intl, texts);
|
|
36
|
+
React.useEffect(() => {
|
|
48
37
|
setError(!timestamp);
|
|
49
38
|
}, [timestamp]);
|
|
50
|
-
|
|
39
|
+
const handleRangeChange = (date, duration) => {
|
|
51
40
|
if (date) {
|
|
52
|
-
|
|
41
|
+
const offsetToTimestamp = {
|
|
53
42
|
future: durationModifier === DURATION_MODIFIERS.NEXT,
|
|
54
43
|
duration: {
|
|
55
44
|
type: duration.type,
|
|
56
45
|
value: duration.value
|
|
57
46
|
},
|
|
58
47
|
offset: {
|
|
59
|
-
type:
|
|
48
|
+
type: "SINCE",
|
|
60
49
|
value: timestamp
|
|
61
50
|
},
|
|
62
|
-
key:
|
|
51
|
+
key: void 0,
|
|
63
52
|
translationKey: CUSTOM_RANGE_KEY
|
|
64
53
|
};
|
|
65
|
-
handleChange(offsetToTimestamp);
|
|
54
|
+
handleChange(offsetToTimestamp);
|
|
66
55
|
}
|
|
67
56
|
};
|
|
68
|
-
React.useEffect(
|
|
69
|
-
|
|
57
|
+
React.useEffect(() => {
|
|
58
|
+
const duration = {
|
|
70
59
|
type: durationUnit,
|
|
71
60
|
value: durationValue
|
|
72
61
|
};
|
|
73
62
|
handleRangeChange(timestamp, duration);
|
|
74
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
75
63
|
}, [durationValue, durationModifier, durationUnit, timestamp]);
|
|
76
|
-
|
|
77
|
-
return
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
getPopupContainer: function getPopupContainer(node) {
|
|
93
|
-
return node.parentElement !== null ? node.parentElement : document.body;
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
texts: {
|
|
97
|
-
apply: allTexts.apply,
|
|
98
|
-
now: allTexts.now,
|
|
99
|
-
clearTooltip: allTexts.clearTooltip,
|
|
100
|
-
inputPlaceholder: allTexts.inputPlaceholder
|
|
101
|
-
},
|
|
102
|
-
showTime: true,
|
|
103
|
-
error: error,
|
|
104
|
-
errorText: error ? texts.emptyDateError : null,
|
|
105
|
-
popoverPlacement: "topLeft"
|
|
106
|
-
}));
|
|
64
|
+
const renderDatePicker = () => {
|
|
65
|
+
return /* @__PURE__ */ jsx(DatePickerWrapper, { error, children: /* @__PURE__ */ jsx(DatePicker, { value: timestamp, onValueChange: (value) => {
|
|
66
|
+
setError(!value);
|
|
67
|
+
onTimestampChange && onTimestampChange(value);
|
|
68
|
+
}, onApply: (date) => {
|
|
69
|
+
onTimestampChange && onTimestampChange(date);
|
|
70
|
+
}, onClear: () => {
|
|
71
|
+
onTimestampChange && onTimestampChange(getValueOnReset());
|
|
72
|
+
}, dropdownProps: {
|
|
73
|
+
getPopupContainer: (node) => node.parentElement !== null ? node.parentElement : document.body
|
|
74
|
+
}, texts: {
|
|
75
|
+
apply: allTexts.apply,
|
|
76
|
+
now: allTexts.now,
|
|
77
|
+
clearTooltip: allTexts.clearTooltip,
|
|
78
|
+
inputPlaceholder: allTexts.inputPlaceholder
|
|
79
|
+
}, showTime: true, error, errorText: error ? texts.emptyDateError : null, popoverPlacement: "topLeft" }) });
|
|
107
80
|
};
|
|
108
|
-
return
|
|
109
|
-
|
|
110
|
-
value: durationValue,
|
|
111
|
-
handleDurationValueChange: function handleDurationValueChange(val) {
|
|
81
|
+
return /* @__PURE__ */ jsxs(RangeFormColumn, { children: [
|
|
82
|
+
renderDatePicker(),
|
|
83
|
+
/* @__PURE__ */ jsx(TimestampDuration, { currentRange, value: durationValue, handleDurationValueChange: (val) => {
|
|
112
84
|
val && setDurationValue(Number(val));
|
|
113
|
-
},
|
|
114
|
-
onDurationUnitChange: function onDurationUnitChange(unit) {
|
|
85
|
+
}, onDurationUnitChange: (unit) => {
|
|
115
86
|
unit && setDurationUnit(unit);
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}));
|
|
87
|
+
}, unit: durationUnit, durationModifier, onDurationModifierChange: (modifier) => {
|
|
88
|
+
setDurationModifier(modifier);
|
|
89
|
+
}, texts })
|
|
90
|
+
] });
|
|
91
|
+
};
|
|
92
|
+
export {
|
|
93
|
+
TimestampRange as default
|
|
124
94
|
};
|
|
125
|
-
export default TimestampRange;
|
|
126
|
-
/* eslint-enable @typescript-eslint/no-explicit-any */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { RelativeMode, Texts } from '../../../DateRangePicker.types';
|
|
2
|
+
import { RelativeDateRange } from '../../../date.types';
|
|
3
3
|
export type TimestampRangeProps = {
|
|
4
4
|
currentRange: RelativeDateRange;
|
|
5
5
|
handleChange: (value: RelativeDateRange) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
declare const _default: React.FC<import(
|
|
4
|
-
WrappedComponent: React.ComponentType<import(
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { WrappedComponentProps } from 'react-intl';
|
|
3
|
+
declare const _default: React.FC<import('react-intl').WithIntlProps<import('./RelativeRangePicker.types').RelativeRangePickerProps & WrappedComponentProps>> & {
|
|
4
|
+
WrappedComponent: React.ComponentType<import('./RelativeRangePicker.types').RelativeRangePickerProps & WrappedComponentProps>;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|