@fto-consult/expo-ui 6.73.13 → 6.73.15

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.
@@ -24,9 +24,6 @@ export default function AppMainEntry(){
24
24
  drawerItemsMutator : (drawerItems)=>{
25
25
  return drawerItems;
26
26
  },
27
- datagrid : {
28
- ///les props par défaut à passer au composant SWRDatagrid
29
- },
30
27
  screenOptions : {},//les options du composant Stack.Navigator de react-navigation, voir https://reactnavigation.org/docs/native-stack-navigator/
31
28
  }}
32
29
  auth = {{
@@ -35,6 +32,9 @@ export default function AppMainEntry(){
35
32
  profilePropsMutator : ({fields,...props})=>({fields,...props}),//la fonction permettant de muter les champs liés à l'écran de mise à jour d'un profil utilisateur
36
33
  }}
37
34
  components = {{
35
+ datagrid : {
36
+ ///les props par défaut à passer au composant SWRDatagrid
37
+ },
38
38
  /**
39
39
  * ///le composant permettant de faire office de provider principal de l'application,
40
40
  //ce composatnn permet de wrapper le contenu principal de l'application, les utilitaires de navigation, de la boîte de dialogue et bien d'autre ne doivent pas être utilisé
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "6.73.13",
3
+ "version": "6.73.15",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "main",
6
6
  "scripts": {
@@ -220,7 +220,7 @@ const SWRDatagridComponent = React.forwardRef((props,ref)=>{
220
220
  dataRef.current = data;
221
221
  totalRef.current = total;
222
222
  return {data,total};
223
- },[result,customIsLoading,isLoading])
223
+ },[result,loading])
224
224
  React.useEffect(()=>{
225
225
  setTimeout(x=>{
226
226
  if(error && innerRef.current && innerRef.current.isLoading && innerRef.current.isLoading()){
@@ -23,7 +23,7 @@ const TableDataSelectField = React.forwardRef(({foreignKeyColumn,foreignKeyLabel
23
23
  props.data = defaultObj(props.data);
24
24
  const type = defaultStr(props.type)?.toLowerCase();
25
25
  isStructData = isStructData || type?.replaceAll("-","").replaceAll("_","").trim().contains("structdata");
26
- const {getTableData:appGetForeignKeyTable,getStructData} = useApp();
26
+ const {getTableData:appGetForeignKeyTable,getStructData,components:{datagrid}} = useApp();
27
27
  if(!foreignKeyColumn && isNonNullString(props.field)){
28
28
  foreignKeyColumn = props.field;
29
29
  }
@@ -37,7 +37,7 @@ const TableDataSelectField = React.forwardRef(({foreignKeyColumn,foreignKeyLabel
37
37
  }
38
38
  }
39
39
  const getForeignKeyTable = typeof cGetForeignKeyTable =='function'? cGetForeignKeyTable : isStructData ? getStructData: appGetForeignKeyTable;
40
- convertFiltersToSQL = defaultVal(convertFiltersToSQL);
40
+ convertFiltersToSQL = defaultBool(convertFiltersToSQL,datagrid?.convertFiltersToSQL);
41
41
  const foreignKeyTableStr = defaultStr(foreignKeyTable,props.tableName,props.table);
42
42
  if(typeof getForeignKeyTable !=='function'){
43
43
  console.error("la fonction getTableData non définie des les paramètres d'initialisation de l'application!!! Rassurez vous d'avoir définier cette fonction!!, options : foreignKeyTable:",foreignKeyTable,"foreignKeyColumn:",foreignKeyColumn,props)