@fto-consult/expo-ui 6.73.1 → 6.73.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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fto-consult/expo-ui",
|
3
|
-
"version": "6.73.
|
3
|
+
"version": "6.73.3",
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
5
|
"main": "main",
|
6
6
|
"scripts": {
|
@@ -71,7 +71,7 @@
|
|
71
71
|
"@expo/html-elements": "^0.5.1",
|
72
72
|
"@expo/vector-icons": "^13.0.0",
|
73
73
|
"@faker-js/faker": "^8.0.2",
|
74
|
-
"@fto-consult/common": "^3.60.
|
74
|
+
"@fto-consult/common": "^3.60.4",
|
75
75
|
"@pchmn/expo-material3-theme": "^1.3.1",
|
76
76
|
"@react-native-async-storage/async-storage": "1.18.2",
|
77
77
|
"@react-native-community/datetimepicker": "7.2.0",
|
@@ -166,7 +166,7 @@ const SWRDatagridComponent = React.forwardRef((props,ref)=>{
|
|
166
166
|
testID = defaultStr(testID,"RNSWRDatagridComponent");
|
167
167
|
React.useEffect(()=>{
|
168
168
|
showProgressRef.current = false;
|
169
|
-
}
|
169
|
+
});
|
170
170
|
const {error, isValidating,isLoading,data:result,refresh} = useSWR(fetchPath,{
|
171
171
|
fetcher : (url,opts)=>{
|
172
172
|
if(!isInitializedRef.current) {
|
@@ -12,7 +12,7 @@ import { screenName as aboutScreenName} from "$escreens/Help/About";
|
|
12
12
|
import theme from "$theme";
|
13
13
|
import APP from "$capp/instance";
|
14
14
|
import useExpoUI from "$econtext/hooks";
|
15
|
-
import Auth,{useIsSignedIn} from "$cauth";
|
15
|
+
import Auth,{useIsSignedIn,tableDataPerms} from "$cauth";
|
16
16
|
import {getTableDataListRouteName} from "$enavigation/utils";
|
17
17
|
import {isValidElement,usePrevious} from "$react";
|
18
18
|
const useGetItems = (options)=>{
|
@@ -69,6 +69,7 @@ const useGetItems = (options)=>{
|
|
69
69
|
if(!isObj(table) || !isNonNullString(table.drawerSection)) return null;
|
70
70
|
const tableName = defaultStr(table.table,table.tableName,index).trim();
|
71
71
|
if(typeof table.showInDrawer =='function' && table.showInDrawer() === false) return;
|
72
|
+
console.log(Auth.isTableDataAllowed({table:tableName})," is table data allowed ",tableDataPerms)
|
72
73
|
if(!tableName || table.showInDrawer === false || !Auth.isTableDataAllowed({table:tableName})){
|
73
74
|
return;
|
74
75
|
}
|