@fto-consult/expo-ui 8.24.2 → 8.25.0

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": "8.24.2",
3
+ "version": "8.25.0",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -68,7 +68,7 @@
68
68
  "dependencies": {
69
69
  "@emotion/react": "^11.11.1",
70
70
  "@faker-js/faker": "^8.0.2",
71
- "@fto-consult/common": "^4.24.0",
71
+ "@fto-consult/common": "^4.25.0",
72
72
  "@fto-consult/node-utils": "^1.4.7",
73
73
  "apexcharts": "^3.45.2",
74
74
  "crypto-browserify": "^3.12.0",
package/src/App.js CHANGED
@@ -2,7 +2,6 @@ import session from "$session";
2
2
  import './uuid/deps';
3
3
  import {useState,useEffect} from "$react";
4
4
  import Provider from "$econtext/Provider";
5
- import {isMobileNative} from "$cplatform";
6
5
  import App from "./AppEntry";
7
6
  /****
8
7
  * les options sont de la forme :
@@ -62,8 +62,8 @@ const TableComponent = React.forwardRef(({containerProps,tableHeadId,fixedHeader
62
62
  const listRef = React.useRef(null),scrollViewRef = React.useRef(null),headerScrollViewRef = React.useRef(null);
63
63
  const layoutRef = React.useRef({});
64
64
  const {testID,withDatagridContext,getRowByIndex,itemsChanged,hasFooters:stateHasFooters,bordered,totalWidths,keyExtractor,items,data} = useTable();
65
- const hasData = !!Object.size(data,true);
66
- const emptyData = !hasData && renderListContent === false ?null : typeof renderEmpty =='function' ? renderEmpty() : null;
65
+ const hasData = !!Object.size(items,true);
66
+ const emptyData = !hasData && (renderListContent === false ?null : typeof renderEmpty =='function' ? renderEmpty() : null) || null;
67
67
  const hasEmptyData = emptyData && React.isValidElement(emptyData);
68
68
  const emptyContent = <View onRender={onComponentRender} testID={testID+"_EmptyData"} style={styles.hasNotData}>
69
69
  {emptyData}
@@ -165,7 +165,8 @@ const TableComponent = React.forwardRef(({containerProps,tableHeadId,fixedHeader
165
165
  </View>
166
166
  </ScrollView>
167
167
  </RNView>}
168
- {hasEmptyData && isNative ? emptyContent : <ScrollNative {...scrollViewProps} scrollEventThrottle = {scrollEventThrottle} horizontal contentContainerStyle={[scrollContentContainerStyle,scrollViewProps.contentContainerStyle,{height:'100%'}]} showsVerticalScrollIndicator={false}
168
+ {hasEmptyData && isNative ? emptyContent : null}
169
+ {<ScrollNative {...scrollViewProps} scrollEventThrottle = {scrollEventThrottle} horizontal contentContainerStyle={[scrollContentContainerStyle,scrollViewProps.contentContainerStyle,{height:'100%'}]} showsVerticalScrollIndicator={false}
169
170
  onScroll = {getOnScrollCb([headerScrollViewRef,footerScrollViewRef],null,(args)=>{
170
171
  const nativeEvent = args.nativeEvent;
171
172
  if(absoluteScrollViewRef.current && absoluteScrollViewRef.current.checkVisibility){