@fto-consult/expo-ui 2.11.1 → 2.11.2
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/package.json
CHANGED
|
@@ -1510,7 +1510,7 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
UNSAFE_componentWillReceiveProps(nextProps){
|
|
1512
1512
|
if(!isObjOrArray(nextProps.data) || nextProps.data == this.props.data || stableHash(nextProps.data) == stableHash(this.props.data)) {
|
|
1513
|
-
if(nextProps.isLoading !== this.props.isLoading && typeof nextProps.isLoading =='boolean'){
|
|
1513
|
+
if( typeof this.props.isLoading=='boolean' && nextProps.isLoading !== this.props.isLoading && typeof nextProps.isLoading =='boolean'){
|
|
1514
1514
|
this.setIsLoading(nextProps.isLoading)
|
|
1515
1515
|
}
|
|
1516
1516
|
return;
|
|
@@ -1536,6 +1536,7 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
|
1536
1536
|
renderHeaderCell({columnDef,columnField}){
|
|
1537
1537
|
if(this.isSelectableColumn(columnDef,columnField)){
|
|
1538
1538
|
return <Checkbox
|
|
1539
|
+
testID = "RN_SelectColumnHeaderCell"
|
|
1539
1540
|
checked ={this.isAllRowsSelected()?true:false}
|
|
1540
1541
|
key = {this.getSelectableColumName()}
|
|
1541
1542
|
secondaryOnCheck
|
|
@@ -404,7 +404,7 @@ const styles = StyleSheet.create({
|
|
|
404
404
|
selectableColumn : {
|
|
405
405
|
width : SELECTABLE_COLUMN_WIDTH,
|
|
406
406
|
//justifyContent:'center',
|
|
407
|
-
alignItems : '
|
|
407
|
+
alignItems : 'center',
|
|
408
408
|
paddingVertical : 0,
|
|
409
409
|
marginVertical : 0,
|
|
410
410
|
paddingHorizontal : 0,
|
|
@@ -65,27 +65,27 @@ export const getImputedBackgroundStyle = (rowData)=>{
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
export const ROW_APPROVED_STYLE = {
|
|
68
|
-
borderRightColor : APPROVED_COLOR,
|
|
69
|
-
borderRightWidth : 4,
|
|
70
|
-
marginRight : MARGIN_HORIZONTAL
|
|
68
|
+
//borderRightColor : APPROVED_COLOR,
|
|
69
|
+
//borderRightWidth : 4,
|
|
70
|
+
//marginRight : MARGIN_HORIZONTAL
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
export const ROW_ARCHIVED_STYLE = {
|
|
74
|
-
borderBottomColor : ARCHIVED_COLOR,
|
|
75
|
-
borderBottomWidth :4,
|
|
74
|
+
//borderBottomColor : ARCHIVED_COLOR,
|
|
75
|
+
//borderBottomWidth :4,
|
|
76
76
|
//marginBottom : MARGIN_VERTICAL,
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
export const ROW_PAID_STYLE = {
|
|
80
|
-
borderLeftColor : PAID_COLOR,
|
|
81
|
-
borderLeftWidth : 5,
|
|
82
|
-
marginLeft : MARGIN_HORIZONTAL
|
|
80
|
+
//borderLeftColor : PAID_COLOR,
|
|
81
|
+
//borderLeftWidth : 5,
|
|
82
|
+
//marginLeft : MARGIN_HORIZONTAL
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
export const ROW_IMPUTED_STYLE = {
|
|
86
|
-
borderLeftColor : IMPUTED_COLOR,
|
|
87
|
-
borderLeftWidth : 5,
|
|
88
|
-
marginLeft : MARGIN_HORIZONTAL
|
|
86
|
+
//borderLeftColor : IMPUTED_COLOR,
|
|
87
|
+
//borderLeftWidth : 5,
|
|
88
|
+
//marginLeft : MARGIN_HORIZONTAL
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
export const ROW_ODD_STYLE = {
|
|
@@ -110,7 +110,7 @@ export const ROW_BORDER_STYLE = {
|
|
|
110
110
|
borderRightColor : ROW_BORDER_COLOR,
|
|
111
111
|
borderRightWidth : 0,
|
|
112
112
|
borderTopColor : ROW_BORDER_COLOR,
|
|
113
|
-
borderTopWidth : 0
|
|
113
|
+
borderTopWidth : 0
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
|
|
@@ -166,7 +166,7 @@ export const getRowStyle = ({row,bordered,numColumns,rowData,isAccordion,isTable
|
|
|
166
166
|
if(rowIndex !== undefined){
|
|
167
167
|
style.push(rowIndex%2===0?styles.even : theme.isDark()?styles.oddDark : styles.odd)
|
|
168
168
|
}
|
|
169
|
-
if(selected){
|
|
169
|
+
if(false && selected){
|
|
170
170
|
style.push(styles.selected,{borderBottomWidth:1,borderBottomColor:theme.colors.primary})
|
|
171
171
|
}
|
|
172
172
|
if(paid || row.paid){
|