@synerise/ds-date-range-picker 1.3.8 → 1.3.10
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 +975 -2642
- package/README.md +85 -86
- package/dist/AddonCollapse/AddonCollapse.d.ts +1 -1
- package/dist/AddonCollapse/AddonCollapse.types.d.ts +1 -1
- package/dist/DateRangePicker.d.ts +2 -2
- package/dist/DateRangePicker.js +8 -6
- package/dist/DateRangePicker.styles.d.ts +1 -1
- package/dist/DateRangePicker.types.d.ts +10 -11
- package/dist/DateRangePicker.types.js +1 -5
- package/dist/Footer/Footer.d.ts +1 -1
- package/dist/Footer/Footer.js +6 -6
- package/dist/RangeFilter/Filters/DailyFilter/DailyFilter.d.ts +7 -7
- package/dist/RangeFilter/Filters/DailyFilter/DailyFilter.js +2 -2
- package/dist/RangeFilter/Filters/MonthlyFilter/MonthlyFilter.d.ts +1 -1
- package/dist/RangeFilter/Filters/MonthlyFilter/MonthlyFilter.js +8 -10
- package/dist/RangeFilter/Filters/MonthlyFilter/MonthlyFilter.styles.d.ts +1 -1
- package/dist/RangeFilter/Filters/MonthlyFilter/MonthlyFilter.types.d.ts +6 -6
- package/dist/RangeFilter/Filters/WeeklyFilter/WeeklyFilter.d.ts +1 -1
- package/dist/RangeFilter/Filters/WeeklyFilter/WeeklyFilter.js +1 -1
- package/dist/RangeFilter/Filters/WeeklyFilter/WeeklyFilter.types.d.ts +5 -5
- package/dist/RangeFilter/Filters/new/Daily/Daily.d.ts +1 -1
- package/dist/RangeFilter/Filters/new/Daily/Daily.js +6 -8
- package/dist/RangeFilter/Filters/new/Daily/Daily.types.d.ts +6 -6
- package/dist/RangeFilter/Filters/new/Filters.types.d.ts +2 -2
- package/dist/RangeFilter/Filters/new/Monthly/Monthly.d.ts +1 -1
- package/dist/RangeFilter/Filters/new/Monthly/Monthly.js +9 -9
- package/dist/RangeFilter/Filters/new/Monthly/Monthly.types.d.ts +7 -7
- package/dist/RangeFilter/Filters/new/Monthly/utils.d.ts +2 -2
- package/dist/RangeFilter/Filters/new/Weekly/Weekly.d.ts +1 -1
- package/dist/RangeFilter/Filters/new/Weekly/Weekly.js +9 -9
- package/dist/RangeFilter/Filters/new/Weekly/Weekly.types.d.ts +6 -6
- package/dist/RangeFilter/Filters/new/Weekly/utils.d.ts +2 -2
- package/dist/RangeFilter/Filters/new/constants.js +0 -1
- package/dist/RangeFilter/Filters/new/hooks/useShiftAndControlKeys.js +1 -1
- package/dist/RangeFilter/RangeFilter.d.ts +1 -1
- package/dist/RangeFilter/RangeFilter.js +5 -5
- package/dist/RangeFilter/RangeFilter.types.d.ts +6 -6
- package/dist/RangeFilter/Shared/AddButton/AddButton.d.ts +1 -1
- package/dist/RangeFilter/Shared/AddButton/AddButton.types.d.ts +2 -2
- package/dist/RangeFilter/Shared/FilterDropdown/FilterDropdown.d.ts +1 -1
- package/dist/RangeFilter/Shared/FilterDropdown/FilterDropdown.js +3 -3
- package/dist/RangeFilter/Shared/FilterDropdown/FilterDropdown.types.d.ts +2 -2
- package/dist/RangeFilter/Shared/RangeFilterStatus/RangeFilterStatus.d.ts +2 -2
- package/dist/RangeFilter/Shared/RangeFilterStatus/RangeFilterStatus.js +2 -2
- package/dist/RangeFilter/Shared/RangeFilterStatus/RangeFilterStatus.styles.d.ts +5 -3
- package/dist/RangeFilter/Shared/RangeFilterStatus/RangeFilterStatus.types.d.ts +3 -3
- package/dist/RangeFilter/Shared/SaveFilterForm/SaveFilterForm.d.ts +1 -1
- package/dist/RangeFilter/Shared/SaveFilterForm/SaveFilterForm.js +1 -1
- package/dist/RangeFilter/Shared/SaveFilterForm/SaveFilterForm.styles.d.ts +1 -1
- package/dist/RangeFilter/Shared/SaveFilterForm/SaveFilterForm.types.d.ts +1 -1
- package/dist/RangeFilter/Shared/SelectionCount/SelectionCount.d.ts +1 -1
- package/dist/RangeFilter/Shared/SelectionCount/SelectionCount.types.d.ts +1 -1
- package/dist/RangeFilter/Shared/SelectionHint/SelectionHint.d.ts +1 -1
- package/dist/RangeFilter/Shared/TimeWindow/Day/Day.d.ts +1 -1
- package/dist/RangeFilter/Shared/TimeWindow/Day/Day.js +2 -2
- package/dist/RangeFilter/Shared/TimeWindow/Day/Day.types.d.ts +4 -4
- package/dist/RangeFilter/Shared/TimeWindow/Grid/Grid.d.ts +1 -1
- package/dist/RangeFilter/Shared/TimeWindow/Grid/Grid.js +16 -12
- package/dist/RangeFilter/Shared/TimeWindow/Grid/Grid.types.d.ts +3 -3
- package/dist/RangeFilter/Shared/TimeWindow/Header/Header.js +5 -9
- package/dist/RangeFilter/Shared/TimeWindow/RangeActions/RangeActions.d.ts +1 -1
- package/dist/RangeFilter/Shared/TimeWindow/RangeActions/RangeActions.js +3 -3
- package/dist/RangeFilter/Shared/TimeWindow/RangeActions/RangeActions.styles.js +1 -1
- package/dist/RangeFilter/Shared/TimeWindow/RangeActions/RangeActions.types.d.ts +2 -2
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.d.ts +1 -1
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.js +16 -12
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types.d.ts +4 -4
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.utils.js +1 -1
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeFormContainer.js +7 -5
- package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeFormContainer.types.d.ts +10 -6
- package/dist/RangeFilter/Shared/TimeWindow/RangeSummary/RangeSummary.d.ts +1 -1
- package/dist/RangeFilter/Shared/TimeWindow/RangeSummary/RangeSummary.js +1 -1
- package/dist/RangeFilter/Shared/TimeWindow/RangeSummary/RangeSummary.types.d.ts +4 -4
- package/dist/RangeFilter/Shared/TimeWindow/TimeWindow.d.ts +2 -2
- package/dist/RangeFilter/Shared/TimeWindow/TimeWindow.js +27 -15
- package/dist/RangeFilter/Shared/TimeWindow/TimeWindow.styles.js +1 -1
- package/dist/RangeFilter/Shared/TimeWindow/TimeWindow.types.d.ts +8 -8
- package/dist/RangeFilter/Shared/TimeWindow/utils.d.ts +2 -2
- package/dist/RangeFilter/Shared/TimeWindow/utils.js +1 -1
- package/dist/RangeFilter/constants.d.ts +1 -1
- package/dist/RangeFilter/constants.js +2 -2
- package/dist/RangeFilter/utils.d.ts +3 -3
- package/dist/RangeFilter/utils.js +44 -37
- package/dist/RangePicker/RangePicker.d.ts +1 -1
- package/dist/RangePicker/RangePicker.js +16 -14
- package/dist/RangePicker/RangePicker.styles.d.ts +1 -1
- package/dist/RangePicker/RangePicker.types.d.ts +3 -3
- package/dist/RangePicker/utils.d.ts +3 -3
- package/dist/RangePicker/utils.js +7 -7
- package/dist/RangePickerInput/RangePickerInput.d.ts +1 -1
- package/dist/RangePickerInput/RangePickerInput.js +4 -4
- package/dist/RangePickerInput/RangePickerInput.types.d.ts +2 -2
- package/dist/RawDateRangePicker.js +10 -10
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/CustomRangeForm.d.ts +1 -1
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/CustomRangeForm.js +4 -4
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/CustomRangeForm.types.d.ts +2 -2
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/DurationField/DurationField.d.ts +1 -1
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/DurationField/DurationField.js +5 -5
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/DurationField/DurationField.types.d.ts +1 -1
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/OffsetField/OffsetField.d.ts +1 -1
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/OffsetField/OffsetField.js +3 -3
- package/dist/RelativeRangePicker/Elements/CustomRangeForm/OffsetField/OffsetField.types.d.ts +1 -1
- package/dist/RelativeRangePicker/Elements/ModeDropdown/ModeDropdown.d.ts +1 -1
- package/dist/RelativeRangePicker/Elements/ModeDropdown/ModeDropdown.js +2 -2
- package/dist/RelativeRangePicker/Elements/ModeDropdown/ModeDropdown.types.d.ts +2 -2
- package/dist/RelativeRangePicker/Elements/RangeButtons/RangeButtons.d.ts +1 -1
- package/dist/RelativeRangePicker/Elements/RangeButtons/RangeButtons.js +2 -2
- package/dist/RelativeRangePicker/Elements/RangeButtons/RangeButtons.types.d.ts +2 -2
- package/dist/RelativeRangePicker/Elements/RangeDropdown/RangeDropdown.d.ts +2 -2
- package/dist/RelativeRangePicker/Elements/RangeDropdown/RangeDropdown.js +8 -6
- package/dist/RelativeRangePicker/Elements/RangeDropdown/RangeDropdown.types.d.ts +2 -2
- package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampDuration/TimestampDuration.d.ts +1 -1
- package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampDuration/TimestampDuration.js +4 -4
- package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampDuration/TimestampDuration.types.d.ts +2 -2
- package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampRange.d.ts +1 -1
- package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampRange.js +5 -4
- package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampRange.types.d.ts +2 -2
- package/dist/RelativeRangePicker/RelativeRangePicker.d.ts +1 -1
- package/dist/RelativeRangePicker/RelativeRangePicker.js +14 -10
- package/dist/RelativeRangePicker/RelativeRangePicker.styles.d.ts +1 -1
- package/dist/RelativeRangePicker/RelativeRangePicker.styles.js +8 -15
- package/dist/RelativeRangePicker/RelativeRangePicker.types.d.ts +3 -3
- package/dist/RelativeRangePicker/utils/findMatchingPreset.utils.d.ts +1 -1
- package/dist/RelativeRangePicker/utils/findMatchingPreset.utils.js +0 -1
- package/dist/RelativeRangePicker/utils/findRangeByKey.utils.d.ts +1 -1
- package/dist/RelativeRangePicker/utils/getCurrentGroupFromProps.utils.d.ts +3 -3
- package/dist/RelativeRangePicker/utils/getDefaultCustomRange.utils.d.ts +1 -1
- package/dist/RelativeRangePicker/utils/getDefaultCustomRange.utils.js +1 -1
- package/dist/RelativeRangePicker/utils/isAbsolute.utils.d.ts +1 -1
- package/dist/RelativeRangePicker/utils/setDurationValue.utils.d.ts +1 -1
- package/dist/RelativeRangePicker/utils/setDurationValue.utils.js +1 -1
- package/dist/RelativeRangePicker/utils/setFuture.utils.js +1 -1
- package/dist/RelativeRangePicker/utils/setOffsetValue.utils.d.ts +1 -1
- package/dist/RelativeRangePicker/utils/setOffsetValue.utils.js +1 -1
- package/dist/RelativeRangePicker/utils/updatePresetKey.utils.d.ts +1 -1
- package/dist/RelativeRangePicker/utils/updatePresetKey.utils.js +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/date.types.d.ts +2 -2
- package/dist/dateUtils/add.d.ts +7 -7
- package/dist/dateUtils/add.js +7 -7
- package/dist/dateUtils/difference.d.ts +7 -7
- package/dist/dateUtils/difference.js +7 -7
- package/dist/dateUtils/endOf.d.ts +7 -7
- package/dist/dateUtils/endOf.js +7 -7
- package/dist/dateUtils/format.js +2 -2
- package/dist/dateUtils/get.d.ts +3 -3
- package/dist/dateUtils/get.js +3 -3
- package/dist/dateUtils/getRelativePresetForRange.d.ts +1 -1
- package/dist/dateUtils/getRelativePresetForRange.js +1 -1
- package/dist/dateUtils/relativeToAbsolute.d.ts +1 -1
- package/dist/dateUtils/relativeToAbsolute.js +1 -1
- package/dist/dateUtils/set.d.ts +3 -3
- package/dist/dateUtils/set.js +3 -3
- package/dist/dateUtils/startOf.d.ts +7 -7
- package/dist/dateUtils/startOf.js +7 -7
- package/dist/dateUtils/sub.d.ts +7 -7
- package/dist/dateUtils/sub.js +7 -7
- package/dist/fns.d.ts +20 -20
- package/dist/fns.js +20 -20
- package/dist/index.d.ts +2 -2
- package/dist/utils.d.ts +4 -4
- package/dist/utils.js +6 -4
- package/package.json +22 -22
package/README.md
CHANGED
|
@@ -66,8 +66,8 @@ const value = {
|
|
|
66
66
|
| onVisibleChange | Callback executed when popover with dateRangePicker changes its visibility | (visible: boolean) => void | - |
|
|
67
67
|
| filterValueSelectionModes | Allowed modes to display in filter | DateLimitMode[] | ["Range", "Hour"] |
|
|
68
68
|
| getPopupContainer | Function used to set the container of the date range picker. | Function(triggerNode) | `() => document.body` |
|
|
69
|
-
| texts
|
|
70
|
-
| disableDefaultTexts
|
|
69
|
+
| texts | custom translations | Texts | undefined |
|
|
70
|
+
| disableDefaultTexts | disable DS translations fallback | boolean | false |
|
|
71
71
|
|
|
72
72
|
### DateRange
|
|
73
73
|
|
|
@@ -88,90 +88,89 @@ const value = {
|
|
|
88
88
|
- if `texts` is `undefined` or if a key in `texts` is `undefined` default DS translations will appear in the component
|
|
89
89
|
- `disableDefaultTexts` disables the above fallback, i.e. if any key is missing in `texts` then an empty string is used as a translation (this prop is provided for testing custom translation completeness)
|
|
90
90
|
|
|
91
|
-
|
|
92
|
-
|
|
|
93
|
-
|
|
|
94
|
-
|
|
|
95
|
-
|
|
|
96
|
-
|
|
|
97
|
-
|
|
|
98
|
-
|
|
|
99
|
-
|
|
|
100
|
-
|
|
|
101
|
-
|
|
|
102
|
-
|
|
|
103
|
-
|
|
|
104
|
-
|
|
|
105
|
-
|
|
|
106
|
-
|
|
|
107
|
-
|
|
|
108
|
-
|
|
|
109
|
-
|
|
|
110
|
-
|
|
|
111
|
-
|
|
|
112
|
-
|
|
|
113
|
-
|
|
|
114
|
-
|
|
|
115
|
-
|
|
|
116
|
-
|
|
|
117
|
-
|
|
|
118
|
-
|
|
|
119
|
-
|
|
|
120
|
-
|
|
|
121
|
-
|
|
|
122
|
-
|
|
|
123
|
-
|
|
|
124
|
-
|
|
|
125
|
-
|
|
|
126
|
-
|
|
|
127
|
-
|
|
|
128
|
-
|
|
|
129
|
-
|
|
|
130
|
-
|
|
|
131
|
-
|
|
|
132
|
-
|
|
|
133
|
-
|
|
|
134
|
-
|
|
|
135
|
-
|
|
|
136
|
-
|
|
|
137
|
-
|
|
|
138
|
-
|
|
|
139
|
-
|
|
|
140
|
-
|
|
|
141
|
-
|
|
|
142
|
-
|
|
|
143
|
-
|
|
|
144
|
-
|
|
|
145
|
-
|
|
|
146
|
-
|
|
|
147
|
-
|
|
|
148
|
-
|
|
|
149
|
-
|
|
|
150
|
-
|
|
|
151
|
-
|
|
|
152
|
-
|
|
|
153
|
-
|
|
|
154
|
-
|
|
|
155
|
-
|
|
|
156
|
-
|
|
|
157
|
-
|
|
|
158
|
-
|
|
|
159
|
-
|
|
|
160
|
-
|
|
|
161
|
-
|
|
|
162
|
-
|
|
|
163
|
-
|
|
|
164
|
-
|
|
|
165
|
-
|
|
|
166
|
-
|
|
|
167
|
-
|
|
|
168
|
-
|
|
|
169
|
-
|
|
|
170
|
-
|
|
|
171
|
-
|
|
|
172
|
-
|
|
|
173
|
-
|
|
|
174
|
-
| maximumRanges | ReactNode | -------- |
|
|
91
|
+
| translation key | Type | Default |
|
|
92
|
+
| --------------------- | --------- | -------- |
|
|
93
|
+
| endDatePlaceholder | string | -------- |
|
|
94
|
+
| startDatePlaceholder | string | -------- |
|
|
95
|
+
| selectDate | string | -------- |
|
|
96
|
+
| selectTime | string | -------- |
|
|
97
|
+
| filterName | string | -------- |
|
|
98
|
+
| custom | ReactNode | -------- |
|
|
99
|
+
| today | ReactNode | -------- |
|
|
100
|
+
| yesterday | ReactNode | -------- |
|
|
101
|
+
| apply | ReactNode | -------- |
|
|
102
|
+
| clear | ReactNode | -------- |
|
|
103
|
+
| now | ReactNode | -------- |
|
|
104
|
+
| emptyDateError | ReactNode | -------- |
|
|
105
|
+
| last7Days | ReactNode | -------- |
|
|
106
|
+
| thisWeek | ReactNode | -------- |
|
|
107
|
+
| lastWeek | ReactNode | -------- |
|
|
108
|
+
| thisMonth | ReactNode | -------- |
|
|
109
|
+
| lastMonth | ReactNode | -------- |
|
|
110
|
+
| last3Months | ReactNode | -------- |
|
|
111
|
+
| last6Months | ReactNode | -------- |
|
|
112
|
+
| lastYear | ReactNode | -------- |
|
|
113
|
+
| allTime | ReactNode | -------- |
|
|
114
|
+
| tomorrow | ReactNode | -------- |
|
|
115
|
+
| next7Days | ReactNode | -------- |
|
|
116
|
+
| nextWeek | ReactNode | -------- |
|
|
117
|
+
| nextMonth | ReactNode | -------- |
|
|
118
|
+
| next3Months | ReactNode | -------- |
|
|
119
|
+
| next6Months | ReactNode | -------- |
|
|
120
|
+
| nextYear | ReactNode | -------- |
|
|
121
|
+
| more | ReactNode | -------- |
|
|
122
|
+
| relativeDateRange | ReactNode | -------- |
|
|
123
|
+
| last | ReactNode | -------- |
|
|
124
|
+
| before | ReactNode | -------- |
|
|
125
|
+
| after | ReactNode | -------- |
|
|
126
|
+
| since | ReactNode | -------- |
|
|
127
|
+
| next | ReactNode | -------- |
|
|
128
|
+
| seconds | ReactNode | -------- |
|
|
129
|
+
| minutes | ReactNode | -------- |
|
|
130
|
+
| hours | ReactNode | -------- |
|
|
131
|
+
| days | ReactNode | -------- |
|
|
132
|
+
| weeks | ReactNode | -------- |
|
|
133
|
+
| months | ReactNode | -------- |
|
|
134
|
+
| years | ReactNode | -------- |
|
|
135
|
+
| timestampLast | ReactNode | -------- |
|
|
136
|
+
| timestampNext | ReactNode | -------- |
|
|
137
|
+
| timestampTill | ReactNode | -------- |
|
|
138
|
+
| filter | ReactNode | -------- |
|
|
139
|
+
| startDate | ReactNode | -------- |
|
|
140
|
+
| endDate | ReactNode | -------- |
|
|
141
|
+
| remove | ReactNode | -------- |
|
|
142
|
+
| savedFiltersTrigger | ReactNode | -------- |
|
|
143
|
+
| clearRange | ReactNode | -------- |
|
|
144
|
+
| copyRange | ReactNode | -------- |
|
|
145
|
+
| pasteRange | ReactNode | -------- |
|
|
146
|
+
| range | ReactNode | -------- |
|
|
147
|
+
| hour | ReactNode | -------- |
|
|
148
|
+
| filterEnabled | ReactNode | -------- |
|
|
149
|
+
| selectDateFilter | ReactNode | -------- |
|
|
150
|
+
| datesFilter | ReactNode | -------- |
|
|
151
|
+
| cancel | ReactNode | -------- |
|
|
152
|
+
| everyDay | ReactNode | -------- |
|
|
153
|
+
| nthDayOfMonth | ReactNode | -------- |
|
|
154
|
+
| daysOf | ReactNode | -------- |
|
|
155
|
+
| countedFrom | ReactNode | -------- |
|
|
156
|
+
| addRule | ReactNode | -------- |
|
|
157
|
+
| addTime | ReactNode | -------- |
|
|
158
|
+
| change | ReactNode | -------- |
|
|
159
|
+
| weekly | ReactNode | -------- |
|
|
160
|
+
| monthly | ReactNode | -------- |
|
|
161
|
+
| daily | ReactNode | -------- |
|
|
162
|
+
| saveFilter | ReactNode | -------- |
|
|
163
|
+
| selected | ReactNode | -------- |
|
|
164
|
+
| selectDaysDescription | ReactNode | -------- |
|
|
165
|
+
| selectAll | ReactNode | -------- |
|
|
166
|
+
| unselectAll | ReactNode | -------- |
|
|
167
|
+
| inverseSelection | ReactNode | -------- |
|
|
168
|
+
| setTimeFor | ReactNode | -------- |
|
|
169
|
+
| week | ReactNode | -------- |
|
|
170
|
+
| month | ReactNode | -------- |
|
|
171
|
+
| beginning | ReactNode | -------- |
|
|
172
|
+
| ending | ReactNode | -------- |
|
|
173
|
+
| maximumRanges | ReactNode | -------- |
|
|
175
174
|
|
|
176
175
|
### Undocumented props
|
|
177
176
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import './
|
|
2
|
+
import { type DateRangePickerProps } from './DateRangePicker.types';
|
|
3
3
|
import RawDateRangePicker from './RawDateRangePicker';
|
|
4
|
-
import
|
|
4
|
+
import './style/index.less';
|
|
5
5
|
declare const DateRangePicker: (props: DateRangePickerProps) => React.JSX.Element;
|
|
6
6
|
export default DateRangePicker;
|
|
7
7
|
export { RawDateRangePicker };
|
package/dist/DateRangePicker.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
-
import
|
|
2
|
+
import { Popover } from 'antd';
|
|
3
3
|
import { isEqual } from 'lodash';
|
|
4
|
-
import
|
|
4
|
+
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
|
-
import { Popover } from 'antd';
|
|
7
|
-
import RawDateRangePicker from './RawDateRangePicker';
|
|
8
6
|
import * as S from './DateRangePicker.styles';
|
|
9
7
|
import RangePickerInput from './RangePickerInput/RangePickerInput';
|
|
8
|
+
import RawDateRangePicker from './RawDateRangePicker';
|
|
9
|
+
import "./style/index.css";
|
|
10
10
|
import { getDefaultTexts } from './utils';
|
|
11
11
|
var DateRangePicker = function DateRangePicker(props) {
|
|
12
12
|
var value = props.value,
|
|
@@ -102,7 +102,9 @@ var DateRangePicker = function DateRangePicker(props) {
|
|
|
102
102
|
readOnly: readOnly,
|
|
103
103
|
disabled: disabled
|
|
104
104
|
}));
|
|
105
|
-
if (readOnly || disabled)
|
|
105
|
+
if (readOnly || disabled) {
|
|
106
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, triggerElement);
|
|
107
|
+
}
|
|
106
108
|
return /*#__PURE__*/React.createElement(S.PickerWrapper, {
|
|
107
109
|
ref: wrapperRef,
|
|
108
110
|
arrowColor: arrowColor
|
|
@@ -118,7 +120,7 @@ var DateRangePicker = function DateRangePicker(props) {
|
|
|
118
120
|
getPopupContainer: getPopupContainer !== undefined ? function (node) {
|
|
119
121
|
return getPopupContainer(node);
|
|
120
122
|
} : function (node) {
|
|
121
|
-
return node.parentElement
|
|
123
|
+
return node.parentElement !== null ? node.parentElement : document.body;
|
|
122
124
|
},
|
|
123
125
|
trigger: "click",
|
|
124
126
|
overlayStyle: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdditionalMapper } from './DateRangePicker.types';
|
|
1
|
+
import { type AdditionalMapper } from './DateRangePicker.types';
|
|
2
2
|
export declare const PopupWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
3
3
|
hasFilter?: boolean | undefined;
|
|
4
4
|
hasRelativePicker?: boolean | undefined;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { DateToFormatOptions } from '@synerise/ds-data-format';
|
|
5
|
-
import {
|
|
6
|
-
import { FilterDefinition } from './RangeFilter/RangeFilter.types';
|
|
7
|
-
import { SavedFilter } from './RangeFilter/Shared/FilterDropdown/FilterDropdown.types';
|
|
8
|
-
import {
|
|
9
|
-
import { RangePickerInputProps } from './RangePickerInput/RangePickerInput.types';
|
|
10
|
-
import {
|
|
11
|
-
export { DateRange } from './date.types';
|
|
1
|
+
import { type PopoverProps } from 'antd/lib/popover';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
import { type IntlShape } from 'react-intl';
|
|
4
|
+
import { type DateToFormatOptions } from '@synerise/ds-data-format';
|
|
5
|
+
import { type Props as FooterProps } from './Footer/Footer.types';
|
|
6
|
+
import { type FilterDefinition } from './RangeFilter/RangeFilter.types';
|
|
7
|
+
import { type SavedFilter } from './RangeFilter/Shared/FilterDropdown/FilterDropdown.types';
|
|
8
|
+
import { type DateLimitMode, type RangeDisplayMode } from './RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types';
|
|
9
|
+
import { type RangePickerInputProps } from './RangePickerInput/RangePickerInput.types';
|
|
10
|
+
import { type DateFilter, type DateRange, type DateRangePreset, type RelativeUnits } from './date.types';
|
|
12
11
|
export type CustomColorArrow = 'blue' | 'grey' | 'red' | 'green' | 'yellow' | 'pink' | 'mars' | 'orange' | 'fern' | 'cyan' | 'purple' | 'violet';
|
|
13
12
|
export type AdditionalMapper = {
|
|
14
13
|
topLeft: CustomColorArrow;
|
package/dist/Footer/Footer.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Props } from './Footer.types';
|
|
2
|
+
import { type Props } from './Footer.types';
|
|
3
3
|
declare const Footer: ({ canApply, onApply, canSwitchMode, onSwitchMode, mode, dateOnly, message, texts, value, format, valueFormatOptions, showTime, displayDateContainerClass, ...rest }: Props) => React.JSX.Element;
|
|
4
4
|
export default Footer;
|
package/dist/Footer/Footer.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var _excluded = ["canApply", "onApply", "canSwitchMode", "onSwitchMode", "mode", "dateOnly", "message", "texts", "value", "format", "valueFormatOptions", "showTime", "displayDateContainerClass"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
|
-
import React, {
|
|
4
|
+
import React, { useCallback, useMemo } from 'react';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import Button from '@synerise/ds-button';
|
|
7
|
-
import Tooltip from '@synerise/ds-tooltip';
|
|
8
|
-
import Icon, { ArrowRightS } from '@synerise/ds-icon';
|
|
9
7
|
import { getDefaultDataTimeOptions, useDataFormat } from '@synerise/ds-data-format';
|
|
10
|
-
import
|
|
8
|
+
import Icon, { ArrowRightS } from '@synerise/ds-icon';
|
|
9
|
+
import Tooltip from '@synerise/ds-tooltip';
|
|
10
|
+
import { isLifetime } from '../RelativeRangePicker/Elements/RangeDropdown/RangeDropdown';
|
|
11
|
+
import * as CONST from '../constants';
|
|
11
12
|
import fnsFormat from '../dateUtils/format';
|
|
12
13
|
import getDateFromString from '../dateUtils/getDateFromString';
|
|
13
|
-
import * as CONST from '../constants';
|
|
14
|
-
import { isLifetime } from '../RelativeRangePicker/Elements/RangeDropdown/RangeDropdown';
|
|
15
14
|
import { toIsoStringWithoutZone } from '../utils';
|
|
15
|
+
import * as S from './Footer.styles';
|
|
16
16
|
var Footer = function Footer(_ref) {
|
|
17
17
|
var canApply = _ref.canApply,
|
|
18
18
|
onApply = _ref.onApply,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WrappedComponentProps } from 'react-intl';
|
|
3
|
-
import {
|
|
4
|
-
import { Days } from '../../../date.types';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { type WrappedComponentProps } from 'react-intl';
|
|
3
|
+
import { type WithTranslations } from '../../../DateRangePicker.types';
|
|
4
|
+
import { type Days } from '../../../date.types';
|
|
5
|
+
import { type ValueSelectionModes, type WithDisabledProp } from '../../RangeFilter.types';
|
|
6
|
+
import { type RangeDisplayMode } from '../../Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types';
|
|
7
|
+
import { type RangeActions as RangeActionsMethods } from '../../Shared/TimeWindow/TimeWindow.types';
|
|
8
8
|
export interface Props extends WrappedComponentProps, Partial<RangeActionsMethods>, WithTranslations, WithDisabledProp {
|
|
9
9
|
value: string;
|
|
10
|
-
onChange: (v: Days) =>
|
|
10
|
+
onChange: (v: Days) => void;
|
|
11
11
|
rangeDisplayMode?: RangeDisplayMode;
|
|
12
12
|
valueSelectionModes: ValueSelectionModes;
|
|
13
13
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { injectIntl } from 'react-intl';
|
|
3
|
-
import * as S from './DailyFilter.styles';
|
|
4
|
-
import TimeWindow from '../../Shared/TimeWindow/TimeWindow';
|
|
5
3
|
import { RANGE_DISPLAY_MODES } from '../../Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.constants';
|
|
4
|
+
import TimeWindow from '../../Shared/TimeWindow/TimeWindow';
|
|
5
|
+
import * as S from './DailyFilter.styles';
|
|
6
6
|
var DailyFilter = function DailyFilter(props) {
|
|
7
7
|
var handleChange = function handleChange(value) {
|
|
8
8
|
var onChange = props.onChange;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MonthlyFilterProps } from './MonthlyFilter.types';
|
|
2
|
+
import { type MonthlyFilterProps } from './MonthlyFilter.types';
|
|
3
3
|
declare const _default: React.FC<import("react-intl").WithIntlProps<MonthlyFilterProps>> & {
|
|
4
4
|
WrappedComponent: React.ComponentType<MonthlyFilterProps>;
|
|
5
5
|
};
|
|
@@ -3,15 +3,15 @@ function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prot
|
|
|
3
3
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
4
4
|
import React, { PureComponent } from 'react';
|
|
5
5
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
6
|
+
import { v4 as uuid } from 'uuid';
|
|
7
|
+
import Button from '@synerise/ds-button';
|
|
8
|
+
import { theme } from '@synerise/ds-core';
|
|
6
9
|
import ContentItem from '@synerise/ds-manageable-list/dist/Item/ContentItem/ContentItem';
|
|
7
10
|
import Tag, { TagShape } from '@synerise/ds-tag';
|
|
8
|
-
import { theme } from '@synerise/ds-core';
|
|
9
|
-
import Button from '@synerise/ds-button';
|
|
10
|
-
import { v4 as uuid } from 'uuid';
|
|
11
|
-
import { MONTH_DAYS, DEFAULT_DAYS_OF_PERIODS, DEFAULT_COUNTED_FROM, defaultId, DAYS_OF_PERIOD_ENUM, COUNTED_FROM_ENUM, SPACE_UNICODE } from '../../constants';
|
|
12
|
-
import * as S from './MonthlyFilter.styles';
|
|
13
|
-
import TimeWindow from '../../Shared/TimeWindow/TimeWindow';
|
|
14
11
|
import { getDefaultTexts } from '../../../utils';
|
|
12
|
+
import TimeWindow from '../../Shared/TimeWindow/TimeWindow';
|
|
13
|
+
import { COUNTED_FROM_ENUM, DAYS_OF_PERIOD_ENUM, DEFAULT_COUNTED_FROM, DEFAULT_DAYS_OF_PERIODS, MONTH_DAYS, SPACE_UNICODE, defaultId } from '../../constants';
|
|
14
|
+
import * as S from './MonthlyFilter.styles';
|
|
15
15
|
var MonthlyFilter = /*#__PURE__*/function (_PureComponent) {
|
|
16
16
|
function MonthlyFilter() {
|
|
17
17
|
var _visible;
|
|
@@ -286,7 +286,7 @@ var MonthlyFilter = /*#__PURE__*/function (_PureComponent) {
|
|
|
286
286
|
maxEntries = _this$props4.maxEntries,
|
|
287
287
|
rangeDisplayMode = _this$props4.rangeDisplayMode,
|
|
288
288
|
intl = _this$props4.intl;
|
|
289
|
-
// eslint-disable-next-line @typescript-eslint/no-
|
|
289
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
290
290
|
var _ref = this.props,
|
|
291
291
|
_ref$min = _ref.min,
|
|
292
292
|
min = _ref$min === void 0 ? 1 : _ref$min;
|
|
@@ -329,9 +329,7 @@ var MonthlyFilter = /*#__PURE__*/function (_PureComponent) {
|
|
|
329
329
|
content: visible[item.id] ? /*#__PURE__*/React.createElement(S.ContentWrapper, null, /*#__PURE__*/React.createElement(TimeWindow, _extends({
|
|
330
330
|
disabled: disabled,
|
|
331
331
|
readOnly: !!disabled,
|
|
332
|
-
texts: allTexts
|
|
333
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
334
|
-
,
|
|
332
|
+
texts: allTexts,
|
|
335
333
|
key: item.period + "_" + key,
|
|
336
334
|
showSelectAll: true,
|
|
337
335
|
invertibleTime: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { InlineSelectProps } from '@synerise/ds-inline-edit/dist/InlineSelect/InlineSelect.types';
|
|
2
|
+
import { type InlineSelectProps } from '@synerise/ds-inline-edit/dist/InlineSelect/InlineSelect.types';
|
|
3
3
|
export declare const MonthlyFilterWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
4
|
export declare const ContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
5
|
export declare const DropdownLabel: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { IntlShape } from 'react-intl';
|
|
2
|
+
import { type IntlShape } from 'react-intl';
|
|
3
3
|
import type { TimePickerProps } from '@synerise/ds-time-picker';
|
|
4
|
-
import {
|
|
5
|
-
import { DenormalizedFilter, FilterDefinition, MonthlySelectValue, WithDisabledProp } from '../../RangeFilter.types';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { COUNTED_FROM_ENUM, DAYS_OF_PERIOD_ENUM } from '../../constants';
|
|
4
|
+
import { type WithTranslations } from '../../../DateRangePicker.types';
|
|
5
|
+
import { type DenormalizedFilter, type FilterDefinition, type MonthlySelectValue, type WithDisabledProp } from '../../RangeFilter.types';
|
|
6
|
+
import { type DateLimitMode, type RangeDisplayMode } from '../../Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types';
|
|
7
|
+
import { type RangeActions } from '../../Shared/TimeWindow/TimeWindow.types';
|
|
8
|
+
import { type COUNTED_FROM_ENUM, type DAYS_OF_PERIOD_ENUM } from '../../constants';
|
|
9
9
|
export type MonthlyFilterProps = {
|
|
10
10
|
maxEntries?: number;
|
|
11
11
|
value: Month[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { WeeklyFilterProps } from './WeeklyFilter.types';
|
|
2
|
+
import { type WeeklyFilterProps } from './WeeklyFilter.types';
|
|
3
3
|
declare const WeeklyFilter: ({ value, onChange, onRangeClear, onRangePaste, onRangeCopy, rangeClipboard, intl, valueSelectionModes, rangeDisplayMode, texts, }: WeeklyFilterProps) => JSX.Element;
|
|
4
4
|
export default WeeklyFilter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import TimeWindow from '../../Shared/TimeWindow/TimeWindow';
|
|
3
2
|
import * as S from '../../RangeFilter.styles';
|
|
3
|
+
import TimeWindow from '../../Shared/TimeWindow/TimeWindow';
|
|
4
4
|
var WeeklyFilter = function WeeklyFilter(_ref) {
|
|
5
5
|
var value = _ref.value,
|
|
6
6
|
onChange = _ref.onChange,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IntlShape } from 'react-intl';
|
|
2
|
-
import {
|
|
3
|
-
import { FilterDefinition } from '../../RangeFilter.types';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { type IntlShape } from 'react-intl';
|
|
2
|
+
import { type WithTranslations } from '../../../DateRangePicker.types';
|
|
3
|
+
import { type FilterDefinition } from '../../RangeFilter.types';
|
|
4
|
+
import { type DateLimitMode, type RangeDisplayMode } from '../../Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types';
|
|
5
|
+
import { type DayOptions, type RangeActions } from '../../Shared/TimeWindow/TimeWindow.types';
|
|
6
6
|
export type WeeklyFilterProps = {
|
|
7
7
|
value: Days;
|
|
8
8
|
onChange: (days: Days) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DailyProps } from './Daily.types';
|
|
2
|
+
import { type DailyProps } from './Daily.types';
|
|
3
3
|
declare const Daily: ({ maxEntries, disabled, value, onChange, valueSelectionMode, timeFormat, timePickerProps, texts, errorTexts, }: DailyProps) => React.JSX.Element;
|
|
4
4
|
export default Daily;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
-
import React, { useMemo, useCallback } from 'react';
|
|
3
|
-
import { useIntl } from 'react-intl';
|
|
4
2
|
import dayjs from 'dayjs';
|
|
5
|
-
import
|
|
3
|
+
import React, { useCallback, useMemo } from 'react';
|
|
4
|
+
import { useIntl } from 'react-intl';
|
|
5
|
+
import { getDefaultTexts } from '../../../../utils';
|
|
6
6
|
import * as S from '../../../RangeFilter.styles';
|
|
7
|
-
import RangeFormContainer from '../../../Shared/TimeWindow/RangeFormContainer/RangeFormContainer';
|
|
8
7
|
import { AddButton } from '../../../Shared';
|
|
9
|
-
import
|
|
8
|
+
import RangeFormContainer from '../../../Shared/TimeWindow/RangeFormContainer/RangeFormContainer';
|
|
9
|
+
import { DEFAULT_MAX_ENTRIES, DEFAULT_RANGE_END, DEFAULT_RANGE_START, DEFAULT_TIME_FORMAT, EMPTY_OBJECT, NOOP, RENDER_EMPTY_NODE_FN } from '../constants';
|
|
10
10
|
var Daily = function Daily(_ref) {
|
|
11
11
|
var _ref$maxEntries = _ref.maxEntries,
|
|
12
12
|
maxEntries = _ref$maxEntries === void 0 ? DEFAULT_MAX_ENTRIES : _ref$maxEntries,
|
|
@@ -74,9 +74,7 @@ var Daily = function Daily(_ref) {
|
|
|
74
74
|
days: EMPTY_OBJECT,
|
|
75
75
|
onChange: NOOP,
|
|
76
76
|
errorTexts: errorTexts[index],
|
|
77
|
-
onMultipleDayTimeChange: NOOP
|
|
78
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
79
|
-
,
|
|
77
|
+
onMultipleDayTimeChange: NOOP,
|
|
80
78
|
key: "range-" + index + "-" + String(s == null ? void 0 : s.start),
|
|
81
79
|
onDayTimeChange: function onDayTimeChange(dateValueArray) {
|
|
82
80
|
handleDayTimeChange(dateValueArray, index);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { type Texts } from '../../../../DateRangePicker.types';
|
|
2
|
+
import { type WithDisabledProp } from '../../../RangeFilter.types';
|
|
3
|
+
import { type DateLimitMode } from '../../../Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types';
|
|
4
|
+
import { type FilterErrorType } from '../../../Shared/TimeWindow/RangeFormContainer/RangeFormContainer.types';
|
|
5
|
+
import { type DayOptions } from '../../../Shared/TimeWindow/TimeWindow.types';
|
|
6
|
+
import { type FilterBaseProps } from '../Filters.types';
|
|
7
7
|
export type DailySchedule = DayOptions & {
|
|
8
8
|
mode: DateLimitMode;
|
|
9
9
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TimePickerProps } from '@synerise/ds-time-picker';
|
|
2
1
|
import type { DateToFormatOptions } from '@synerise/ds-data-format';
|
|
3
|
-
import {
|
|
2
|
+
import type { TimePickerProps } from '@synerise/ds-time-picker';
|
|
3
|
+
import { type DateLimitMode } from '../../Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types';
|
|
4
4
|
export type FilterBaseProps = {
|
|
5
5
|
maxEntries?: number;
|
|
6
6
|
valueSelectionMode?: DateLimitMode[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MonthlyProps } from './Monthly.types';
|
|
2
|
+
import { type MonthlyProps } from './Monthly.types';
|
|
3
3
|
declare const Monthly: ({ maxEntries, valueSelectionMode, onChange, timeFormat, valueFormatOptions, value, timePickerProps, disabled, texts, periodType, countedFrom, errorTexts, }: MonthlyProps) => React.JSX.Element;
|
|
4
4
|
export default Monthly;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
import dayjs from 'dayjs';
|
|
2
3
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
3
4
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import dayjs from 'dayjs';
|
|
5
5
|
import { v4 as uuid } from 'uuid';
|
|
6
6
|
import { useDataFormat } from '@synerise/ds-data-format';
|
|
7
|
-
import
|
|
8
|
-
import { SelectionCount, SelectionHint, AddButton } from '../../../Shared';
|
|
9
|
-
import Grid from '../../../Shared/TimeWindow/Grid/Grid';
|
|
10
|
-
import Day from '../../../Shared/TimeWindow/Day/Day';
|
|
7
|
+
import { getDefaultTexts } from '../../../../utils';
|
|
11
8
|
import * as S from '../../../RangeFilter.styles';
|
|
9
|
+
import { AddButton, SelectionCount, SelectionHint } from '../../../Shared';
|
|
10
|
+
import Day from '../../../Shared/TimeWindow/Day/Day';
|
|
11
|
+
import Grid from '../../../Shared/TimeWindow/Grid/Grid';
|
|
12
|
+
import RangeFormContainer from '../../../Shared/TimeWindow/RangeFormContainer/RangeFormContainer';
|
|
13
|
+
import { US_NOTATION_WEEK_DAYS_INDEXES } from '../../../Shared/TimeWindow/constants/timeWindow.constants';
|
|
14
|
+
import { COUNTED_FROM_ENUM, DAYS_OF_PERIOD_ENUM, MONTHLY_SCHEDULER_INTL_KEYS_NTH_WEEK, MONTHLY_SCHEDULER_INTL_KEYS_WEEKDAYS_LONG, MONTHLY_SCHEDULER_INTL_KEYS_WEEKDAYS_SHORT, MONTH_DAYS } from '../../../constants';
|
|
15
|
+
import { DEFAULT_MAX_ENTRIES, DEFAULT_RANGE_END, DEFAULT_RANGE_START, DEFAULT_TIME_FORMAT, EMPTY_OBJECT, NOOP, RENDER_EMPTY_NODE_FN } from '../constants';
|
|
12
16
|
import { useShiftAndControlKeys } from '../hooks/useShiftAndControlKeys';
|
|
13
17
|
import { canAddAnotherRange, haveActiveDaysCommonRange, range } from './utils';
|
|
14
|
-
import { DEFAULT_RANGE_START, DEFAULT_RANGE_END, DEFAULT_TIME_FORMAT, EMPTY_OBJECT, DEFAULT_MAX_ENTRIES, RENDER_EMPTY_NODE_FN, NOOP } from '../constants';
|
|
15
|
-
import { MONTH_DAYS, DAYS_OF_PERIOD_ENUM, COUNTED_FROM_ENUM, MONTHLY_SCHEDULER_INTL_KEYS_NTH_WEEK, MONTHLY_SCHEDULER_INTL_KEYS_WEEKDAYS_LONG, MONTHLY_SCHEDULER_INTL_KEYS_WEEKDAYS_SHORT } from '../../../constants';
|
|
16
|
-
import { US_NOTATION_WEEK_DAYS_INDEXES } from '../../../Shared/TimeWindow/constants/timeWindow.constants';
|
|
17
|
-
import { getDefaultTexts } from '../../../../utils';
|
|
18
18
|
var Monthly = function Monthly(_ref) {
|
|
19
19
|
var _ref$maxEntries = _ref.maxEntries,
|
|
20
20
|
maxEntries = _ref$maxEntries === void 0 ? DEFAULT_MAX_ENTRIES : _ref$maxEntries,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { DateLimitMode } from '../../../Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { type Texts } from '../../../../DateRangePicker.types';
|
|
2
|
+
import { type WithDisabledProp } from '../../../RangeFilter.types';
|
|
3
|
+
import { type DateLimitMode } from '../../../Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types';
|
|
4
|
+
import { type FilterErrorType } from '../../../Shared/TimeWindow/RangeFormContainer/RangeFormContainer.types';
|
|
5
|
+
import { type DayOptions } from '../../../Shared/TimeWindow/TimeWindow.types';
|
|
6
|
+
import { type COUNTED_FROM_ENUM, type DAYS_OF_PERIOD_ENUM } from '../../../constants';
|
|
7
|
+
import { type FilterBaseProps } from '../Filters.types';
|
|
8
8
|
export type MonthlyScheduleDayValue = DayOptions & {
|
|
9
9
|
mode: DateLimitMode;
|
|
10
10
|
};
|