@fto-consult/expo-ui 6.65.5 → 6.65.7
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/App.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fto-consult/expo-ui",
|
3
|
-
"version": "6.65.
|
3
|
+
"version": "6.65.7",
|
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.55.
|
74
|
+
"@fto-consult/common": "^3.55.6",
|
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",
|
package/src/context/Provider.js
CHANGED
@@ -7,7 +7,7 @@ import {colorsAlias,Colors} from "$theme";
|
|
7
7
|
import {isObj,isNonNullString,defaultStr,extendObj} from "$cutils";
|
8
8
|
import {getMainScreens} from "$escreens/mainScreens";
|
9
9
|
import {ExpoUIContext} from "./hooks";
|
10
|
-
import {enableAuth,disableAuth} from "$cauth/
|
10
|
+
import {enableAuth,disableAuth} from "$cauth/perms";
|
11
11
|
import Login from "$eauth/Login";
|
12
12
|
import {modes} from "$ecomponents/TextField";
|
13
13
|
import {isMobileMedia} from "$cdimensions";
|
@@ -73,7 +73,7 @@ const useGetItems = (options)=>{
|
|
73
73
|
if(!isObj(table) || !isNonNullString(table.drawerSection)) return null;
|
74
74
|
const tableName = defaultStr(table.table,table.tableName,index).trim();
|
75
75
|
if(typeof table.showInDrawer =='function' && table.showInDrawer() === false) return;
|
76
|
-
if(!tableName || table.showInDrawer === false || !Auth.isTableDataAllowed({
|
76
|
+
if(!tableName || table.showInDrawer === false || !Auth.isTableDataAllowed({table:tableName})){
|
77
77
|
return;
|
78
78
|
}
|
79
79
|
if(isNonNullString(table.perm) && !Auth.isAllowedFromStr(table.perm)) return;
|
@@ -130,7 +130,6 @@ const useGetItems = (options)=>{
|
|
130
130
|
dashboard : dash?.showInDrawer === false || typeof dash.showInDrawer ==='function' && dash.showInDrawer() === false ? null : dash,
|
131
131
|
...items,
|
132
132
|
};
|
133
|
-
console.log(drawerSections," dddd is d sections for ",drawerItems);
|
134
133
|
if(typeof drawerItemsMutator ==='function'){
|
135
134
|
items = drawerItemsMutator(items,{drawerItems,drawerSections});
|
136
135
|
}
|