@fto-consult/expo-ui 5.0.0 → 5.0.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/docs.tools.txt ADDED
@@ -0,0 +1,4 @@
1
+ @see : https://docusaurus.io/fr/docs
2
+ @see : https://www.npmjs.com/package/component-docs
3
+ @see : https://reactcommunity.org/react-docgen/
4
+ @see : https://react-docgen.dev/
@@ -1,55 +1,33 @@
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
- }
1
+ {
2
+ "name": "salite",
3
+ "version": "7.0.0",
4
+ "description": "Logiciel de gestion commerciale pour PME",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "test",
8
+ "start": "npx expo start",
9
+ "build": "npx expo build"
10
+ },
11
+ "keywords": [
12
+ "SALITE",
13
+ "gestion",
14
+ "commerciale",
15
+ "ventes",
16
+ "achats",
17
+ "stocks"
18
+ ],
19
+ "author": "@fto-consulting",
20
+ "license": "ISC",
21
+ "devDependencies": {
22
+ "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
23
+ "@babel/preset-react": "^7.18.6",
24
+ "@expo/webpack-config": "^18.0.1",
25
+ "babel-plugin-inline-dotenv": "^1.7.0",
26
+ "babel-plugin-module-resolver": "^5.0.0",
27
+ "babel-plugin-transform-inline-environment-variables": "^0.4.4"
28
+ },
29
+ "dependencies": {
30
+ "@fto-consult/expo-ui": "^5.0.0",
31
+ "react-native": "0.71.3"
32
+ }
33
+ }
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.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.12",
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-navigation/native": "^6.1.1",
70
- "@react-navigation/native-stack": "^6.9.7",
71
- "@shopify/flash-list": "^1.4.0",
72
- "expo": "^48.0.0",
73
- "expo-camera": "~13.2.1",
74
- "expo-clipboard": "~4.1.1",
75
- "expo-font": "~11.1.1",
76
- "expo-image-picker": "~14.1.1",
77
- "expo-linking": "~4.0.1",
78
- "expo-sqlite": "~11.1.1",
79
- "expo-status-bar": "~1.4.4",
80
- "expo-system-ui": "~2.2.1",
81
- "expo-web-browser": "~12.1.1",
82
- "file-saver": "^2.0.5",
83
- "fs-extra": "^11.1.0",
84
- "google-libphonenumber": "^3.2.31",
85
- "htmlparser2-without-node-native": "^3.9.2",
86
- "mongo-parse": "^2.1.0",
87
- "prop-types": "^15.8.1",
88
- "react": "^18.2.0",
89
- "react-apexcharts": "^1.4.0",
90
- "react-content-loader": "^6.2.0",
91
- "react-dom": "^18.2.0",
92
- "react-native": "^0.71.3",
93
- "react-native-big-list": "^1.6.0",
94
- "react-native-blob-util": "^0.17.0",
95
- "react-native-gesture-handler": "~2.9.0",
96
- "react-native-mime-types": "^2.3.0",
97
- "react-native-paper": "^4.12.5",
98
- "react-native-paper-dates": "^0.9.2",
99
- "react-native-reanimated": "~2.14.4",
100
- "react-native-safe-area-context": "^4.5.0",
101
- "react-native-screens": "~3.20.0",
102
- "react-native-svg": "13.4.0",
103
- "react-native-web": "~0.18.7",
104
- "react-native-webview": "^11.26.0",
105
- "react-virtuoso": "^4.0.9",
106
- "sharp-cli": "^2.1.0",
107
- "tippy.js": "^6.3.7",
108
- "use-event-callback": "^0.1.0",
109
- "websql": "^2.0.3",
110
- "xlsx": "^0.18.5"
111
- },
112
- "devDependencies": {
113
- "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
114
- "@babel/preset-react": "^7.18.6",
115
- "@expo/metro-config": "^0.5.2",
116
- "@expo/webpack-config": "^18.0.1",
117
- "babel-plugin-inline-dotenv": "^1.7.0",
118
- "babel-plugin-module-resolver": "^4.1.0",
119
- "babel-plugin-transform-inline-environment-variables": "^0.4.4"
120
- }
121
- }
1
+ {
2
+ "name": "@fto-consult/expo-ui",
3
+ "version": "5.0.1",
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.12",
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-navigation/native": "^6.1.1",
70
+ "@react-navigation/native-stack": "^6.9.7",
71
+ "@shopify/flash-list": "^1.4.0",
72
+ "expo": "^48.0.0",
73
+ "expo-camera": "~13.2.1",
74
+ "expo-clipboard": "~4.1.1",
75
+ "expo-font": "~11.1.1",
76
+ "expo-image-picker": "~14.1.1",
77
+ "expo-linking": "~4.0.1",
78
+ "expo-sqlite": "~11.1.1",
79
+ "expo-status-bar": "~1.4.4",
80
+ "expo-system-ui": "~2.2.1",
81
+ "expo-web-browser": "~12.1.1",
82
+ "file-saver": "^2.0.5",
83
+ "fs-extra": "^11.1.0",
84
+ "google-libphonenumber": "^3.2.31",
85
+ "htmlparser2-without-node-native": "^3.9.2",
86
+ "mongo-parse": "^2.1.0",
87
+ "prop-types": "^15.8.1",
88
+ "react": "^18.2.0",
89
+ "react-apexcharts": "^1.4.0",
90
+ "react-content-loader": "^6.2.0",
91
+ "react-dom": "^18.2.0",
92
+ "react-native": "^0.71.3",
93
+ "react-native-big-list": "^1.6.0",
94
+ "react-native-blob-util": "^0.17.0",
95
+ "react-native-gesture-handler": "~2.9.0",
96
+ "react-native-mime-types": "^2.3.0",
97
+ "react-native-paper": "^4.12.5",
98
+ "react-native-paper-dates": "^0.9.2",
99
+ "react-native-reanimated": "~2.14.4",
100
+ "react-native-safe-area-context": "^4.5.0",
101
+ "react-native-screens": "~3.20.0",
102
+ "react-native-svg": "13.4.0",
103
+ "react-native-web": "~0.18.7",
104
+ "react-native-webview": "^11.26.0",
105
+ "react-virtuoso": "^4.0.9",
106
+ "sharp-cli": "^2.1.0",
107
+ "tippy.js": "^6.3.7",
108
+ "use-event-callback": "^0.1.0",
109
+ "websql": "^2.0.3",
110
+ "xlsx": "^0.18.5",
111
+ "expo-asset": "~8.9.0"
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
+ }
@@ -0,0 +1,3 @@
1
+ /************************ la liste des alias pouvant être exportés
2
+
3
+ // override l'alias du repertoire des écrans par défaut, celui de escreens
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({App,onMount,onUnmount,preferences:appPreferences}){
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
- {children}
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 contentContainerStyle = maxMenuHeight > SCREEN_INDENT ? {maxHeight:maxMenuHeight} : undefined;
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}