@fto-consult/expo-ui 5.0.0 → 5.0.2
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/docs.tools.txt +4 -0
- package/index.js +0 -4
- package/package.json +122 -121
- package/readMe.babel.config.alias.txt +3 -0
- package/src/App.js +3 -4
- package/src/components/Menu/Menu.js +2 -1
- package/electron/package.app.json +0 -55
package/docs.tools.txt
ADDED
package/index.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { registerRootComponent } from "expo";
|
|
2
2
|
import {Platform } from 'react-native';
|
|
3
|
-
import { activateKeepAwake } from 'expo-keep-awake';
|
|
4
3
|
import App from "./src/App";
|
|
5
|
-
if (__DEV__) {
|
|
6
|
-
activateKeepAwake();
|
|
7
|
-
}
|
|
8
4
|
const isWeb = Platform.OS === "web";
|
|
9
5
|
export default function registerApp (options){
|
|
10
6
|
options = options && typeof options =='object' && !Array.isArray(options)? options : {};
|
package/package.json
CHANGED
|
@@ -1,121 +1,122 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fto-consult/expo-ui",
|
|
3
|
-
"version": "5.0.
|
|
4
|
-
"description": "Bibliothèque de composants UI Expo,react-native",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"publish1": "npm publish --access=public",
|
|
8
|
-
"unpublish": "npm -f unpublish @fto-consult/expo-ui",
|
|
9
|
-
"build-web": "",
|
|
10
|
-
"dev": "npx expo start -c --no-minify",
|
|
11
|
-
"start": "npx expo start --dev --no-minify",
|
|
12
|
-
"start-d": "npx expo start -c --no-dev --no-minify",
|
|
13
|
-
"start-p": "npm run start-d",
|
|
14
|
-
"expo-start-client": "npx expo start --dev --no-minify --dev-client",
|
|
15
|
-
"start-m": "npx expo start - c--dev--no -minify",
|
|
16
|
-
"android": "npx expo start --android -c",
|
|
17
|
-
"ios": "npx expo start --ios",
|
|
18
|
-
"web": "npx expo start --web",
|
|
19
|
-
"web-c": "npx expo start --web -c",
|
|
20
|
-
"eject": "expo eject",
|
|
21
|
-
"emulator": "npm run android-emulator",
|
|
22
|
-
"web-server": "npx serve web-build",
|
|
23
|
-
"build-android": "eas build --clear-cache -p android --profile preview",
|
|
24
|
-
"build-android-local": "eas build --platform android --local",
|
|
25
|
-
"build-android-dist": "eas build --clear-cache -p android",
|
|
26
|
-
"build-ios": "eas build --clear-cache -p ios --profile preview",
|
|
27
|
-
"build-ios-dist": "eas build --clear-cache -p ios",
|
|
28
|
-
"install-apk": "adb -s emulator-5554 install myapp.apk",
|
|
29
|
-
"android-emulator": "emulator -avd EMULATOR",
|
|
30
|
-
"flipper": "npx cross-env METRO_SERVER_PORT=19000 E:\\Studies\\react-native\\debugger\\Flipper-win\\Flipper.exe",
|
|
31
|
-
"test:build": "electron-webpack && electron-builder --dir -c.compression=store -c.mac.identity=null",
|
|
32
|
-
"compile-electron": "webpack --env platform=electron",
|
|
33
|
-
"compile-electron-p": "webpack --config ./electron/webpack.config.js --mode=production",
|
|
34
|
-
"electron": "electron ./electron",
|
|
35
|
-
"logcat": "adb -d logcat com.ftc.apps.salite1:E > errors.txt",
|
|
36
|
-
"logcat-export": "adb -d logcat com.ftc.apps.salite1 *:S > logcat.txt",
|
|
37
|
-
"electron-c": "npm run compile-electron && npm run electron",
|
|
38
|
-
"electron-p": "npm run compile-electron-p && npm run electron",
|
|
39
|
-
"update-app-version": "node ./update-app-version.js",
|
|
40
|
-
"find-licenses": "node ./find-licenses.js",
|
|
41
|
-
"fix-dependencies": "expo-cli doctor --fix-dependencies",
|
|
42
|
-
"delete-node-modules": "rimraf ./**/node_modules",
|
|
43
|
-
"modifier-url-remote-git": "git remote set-url origin 'https://borispipo@github.com/borispipo/smart-eneo.git'"
|
|
44
|
-
},
|
|
45
|
-
"bin": "./bin/index.js",
|
|
46
|
-
"repository": {
|
|
47
|
-
"type": "git",
|
|
48
|
-
"url": "git+https://github.com/borispipo/expo-ui.git"
|
|
49
|
-
},
|
|
50
|
-
"keywords": [
|
|
51
|
-
"Expo",
|
|
52
|
-
"React-Native"
|
|
53
|
-
],
|
|
54
|
-
"author": "Boris Fouomene",
|
|
55
|
-
"license": "ISC",
|
|
56
|
-
"bugs": {
|
|
57
|
-
"url": "https://github.com/borispipo/expo-ui/issues"
|
|
58
|
-
},
|
|
59
|
-
"homepage": "https://github.com/borispipo/expo-ui#readme",
|
|
60
|
-
"dependencies": {
|
|
61
|
-
"@emotion/native": "^11.10.0",
|
|
62
|
-
"@expo/html-elements": "^0.2.0",
|
|
63
|
-
"@expo/vector-icons": "^13.0.0",
|
|
64
|
-
"@fto-consult/common": "^2.20.
|
|
65
|
-
"@gorhom/portal": "^1.0.14",
|
|
66
|
-
"@react-native-async-storage/async-storage": "^1.17.11",
|
|
67
|
-
"@react-native-community/datetimepicker": "^6.7.3",
|
|
68
|
-
"@react-native-community/netinfo": "^9.3.7",
|
|
69
|
-
"@react-
|
|
70
|
-
"@react-navigation/native
|
|
71
|
-
"@
|
|
72
|
-
"
|
|
73
|
-
"expo
|
|
74
|
-
"expo-
|
|
75
|
-
"expo-
|
|
76
|
-
"expo-
|
|
77
|
-
"expo-
|
|
78
|
-
"expo-
|
|
79
|
-
"expo-
|
|
80
|
-
"expo-
|
|
81
|
-
"expo-
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"react
|
|
90
|
-
"react-
|
|
91
|
-
"react-
|
|
92
|
-
"react-
|
|
93
|
-
"react-native
|
|
94
|
-
"react-native-
|
|
95
|
-
"react-native-
|
|
96
|
-
"react-native-
|
|
97
|
-
"react-native-
|
|
98
|
-
"react-native-paper
|
|
99
|
-
"react-native-
|
|
100
|
-
"react-native-
|
|
101
|
-
"react-native-
|
|
102
|
-
"react-native-
|
|
103
|
-
"react-native-
|
|
104
|
-
"react-native-
|
|
105
|
-
"react-
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"@babel/
|
|
115
|
-
"@
|
|
116
|
-
"@expo/
|
|
117
|
-
"
|
|
118
|
-
"babel-plugin-
|
|
119
|
-
"babel-plugin-
|
|
120
|
-
|
|
121
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fto-consult/expo-ui",
|
|
3
|
+
"version": "5.0.2",
|
|
4
|
+
"description": "Bibliothèque de composants UI Expo,react-native",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"publish1": "npm publish --access=public",
|
|
8
|
+
"unpublish": "npm -f unpublish @fto-consult/expo-ui",
|
|
9
|
+
"build-web": "",
|
|
10
|
+
"dev": "npx expo start -c --no-minify",
|
|
11
|
+
"start": "npx expo start --dev --no-minify",
|
|
12
|
+
"start-d": "npx expo start -c --no-dev --no-minify",
|
|
13
|
+
"start-p": "npm run start-d",
|
|
14
|
+
"expo-start-client": "npx expo start --dev --no-minify --dev-client",
|
|
15
|
+
"start-m": "npx expo start - c--dev--no -minify",
|
|
16
|
+
"android": "npx expo start --android -c",
|
|
17
|
+
"ios": "npx expo start --ios",
|
|
18
|
+
"web": "npx expo start --web",
|
|
19
|
+
"web-c": "npx expo start --web -c",
|
|
20
|
+
"eject": "expo eject",
|
|
21
|
+
"emulator": "npm run android-emulator",
|
|
22
|
+
"web-server": "npx serve web-build",
|
|
23
|
+
"build-android": "eas build --clear-cache -p android --profile preview",
|
|
24
|
+
"build-android-local": "eas build --platform android --local",
|
|
25
|
+
"build-android-dist": "eas build --clear-cache -p android",
|
|
26
|
+
"build-ios": "eas build --clear-cache -p ios --profile preview",
|
|
27
|
+
"build-ios-dist": "eas build --clear-cache -p ios",
|
|
28
|
+
"install-apk": "adb -s emulator-5554 install myapp.apk",
|
|
29
|
+
"android-emulator": "emulator -avd EMULATOR",
|
|
30
|
+
"flipper": "npx cross-env METRO_SERVER_PORT=19000 E:\\Studies\\react-native\\debugger\\Flipper-win\\Flipper.exe",
|
|
31
|
+
"test:build": "electron-webpack && electron-builder --dir -c.compression=store -c.mac.identity=null",
|
|
32
|
+
"compile-electron": "webpack --env platform=electron",
|
|
33
|
+
"compile-electron-p": "webpack --config ./electron/webpack.config.js --mode=production",
|
|
34
|
+
"electron": "electron ./electron",
|
|
35
|
+
"logcat": "adb -d logcat com.ftc.apps.salite1:E > errors.txt",
|
|
36
|
+
"logcat-export": "adb -d logcat com.ftc.apps.salite1 *:S > logcat.txt",
|
|
37
|
+
"electron-c": "npm run compile-electron && npm run electron",
|
|
38
|
+
"electron-p": "npm run compile-electron-p && npm run electron",
|
|
39
|
+
"update-app-version": "node ./update-app-version.js",
|
|
40
|
+
"find-licenses": "node ./find-licenses.js",
|
|
41
|
+
"fix-dependencies": "expo-cli doctor --fix-dependencies",
|
|
42
|
+
"delete-node-modules": "rimraf ./**/node_modules",
|
|
43
|
+
"modifier-url-remote-git": "git remote set-url origin 'https://borispipo@github.com/borispipo/smart-eneo.git'"
|
|
44
|
+
},
|
|
45
|
+
"bin": "./bin/index.js",
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "git+https://github.com/borispipo/expo-ui.git"
|
|
49
|
+
},
|
|
50
|
+
"keywords": [
|
|
51
|
+
"Expo",
|
|
52
|
+
"React-Native"
|
|
53
|
+
],
|
|
54
|
+
"author": "Boris Fouomene",
|
|
55
|
+
"license": "ISC",
|
|
56
|
+
"bugs": {
|
|
57
|
+
"url": "https://github.com/borispipo/expo-ui/issues"
|
|
58
|
+
},
|
|
59
|
+
"homepage": "https://github.com/borispipo/expo-ui#readme",
|
|
60
|
+
"dependencies": {
|
|
61
|
+
"@emotion/native": "^11.10.0",
|
|
62
|
+
"@expo/html-elements": "^0.2.0",
|
|
63
|
+
"@expo/vector-icons": "^13.0.0",
|
|
64
|
+
"@fto-consult/common": "^2.20.13",
|
|
65
|
+
"@gorhom/portal": "^1.0.14",
|
|
66
|
+
"@react-native-async-storage/async-storage": "^1.17.11",
|
|
67
|
+
"@react-native-community/datetimepicker": "^6.7.3",
|
|
68
|
+
"@react-native-community/netinfo": "^9.3.7",
|
|
69
|
+
"@react-native/assets-registry": "^0.72.0",
|
|
70
|
+
"@react-navigation/native": "^6.1.1",
|
|
71
|
+
"@react-navigation/native-stack": "^6.9.7",
|
|
72
|
+
"@shopify/flash-list": "^1.4.0",
|
|
73
|
+
"expo": "^48.0.5",
|
|
74
|
+
"expo-camera": "~13.2.1",
|
|
75
|
+
"expo-clipboard": "~4.1.1",
|
|
76
|
+
"expo-font": "~11.1.1",
|
|
77
|
+
"expo-image-picker": "~14.1.1",
|
|
78
|
+
"expo-linking": "~4.0.1",
|
|
79
|
+
"expo-sqlite": "~11.1.1",
|
|
80
|
+
"expo-status-bar": "~1.4.4",
|
|
81
|
+
"expo-system-ui": "~2.2.1",
|
|
82
|
+
"expo-web-browser": "~12.1.1",
|
|
83
|
+
"file-saver": "^2.0.5",
|
|
84
|
+
"fs-extra": "^11.1.0",
|
|
85
|
+
"google-libphonenumber": "^3.2.31",
|
|
86
|
+
"htmlparser2-without-node-native": "^3.9.2",
|
|
87
|
+
"mongo-parse": "^2.1.0",
|
|
88
|
+
"prop-types": "^15.8.1",
|
|
89
|
+
"react": "^18.2.0",
|
|
90
|
+
"react-apexcharts": "^1.4.0",
|
|
91
|
+
"react-content-loader": "^6.2.0",
|
|
92
|
+
"react-dom": "^18.2.0",
|
|
93
|
+
"react-native": "^0.71.3",
|
|
94
|
+
"react-native-big-list": "^1.6.0",
|
|
95
|
+
"react-native-blob-util": "^0.17.0",
|
|
96
|
+
"react-native-gesture-handler": "~2.9.0",
|
|
97
|
+
"react-native-mime-types": "^2.3.0",
|
|
98
|
+
"react-native-paper": "^4.12.5",
|
|
99
|
+
"react-native-paper-dates": "^0.9.2",
|
|
100
|
+
"react-native-reanimated": "~2.14.4",
|
|
101
|
+
"react-native-safe-area-context": "^4.5.0",
|
|
102
|
+
"react-native-screens": "~3.20.0",
|
|
103
|
+
"react-native-svg": "13.4.0",
|
|
104
|
+
"react-native-web": "~0.18.7",
|
|
105
|
+
"react-native-webview": "^11.26.0",
|
|
106
|
+
"react-virtuoso": "^4.0.9",
|
|
107
|
+
"sharp-cli": "^2.1.0",
|
|
108
|
+
"tippy.js": "^6.3.7",
|
|
109
|
+
"use-event-callback": "^0.1.0",
|
|
110
|
+
"websql": "^2.0.3",
|
|
111
|
+
"xlsx": "^0.18.5"
|
|
112
|
+
},
|
|
113
|
+
"devDependencies": {
|
|
114
|
+
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
|
|
115
|
+
"@babel/preset-react": "^7.18.6",
|
|
116
|
+
"@expo/metro-config": "^0.5.2",
|
|
117
|
+
"@expo/webpack-config": "^18.0.1",
|
|
118
|
+
"babel-plugin-inline-dotenv": "^1.7.0",
|
|
119
|
+
"babel-plugin-module-resolver": "^4.1.0",
|
|
120
|
+
"babel-plugin-transform-inline-environment-variables": "^0.4.4"
|
|
121
|
+
}
|
|
122
|
+
}
|
package/src/App.js
CHANGED
|
@@ -40,7 +40,7 @@ Object.map(Utils,(v,i)=>{
|
|
|
40
40
|
window[i] = v;
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
|
-
export default function getIndex({
|
|
43
|
+
export default function getIndex({onMount,onUnmount,onRender,preferences:appPreferences}){
|
|
44
44
|
const isScreenFocusedRef = React.useRef(true);
|
|
45
45
|
///garde pour chaque écran sa date de dernière activité
|
|
46
46
|
const screensRef = React.useRef({});//la liste des écrans actifs
|
|
@@ -48,6 +48,7 @@ export default function getIndex({App,onMount,onUnmount,preferences:appPreferenc
|
|
|
48
48
|
const prevActiveScreenRef = React.useRef('');
|
|
49
49
|
const appStateRef = React.useRef({});
|
|
50
50
|
const isKeyboardOpenRef = React.useRef(false);
|
|
51
|
+
React.useOnRender(onRender);
|
|
51
52
|
React.useEffect(()=>{
|
|
52
53
|
///la fonction de rappel lorsque le composant est monté
|
|
53
54
|
let cb = typeof onMount =='function'? onMount() : null;
|
|
@@ -116,8 +117,6 @@ export default function getIndex({App,onMount,onUnmount,preferences:appPreferenc
|
|
|
116
117
|
theme,
|
|
117
118
|
...defaultObj(pref),
|
|
118
119
|
}),[theme,pref]);
|
|
119
|
-
const child = <Index theme={theme}/>;
|
|
120
|
-
const children = typeof App =='function'? App({children:child,APP}) : child;
|
|
121
120
|
return (
|
|
122
121
|
<SWRConfig
|
|
123
122
|
value={{
|
|
@@ -187,7 +186,7 @@ export default function getIndex({App,onMount,onUnmount,preferences:appPreferenc
|
|
|
187
186
|
<DialogProvider responsive/>
|
|
188
187
|
<AlertProvider SimpleSelect={SimpleSelect}/>
|
|
189
188
|
<FormDataDialogProvider/>
|
|
190
|
-
{
|
|
189
|
+
{<Index theme={theme}/>}
|
|
191
190
|
<ErrorBoundaryProvider/>
|
|
192
191
|
<BottomSheetProvider/>
|
|
193
192
|
</PreferencesContext.Provider>
|
|
@@ -474,7 +474,8 @@ class _Menu extends AppComponent {
|
|
|
474
474
|
positionStyle.top = SCREEN_INDENT;
|
|
475
475
|
}
|
|
476
476
|
const maxMenuHeight = windowLayout.height - top - SCREEN_INDENT;
|
|
477
|
-
const
|
|
477
|
+
const maxHeight = maxMenuHeight >=0 ? Math.max(Math.min(maxMenuHeight,menuLayout.height),150) : windowLayout.height - SCREEN_INDENT*2;
|
|
478
|
+
const contentContainerStyle = maxMenuHeight > SCREEN_INDENT ? {maxHeight} : undefined;
|
|
478
479
|
return (
|
|
479
480
|
<View
|
|
480
481
|
testID = {testID}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sage-ftc",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "Accès distant aux données commerciales et comptables Sage100C de partout",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"devMail": "sage-ftc@fto-consulting.com",
|
|
7
|
-
"devWebsite": "http://fto-consulting.com/sage-ftc/",
|
|
8
|
-
"copyRight": "FTO consulting@Août 2022",
|
|
9
|
-
"id": "com.ftc.apps.sage.ftc",
|
|
10
|
-
"theme": {
|
|
11
|
-
"ligth": {
|
|
12
|
-
"primary": "#3D8B5F",
|
|
13
|
-
"secondary": "#354448"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"convertDatagridFiltersToSQL": true,
|
|
17
|
-
"scripts": {
|
|
18
|
-
"test": "test",
|
|
19
|
-
"start": "npx expo start",
|
|
20
|
-
"start-c": "npx expo start -c",
|
|
21
|
-
"build": "npx expo export:web",
|
|
22
|
-
"electron": "node ./expo-ui/bin start electron url=http://localhost:19006/",
|
|
23
|
-
"build-android": "eas build --clear-cache -p android --profile preview",
|
|
24
|
-
"delete-node-modules": "rimraf ./**/node_modules",
|
|
25
|
-
"package": "node ./expo-ui/bin package compile2"
|
|
26
|
-
},
|
|
27
|
-
"repository": {
|
|
28
|
-
"type": "git",
|
|
29
|
-
"url": "git+https://github.com/borispipo/sage-ftc.git"
|
|
30
|
-
},
|
|
31
|
-
"keywords": [
|
|
32
|
-
"XposeFTC",
|
|
33
|
-
"Sage100C",
|
|
34
|
-
"Accès",
|
|
35
|
-
"distant"
|
|
36
|
-
],
|
|
37
|
-
"author": "BorisFouomene@fto-consulting",
|
|
38
|
-
"license": "UNLICENCED",
|
|
39
|
-
"bugs": {
|
|
40
|
-
"url": "https://github.com/borispipo/sage-ftc/issues"
|
|
41
|
-
},
|
|
42
|
-
"homepage": "./",
|
|
43
|
-
"dependencies": {
|
|
44
|
-
"@fto-consult/expo-ui": "^4.3.0"
|
|
45
|
-
},
|
|
46
|
-
"devDependencies": {
|
|
47
|
-
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
|
|
48
|
-
"@babel/preset-react": "^7.18.6",
|
|
49
|
-
"@expo/metro-config": "^0.5.2",
|
|
50
|
-
"@expo/webpack-config": "^0.17.4",
|
|
51
|
-
"babel-plugin-inline-dotenv": "^1.7.0",
|
|
52
|
-
"babel-plugin-module-resolver": "^4.1.0",
|
|
53
|
-
"babel-plugin-transform-inline-environment-variables": "^0.4.4"
|
|
54
|
-
}
|
|
55
|
-
}
|