@fto-consult/expo-ui 2.37.0 → 2.37.2

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.0",
3
+ "version": "2.37.2",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -394,8 +394,8 @@ const DatagridFactory = (Factory)=>{
394
394
  filter = defaultFunc(filter,x=>true);
395
395
  const showFooters = this.canShowFooters();
396
396
  let restItems = [];
397
-
398
- /*if(max && this.isSelectableMultiple()){
397
+ const max = this.getMaxSelectableRows();
398
+ if(max && this.isSelectableMultiple()){
399
399
  max = max.formatNumber();
400
400
  restItems = [
401
401
  {
@@ -413,7 +413,7 @@ const DatagridFactory = (Factory)=>{
413
413
  icon :"select"
414
414
  }
415
415
  ]
416
- }*/
416
+ }
417
417
  const {y} = this.state.layout;
418
418
  const {height:winheight,width:winWidth} = Dimensions.get("window");
419
419
  const containerHeight = winheight - y;
@@ -528,8 +528,8 @@ const DatagridFactory = (Factory)=>{
528
528
  {this.renderSectionListMenu()}
529
529
  {this.renderDisplayTypes()}
530
530
  {this.renderAggregatorFunctionsMenu()}
531
- {!canRenderChart ? <RenderType /> : null}
532
531
  {this.renderExportableMenu()}
532
+ {!canRenderChart ? <RenderType /> : null}
533
533
  {/*filters !== false && <td ><LocalFilter title = {this.props.title} fields ={this.state.columns} onChange={this.onLocalFiltersChange.bind(this)}/></td>*/}
534
534
  </View>
535
535
  </ScrollView>
@@ -26,10 +26,10 @@ const ScrollViewComponent = React.forwardRef((props,ref) => {
26
26
  APP.off(APP.EVENTS.RESIZE_PAGE,onResizePage);
27
27
  }
28
28
  },[])
29
- const showIndicator = !isTouchDevice() || isDesktopMedia();
29
+ const showIndicator = true;//!isTouchDevice() || isDesktopMedia();
30
30
  return virtualized ? <FlatList
31
- showsHorizontalScrollIndicator = {showIndicator}
32
- showsVerticalScrollIndicator={showIndicator}
31
+ //showsHorizontalScrollIndicator = {showIndicator}
32
+ //showsVerticalScrollIndicator={showIndicator}
33
33
  {...rest}
34
34
  ref = {ref}
35
35
  testID = {testID}
@@ -40,8 +40,10 @@ const ScrollViewComponent = React.forwardRef((props,ref) => {
40
40
  contentContainerStyle = {[!isNative && {flex:1,flexGrow: 1,maxHeight:Math.max(height-100,250)},rest.contentContainerStyle]}
41
41
  ListHeaderComponent={() => <View testID={testID+'_FlatListContent'} {...cProps} mediaQueryUpdateNativeProps = {mediaQueryUpdateNativeProps}
42
42
  >{children}</View>}
43
- /> : <ScrollView showsHorizontalScrollIndicator = {showIndicator}
44
- showsVerticalScrollIndicator={showIndicator} ref={ref} {...rest} testID={testID} children={children}/>
43
+ /> : <ScrollView
44
+ //showsHorizontalScrollIndicator = {showIndicator}
45
+ //showsVerticalScrollIndicator={showIndicator}
46
+ ref={ref} {...rest} testID={testID} children={children}/>
45
47
  });
46
48
 
47
49
  ScrollViewComponent.displayName = "ScrollViewComponent";