@fto-consult/expo-ui 6.26.7 → 6.26.8
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
|
@@ -75,7 +75,7 @@ const DatagridAccordionRow = React.forwardRef((props,ref)=>{
|
|
|
75
75
|
const wrapStyle = React.useMemo(()=>{
|
|
76
76
|
return getRowStyle({row:item,index,selected,numColumns,isAccordion:true,rowIndex:index});
|
|
77
77
|
},[selected,numColumns]);
|
|
78
|
-
const viewWrapperStyle = [];
|
|
78
|
+
const viewWrapperStyle = [selectable !== false && theme.styles.cursorPointer];
|
|
79
79
|
if(selected) {
|
|
80
80
|
const handleAvatarRowToggle = (event)=>{
|
|
81
81
|
React.stopEventPropagation(event);
|
|
@@ -122,6 +122,7 @@ const DatagridAccordionRow = React.forwardRef((props,ref)=>{
|
|
|
122
122
|
rowProps.style,
|
|
123
123
|
numColumns > 1 && styles.multiColumns,
|
|
124
124
|
selected && styles.selected,
|
|
125
|
+
selectable !== false && theme.styles.cursorPointer,
|
|
125
126
|
//style,
|
|
126
127
|
]}
|
|
127
128
|
ref = {React.useMergeRefs(ref,innerRef)}
|
|
@@ -230,6 +231,7 @@ const styles = StyleSheet.create({
|
|
|
230
231
|
alignItems : 'center',
|
|
231
232
|
justifyContent : 'center',
|
|
232
233
|
paddingVertical : 10,
|
|
234
|
+
width : "100%",
|
|
233
235
|
},
|
|
234
236
|
right : {
|
|
235
237
|
marginHorizontal : 0,
|
|
@@ -401,7 +401,7 @@ const DatagridFactory = (Factory)=>{
|
|
|
401
401
|
const hasFootersFields = this.hasFootersFields();
|
|
402
402
|
const datagridHeader = <View testID={testID+"_HeaderContainer"} pointerEvents={pointerEvents} style={[styles.datagridHeader]}>
|
|
403
403
|
<ScrollView testID={testID+"_HeaderScrollView"} horizontal contentContainerStyle={StyleSheet.flatten([styles.contentContainerStyle,styles.minW100])}>
|
|
404
|
-
<View testID={testID+"
|
|
404
|
+
<View testID={testID+"_HeaderContentContainer"} style={[styles.table,styles.pullRight]}>
|
|
405
405
|
{/*this.renderDataSourceSelector()*/}
|
|
406
406
|
<View testID={testID+"_HeaderQueryLimit"} style={[styles.paginationItem]}>
|
|
407
407
|
{this.renderQueryLimit(this.getStateDataSize().formatNumber())}
|
|
@@ -552,6 +552,7 @@ const DatagridFactory = (Factory)=>{
|
|
|
552
552
|
items = {this.state.data}
|
|
553
553
|
isLoading = {isLoading}
|
|
554
554
|
ref = {this.listRef}
|
|
555
|
+
style = {styles.list}
|
|
555
556
|
backToTopRef = {backToTopRef?(e)=>{
|
|
556
557
|
return this.backToTopRef.current;
|
|
557
558
|
}:false}
|
|
@@ -605,13 +606,15 @@ const styles = StyleSheet.create({
|
|
|
605
606
|
alignItems : 'center',
|
|
606
607
|
maxHeight : 60
|
|
607
608
|
},
|
|
609
|
+
list : {
|
|
610
|
+
paddingHorizontal : 5,
|
|
611
|
+
},
|
|
608
612
|
container : {
|
|
609
613
|
position : 'relative',
|
|
610
614
|
flexDirection :'column',
|
|
611
615
|
justifyContent : 'flex-start',
|
|
612
616
|
width : '100%',
|
|
613
617
|
flex : 1,
|
|
614
|
-
paddingHorizontal : isNativeMobile()? 5:1,
|
|
615
618
|
},
|
|
616
619
|
accordionHeader : {
|
|
617
620
|
paddingTop : 0,
|
|
@@ -7,6 +7,7 @@ import KeyboardAvoidingView from "$ecomponents/KeyboardAvoidingView";
|
|
|
7
7
|
import { StyleSheet } from "react-native";
|
|
8
8
|
import APP from "$capp/instance";
|
|
9
9
|
import PropTypes from "prop-types";
|
|
10
|
+
import View from "$ecomponents/View";
|
|
10
11
|
|
|
11
12
|
/**** règles d'utilisation :
|
|
12
13
|
1. les forms doivent toujours avoir un nom : chaine de caractère unique pour l'application et non null
|
|
@@ -105,9 +106,9 @@ export default class FormComponent extends React.AppComponent {
|
|
|
105
106
|
...rest
|
|
106
107
|
} = this.props;
|
|
107
108
|
testID = defaultStr(testID,"RN_FormComponent");
|
|
108
|
-
return <
|
|
109
|
+
return <View {...rest} testID={testID+"_FormKeyboardAvoidingView"} style={[styles.container,rest.style]}>
|
|
109
110
|
{this.props.children}
|
|
110
|
-
</
|
|
111
|
+
</View>
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
114
|
const isField = (Component)=>{
|