@olea-bps/components 1.0.3 → 1.0.7
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/BookDetail/index.js +2 -2
- package/ComponentJobsFilter/index.js +1 -1
- package/ContactDetail/index.js +1 -1
- package/CourseDetail/index.js +1 -1
- package/MealItem/styles.js +13 -2
- package/MensaSlider/index.js +2 -2
- package/NewsDetail/index.js +1 -1
- package/NewsList/index.js +1 -1
- package/OtherCourses/index.js +2 -2
- package/PtsStation/index.js +1 -1
- package/RoomDetail/index.js +1 -1
- package/SearchResults/index.js +5 -5
- package/SettingsDialogRadio/index.js +2 -2
- package/SettingsDialogSelect/index.js +2 -2
- package/TimetableDay/index.js +1 -1
- package/TimetableMonth/index.js +1 -1
- package/TimetableWeek/index.js +1 -2
- package/package.json +4 -5
package/BookDetail/index.js
CHANGED
|
@@ -27,11 +27,11 @@ import merge from 'lodash/merge';
|
|
|
27
27
|
import unescape from 'lodash/unescape';
|
|
28
28
|
import uniqBy from 'lodash/uniqBy';
|
|
29
29
|
import {libraryApi} from '@olea-bps/core';
|
|
30
|
+
import {handleHtmlEntities} from "@olea-bps/core/helper/format.helper";
|
|
30
31
|
|
|
31
32
|
|
|
32
33
|
import componentStyles from "./styles"
|
|
33
|
-
import
|
|
34
|
-
import {handleHtmlEntities} from "@olea-bps/core/helper/format.helper";
|
|
34
|
+
import AppbarComponent from '../AppBar';
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
class BookDetailComponent extends React.Component {
|
|
@@ -21,7 +21,7 @@ import { CheckBox } from 'react-native-elements'
|
|
|
21
21
|
|
|
22
22
|
import merge from 'lodash/merge';
|
|
23
23
|
import componentStyles from "./styles";
|
|
24
|
-
import
|
|
24
|
+
import AppbarComponent from '../AppBar';
|
|
25
25
|
import IconsOpenasist from "@olea-bps/icons-openasist";
|
|
26
26
|
|
|
27
27
|
|
package/ContactDetail/index.js
CHANGED
package/CourseDetail/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import { connect } from 'react-redux'
|
|
|
25
25
|
import merge from 'lodash/merge';
|
|
26
26
|
|
|
27
27
|
import componentStyles from "./styles"
|
|
28
|
-
import
|
|
28
|
+
import AppbarComponent from '../AppBar';
|
|
29
29
|
import IconsOpenasist from "@olea-bps/icons-openasist";
|
|
30
30
|
import {withTranslation} from "react-i18next";
|
|
31
31
|
|
package/MealItem/styles.js
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
// Helper function to add alpha to a color
|
|
2
|
+
const addAlpha = (hexColor, alpha) => {
|
|
3
|
+
// Remove # if present
|
|
4
|
+
const hex = hexColor.replace('#', '');
|
|
5
|
+
|
|
6
|
+
// Parse RGB values
|
|
7
|
+
const r = parseInt(hex.substring(0, 2), 16);
|
|
8
|
+
const g = parseInt(hex.substring(2, 4), 16);
|
|
9
|
+
const b = parseInt(hex.substring(4, 6), 16);
|
|
10
|
+
|
|
11
|
+
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
12
|
+
};
|
|
2
13
|
|
|
3
14
|
export default function(theme) {
|
|
4
15
|
return {
|
|
@@ -7,7 +18,7 @@ export default function(theme) {
|
|
|
7
18
|
height: '75%',
|
|
8
19
|
paddingHorizontal: theme.paddings.default,
|
|
9
20
|
borderRightWidth: 1,
|
|
10
|
-
borderRightColor:
|
|
21
|
+
borderRightColor: addAlpha(theme.colors.mensaSliderTextColor, 0.5)
|
|
11
22
|
},
|
|
12
23
|
mensaItemText: {
|
|
13
24
|
fontSize: theme.fontSizes.itemText,
|
package/MensaSlider/index.js
CHANGED
|
@@ -22,7 +22,7 @@ import { LinearGradient } from 'expo-linear-gradient'
|
|
|
22
22
|
|
|
23
23
|
import { DateTime } from 'luxon';
|
|
24
24
|
|
|
25
|
-
import
|
|
25
|
+
import MealItemComponent from '../MealItem';
|
|
26
26
|
import { toIsoDateString } from '@olea-bps/core/helper/date';
|
|
27
27
|
|
|
28
28
|
import { useCanteen, useFilteredMenu, useFavoriteCanteens } from '@olea-bps/context-canteen';
|
|
@@ -136,7 +136,7 @@ function MensaSliderComponent(props) {
|
|
|
136
136
|
|
|
137
137
|
const todayDateTime = new Date();
|
|
138
138
|
const todayDateString = toIsoDateString(todayDateTime);
|
|
139
|
-
|
|
139
|
+
|
|
140
140
|
const formattedDate = DateTime
|
|
141
141
|
.fromJSDate(todayDateTime)
|
|
142
142
|
.setLocale(settings.settingsGeneral.language)
|
package/NewsDetail/index.js
CHANGED
|
@@ -38,7 +38,7 @@ import WebViewAutoHeight from '@olea-bps/react-native-webview-autoheight';
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
import componentStyles from "./styles"
|
|
41
|
-
import
|
|
41
|
+
import AppbarComponent from '../AppBar';
|
|
42
42
|
import {selectFeedById} from "@olea-bps/core/redux/reducers/api";
|
|
43
43
|
|
|
44
44
|
|
package/NewsList/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import { useTheme } from 'react-native-paper';
|
|
|
25
25
|
import { useTranslation } from 'react-i18next';
|
|
26
26
|
import { useFocusEffect } from '@react-navigation/native';
|
|
27
27
|
|
|
28
|
-
import
|
|
28
|
+
import NewsListItem from '../NewsListItem'
|
|
29
29
|
import { useApiProvider } from '@olea-bps/context-news';
|
|
30
30
|
|
|
31
31
|
import componentStyles from './styles';
|
package/OtherCourses/index.js
CHANGED
|
@@ -29,9 +29,9 @@ import { withTranslation } from 'react-i18next';
|
|
|
29
29
|
|
|
30
30
|
import merge from 'lodash/merge';
|
|
31
31
|
|
|
32
|
-
import
|
|
32
|
+
import AppbarComponent from '../AppBar';
|
|
33
33
|
import IconsOpenasist from '@olea-bps/icons-openasist';
|
|
34
|
-
import
|
|
34
|
+
import TimetableListComponent from '../TimetableList';
|
|
35
35
|
|
|
36
36
|
import componentStyles from './styles'
|
|
37
37
|
|
package/PtsStation/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import concat from "lodash/concat";
|
|
|
23
23
|
import merge from 'lodash/merge';
|
|
24
24
|
|
|
25
25
|
import {onSettingPtsStationOverride, store} from "@olea-bps/core";
|
|
26
|
-
import
|
|
26
|
+
import PtsDepartureComponent from '../PtsDeparture';
|
|
27
27
|
import IconsOpenasist from "@olea-bps/icons-openasist";
|
|
28
28
|
|
|
29
29
|
import componentStyles from "./styles"
|
package/RoomDetail/index.js
CHANGED
|
@@ -26,7 +26,7 @@ import {withTranslation} from "react-i18next";
|
|
|
26
26
|
import merge from 'lodash/merge';
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
import
|
|
29
|
+
import AppbarComponent from '../AppBar';
|
|
30
30
|
import IconsOpenasist from "@olea-bps/icons-openasist";
|
|
31
31
|
|
|
32
32
|
import componentStyles from "./styles";
|
package/SearchResults/index.js
CHANGED
|
@@ -29,11 +29,11 @@ import {store} from '@olea-bps/core';
|
|
|
29
29
|
|
|
30
30
|
import componentStyles from "./styles"
|
|
31
31
|
import IconsOpenasist from "@olea-bps/icons-openasist";
|
|
32
|
-
import { BookDetail as BookDetailComponent } from '@olea-bps/components';
|
|
33
|
-
import { ContactDetail as ContactDetailComponent } from '@olea-bps/components';
|
|
34
|
-
import { RoomDetail as RoomDetailComponent } from '@olea-bps/components';
|
|
35
|
-
import { NewsDetail as NewsDetailComponent } from '@olea-bps/components';
|
|
36
32
|
import {handleHtmlEntities} from "@olea-bps/core/helper/format.helper";
|
|
33
|
+
import ContactDetailComponent from '../ContactDetail';
|
|
34
|
+
import RoomDetailComponent from '../RoomDetail';
|
|
35
|
+
import NewsDetailComponent from '../NewsDetail';
|
|
36
|
+
import BookDetailComponent from '../BookDetail';
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
@@ -142,7 +142,7 @@ class SearchResultsComponent extends React.Component {
|
|
|
142
142
|
key = item.bookId;
|
|
143
143
|
title = unescape(item.title);
|
|
144
144
|
subtitle = `${item.format || ''}${item.format && item.available ? ' | ' : ''}${item.available ? t('books:available') : t('books:notAvailable')}`;
|
|
145
|
-
|
|
145
|
+
|
|
146
146
|
|
|
147
147
|
// Contacts
|
|
148
148
|
} else if(item.firstName && item.lastName) {
|
|
@@ -18,7 +18,7 @@ import { StyleSheet } from 'react-native';
|
|
|
18
18
|
import { RadioButton, useTheme } from 'react-native-paper';
|
|
19
19
|
import { useTranslation } from 'react-i18next';
|
|
20
20
|
|
|
21
|
-
import
|
|
21
|
+
import SettingsDialog from '../SettingsDialog';
|
|
22
22
|
|
|
23
23
|
import componentStyles from './styles';
|
|
24
24
|
|
|
@@ -63,4 +63,4 @@ export default function SettingsDialogRadio({ title, visible, options, selectedO
|
|
|
63
63
|
</RadioButton.Group>
|
|
64
64
|
</SettingsDialog>
|
|
65
65
|
);
|
|
66
|
-
}
|
|
66
|
+
}
|
|
@@ -18,7 +18,7 @@ import { StyleSheet } from 'react-native';
|
|
|
18
18
|
import { Checkbox, useTheme } from 'react-native-paper';
|
|
19
19
|
import { useTranslation } from 'react-i18next';
|
|
20
20
|
|
|
21
|
-
import
|
|
21
|
+
import SettingsDialog from '../SettingsDialog';
|
|
22
22
|
|
|
23
23
|
import componentStyles from './styles';
|
|
24
24
|
|
|
@@ -70,4 +70,4 @@ export default function SettingsDialogSelect({ title, visible, options, onDismis
|
|
|
70
70
|
}
|
|
71
71
|
</SettingsDialog>
|
|
72
72
|
);
|
|
73
|
-
}
|
|
73
|
+
}
|
package/TimetableDay/index.js
CHANGED
|
@@ -22,7 +22,7 @@ import componentStyles from "./styles";
|
|
|
22
22
|
import { Calendar } from 'react-native-big-calendar';
|
|
23
23
|
import { useCourses } from '@olea-bps/context-timetable';
|
|
24
24
|
import CalendarStrip from 'react-native-calendar-strip';
|
|
25
|
-
import CourseDetailDialog from '../
|
|
25
|
+
import CourseDetailDialog from '../CourseDetailDialog';
|
|
26
26
|
import { DateTime, Duration } from 'luxon';
|
|
27
27
|
import { TabView } from 'react-native-tab-view';
|
|
28
28
|
import moment from 'moment';
|
package/TimetableMonth/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import { onUpdateRefreshing } from '@olea-bps/core';
|
|
|
21
21
|
import componentStyles from "./styles";
|
|
22
22
|
import { Calendar } from 'react-native-big-calendar';
|
|
23
23
|
import { useCourses } from '@olea-bps/context-timetable';
|
|
24
|
-
import CourseDetailDialog from '../
|
|
24
|
+
import CourseDetailDialog from '../CourseDetailDialog';
|
|
25
25
|
import CalendarStrip from 'react-native-calendar-strip';
|
|
26
26
|
import { DateTime } from 'luxon';
|
|
27
27
|
|
package/TimetableWeek/index.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { useMemo, useCallback } from 'react';
|
|
16
16
|
import { View, Text, TouchableOpacity, StyleSheet, useWindowDimensions } from 'react-native';
|
|
17
17
|
import { connect } from 'react-redux';
|
|
18
18
|
import { withTheme } from 'react-native-paper';
|
|
@@ -23,7 +23,6 @@ import CalendarStrip from 'react-native-calendar-strip';
|
|
|
23
23
|
import { DateTime, Duration } from 'luxon';
|
|
24
24
|
import { TabView } from 'react-native-tab-view';
|
|
25
25
|
import { onUpdateRefreshing } from '@olea-bps/core';
|
|
26
|
-
import { CourseDetailDialog } from '@olea-bps/components';
|
|
27
26
|
import moment from 'moment';
|
|
28
27
|
import 'moment/locale/de';
|
|
29
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olea-bps/components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Consolidated components for OLEA",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": "https://github.com/tuc-urz/olea.git",
|
|
@@ -23,11 +23,10 @@
|
|
|
23
23
|
"@olea-bps/context-timetable": "^1.0.0",
|
|
24
24
|
"moment": "^2.29.4",
|
|
25
25
|
"react-native-tab-view": "^4.1.3",
|
|
26
|
-
"expo-linear-gradient": "
|
|
26
|
+
"expo-linear-gradient": "~15.0.7",
|
|
27
27
|
"@olea-bps/react-native-webview-autoheight": "^1.0.0",
|
|
28
|
-
"react-native-webview": "13.
|
|
29
|
-
"@react-native-community/netinfo": "^11.4.1"
|
|
30
|
-
"@olea-bps/components": "^1.0.0"
|
|
28
|
+
"react-native-webview": "13.16.0",
|
|
29
|
+
"@react-native-community/netinfo": "^11.4.1"
|
|
31
30
|
},
|
|
32
31
|
"peerDependencies": {
|
|
33
32
|
"react": "^19.0.0",
|