@fto-consult/expo-ui 8.26.0 → 8.28.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/create-app/App.js +1 -1
- package/bin/create-app/dependencies.js +10 -10
- package/bin/create-app.js +0 -1
- package/bin/update.js +30 -21
- package/package.json +6 -6
- package/src/components/Chart/appexChart/appexChart.html +4 -4
- package/src/components/Datagrid/Common/utils.js +1 -1
- package/src/components/Datagrid/SWRDatagrid.js +2 -1
- package/src/components/Logo/Logo.js +6 -3
- package/src/screens/Help/openLibraries.js +17 -16
@@ -249,7 +249,7 @@ export const formatValue = (value,format,abreviateValues,formatter)=>{
|
|
249
249
|
}
|
250
250
|
|
251
251
|
export const getRowsPerPagesLimits = ()=>{
|
252
|
-
return [5,10,15,20,25,30,40,50,60,80,100,500,1000,1500,2000,2500,3000,3500,4000,4500,5000,...(isDesktopMedia() ? [6000,7000,8000,9000,10000]:[])];
|
252
|
+
return [0,5,10,15,20,25,30,40,50,60,80,100,500,1000,1500,2000,2500,3000,3500,4000,4500,5000,...(isDesktopMedia() ? [6000,7000,8000,9000,10000,15000,20000,25000,30000,35000,40000,45000,50000]:[])];
|
253
253
|
}
|
254
254
|
|
255
255
|
|
@@ -168,7 +168,7 @@ const SWRDatagridComponent = React.forwardRef((props,ref)=>{
|
|
168
168
|
opts.fetchOptions.selector = extendObj(true,{},opts.fetchOptions.selector,fetchOptionsRef.current?.selector);
|
169
169
|
}
|
170
170
|
opts.fetchOptions.sort = sortRef.current;
|
171
|
-
if(canHandleLimit){
|
171
|
+
if(canHandleLimit && limitRef.current > 0){
|
172
172
|
opts.fetchOptions.limit = limitRef.current;
|
173
173
|
opts.fetchOptions.page = pageRef.current -1;
|
174
174
|
} else {
|
@@ -275,6 +275,7 @@ const SWRDatagridComponent = React.forwardRef((props,ref)=>{
|
|
275
275
|
text : item.formatNumber(),
|
276
276
|
icon : limitRef.current == item ? 'check' : null,
|
277
277
|
primary : limitRef.current === item ? true : false,
|
278
|
+
tooltip : item === 0 ? "Sélectionnez cette valeur si vous souhaitez vous en passer de la limite du nombre d'items à afficher" : item.formatNumber(),
|
278
279
|
onPress : ()=>{
|
279
280
|
if(item == limitRef.current) return;
|
280
281
|
limitRef.current = item;
|
@@ -3,12 +3,15 @@ import View from "$ecomponents/View";
|
|
3
3
|
import React from "$react";
|
4
4
|
import theme,{remToPixel,Colors,flattenStyle} from '$theme';
|
5
5
|
import {StyleSheet} from "react-native";
|
6
|
-
import {defaultStr,defaultObj,defaultNumber} from "$cutils";
|
6
|
+
import {defaultStr,defaultObj,defaultNumber,isPlainObject} from "$cutils";
|
7
7
|
import useContext from "$econtext/hooks";
|
8
8
|
export const height = 150;
|
9
9
|
export const width = undefined;//300;
|
10
10
|
export default function Logo (props) {
|
11
11
|
const {components:{logo:LogoComponent}} = useContext();
|
12
|
+
if(React.isComponent(LogoComponent)) return <LogoComponent
|
13
|
+
{...props}
|
14
|
+
/>
|
12
15
|
let {icon,color,style,testID,containerProps,smallStyle,largeStyle,mediumStyle,height:customHeight,withImage,withText} = props;
|
13
16
|
testID = defaultStr(testID,"RN_LogoComponent");
|
14
17
|
containerProps = defaultObj(containerProps);
|
@@ -17,9 +20,9 @@ export default function Logo (props) {
|
|
17
20
|
const styles = getStyle({style,color,height:hasHeight?customHeight:undefined,smallStyle,largeStyle,mediumStyle});
|
18
21
|
let logoImage = null,img,txt=null,hasTwice = false;
|
19
22
|
if(LogoComponent){
|
20
|
-
hasTwice = React.isComponent(LogoComponent
|
23
|
+
hasTwice = React.isComponent(LogoComponent?.Image) && React.isComponent(LogoComponent?.Text);
|
21
24
|
if(!hasTwice){
|
22
|
-
logoImage = React.isValidElement(LogoComponent)? LogoComponent :
|
25
|
+
logoImage = React.isValidElement(LogoComponent)? LogoComponent : null;
|
23
26
|
} else {
|
24
27
|
img = icon !== false ? <View testID={testID+"_ContentContainer"} style={styles.logoImage}>
|
25
28
|
<LogoComponent.Image styles={styles}/>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module.exports = {
|
2
2
|
"@fto-consult/expo-ui": {
|
3
|
-
"version": "8.25.
|
3
|
+
"version": "8.25.16",
|
4
4
|
"url": "https://github.com/borispipo/expo-ui#readme",
|
5
5
|
"license": "ISC"
|
6
6
|
},
|
@@ -15,7 +15,7 @@ module.exports = {
|
|
15
15
|
"license": "MIT"
|
16
16
|
},
|
17
17
|
"@expo/html-elements": {
|
18
|
-
"version": "0.
|
18
|
+
"version": "0.5.1",
|
19
19
|
"url": "https://github.com/expo/expo/tree/main/packages/html-elements",
|
20
20
|
"license": "MIT"
|
21
21
|
},
|
@@ -45,8 +45,8 @@ module.exports = {
|
|
45
45
|
"license": "MIT"
|
46
46
|
},
|
47
47
|
"@react-native/assets-registry": {
|
48
|
-
"version": "0.
|
49
|
-
"url": "
|
48
|
+
"version": "0.72.0",
|
49
|
+
"url": "git@github.com:facebook/react-native.git",
|
50
50
|
"license": "MIT"
|
51
51
|
},
|
52
52
|
"@react-navigation/native": {
|
@@ -80,12 +80,12 @@ module.exports = {
|
|
80
80
|
"license": "MIT"
|
81
81
|
},
|
82
82
|
"expo": {
|
83
|
-
"version": "50.0.
|
83
|
+
"version": "50.0.7",
|
84
84
|
"url": "https://github.com/expo/expo/tree/main/packages/expo",
|
85
85
|
"license": "MIT"
|
86
86
|
},
|
87
87
|
"expo-camera": {
|
88
|
-
"version": "14.0.
|
88
|
+
"version": "14.0.5",
|
89
89
|
"url": "https://docs.expo.dev/versions/latest/sdk/camera/",
|
90
90
|
"license": "MIT"
|
91
91
|
},
|
@@ -95,7 +95,7 @@ module.exports = {
|
|
95
95
|
"license": "MIT"
|
96
96
|
},
|
97
97
|
"expo-font": {
|
98
|
-
"version": "11.10.
|
98
|
+
"version": "11.10.3",
|
99
99
|
"url": "https://docs.expo.dev/versions/latest/sdk/font/",
|
100
100
|
"license": "MIT"
|
101
101
|
},
|
@@ -134,25 +134,26 @@ module.exports = {
|
|
134
134
|
"url": "https://docs.expo.dev/versions/latest/sdk/webbrowser/",
|
135
135
|
"license": "MIT"
|
136
136
|
},
|
137
|
-
"react": {
|
138
|
-
"version": "18.2.0",
|
139
|
-
"url": "https://reactjs.org/",
|
140
|
-
"license": "MIT"
|
141
|
-
},
|
142
137
|
"react-native": {
|
143
138
|
"version": "0.73.4",
|
144
139
|
"url": "https://reactnative.dev/",
|
145
140
|
"license": "MIT"
|
146
141
|
},
|
142
|
+
"react-native-big-list": {
|
143
|
+
"version": "1.6.1",
|
144
|
+
"url": "https://marcocesarato.github.io/react-native-big-list-docs/",
|
145
|
+
"license": "GPL-3.0-or-later"
|
146
|
+
},
|
147
|
+
"react-native-blob-util": {
|
148
|
+
"version": "0.18.6",
|
149
|
+
"url": "https://github.com/RonRadtke/react-native-blob-util",
|
150
|
+
"license": "MIT"
|
151
|
+
},
|
147
152
|
"react-native-gesture-handler": {
|
148
153
|
"version": "2.14.1",
|
149
154
|
"url": "https://github.com/software-mansion/react-native-gesture-handler#readme",
|
150
155
|
"license": "MIT"
|
151
156
|
},
|
152
|
-
"react-native-get-random-values": {
|
153
|
-
"version": "1.8.0",
|
154
|
-
"license": "MIT"
|
155
|
-
},
|
156
157
|
"react-native-reanimated": {
|
157
158
|
"version": "3.6.2",
|
158
159
|
"url": "https://github.com/software-mansion/react-native-reanimated#readme",
|