@fto-consult/expo-ui 2.49.4 → 2.49.5

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": "2.49.4",
3
+ "version": "2.49.5",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -561,7 +561,7 @@ export default class CommonDatagridComponent extends AppComponent {
561
561
  callSRowCallback({selected,row,rowIndex,key,cb}){
562
562
  let count = Object.size(this.selectedRows);
563
563
  let sArg = this.getActionsArgs(selected);
564
- sArg.count = count;
564
+ sArg.count = sArg.selectedRowsCount = count;
565
565
  sArg.rowIndex = sArg.index = rowIndex;
566
566
  sArg.rowKey = key;
567
567
  if(count >0){
@@ -581,11 +581,11 @@ export default class CommonDatagridComponent extends AppComponent {
581
581
  }
582
582
  } else {
583
583
  if(count > 0 && isFunction(this.props.onRowsDeselected)){
584
- this.props.onRowsDeselected.call(this,{context:this,props:this.props});
584
+ this.props.onRowsDeselected.call(this,{...sArg,context:this,props:this.props});
585
585
  }
586
586
  }
587
587
  if(isFunction(cb)){
588
- cb(selected,row,rowIndex,{context:this})
588
+ cb(selected,row,rowIndex,{...sArg,context:this})
589
589
  }
590
590
  }
591
591
  toggleSelectableColumnCheckbox(update){
@@ -825,6 +825,7 @@ export default class CommonDatagridComponent extends AppComponent {
825
825
  allData : this.INITIAL_STATE.data,
826
826
  props : this.props,
827
827
  selectedRows : this.selectedRows,
828
+ selectedRowsCount : this.selectedRowsCount,
828
829
  context:this,
829
830
  isMobile : isMobileOrTabletMedia(),
830
831
  Auth,