@fto-consult/expo-ui 7.20.5 → 7.21.0
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/bin/utils.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
module.exports = require("@fto-consult/
|
1
|
+
module.exports = require("@fto-consult/node-utils");
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fto-consult/expo-ui",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.21.0",
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
5
|
"scripts": {
|
6
6
|
"clear-npx-cache": "npx clear-npx-cache",
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"delete-node-modules": "rimraf ./**/node_modules",
|
47
47
|
"dev": "npx expo start --no-dev --minify -c",
|
48
48
|
"modifier-url-remote-git": "git remote set-url origin 'https://borispipo@github.com/borispipo/smart-eneo.git'",
|
49
|
-
"update": "npm i @fto-consult/
|
49
|
+
"update": "npm i @fto-consult/node-utils@latest pdfmake@latest expo @emotion/native@latest react-native-big-list@latest apexcharts@latest file-saver@latest fs-extra@latest google-libphonenumber@latest @pchmn/expo-material3-theme@latest @emotion/native@latest @fto-consult/common@latest @react-navigation/stack react-native-blob-util react-native-iphone-x-helper@latest react-native-mime-types@latest react-native-paper@5 react-native-paper-dates@latest @react-navigation/native@latest @react-navigation/native-stack@latest react-virtuoso@latest tippy.js@latest websql@latest xlsx@latest react-native-web@latest react-dom@latest && npx expo install --fix && npm run update-apexchart && npm run update-pdfmake && npm run find-licenses"
|
50
50
|
},
|
51
51
|
"bin": {
|
52
52
|
"expo-ui": "./bin/index.js"
|
@@ -71,9 +71,9 @@
|
|
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": "^4.
|
75
|
-
"@fto-consult/electron-gen": "^2.3.1",
|
74
|
+
"@fto-consult/common": "^4.6.0",
|
76
75
|
"@fto-consult/expo-ui": "^7.17.9",
|
76
|
+
"@fto-consult/node-utils": "^1.3.4",
|
77
77
|
"@pchmn/expo-material3-theme": "^1.3.1",
|
78
78
|
"@react-native-async-storage/async-storage": "1.18.2",
|
79
79
|
"@react-native-community/datetimepicker": "7.2.0",
|
@@ -98,7 +98,7 @@
|
|
98
98
|
"expo-web-browser": "~12.3.2",
|
99
99
|
"file-saver": "^2.0.5",
|
100
100
|
"fs-extra": "^11.2.0",
|
101
|
-
"google-libphonenumber": "^3.2.
|
101
|
+
"google-libphonenumber": "^3.2.34",
|
102
102
|
"htmlparser2-without-node-native": "^3.9.2",
|
103
103
|
"is-plain-obj": "^4.1.0",
|
104
104
|
"js-base64": "^3.7.5",
|
@@ -114,7 +114,7 @@
|
|
114
114
|
"react-native-get-random-values": "~1.9.0",
|
115
115
|
"react-native-iphone-x-helper": "^1.3.1",
|
116
116
|
"react-native-mime-types": "^2.4.0",
|
117
|
-
"react-native-paper": "^5.12.
|
117
|
+
"react-native-paper": "^5.12.1",
|
118
118
|
"react-native-paper-dates": "^0.21.7",
|
119
119
|
"react-native-reanimated": "~3.3.0",
|
120
120
|
"react-native-safe-area-context": "4.6.3",
|
package/src/AppEntry/index.js
CHANGED
@@ -40,6 +40,7 @@ import { StyleSheet } from "react-native";
|
|
40
40
|
import Logo from "$ecomponents/Logo";
|
41
41
|
import AppEntryRootView from "./RootView";
|
42
42
|
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
43
|
+
import {isNeutralino} from "$cplatform";
|
43
44
|
|
44
45
|
let MAX_BACK_COUNT = 1;
|
45
46
|
let countBack = 0;
|
@@ -69,7 +70,7 @@ function App({init:initApp,initialRouteName:appInitialRouteName,children}) {
|
|
69
70
|
hasCallInitApp : false,
|
70
71
|
});
|
71
72
|
React.useEffect(() => {
|
72
|
-
|
73
|
+
console.log(isNeutralino(),window,navigator.userAgent," is neutralino");
|
73
74
|
const loadResources = ()=>{
|
74
75
|
return new Promise((resolve)=>{
|
75
76
|
loadFonts(FontsIconsFilter).catch((e)=>{
|
package/src/context/Provider.js
CHANGED
@@ -231,6 +231,12 @@ const Provider = ({children,getTableData,handleHelpScreen,navigation,swrConfig,a
|
|
231
231
|
get customCSS(){
|
232
232
|
const prevCSS = defaultStr(typeof customCSS ==='function'? customCSS(theme) : customCSS);
|
233
233
|
return `
|
234
|
+
@media (prefers-color-scheme: dark) {
|
235
|
+
body {
|
236
|
+
color: ${theme.colors.text};
|
237
|
+
background: ${theme.colors.background};
|
238
|
+
}
|
239
|
+
}
|
234
240
|
#root {
|
235
241
|
overflow:hidden!important;
|
236
242
|
width : 100%!important;
|
package/src/pdf/print.web.js
CHANGED
@@ -5,5 +5,8 @@ export default function print(pdfMakeInstance,options,...rest){
|
|
5
5
|
if(isElectron()){
|
6
6
|
return electronPrint(pdfMakeInstance,options,...rest);
|
7
7
|
}
|
8
|
-
|
8
|
+
if(isTouchDevice()){
|
9
|
+
return pdfMakeInstance.open({},window);
|
10
|
+
}
|
11
|
+
return pdfMakeInstance.print({...options,...rest});
|
9
12
|
}
|
@@ -45,13 +45,13 @@ module.exports = {
|
|
45
45
|
"license": "MIT"
|
46
46
|
},
|
47
47
|
"@fto-consult/common": {
|
48
|
-
"version": "4.
|
48
|
+
"version": "4.6.0",
|
49
49
|
"url": "https://github.com/borispipo/common#readme",
|
50
50
|
"license": "ISC"
|
51
51
|
},
|
52
|
-
"@fto-consult/
|
53
|
-
"version": "
|
54
|
-
"license": "
|
52
|
+
"@fto-consult/node-utils": {
|
53
|
+
"version": "1.3.4",
|
54
|
+
"license": "MIT"
|
55
55
|
},
|
56
56
|
"@pchmn/expo-material3-theme": {
|
57
57
|
"version": "1.3.1",
|
@@ -184,7 +184,7 @@ module.exports = {
|
|
184
184
|
"license": "MIT"
|
185
185
|
},
|
186
186
|
"google-libphonenumber": {
|
187
|
-
"version": "3.2.
|
187
|
+
"version": "3.2.34",
|
188
188
|
"url": "https://ruimarinho.github.io/google-libphonenumber/",
|
189
189
|
"license": "(MIT AND Apache-2.0)"
|
190
190
|
},
|
@@ -259,7 +259,7 @@ module.exports = {
|
|
259
259
|
"license": "MIT"
|
260
260
|
},
|
261
261
|
"react-native-paper": {
|
262
|
-
"version": "5.12.
|
262
|
+
"version": "5.12.1",
|
263
263
|
"url": "https://callstack.github.io/react-native-paper",
|
264
264
|
"license": "MIT"
|
265
265
|
},
|