@plusscommunities/pluss-maintenance-app-forms 6.0.12-beta.0 → 7.0.0-beta.0
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/dist/module/actions/JobActions.js +1 -44
- package/dist/module/actions/JobActions.js.map +1 -1
- package/dist/module/actions/types.js +0 -3
- package/dist/module/actions/types.js.map +1 -1
- package/dist/module/apis/index.js +0 -2
- package/dist/module/apis/index.js.map +1 -1
- package/dist/module/apis/maintenanceActions.js +6 -21
- package/dist/module/apis/maintenanceActions.js.map +1 -1
- package/dist/module/components/FilterPopupMenu.js +18 -34
- package/dist/module/components/FilterPopupMenu.js.map +1 -1
- package/dist/module/components/MaintenanceList.js +56 -47
- package/dist/module/components/MaintenanceList.js.map +1 -1
- package/dist/module/components/MaintenanceListItem.js +27 -40
- package/dist/module/components/MaintenanceListItem.js.map +1 -1
- package/dist/module/components/MaintenanceWidgetItem.js +13 -13
- package/dist/module/components/MaintenanceWidgetItem.js.map +1 -1
- package/dist/module/components/StatusSelectorPopup.js +14 -9
- package/dist/module/components/StatusSelectorPopup.js.map +1 -1
- package/dist/module/components/WidgetSmall.js +3 -7
- package/dist/module/components/WidgetSmall.js.map +1 -1
- package/dist/module/helper.js +25 -39
- package/dist/module/helper.js.map +1 -1
- package/dist/module/reducers/JobsReducer.js +2 -31
- package/dist/module/reducers/JobsReducer.js.map +1 -1
- package/dist/module/screens/JobTypePicker.js +1 -1
- package/dist/module/screens/JobTypePicker.js.map +1 -1
- package/dist/module/screens/RequestDetail.js +19 -91
- package/dist/module/screens/RequestDetail.js.map +1 -1
- package/dist/module/screens/RequestNotes.js +20 -336
- package/dist/module/screens/RequestNotes.js.map +1 -1
- package/dist/module/screens/ServiceRequest.js +1 -1
- package/dist/module/screens/ServiceRequest.js.map +1 -1
- package/dist/module/values.config.a.js +1 -6
- package/dist/module/values.config.a.js.map +1 -1
- package/dist/module/values.config.default.js +1 -6
- package/dist/module/values.config.default.js.map +1 -1
- package/dist/module/values.config.forms.js +1 -6
- package/dist/module/values.config.forms.js.map +1 -1
- package/dist/module/values.config.js +1 -6
- package/dist/module/values.config.js.map +1 -1
- package/package.json +9 -8
- package/src/actions/JobActions.js +1 -53
- package/src/actions/types.js +0 -4
- package/src/apis/index.js +0 -4
- package/src/apis/maintenanceActions.js +6 -18
- package/src/components/FilterPopupMenu.js +21 -40
- package/src/components/MaintenanceList.js +47 -38
- package/src/components/MaintenanceListItem.js +22 -36
- package/src/components/MaintenanceWidgetItem.js +13 -17
- package/src/components/StatusSelectorPopup.js +14 -8
- package/src/components/WidgetSmall.js +3 -5
- package/src/helper.js +21 -50
- package/src/reducers/JobsReducer.js +1 -25
- package/src/screens/JobTypePicker.js +1 -1
- package/src/screens/RequestDetail.js +25 -88
- package/src/screens/RequestNotes.js +22 -342
- package/src/screens/ServiceRequest.js +2 -2
- package/src/values.config.a.js +0 -5
- package/src/values.config.default.js +0 -5
- package/src/values.config.forms.js +0 -5
- package/src/values.config.js +0 -5
- package/dist/module/components/PrioritySelectorPopup.js +0 -82
- package/dist/module/components/PrioritySelectorPopup.js.map +0 -1
- package/src/components/PrioritySelectorPopup.js +0 -79
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import React, { PureComponent } from 'react';
|
|
2
|
-
import { View, StyleSheet, TouchableOpacity, Text } from 'react-native';
|
|
3
|
-
import { connect } from 'react-redux';
|
|
4
|
-
import { jobPriorityOptions } from '../helper';
|
|
5
|
-
import { Components, Colours } from '../core.config';
|
|
6
|
-
|
|
7
|
-
class PrioritySelectorPopup extends PureComponent {
|
|
8
|
-
render() {
|
|
9
|
-
const { title, includeAll, allText, onClose, onSelect } = this.props;
|
|
10
|
-
let priorities = jobPriorityOptions;
|
|
11
|
-
if (includeAll)
|
|
12
|
-
priorities = [
|
|
13
|
-
{
|
|
14
|
-
label: allText || 'Show All',
|
|
15
|
-
color: this.props.colourBrandingMain,
|
|
16
|
-
},
|
|
17
|
-
...priorities,
|
|
18
|
-
];
|
|
19
|
-
|
|
20
|
-
return (
|
|
21
|
-
<Components.MiddlePopup style={[styles.statusPopup, { height: priorities.length * 50 + 40 }]} onClose={onClose}>
|
|
22
|
-
<Text style={styles.statusPopupTitle}>{title || 'Select Priority'}</Text>
|
|
23
|
-
<View style={styles.statusPopupOptionsContainer}>
|
|
24
|
-
{priorities.map(priority => {
|
|
25
|
-
return (
|
|
26
|
-
<TouchableOpacity key={priority.label} onPress={() => onSelect(priority.label)}>
|
|
27
|
-
<View style={[styles.jobStatusContainer, { backgroundColor: priority.color }]}>
|
|
28
|
-
<Text style={styles.jobStatusText}>{priority.label}</Text>
|
|
29
|
-
</View>
|
|
30
|
-
</TouchableOpacity>
|
|
31
|
-
);
|
|
32
|
-
})}
|
|
33
|
-
</View>
|
|
34
|
-
</Components.MiddlePopup>
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const styles = StyleSheet.create({
|
|
40
|
-
statusPopup: {
|
|
41
|
-
width: 160,
|
|
42
|
-
padding: 16,
|
|
43
|
-
borderRadius: 12,
|
|
44
|
-
},
|
|
45
|
-
statusPopupTitle: {
|
|
46
|
-
fontFamily: 'sf-bold',
|
|
47
|
-
color: Colours.TEXT_DARK,
|
|
48
|
-
fontSize: 18,
|
|
49
|
-
marginBottom: 16,
|
|
50
|
-
},
|
|
51
|
-
statusPopupOptionsContainer: {
|
|
52
|
-
flex: 1,
|
|
53
|
-
justifyContent: 'space-between',
|
|
54
|
-
},
|
|
55
|
-
jobStatusContainer: {
|
|
56
|
-
flexDirection: 'row',
|
|
57
|
-
alignItems: 'center',
|
|
58
|
-
justifyContent: 'space-between',
|
|
59
|
-
width: 105,
|
|
60
|
-
height: 30,
|
|
61
|
-
paddingHorizontal: 8,
|
|
62
|
-
borderRadius: 4,
|
|
63
|
-
},
|
|
64
|
-
jobStatusText: {
|
|
65
|
-
color: '#fff',
|
|
66
|
-
textAlign: 'center',
|
|
67
|
-
fontFamily: 'sf-semibold',
|
|
68
|
-
fontSize: 13,
|
|
69
|
-
flex: 1,
|
|
70
|
-
},
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
const mapStateToProps = state => {
|
|
74
|
-
return {
|
|
75
|
-
colourBrandingMain: Colours.getMainBrandingColourFromState(state),
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export default connect(mapStateToProps, {})(PrioritySelectorPopup);
|