@fto-consult/expo-ui 6.73.6 → 6.73.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "6.73.6",
3
+ "version": "6.73.7",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "main",
6
6
  "scripts": {
@@ -3927,6 +3927,7 @@ CommonDatagridComponent.propTypes = {
3927
3927
  data : PropTypes.oneOfType([PropTypes.array, PropTypes.func,PropTypes.object]),//.isRequired,
3928
3928
  /****
3929
3929
  la prop column def contient dans la propriété datagrid, la prop maxItemsToRender, le nombre d'items maximal à rendre pour le composant de type select table data multiple
3930
+ la prop column def de la colonne de type number, qui contient dans la prop datagrid, la fonction render doit retourner un nombre pour otenir les valeur léie à ladite colonne
3930
3931
  */
3931
3932
  columns:PropTypes.oneOfType([PropTypes.array,PropTypes.object]),//.isRequired,
3932
3933
  selectable : PropTypes.bool, //si les lignes sont sélectionnables,
@@ -13,6 +13,12 @@ export const getFooterColumnValue = ({data,columnDef,field,result,columnField})
13
13
  columnDef = defaultObj(columnDef);
14
14
  columnField = defaultStr(columnField,columnDef.field,field);
15
15
  let val = data[columnField];
16
+ if(typeof val !=='number' && isObj(columnDef.datagrid) && typeof columnDef.datagrid.render =='function'){
17
+ const v = columnDef.datagrid.render({rowData:data,data,isDatagridFooter:true,columnDef,columnField,action:"footer",isFooterRendering:true});
18
+ if(typeof v ==='number'){
19
+ val = v;
20
+ }
21
+ }
16
22
  if(typeof columnDef.multiplicater ==='function'){
17
23
  val = defaultDecimal(columnDef.multiplicater({value:val,columnField,field,columnDef,rowData:data,item:data}),val)
18
24
  }