@olea-bps/components 1.0.10 → 1.0.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/AppBar/index.js +1 -0
- package/TimetableDay/index.js +2 -2
- package/TimetableMonth/index.js +2 -2
- package/TimetableWeek/index.js +2 -2
- package/package.json +1 -1
package/AppBar/index.js
CHANGED
|
@@ -48,6 +48,7 @@ function AppbarComponent({ settings, title, leftAction, rightAction, subtitle, s
|
|
|
48
48
|
icon={(props) => <IconsOpenasist {...props} icon={'back'} color={colors.appbarIconColor} />}
|
|
49
49
|
onPress={() => navigation.goBack(null)}
|
|
50
50
|
accessible={true}
|
|
51
|
+
accessibilityLabel={t('accessibility:appbar.navigateBack')}
|
|
51
52
|
accessibilityHint={t('accessibility:appbar.back')}
|
|
52
53
|
/>
|
|
53
54
|
}
|
package/TimetableDay/index.js
CHANGED
|
@@ -39,7 +39,7 @@ const daysTabDuration = Duration.fromISO('P6M');
|
|
|
39
39
|
* @param {(DateTime) => void} props.onDateChanged Callback, welche aufgerufen wird, wenn der Tag in der Ansicht wechselt
|
|
40
40
|
* @returns
|
|
41
41
|
*/
|
|
42
|
-
function CalendarDay({ selectedDate, theme, settings, calendarScrollOffsetMinutes, onDateChanged, onCourseSelected }) {
|
|
42
|
+
function CalendarDay({ selectedDate, theme, settings, calendarScrollOffsetMinutes, calendarHeight, onDateChanged, onCourseSelected }) {
|
|
43
43
|
const { appSettings: { modules: { timetable: { showDetails } } } } = theme;
|
|
44
44
|
const today = DateTime.now().toISODate();
|
|
45
45
|
|
|
@@ -169,7 +169,7 @@ function CalendarDay({ selectedDate, theme, settings, calendarScrollOffsetMinute
|
|
|
169
169
|
renderHeader={() => null}
|
|
170
170
|
overlapOffset={95}
|
|
171
171
|
mode={'day'}
|
|
172
|
-
height={
|
|
172
|
+
height={calendarHeight}
|
|
173
173
|
headerContentStyle={{ backgroundColor: 'transparent' }}
|
|
174
174
|
weekStartsOn={1}
|
|
175
175
|
date={route.key}
|
package/TimetableMonth/index.js
CHANGED
|
@@ -26,7 +26,7 @@ import CalendarStrip from 'react-native-calendar-strip';
|
|
|
26
26
|
import { DateTime } from 'luxon';
|
|
27
27
|
|
|
28
28
|
function CalendarMonth(props) {
|
|
29
|
-
const { theme, setMonth, today, locale, onMonthChanged } = props;
|
|
29
|
+
const { theme, setMonth, today, locale, onMonthChanged, calendarHeight } = props;
|
|
30
30
|
const styles = useMemo(
|
|
31
31
|
() => StyleSheet.create(componentStyles(theme)),
|
|
32
32
|
[theme]
|
|
@@ -121,7 +121,7 @@ function CalendarMonth(props) {
|
|
|
121
121
|
renderEvent={renderEvent}
|
|
122
122
|
renderHeaderForMonthView={renderHeader}
|
|
123
123
|
date={selectedDate.current}
|
|
124
|
-
height={
|
|
124
|
+
height={calendarHeight}
|
|
125
125
|
mode={'month'}
|
|
126
126
|
headerContentStyle={{ backgroundColor: 'transparent' }}
|
|
127
127
|
weekStartsOn={1}
|
package/TimetableWeek/index.js
CHANGED
|
@@ -40,7 +40,7 @@ const daysTabDuration = Duration.fromISO('P6M');
|
|
|
40
40
|
* @returns
|
|
41
41
|
*/
|
|
42
42
|
function CalendarWeek(props) {
|
|
43
|
-
const { selectedISOWeek, theme, settings, calendarScrollOffsetMinutes, onWeekChanged, onCourseSelected } = props;
|
|
43
|
+
const { selectedISOWeek, theme, settings, calendarScrollOffsetMinutes, calendarHeight, onWeekChanged, onCourseSelected } = props;
|
|
44
44
|
|
|
45
45
|
const styles = useMemo(
|
|
46
46
|
() => StyleSheet.create(componentStyles(theme)),
|
|
@@ -167,7 +167,7 @@ function CalendarWeek(props) {
|
|
|
167
167
|
renderEvent={renderEvent}
|
|
168
168
|
renderHeader={() => null}
|
|
169
169
|
mode={'week'}
|
|
170
|
-
height={
|
|
170
|
+
height={calendarHeight}
|
|
171
171
|
headerContentStyle={{ backgroundColor: 'transparent' }}
|
|
172
172
|
weekStartsOn={1}
|
|
173
173
|
date={route.weekbeginISODate}
|