@fto-consult/expo-ui 8.24.1 → 8.24.3
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/babel.config.js +1 -1
- package/package.json +1 -2
- package/src/App.js +1 -1
- package/src/components/Table/index.js +4 -3
package/babel.config.js
CHANGED
@@ -13,7 +13,7 @@ module.exports = function(api,opts) {
|
|
13
13
|
}
|
14
14
|
/*** par défaut, les variables d'environnements sont stockés dans le fichier .env situé à la racine du projet, référencée par la prop base */
|
15
15
|
const alias = require("./babel.config.alias")(options);
|
16
|
-
if(!isWeb){
|
16
|
+
if(false && !isWeb){
|
17
17
|
alias.uuid = path.resolve(__dirname,"src","uuid");
|
18
18
|
}
|
19
19
|
if(typeof options.aliasMutator =="function"){
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fto-consult/expo-ui",
|
3
|
-
"version": "8.24.
|
3
|
+
"version": "8.24.3",
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
5
|
"scripts": {
|
6
6
|
"clear-npx-cache": "npx clear-npx-cache",
|
@@ -86,7 +86,6 @@
|
|
86
86
|
"react-native-mime-types": "^2.4.0",
|
87
87
|
"react-native-paper": "^5.12.3",
|
88
88
|
"react-native-paper-dates": "^0.21.8",
|
89
|
-
"react-native-uuid": "^2.0.1",
|
90
89
|
"react-native-web": "^0.19.10",
|
91
90
|
"react-virtuoso": "^4.6.3",
|
92
91
|
"readable-stream": "^4.5.2",
|
package/src/App.js
CHANGED
@@ -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(
|
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 :
|
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){
|