@fto-consult/expo-ui 8.77.3 → 8.78.1
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.
|
3
|
+
"version": "8.78.1",
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
5
|
"react-native-paper-doc": "https://github.com/callstack/react-native-paper/tree/main/docs/docs/guides",
|
6
6
|
"scripts": {
|
@@ -70,7 +70,7 @@
|
|
70
70
|
"dependencies": {
|
71
71
|
"@emotion/react": "^11.11.1",
|
72
72
|
"@faker-js/faker": "^8.0.2",
|
73
|
-
"@fto-consult/common": "^4.
|
73
|
+
"@fto-consult/common": "^4.51.0",
|
74
74
|
"@fto-consult/expo-ui": "^8.73.1",
|
75
75
|
"apexcharts": "^3.49.0",
|
76
76
|
"file-saver": "^2.0.5",
|
@@ -14,8 +14,9 @@ export const getSearchTimeout = (itemCount)=>{
|
|
14
14
|
|
15
15
|
/**** voir si le champ de recherche du composant peut être autofocus enf onction du nombre d'items et du type d'environnement */
|
16
16
|
export const canAutoFocusSearchField = ({visible,items})=>{
|
17
|
-
const count = typeof items =='number'? items : typeof (items) === 'object' ? Object.size(items) : 0;
|
18
17
|
if(!visible) return false;
|
18
|
+
const count = typeof items =='number'? items : typeof (items) === 'object' ? Object.size(items) : 0;
|
19
|
+
return true;///on pourra toujours autoFocus les dropdown Item
|
19
20
|
const ret = count > MAX_AUTO_FOCUS_ITEMS && true || false;
|
20
21
|
if(!isNativeMobile() && !isTouchDevice()) return true;
|
21
22
|
return isNativeMobile()? ret : false;
|