@synerise/ds-date-range-picker 1.6.11 → 1.6.12
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 +4 -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,10 +1,10 @@
|
|
|
1
|
-
export declare const TimeWindowContainer: import(
|
|
2
|
-
export declare const Wrapper: import(
|
|
3
|
-
export declare const Labels: import(
|
|
4
|
-
export declare const Days: import(
|
|
1
|
+
export declare const TimeWindowContainer: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const Wrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const Labels: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const Days: import('styled-components').StyledComponent<"div", any, {
|
|
5
5
|
columns: number;
|
|
6
6
|
}, never>;
|
|
7
|
-
export declare const HeaderWrapper: import(
|
|
8
|
-
export declare const SelectionHint: import(
|
|
9
|
-
export declare const GridContainer: import(
|
|
10
|
-
export declare const AddButtonWrapper: import(
|
|
7
|
+
export declare const HeaderWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const SelectionHint: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const GridContainer: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export declare const AddButtonWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1,40 +1,44 @@
|
|
|
1
|
-
import range from
|
|
2
|
-
import styled from
|
|
3
|
-
|
|
1
|
+
import range from "lodash.range";
|
|
2
|
+
import styled from "styled-components";
|
|
3
|
+
const TimeWindowContainer = /* @__PURE__ */ styled.div.withConfig({
|
|
4
4
|
displayName: "TimeWindowstyles__TimeWindowContainer",
|
|
5
5
|
componentId: "sc-1mddrq2-0"
|
|
6
6
|
})(["display:flex;flex-flow:column;"]);
|
|
7
|
-
|
|
7
|
+
const Wrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
8
8
|
displayName: "TimeWindowstyles__Wrapper",
|
|
9
9
|
componentId: "sc-1mddrq2-1"
|
|
10
10
|
})(["display:grid;grid-gap:7px;grid-template-columns:min-content auto;grid-auto-rows:1fr;"]);
|
|
11
|
-
|
|
11
|
+
const Labels = /* @__PURE__ */ styled.div.withConfig({
|
|
12
12
|
displayName: "TimeWindowstyles__Labels",
|
|
13
13
|
componentId: "sc-1mddrq2-2"
|
|
14
14
|
})(["display:grid;grid-gap:7px;grid-template-columns:1fr;grid-auto-rows:1fr;white-space:nowrap;align-items:center;font-size:11px;"]);
|
|
15
|
-
|
|
15
|
+
const Days = /* @__PURE__ */ styled.div.withConfig({
|
|
16
16
|
displayName: "TimeWindowstyles__Days",
|
|
17
17
|
componentId: "sc-1mddrq2-3"
|
|
18
|
-
})(["display:grid;grid-gap:7px;grid-template-columns:", ";grid-auto-rows:1fr;white-space:nowrap;align-items:center;button{position:relative;text-overflow:ellipsis;padding:0 4px;}"],
|
|
19
|
-
|
|
20
|
-
return '1fr';
|
|
21
|
-
}).join(' ');
|
|
22
|
-
});
|
|
23
|
-
export var HeaderWrapper = styled.div.withConfig({
|
|
18
|
+
})(["display:grid;grid-gap:7px;grid-template-columns:", ";grid-auto-rows:1fr;white-space:nowrap;align-items:center;button{position:relative;text-overflow:ellipsis;padding:0 4px;}"], (props) => range(props.columns || 1).map(() => "1fr").join(" "));
|
|
19
|
+
const HeaderWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
24
20
|
displayName: "TimeWindowstyles__HeaderWrapper",
|
|
25
21
|
componentId: "sc-1mddrq2-4"
|
|
26
22
|
})(["margin-bottom:12px;"]);
|
|
27
|
-
|
|
23
|
+
const SelectionHint = /* @__PURE__ */ styled.div.withConfig({
|
|
28
24
|
displayName: "TimeWindowstyles__SelectionHint",
|
|
29
25
|
componentId: "sc-1mddrq2-5"
|
|
30
|
-
})(["margin-top:4px;background:", ";padding:16px 24px;display:flex;justify-content:flex-start;align-items:center;.ds-icon{margin-right:12px;}"],
|
|
31
|
-
|
|
32
|
-
});
|
|
33
|
-
export var GridContainer = styled.div.withConfig({
|
|
26
|
+
})(["margin-top:4px;background:", ";padding:16px 24px;display:flex;justify-content:flex-start;align-items:center;.ds-icon{margin-right:12px;}"], (props) => props.theme.palette["grey-050"]);
|
|
27
|
+
const GridContainer = /* @__PURE__ */ styled.div.withConfig({
|
|
34
28
|
displayName: "TimeWindowstyles__GridContainer",
|
|
35
29
|
componentId: "sc-1mddrq2-6"
|
|
36
30
|
})(["margin-bottom:24px;"]);
|
|
37
|
-
|
|
31
|
+
const AddButtonWrapper = /* @__PURE__ */ styled.div.withConfig({
|
|
38
32
|
displayName: "TimeWindowstyles__AddButtonWrapper",
|
|
39
33
|
componentId: "sc-1mddrq2-7"
|
|
40
|
-
})(["display:flex;"]);
|
|
34
|
+
})(["display:flex;"]);
|
|
35
|
+
export {
|
|
36
|
+
AddButtonWrapper,
|
|
37
|
+
Days,
|
|
38
|
+
GridContainer,
|
|
39
|
+
HeaderWrapper,
|
|
40
|
+
Labels,
|
|
41
|
+
SelectionHint,
|
|
42
|
+
TimeWindowContainer,
|
|
43
|
+
Wrapper
|
|
44
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { WrappedComponentProps } from 'react-intl';
|
|
3
|
+
import { WithDataFormatProps } from '@synerise/ds-core';
|
|
4
|
+
import { TimePickerProps } from '@synerise/ds-time-picker';
|
|
5
|
+
import { Texts } from '../../../DateRangePicker.types';
|
|
6
|
+
import { FilterDefinition, WithDisabledProp } from '../../RangeFilter.types';
|
|
7
|
+
import { DayProps } from './Day/Day.types';
|
|
8
|
+
import { GridTexts } from './Grid/Grid.types';
|
|
9
|
+
import { DateLimitMode, RangeDisplayMode } from './RangeFormContainer/RangeForm/RangeForm.types';
|
|
10
10
|
export type DayKey = number | string;
|
|
11
11
|
export type DayOptions = {
|
|
12
12
|
display?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const EU_NOTATION_WEEK_DAYS_INDEXES = [0, 1, 2, 3, 4, 5, 6];
|
|
2
|
+
const US_NOTATION_WEEK_DAYS_INDEXES = [6, 0, 1, 2, 3, 4, 5];
|
|
3
|
+
const EU_NOTATION_MONTH_DAYS_INDEXES = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 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];
|
|
4
|
+
const US_NOTATION_MONTH_DAYS_INDEXES = [6, 0, 1, 2, 3, 4, 5, 13, 7, 8, 9, 10, 11, 12, 20, 14, 15, 16, 17, 18, 19, 27, 21, 22, 23, 24, 25, 26, 34, 28, 29, 30, 31, 32, 33];
|
|
5
|
+
export {
|
|
6
|
+
EU_NOTATION_MONTH_DAYS_INDEXES,
|
|
7
|
+
EU_NOTATION_WEEK_DAYS_INDEXES,
|
|
8
|
+
US_NOTATION_MONTH_DAYS_INDEXES,
|
|
9
|
+
US_NOTATION_WEEK_DAYS_INDEXES
|
|
10
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { FilterDefinition } from '../../RangeFilter.types';
|
|
2
|
+
import { DateLimitMode } from './RangeFormContainer/RangeForm/RangeForm.types';
|
|
3
3
|
export declare const getDateFromDayValue: (dayValue?: string, hourTimeFormat?: string) => Date;
|
|
4
4
|
export declare const reverseRange: (inputRange: number[], groupItem: number) => number[];
|
|
5
5
|
export declare const getDefaultFilterForLimitMode: (mode: DateLimitMode) => Partial<FilterDefinition>;
|
|
@@ -1,32 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return dayjs(input, DAY_FORMAT + "-" + hourFormat).toDate();
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
import flatten from "lodash.flatten";
|
|
3
|
+
import groupBy from "lodash.groupby";
|
|
4
|
+
import reverse from "lodash.reverse";
|
|
5
|
+
import values from "lodash.values";
|
|
6
|
+
import { DEFAULT_TIME_FORMAT, DEFAULT_RANGE_END, DEFAULT_RANGE_START } from "../../Filters/new/constants.js";
|
|
7
|
+
const TODAY = /* @__PURE__ */ new Date();
|
|
8
|
+
const getDateFromDayValue = (dayValue, hourTimeFormat) => {
|
|
9
|
+
const DAY_FORMAT = `YYYY-MM-DD`;
|
|
10
|
+
const todayToString = dayjs(TODAY).format(DAY_FORMAT);
|
|
11
|
+
const input = `${todayToString}-${dayValue}`;
|
|
12
|
+
const hourFormat = hourTimeFormat || DEFAULT_TIME_FORMAT;
|
|
13
|
+
return dayjs(input, `${DAY_FORMAT}-${hourFormat}`).toDate();
|
|
15
14
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return Math.floor(item / groupItem);
|
|
19
|
-
};
|
|
15
|
+
const reverseRange = (inputRange, groupItem) => {
|
|
16
|
+
const grouping = (item) => Math.floor(item / groupItem);
|
|
20
17
|
return flatten(reverse(values(groupBy(inputRange, grouping))));
|
|
21
18
|
};
|
|
22
|
-
|
|
19
|
+
const getDefaultFilterForLimitMode = (mode) => {
|
|
23
20
|
switch (mode) {
|
|
24
|
-
case
|
|
21
|
+
case "Hour":
|
|
25
22
|
return {
|
|
26
23
|
start: DEFAULT_RANGE_START,
|
|
27
24
|
stop: DEFAULT_RANGE_START
|
|
28
25
|
};
|
|
29
|
-
case
|
|
26
|
+
case "Range":
|
|
30
27
|
return {
|
|
31
28
|
start: DEFAULT_RANGE_START,
|
|
32
29
|
stop: DEFAULT_RANGE_END
|
|
@@ -34,4 +31,9 @@ export var getDefaultFilterForLimitMode = function getDefaultFilterForLimitMode(
|
|
|
34
31
|
default:
|
|
35
32
|
return {};
|
|
36
33
|
}
|
|
37
|
-
};
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
getDateFromDayValue,
|
|
37
|
+
getDefaultFilterForLimitMode,
|
|
38
|
+
reverseRange
|
|
39
|
+
};
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { default as default2 } from "./AddButton/AddButton.js";
|
|
2
|
+
import { default as default3 } from "./FilterDropdown/FilterDropdown.js";
|
|
3
|
+
import { default as default4 } from "./RangeFilterStatus/RangeFilterStatus.js";
|
|
4
|
+
import { default as default5 } from "./SaveFilterForm/SaveFilterForm.js";
|
|
5
|
+
import { default as default6 } from "./SelectionCount/SelectionCount.js";
|
|
6
|
+
import { default as default7 } from "./SelectionHint/SelectionHint.js";
|
|
7
|
+
import { default as default8 } from "./TimeWindow/TimeWindow.js";
|
|
8
|
+
export {
|
|
9
|
+
default2 as AddButton,
|
|
10
|
+
default3 as FilterDropdown,
|
|
11
|
+
default4 as RangeFilterStatus,
|
|
12
|
+
default5 as SaveFilterForm,
|
|
13
|
+
default6 as SelectionCount,
|
|
14
|
+
default7 as SelectionHint,
|
|
15
|
+
default8 as TimeWindow
|
|
16
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MonthlySelectValue } from './RangeFilter.types';
|
|
2
2
|
export declare const TIME_FORMAT = "HH:mm:ss.SSS";
|
|
3
3
|
export declare const DEFAULT_RANGE_START = "00:00:00.000";
|
|
4
4
|
export declare const DEFAULT_RANGE_END = "23:59:59.999";
|
|
@@ -24,8 +24,8 @@ export declare const TYPES_DATA: {
|
|
|
24
24
|
MONTHLY: {
|
|
25
25
|
labelTranslationKey: string;
|
|
26
26
|
defaultLabel: string;
|
|
27
|
-
component: import(
|
|
28
|
-
WrappedComponent: import(
|
|
27
|
+
component: import('react').FC<import('react-intl').WithIntlProps<import('./Filters/MonthlyFilter/MonthlyFilter.types').MonthlyFilterProps>> & {
|
|
28
|
+
WrappedComponent: import('react').ComponentType<import('./Filters/MonthlyFilter/MonthlyFilter.types').MonthlyFilterProps>;
|
|
29
29
|
};
|
|
30
30
|
definition: {
|
|
31
31
|
period: DAYS_OF_PERIOD_ENUM;
|
|
@@ -37,14 +37,14 @@ export declare const TYPES_DATA: {
|
|
|
37
37
|
WEEKLY: {
|
|
38
38
|
labelTranslationKey: string;
|
|
39
39
|
defaultLabel: string;
|
|
40
|
-
component: ({ value, onChange, onRangeClear, onRangePaste, onRangeCopy, rangeClipboard, intl, valueSelectionModes, rangeDisplayMode, texts, }: import(
|
|
40
|
+
component: ({ value, onChange, onRangeClear, onRangePaste, onRangeCopy, rangeClipboard, intl, valueSelectionModes, rangeDisplayMode, texts, }: import('./Filters/WeeklyFilter/WeeklyFilter.types').WeeklyFilterProps) => JSX.Element;
|
|
41
41
|
definition: {};
|
|
42
42
|
};
|
|
43
43
|
DAILY: {
|
|
44
44
|
labelTranslationKey: string;
|
|
45
45
|
defaultLabel: string;
|
|
46
|
-
component: import(
|
|
47
|
-
WrappedComponent: import(
|
|
46
|
+
component: import('react').FC<import('react-intl').WithIntlProps<import('./Filters/DailyFilter/DailyFilter').Props>> & {
|
|
47
|
+
WrappedComponent: import('react').ComponentType<import('./Filters/DailyFilter/DailyFilter').Props>;
|
|
48
48
|
};
|
|
49
49
|
definition: {
|
|
50
50
|
start: string;
|
|
@@ -1,69 +1,88 @@
|
|
|
1
|
-
import range from
|
|
2
|
-
import { v4
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import range from "lodash.range";
|
|
2
|
+
import { v4 } from "uuid";
|
|
3
|
+
import fnsAddDays from "date-fns/addDays";
|
|
4
|
+
import "date-fns/addHours";
|
|
5
|
+
import "date-fns/addMinutes";
|
|
6
|
+
import "date-fns/addMonths";
|
|
7
|
+
import "date-fns/addSeconds";
|
|
8
|
+
import "date-fns/addWeeks";
|
|
9
|
+
import "date-fns/addYears";
|
|
10
|
+
import "date-fns/endOfDay";
|
|
11
|
+
import "date-fns/endOfMonth";
|
|
12
|
+
import fnsFormat from "date-fns/format";
|
|
13
|
+
import "date-fns/getYear";
|
|
14
|
+
import "date-fns/isAfter";
|
|
15
|
+
import "date-fns/isBefore";
|
|
16
|
+
import "date-fns/isSameMonth";
|
|
17
|
+
import "date-fns/isSameYear";
|
|
18
|
+
import "date-fns/setDate";
|
|
19
|
+
import "date-fns/setMonth";
|
|
20
|
+
import "date-fns/setYear";
|
|
21
|
+
import "date-fns/startOfDay";
|
|
22
|
+
import "date-fns/startOfMonth";
|
|
23
|
+
import DailyFilter from "./Filters/DailyFilter/DailyFilter.js";
|
|
24
|
+
import MonthlyFilter from "./Filters/MonthlyFilter/MonthlyFilter.js";
|
|
25
|
+
import WeeklyFilter from "./Filters/WeeklyFilter/WeeklyFilter.js";
|
|
26
|
+
const LONG_MONTH = new Date(0, 0, 1);
|
|
27
|
+
const TIME_FORMAT = "HH:mm:ss.SSS";
|
|
28
|
+
const DEFAULT_RANGE_START = "00:00:00.000";
|
|
29
|
+
const DEFAULT_RANGE_END = "23:59:59.999";
|
|
30
|
+
const MONTH_DAYS = (locale) => range(0, 31).map((i) => locale === "pl" ? `${i + 1}.` : fnsFormat(fnsAddDays(LONG_MONTH, i), "Do"));
|
|
31
|
+
var DAYS_OF_PERIOD_ENUM = /* @__PURE__ */ ((DAYS_OF_PERIOD_ENUM2) => {
|
|
32
|
+
DAYS_OF_PERIOD_ENUM2["DAY_OF_MONTH"] = "MONTH";
|
|
33
|
+
DAYS_OF_PERIOD_ENUM2["DAY_OF_WEEK"] = "WEEK";
|
|
34
|
+
return DAYS_OF_PERIOD_ENUM2;
|
|
35
|
+
})(DAYS_OF_PERIOD_ENUM || {});
|
|
36
|
+
var COUNTED_FROM_ENUM = /* @__PURE__ */ ((COUNTED_FROM_ENUM2) => {
|
|
37
|
+
COUNTED_FROM_ENUM2["BEGINNING"] = "BEGINNING";
|
|
38
|
+
COUNTED_FROM_ENUM2["ENDING"] = "ENDING";
|
|
39
|
+
return COUNTED_FROM_ENUM2;
|
|
40
|
+
})(COUNTED_FROM_ENUM || {});
|
|
41
|
+
const TYPES = {
|
|
42
|
+
DAILY: "DAILY",
|
|
43
|
+
WEEKLY: "WEEKLY",
|
|
44
|
+
MONTHLY: "MONTHLY"
|
|
15
45
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}({});
|
|
21
|
-
export var COUNTED_FROM_ENUM = /*#__PURE__*/function (COUNTED_FROM_ENUM) {
|
|
22
|
-
COUNTED_FROM_ENUM["BEGINNING"] = "BEGINNING";
|
|
23
|
-
COUNTED_FROM_ENUM["ENDING"] = "ENDING";
|
|
24
|
-
return COUNTED_FROM_ENUM;
|
|
25
|
-
}({});
|
|
26
|
-
export var TYPES = {
|
|
27
|
-
DAILY: 'DAILY',
|
|
28
|
-
WEEKLY: 'WEEKLY',
|
|
29
|
-
MONTHLY: 'MONTHLY'
|
|
30
|
-
};
|
|
31
|
-
export var DEFAULT_DAYS_OF_PERIODS = [{
|
|
32
|
-
translationKey: 'DS.DATE-RANGE-PICKER.IN-MONTH',
|
|
33
|
-
value: DAYS_OF_PERIOD_ENUM.DAY_OF_MONTH
|
|
46
|
+
const DEFAULT_DAYS_OF_PERIODS = [{
|
|
47
|
+
translationKey: "DS.DATE-RANGE-PICKER.IN-MONTH",
|
|
48
|
+
value: "MONTH"
|
|
49
|
+
/* DAY_OF_MONTH */
|
|
34
50
|
}, {
|
|
35
|
-
translationKey:
|
|
36
|
-
value:
|
|
51
|
+
translationKey: "DS.DATE-RANGE-PICKER.IN-WEEK",
|
|
52
|
+
value: "WEEK"
|
|
53
|
+
/* DAY_OF_WEEK */
|
|
37
54
|
}];
|
|
38
|
-
|
|
39
|
-
translationKey:
|
|
40
|
-
value:
|
|
55
|
+
const DEFAULT_COUNTED_FROM = [{
|
|
56
|
+
translationKey: "DS.DATE-RANGE-PICKER.BEGINNING",
|
|
57
|
+
value: "BEGINNING"
|
|
58
|
+
/* BEGINNING */
|
|
41
59
|
}, {
|
|
42
|
-
translationKey:
|
|
43
|
-
value:
|
|
60
|
+
translationKey: "DS.DATE-RANGE-PICKER.END",
|
|
61
|
+
value: "ENDING"
|
|
62
|
+
/* ENDING */
|
|
44
63
|
}];
|
|
45
|
-
|
|
46
|
-
|
|
64
|
+
const defaultId = v4();
|
|
65
|
+
const TYPES_DATA = {
|
|
47
66
|
MONTHLY: {
|
|
48
|
-
labelTranslationKey:
|
|
49
|
-
defaultLabel:
|
|
67
|
+
labelTranslationKey: "DS.DATE-RANGE-PICKER.MONTHLY",
|
|
68
|
+
defaultLabel: "Monthly",
|
|
50
69
|
component: MonthlyFilter,
|
|
51
70
|
definition: [{
|
|
52
|
-
period:
|
|
71
|
+
period: "MONTH",
|
|
53
72
|
periodType: DEFAULT_COUNTED_FROM[0].value,
|
|
54
73
|
definition: {},
|
|
55
74
|
id: defaultId
|
|
56
75
|
}]
|
|
57
76
|
},
|
|
58
77
|
WEEKLY: {
|
|
59
|
-
labelTranslationKey:
|
|
60
|
-
defaultLabel:
|
|
78
|
+
labelTranslationKey: "DS.DATE-RANGE-PICKER.WEEKLY",
|
|
79
|
+
defaultLabel: "Weekly",
|
|
61
80
|
component: WeeklyFilter,
|
|
62
81
|
definition: {}
|
|
63
82
|
},
|
|
64
83
|
DAILY: {
|
|
65
|
-
labelTranslationKey:
|
|
66
|
-
defaultLabel:
|
|
84
|
+
labelTranslationKey: "DS.DATE-RANGE-PICKER.DAILY",
|
|
85
|
+
defaultLabel: "Daily",
|
|
67
86
|
component: DailyFilter,
|
|
68
87
|
definition: {
|
|
69
88
|
start: DEFAULT_RANGE_START,
|
|
@@ -72,54 +91,69 @@ export var TYPES_DATA = {
|
|
|
72
91
|
}
|
|
73
92
|
}
|
|
74
93
|
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
id: 'DS.DATE-RANGE-PICKER.WEEKDAYS_LONG.1',
|
|
84
|
-
defaultMessage: 'Monday'
|
|
94
|
+
const SPACE_UNICODE = " ";
|
|
95
|
+
const MONTHLY_SCHEDULER_INTL_KEYS_NTH_WEEK = range(1, 6).map((i) => ({
|
|
96
|
+
id: `DS.DATE-RANGE-PICKER.NTH.${i}`,
|
|
97
|
+
defaultMessage: `Week ${i}`
|
|
98
|
+
}));
|
|
99
|
+
const MONTHLY_SCHEDULER_INTL_KEYS_WEEKDAYS_LONG = [{
|
|
100
|
+
id: "DS.DATE-RANGE-PICKER.WEEKDAYS_LONG.1",
|
|
101
|
+
defaultMessage: "Monday"
|
|
85
102
|
}, {
|
|
86
|
-
id:
|
|
87
|
-
defaultMessage:
|
|
103
|
+
id: "DS.DATE-RANGE-PICKER.WEEKDAYS_LONG.2",
|
|
104
|
+
defaultMessage: "Tuesday"
|
|
88
105
|
}, {
|
|
89
|
-
id:
|
|
90
|
-
defaultMessage:
|
|
106
|
+
id: "DS.DATE-RANGE-PICKER.WEEKDAYS_LONG.3",
|
|
107
|
+
defaultMessage: "Wednesday"
|
|
91
108
|
}, {
|
|
92
|
-
id:
|
|
93
|
-
defaultMessage:
|
|
109
|
+
id: "DS.DATE-RANGE-PICKER.WEEKDAYS_LONG.4",
|
|
110
|
+
defaultMessage: "Thursday"
|
|
94
111
|
}, {
|
|
95
|
-
id:
|
|
96
|
-
defaultMessage:
|
|
112
|
+
id: "DS.DATE-RANGE-PICKER.WEEKDAYS_LONG.5",
|
|
113
|
+
defaultMessage: "Friday"
|
|
97
114
|
}, {
|
|
98
|
-
id:
|
|
99
|
-
defaultMessage:
|
|
115
|
+
id: "DS.DATE-RANGE-PICKER.WEEKDAYS_LONG.6",
|
|
116
|
+
defaultMessage: "Saturday"
|
|
100
117
|
}, {
|
|
101
|
-
id:
|
|
102
|
-
defaultMessage:
|
|
118
|
+
id: "DS.DATE-RANGE-PICKER.WEEKDAYS_LONG.7",
|
|
119
|
+
defaultMessage: "Sunday"
|
|
103
120
|
}];
|
|
104
|
-
|
|
105
|
-
id:
|
|
106
|
-
defaultMessage:
|
|
121
|
+
const MONTHLY_SCHEDULER_INTL_KEYS_WEEKDAYS_SHORT = [{
|
|
122
|
+
id: "DS.DATE-RANGE-PICKER.WEEKDAYS_SHORT.1",
|
|
123
|
+
defaultMessage: "Mon"
|
|
107
124
|
}, {
|
|
108
|
-
id:
|
|
109
|
-
defaultMessage:
|
|
125
|
+
id: "DS.DATE-RANGE-PICKER.WEEKDAYS_SHORT.2",
|
|
126
|
+
defaultMessage: "Tue"
|
|
110
127
|
}, {
|
|
111
|
-
id:
|
|
112
|
-
defaultMessage:
|
|
128
|
+
id: "DS.DATE-RANGE-PICKER.WEEKDAYS_SHORT.3",
|
|
129
|
+
defaultMessage: "Wed"
|
|
113
130
|
}, {
|
|
114
|
-
id:
|
|
115
|
-
defaultMessage:
|
|
131
|
+
id: "DS.DATE-RANGE-PICKER.WEEKDAYS_SHORT.4",
|
|
132
|
+
defaultMessage: "Thu"
|
|
116
133
|
}, {
|
|
117
|
-
id:
|
|
118
|
-
defaultMessage:
|
|
134
|
+
id: "DS.DATE-RANGE-PICKER.WEEKDAYS_SHORT.5",
|
|
135
|
+
defaultMessage: "Fri"
|
|
119
136
|
}, {
|
|
120
|
-
id:
|
|
121
|
-
defaultMessage:
|
|
137
|
+
id: "DS.DATE-RANGE-PICKER.WEEKDAYS_SHORT.6",
|
|
138
|
+
defaultMessage: "Sat"
|
|
122
139
|
}, {
|
|
123
|
-
id:
|
|
124
|
-
defaultMessage:
|
|
125
|
-
}];
|
|
140
|
+
id: "DS.DATE-RANGE-PICKER.WEEKDAYS_SHORT.7",
|
|
141
|
+
defaultMessage: "Sun"
|
|
142
|
+
}];
|
|
143
|
+
export {
|
|
144
|
+
COUNTED_FROM_ENUM,
|
|
145
|
+
DAYS_OF_PERIOD_ENUM,
|
|
146
|
+
DEFAULT_COUNTED_FROM,
|
|
147
|
+
DEFAULT_DAYS_OF_PERIODS,
|
|
148
|
+
DEFAULT_RANGE_END,
|
|
149
|
+
DEFAULT_RANGE_START,
|
|
150
|
+
MONTHLY_SCHEDULER_INTL_KEYS_NTH_WEEK,
|
|
151
|
+
MONTHLY_SCHEDULER_INTL_KEYS_WEEKDAYS_LONG,
|
|
152
|
+
MONTHLY_SCHEDULER_INTL_KEYS_WEEKDAYS_SHORT,
|
|
153
|
+
MONTH_DAYS,
|
|
154
|
+
SPACE_UNICODE,
|
|
155
|
+
TIME_FORMAT,
|
|
156
|
+
TYPES,
|
|
157
|
+
TYPES_DATA,
|
|
158
|
+
defaultId
|
|
159
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { DenormalizedFilter, FilterDefinition, FilterValue, NormalizedFilter, NormalizedFilterBase, WeekFilter } from './RangeFilter.types';
|
|
2
|
+
import { SavedFilter } from './Shared/FilterDropdown/FilterDropdown.types';
|
|
3
3
|
export declare const mapTimeSchema: (item: DenormalizedFilter) => NormalizedFilter;
|
|
4
4
|
export declare const denormMapTimeSchema: (item: NormalizedFilter) => DenormalizedFilter;
|
|
5
5
|
export declare const normalizeValue: ({ type, definition, }: FilterValue) => NormalizedFilterBase | {
|