@fto-consult/expo-ui 2.37.2 → 2.37.4

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.37.2",
3
+ "version": "2.37.4",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -394,7 +394,7 @@ const DatagridFactory = (Factory)=>{
394
394
  filter = defaultFunc(filter,x=>true);
395
395
  const showFooters = this.canShowFooters();
396
396
  let restItems = [];
397
- const max = this.getMaxSelectableRows();
397
+ let max = this.getMaxSelectableRows();
398
398
  if(max && this.isSelectableMultiple()){
399
399
  max = max.formatNumber();
400
400
  restItems = [
@@ -432,7 +432,7 @@ const DatagridFactory = (Factory)=>{
432
432
  } = this.preparedColumns;
433
433
  const hasFootersFields = this.hasFootersFields();
434
434
  const datagridHeader = <View testID={testID+"_HeaderContainer"} pointerEvents={pointerEvents} style={[styles.datagridHeader]}>
435
- <ScrollView testID={testID+"_HeaderScrollView"} horizontal showsHorizontalScrollIndicator = {!isTouchDevice()} contentContainerStyle={StyleSheet.flatten([styles.contentContainerStyle,styles.minW100])}>
435
+ <ScrollView testID={testID+"_HeaderScrollView"} horizontal contentContainerStyle={StyleSheet.flatten([styles.contentContainerStyle,styles.minW100])}>
436
436
  <View testID={testID+"_HeaderContentCntainer"} style={[styles.table,styles.pullRight]}>
437
437
  {dbSelector}
438
438
  <View testID={testID+"_HeaderQueryLimit"} style={[styles.paginationItem]}>
@@ -551,7 +551,7 @@ const DatagridFactory = (Factory)=>{
551
551
  {!canRenderChart && showFooters ? (
552
552
  <View testID={testID+"_FooterContainer"} pointerEvents={pointerEvents} style={[theme.styles.justifyContentCenter,theme.styles.pv1]}>
553
553
  <View testID={testID+"_FooterContentContainer"} style={[styles.footersContainer]}>
554
- <ScrollView testID={testID+"_FooterScrollView"} horizontal showsHorizontalScrollIndicator = {!isTouchDevice()} contentContainerStyle={[styles.contentContainerStyle]}>
554
+ <ScrollView testID={testID+"_FooterScrollView"} horizontal contentContainerStyle={[styles.contentContainerStyle]}>
555
555
  <View testID={testID+"_FooterContent"} style={[styles.table,theme.styles.p1]}>
556
556
  {Object.mapToArray(this.getFooterValues(),(footer,field)=>{
557
557
  return <Footer
@@ -2787,7 +2787,7 @@ export default class CommonDatagridComponent extends AppComponent {
2787
2787
  abreviate = {this.state.abreviateValues}
2788
2788
  aggregatorFunction = {this.getActiveAggregatorFunction().code}
2789
2789
  aggregatorFunctions = {this.aggregatorFunctions}
2790
- displayLabel = {false}
2790
+ displayLabel = {this.isAccordion()}
2791
2791
  //anchorProps = {{style:[theme.styles.ph1,theme.styles.mh05]}}
2792
2792
  />
2793
2793
  </View>)
@@ -2798,7 +2798,7 @@ export default class CommonDatagridComponent extends AppComponent {
2798
2798
  return <View testID={testID+"_ContentContainer"} style={[theme.styles.w100,isA && this.state.displayOnlySectionListHeaders && {borderTopColor:theme.colors.divider,borderTopWidth:1},isA ? [theme.styles.ph2,theme.styles.pt1] : [theme.styles.pt1,theme.styles.ph1],theme.styles.justifyContentCenter,theme.styles.alignItemsCenter,theme.styles.pb1,!cells && theme.styles.ml1,theme.styles.mr1,cStyle]}>
2799
2799
  <Label testID={testID+"_Label"} splitText numberOfLines={3} textBold style={[theme.styles.w100,{color:theme.colors.primaryOnSurface,fontSize:isA?15 :16},lStyle]}>{label}</Label>
2800
2800
  {cells ? <View testID={testID+"_TableRow"} style = {[theme.styles.w100,theme.styles.row,isA && theme.styles.pt1,theme.styles.alignItemsFlexStart]}
2801
- >{cells}</View> : null}
2801
+ >{this.isAccordion() ? <ScrollView testID={testID+"_ScrollView"} horizontal>{cells}</ScrollView> : cells}</View> : null}
2802
2802
  </View>
2803
2803
  }
2804
2804
  isRowSelected(rowKey,rowIndex){