@synerise/ds-date-range-picker 1.3.9 → 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.
Files changed (164) hide show
  1. package/CHANGELOG.md +979 -2654
  2. package/README.md +85 -86
  3. package/dist/AddonCollapse/AddonCollapse.d.ts +1 -1
  4. package/dist/AddonCollapse/AddonCollapse.types.d.ts +1 -1
  5. package/dist/DateRangePicker.d.ts +2 -2
  6. package/dist/DateRangePicker.js +8 -6
  7. package/dist/DateRangePicker.styles.d.ts +1 -1
  8. package/dist/DateRangePicker.types.d.ts +10 -11
  9. package/dist/DateRangePicker.types.js +1 -5
  10. package/dist/Footer/Footer.d.ts +1 -1
  11. package/dist/Footer/Footer.js +6 -6
  12. package/dist/RangeFilter/Filters/DailyFilter/DailyFilter.d.ts +7 -7
  13. package/dist/RangeFilter/Filters/DailyFilter/DailyFilter.js +2 -2
  14. package/dist/RangeFilter/Filters/MonthlyFilter/MonthlyFilter.d.ts +1 -1
  15. package/dist/RangeFilter/Filters/MonthlyFilter/MonthlyFilter.js +8 -10
  16. package/dist/RangeFilter/Filters/MonthlyFilter/MonthlyFilter.styles.d.ts +1 -1
  17. package/dist/RangeFilter/Filters/MonthlyFilter/MonthlyFilter.types.d.ts +6 -6
  18. package/dist/RangeFilter/Filters/WeeklyFilter/WeeklyFilter.d.ts +1 -1
  19. package/dist/RangeFilter/Filters/WeeklyFilter/WeeklyFilter.js +1 -1
  20. package/dist/RangeFilter/Filters/WeeklyFilter/WeeklyFilter.types.d.ts +5 -5
  21. package/dist/RangeFilter/Filters/new/Daily/Daily.d.ts +1 -1
  22. package/dist/RangeFilter/Filters/new/Daily/Daily.js +6 -8
  23. package/dist/RangeFilter/Filters/new/Daily/Daily.types.d.ts +6 -6
  24. package/dist/RangeFilter/Filters/new/Filters.types.d.ts +2 -2
  25. package/dist/RangeFilter/Filters/new/Monthly/Monthly.d.ts +1 -1
  26. package/dist/RangeFilter/Filters/new/Monthly/Monthly.js +9 -9
  27. package/dist/RangeFilter/Filters/new/Monthly/Monthly.types.d.ts +7 -7
  28. package/dist/RangeFilter/Filters/new/Monthly/utils.d.ts +2 -2
  29. package/dist/RangeFilter/Filters/new/Weekly/Weekly.d.ts +1 -1
  30. package/dist/RangeFilter/Filters/new/Weekly/Weekly.js +9 -9
  31. package/dist/RangeFilter/Filters/new/Weekly/Weekly.types.d.ts +6 -6
  32. package/dist/RangeFilter/Filters/new/Weekly/utils.d.ts +2 -2
  33. package/dist/RangeFilter/Filters/new/constants.js +0 -1
  34. package/dist/RangeFilter/Filters/new/hooks/useShiftAndControlKeys.js +1 -1
  35. package/dist/RangeFilter/RangeFilter.d.ts +1 -1
  36. package/dist/RangeFilter/RangeFilter.js +5 -5
  37. package/dist/RangeFilter/RangeFilter.types.d.ts +6 -6
  38. package/dist/RangeFilter/Shared/AddButton/AddButton.d.ts +1 -1
  39. package/dist/RangeFilter/Shared/AddButton/AddButton.types.d.ts +2 -2
  40. package/dist/RangeFilter/Shared/FilterDropdown/FilterDropdown.d.ts +1 -1
  41. package/dist/RangeFilter/Shared/FilterDropdown/FilterDropdown.js +3 -3
  42. package/dist/RangeFilter/Shared/FilterDropdown/FilterDropdown.types.d.ts +2 -2
  43. package/dist/RangeFilter/Shared/RangeFilterStatus/RangeFilterStatus.d.ts +2 -2
  44. package/dist/RangeFilter/Shared/RangeFilterStatus/RangeFilterStatus.js +2 -2
  45. package/dist/RangeFilter/Shared/RangeFilterStatus/RangeFilterStatus.styles.d.ts +5 -3
  46. package/dist/RangeFilter/Shared/RangeFilterStatus/RangeFilterStatus.types.d.ts +3 -3
  47. package/dist/RangeFilter/Shared/SaveFilterForm/SaveFilterForm.d.ts +1 -1
  48. package/dist/RangeFilter/Shared/SaveFilterForm/SaveFilterForm.js +1 -1
  49. package/dist/RangeFilter/Shared/SaveFilterForm/SaveFilterForm.styles.d.ts +1 -1
  50. package/dist/RangeFilter/Shared/SaveFilterForm/SaveFilterForm.types.d.ts +1 -1
  51. package/dist/RangeFilter/Shared/SelectionCount/SelectionCount.d.ts +1 -1
  52. package/dist/RangeFilter/Shared/SelectionCount/SelectionCount.types.d.ts +1 -1
  53. package/dist/RangeFilter/Shared/SelectionHint/SelectionHint.d.ts +1 -1
  54. package/dist/RangeFilter/Shared/TimeWindow/Day/Day.d.ts +1 -1
  55. package/dist/RangeFilter/Shared/TimeWindow/Day/Day.js +2 -2
  56. package/dist/RangeFilter/Shared/TimeWindow/Day/Day.types.d.ts +4 -4
  57. package/dist/RangeFilter/Shared/TimeWindow/Grid/Grid.d.ts +1 -1
  58. package/dist/RangeFilter/Shared/TimeWindow/Grid/Grid.js +16 -12
  59. package/dist/RangeFilter/Shared/TimeWindow/Grid/Grid.types.d.ts +3 -3
  60. package/dist/RangeFilter/Shared/TimeWindow/Header/Header.js +5 -9
  61. package/dist/RangeFilter/Shared/TimeWindow/RangeActions/RangeActions.d.ts +1 -1
  62. package/dist/RangeFilter/Shared/TimeWindow/RangeActions/RangeActions.js +3 -3
  63. package/dist/RangeFilter/Shared/TimeWindow/RangeActions/RangeActions.styles.js +1 -1
  64. package/dist/RangeFilter/Shared/TimeWindow/RangeActions/RangeActions.types.d.ts +2 -2
  65. package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.d.ts +1 -1
  66. package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.js +16 -12
  67. package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types.d.ts +4 -4
  68. package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.utils.js +1 -1
  69. package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeFormContainer.js +7 -5
  70. package/dist/RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeFormContainer.types.d.ts +10 -6
  71. package/dist/RangeFilter/Shared/TimeWindow/RangeSummary/RangeSummary.d.ts +1 -1
  72. package/dist/RangeFilter/Shared/TimeWindow/RangeSummary/RangeSummary.js +1 -1
  73. package/dist/RangeFilter/Shared/TimeWindow/RangeSummary/RangeSummary.types.d.ts +4 -4
  74. package/dist/RangeFilter/Shared/TimeWindow/TimeWindow.d.ts +2 -2
  75. package/dist/RangeFilter/Shared/TimeWindow/TimeWindow.js +27 -15
  76. package/dist/RangeFilter/Shared/TimeWindow/TimeWindow.styles.js +1 -1
  77. package/dist/RangeFilter/Shared/TimeWindow/TimeWindow.types.d.ts +8 -8
  78. package/dist/RangeFilter/Shared/TimeWindow/utils.d.ts +2 -2
  79. package/dist/RangeFilter/Shared/TimeWindow/utils.js +1 -1
  80. package/dist/RangeFilter/constants.d.ts +1 -1
  81. package/dist/RangeFilter/constants.js +2 -2
  82. package/dist/RangeFilter/utils.d.ts +3 -3
  83. package/dist/RangeFilter/utils.js +44 -37
  84. package/dist/RangePicker/RangePicker.d.ts +1 -1
  85. package/dist/RangePicker/RangePicker.js +16 -14
  86. package/dist/RangePicker/RangePicker.styles.d.ts +1 -1
  87. package/dist/RangePicker/RangePicker.types.d.ts +3 -3
  88. package/dist/RangePicker/utils.d.ts +3 -3
  89. package/dist/RangePicker/utils.js +7 -7
  90. package/dist/RangePickerInput/RangePickerInput.d.ts +1 -1
  91. package/dist/RangePickerInput/RangePickerInput.js +4 -4
  92. package/dist/RangePickerInput/RangePickerInput.types.d.ts +2 -2
  93. package/dist/RawDateRangePicker.js +10 -10
  94. package/dist/RelativeRangePicker/Elements/CustomRangeForm/CustomRangeForm.d.ts +1 -1
  95. package/dist/RelativeRangePicker/Elements/CustomRangeForm/CustomRangeForm.js +4 -4
  96. package/dist/RelativeRangePicker/Elements/CustomRangeForm/CustomRangeForm.types.d.ts +2 -2
  97. package/dist/RelativeRangePicker/Elements/CustomRangeForm/DurationField/DurationField.d.ts +1 -1
  98. package/dist/RelativeRangePicker/Elements/CustomRangeForm/DurationField/DurationField.js +5 -5
  99. package/dist/RelativeRangePicker/Elements/CustomRangeForm/DurationField/DurationField.types.d.ts +1 -1
  100. package/dist/RelativeRangePicker/Elements/CustomRangeForm/OffsetField/OffsetField.d.ts +1 -1
  101. package/dist/RelativeRangePicker/Elements/CustomRangeForm/OffsetField/OffsetField.js +3 -3
  102. package/dist/RelativeRangePicker/Elements/CustomRangeForm/OffsetField/OffsetField.types.d.ts +1 -1
  103. package/dist/RelativeRangePicker/Elements/ModeDropdown/ModeDropdown.d.ts +1 -1
  104. package/dist/RelativeRangePicker/Elements/ModeDropdown/ModeDropdown.js +2 -2
  105. package/dist/RelativeRangePicker/Elements/ModeDropdown/ModeDropdown.types.d.ts +2 -2
  106. package/dist/RelativeRangePicker/Elements/RangeButtons/RangeButtons.d.ts +1 -1
  107. package/dist/RelativeRangePicker/Elements/RangeButtons/RangeButtons.js +2 -2
  108. package/dist/RelativeRangePicker/Elements/RangeButtons/RangeButtons.types.d.ts +2 -2
  109. package/dist/RelativeRangePicker/Elements/RangeDropdown/RangeDropdown.d.ts +2 -2
  110. package/dist/RelativeRangePicker/Elements/RangeDropdown/RangeDropdown.js +8 -6
  111. package/dist/RelativeRangePicker/Elements/RangeDropdown/RangeDropdown.types.d.ts +2 -2
  112. package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampDuration/TimestampDuration.d.ts +1 -1
  113. package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampDuration/TimestampDuration.js +4 -4
  114. package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampDuration/TimestampDuration.types.d.ts +2 -2
  115. package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampRange.d.ts +1 -1
  116. package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampRange.js +5 -4
  117. package/dist/RelativeRangePicker/Elements/TimestampRange/TimestampRange.types.d.ts +2 -2
  118. package/dist/RelativeRangePicker/RelativeRangePicker.d.ts +1 -1
  119. package/dist/RelativeRangePicker/RelativeRangePicker.js +14 -10
  120. package/dist/RelativeRangePicker/RelativeRangePicker.styles.d.ts +1 -1
  121. package/dist/RelativeRangePicker/RelativeRangePicker.styles.js +8 -15
  122. package/dist/RelativeRangePicker/RelativeRangePicker.types.d.ts +3 -3
  123. package/dist/RelativeRangePicker/utils/findMatchingPreset.utils.d.ts +1 -1
  124. package/dist/RelativeRangePicker/utils/findMatchingPreset.utils.js +0 -1
  125. package/dist/RelativeRangePicker/utils/findRangeByKey.utils.d.ts +1 -1
  126. package/dist/RelativeRangePicker/utils/getCurrentGroupFromProps.utils.d.ts +3 -3
  127. package/dist/RelativeRangePicker/utils/getDefaultCustomRange.utils.d.ts +1 -1
  128. package/dist/RelativeRangePicker/utils/getDefaultCustomRange.utils.js +1 -1
  129. package/dist/RelativeRangePicker/utils/isAbsolute.utils.d.ts +1 -1
  130. package/dist/RelativeRangePicker/utils/setDurationValue.utils.d.ts +1 -1
  131. package/dist/RelativeRangePicker/utils/setDurationValue.utils.js +1 -1
  132. package/dist/RelativeRangePicker/utils/setFuture.utils.js +1 -1
  133. package/dist/RelativeRangePicker/utils/setOffsetValue.utils.d.ts +1 -1
  134. package/dist/RelativeRangePicker/utils/setOffsetValue.utils.js +1 -1
  135. package/dist/RelativeRangePicker/utils/updatePresetKey.utils.d.ts +1 -1
  136. package/dist/RelativeRangePicker/utils/updatePresetKey.utils.js +1 -1
  137. package/dist/constants.d.ts +1 -1
  138. package/dist/constants.js +1 -1
  139. package/dist/date.types.d.ts +2 -2
  140. package/dist/dateUtils/add.d.ts +7 -7
  141. package/dist/dateUtils/add.js +7 -7
  142. package/dist/dateUtils/difference.d.ts +7 -7
  143. package/dist/dateUtils/difference.js +7 -7
  144. package/dist/dateUtils/endOf.d.ts +7 -7
  145. package/dist/dateUtils/endOf.js +7 -7
  146. package/dist/dateUtils/format.js +2 -2
  147. package/dist/dateUtils/get.d.ts +3 -3
  148. package/dist/dateUtils/get.js +3 -3
  149. package/dist/dateUtils/getRelativePresetForRange.d.ts +1 -1
  150. package/dist/dateUtils/getRelativePresetForRange.js +1 -1
  151. package/dist/dateUtils/relativeToAbsolute.d.ts +1 -1
  152. package/dist/dateUtils/relativeToAbsolute.js +1 -1
  153. package/dist/dateUtils/set.d.ts +3 -3
  154. package/dist/dateUtils/set.js +3 -3
  155. package/dist/dateUtils/startOf.d.ts +7 -7
  156. package/dist/dateUtils/startOf.js +7 -7
  157. package/dist/dateUtils/sub.d.ts +7 -7
  158. package/dist/dateUtils/sub.js +7 -7
  159. package/dist/fns.d.ts +20 -20
  160. package/dist/fns.js +20 -20
  161. package/dist/index.d.ts +2 -2
  162. package/dist/utils.d.ts +4 -4
  163. package/dist/utils.js +6 -4
  164. 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 | custom translations | Texts | undefined |
70
- | disableDefaultTexts | disable DS translations fallback | boolean | false
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
- | translation key | Type | Default |
93
- | ------------------------ | ----------------- | -------- |
94
- | endDatePlaceholder | string | -------- |
95
- | startDatePlaceholder | string | -------- |
96
- | selectDate | string | -------- |
97
- | selectTime | string | -------- |
98
- | filterName | string | -------- |
99
- | custom | ReactNode | -------- |
100
- | today | ReactNode | -------- |
101
- | yesterday | ReactNode | -------- |
102
- | apply | ReactNode | -------- |
103
- | clear | ReactNode | -------- |
104
- | now | ReactNode | -------- |
105
- | emptyDateError | ReactNode | -------- |
106
- | last7Days | ReactNode | -------- |
107
- | thisWeek | ReactNode | -------- |
108
- | lastWeek | ReactNode | -------- |
109
- | thisMonth | ReactNode | -------- |
110
- | lastMonth | ReactNode | -------- |
111
- | last3Months | ReactNode | -------- |
112
- | last6Months | ReactNode | -------- |
113
- | lastYear | ReactNode | -------- |
114
- | allTime | ReactNode | -------- |
115
- | tomorrow | ReactNode | -------- |
116
- | next7Days | ReactNode | -------- |
117
- | nextWeek | ReactNode | -------- |
118
- | nextMonth | ReactNode | -------- |
119
- | next3Months | ReactNode | -------- |
120
- | next6Months | ReactNode | -------- |
121
- | nextYear | ReactNode | -------- |
122
- | more | ReactNode | -------- |
123
- | relativeDateRange | ReactNode | -------- |
124
- | last | ReactNode | -------- |
125
- | before | ReactNode | -------- |
126
- | after | ReactNode | -------- |
127
- | since | ReactNode | -------- |
128
- | next | ReactNode | -------- |
129
- | seconds | ReactNode | -------- |
130
- | minutes | ReactNode | -------- |
131
- | hours | ReactNode | -------- |
132
- | days | ReactNode | -------- |
133
- | weeks | ReactNode | -------- |
134
- | months | ReactNode | -------- |
135
- | years | ReactNode | -------- |
136
- | timestampLast | ReactNode | -------- |
137
- | timestampNext | ReactNode | -------- |
138
- | timestampTill | ReactNode | -------- |
139
- | filter | ReactNode | -------- |
140
- | startDate | ReactNode | -------- |
141
- | endDate | ReactNode | -------- |
142
- | remove | ReactNode | -------- |
143
- | savedFiltersTrigger | ReactNode | -------- |
144
- | clearRange | ReactNode | -------- |
145
- | copyRange | ReactNode | -------- |
146
- | pasteRange | ReactNode | -------- |
147
- | range | ReactNode | -------- |
148
- | hour | ReactNode | -------- |
149
- | filterEnabled | ReactNode | -------- |
150
- | selectDateFilter | ReactNode | -------- |
151
- | datesFilter | ReactNode | -------- |
152
- | cancel | ReactNode | -------- |
153
- | everyDay | ReactNode | -------- |
154
- | nthDayOfMonth | ReactNode | -------- |
155
- | daysOf | ReactNode | -------- |
156
- | countedFrom | ReactNode | -------- |
157
- | addRule | ReactNode | -------- |
158
- | addTime | ReactNode | -------- |
159
- | change | ReactNode | -------- |
160
- | weekly | ReactNode | -------- |
161
- | monthly | ReactNode | -------- |
162
- | daily | ReactNode | -------- |
163
- | saveFilter | ReactNode | -------- |
164
- | selected | ReactNode | -------- |
165
- | selectDaysDescription | ReactNode | -------- |
166
- | selectAll | ReactNode | -------- |
167
- | unselectAll | ReactNode | -------- |
168
- | inverseSelection | ReactNode | -------- |
169
- | setTimeFor | ReactNode | -------- |
170
- | week | ReactNode | -------- |
171
- | month | ReactNode | -------- |
172
- | beginning | ReactNode | -------- |
173
- | ending | ReactNode | -------- |
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,4 +1,4 @@
1
1
  import React from 'react';
2
- import { Props } from './AddonCollapse.types';
2
+ import { type Props } from './AddonCollapse.types';
3
3
  declare const AddonCollapse: React.FC<Props>;
4
4
  export default AddonCollapse;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export type Props = {
3
3
  content: React.ReactNode;
4
4
  title: React.ReactText | React.ReactNode;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import './style/index.less';
2
+ import { type DateRangePickerProps } from './DateRangePicker.types';
3
3
  import RawDateRangePicker from './RawDateRangePicker';
4
- import { DateRangePickerProps } from './DateRangePicker.types';
4
+ import './style/index.less';
5
5
  declare const DateRangePicker: (props: DateRangePickerProps) => React.JSX.Element;
6
6
  export default DateRangePicker;
7
7
  export { RawDateRangePicker };
@@ -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, { useCallback, useState, useRef, useMemo, useEffect } from 'react';
2
+ import { Popover } from 'antd';
3
3
  import { isEqual } from 'lodash';
4
- import "./style/index.css";
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) return /*#__PURE__*/React.createElement(React.Fragment, null, triggerElement);
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 != null ? node.parentElement : document.body;
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 { ReactNode } from 'react';
2
- import { IntlShape } from 'react-intl';
3
- import { PopoverProps } from 'antd/lib/popover';
4
- import { DateToFormatOptions } from '@synerise/ds-data-format';
5
- import { DateFilter, DateRange, DateRangePreset, RelativeUnits } from './date.types';
6
- import { FilterDefinition } from './RangeFilter/RangeFilter.types';
7
- import { SavedFilter } from './RangeFilter/Shared/FilterDropdown/FilterDropdown.types';
8
- import { Props as FooterProps } from './Footer/Footer.types';
9
- import { RangePickerInputProps } from './RangePickerInput/RangePickerInput.types';
10
- import { DateLimitMode, RangeDisplayMode } from './RangeFilter/Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types';
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;
@@ -1,5 +1 @@
1
- export { DateRange } from './date.types';
2
-
3
- /**
4
- * @deprecated use `DateRangePickerProps`
5
- */
1
+ export {};
@@ -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;
@@ -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, { useMemo, useCallback } from '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 * as S from './Footer.styles';
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 { RangeActions as RangeActionsMethods } from '../../Shared/TimeWindow/TimeWindow.types';
4
- import { Days } from '../../../date.types';
5
- import { WithTranslations } from '../../../DateRangePicker.types';
6
- import { ValueSelectionModes, WithDisabledProp } from '../../RangeFilter.types';
7
- import { RangeDisplayMode } from '../../Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types';
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-unused-vars, @typescript-eslint/no-explicit-any
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 { RangeActions } from '../../Shared/TimeWindow/TimeWindow.types';
5
- import { DenormalizedFilter, FilterDefinition, MonthlySelectValue, WithDisabledProp } from '../../RangeFilter.types';
6
- import { WithTranslations } from '../../../DateRangePicker.types';
7
- import { RangeDisplayMode, DateLimitMode } from '../../Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types';
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 { DayOptions, RangeActions } from '../../Shared/TimeWindow/TimeWindow.types';
3
- import { FilterDefinition } from '../../RangeFilter.types';
4
- import { WithTranslations } from '../../../DateRangePicker.types';
5
- import { DateLimitMode, RangeDisplayMode } from '../../Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types';
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 { DEFAULT_RANGE_END, DEFAULT_RANGE_START, DEFAULT_TIME_FORMAT, DEFAULT_MAX_ENTRIES, NOOP, EMPTY_OBJECT, RENDER_EMPTY_NODE_FN } from '../constants';
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 { getDefaultTexts } from '../../../../utils';
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 { FilterBaseProps } from '../Filters.types';
2
- import { DateLimitMode } from '../../../Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types';
3
- import { DayOptions } from '../../../Shared/TimeWindow/TimeWindow.types';
4
- import { WithDisabledProp } from '../../../RangeFilter.types';
5
- import { FilterErrorType } from '../../../Shared/TimeWindow/RangeFormContainer/RangeFormContainer.types';
6
- import { Texts } from '../../../../DateRangePicker.types';
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 { DateLimitMode } from '../../Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types';
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 RangeFormContainer from '../../../Shared/TimeWindow/RangeFormContainer/RangeFormContainer';
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 { DAYS_OF_PERIOD_ENUM, COUNTED_FROM_ENUM } from '../../../constants';
2
- import { DayOptions } from '../../../Shared/TimeWindow/TimeWindow.types';
3
- import { DateLimitMode } from '../../../Shared/TimeWindow/RangeFormContainer/RangeForm/RangeForm.types';
4
- import { FilterBaseProps } from '../Filters.types';
5
- import { WithDisabledProp } from '../../../RangeFilter.types';
6
- import { FilterErrorType } from '../../../Shared/TimeWindow/RangeFormContainer/RangeFormContainer.types';
7
- import { Texts } from '../../../../DateRangePicker.types';
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
  };