@fto-consult/expo-ui 6.13.0 → 6.13.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/babel.config.js
CHANGED
|
@@ -117,7 +117,7 @@ const generateTableOrStructDataStr = (tableDataPath)=>{
|
|
|
117
117
|
if(!indexContent || (!indexContent.includes("table") && !indexContent.includes("tableName"))){
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
|
-
getTableJSContent+=`\t\tif(tableName === "${tableName}"){return require("./${table}").default;}\n`;
|
|
120
|
+
getTableJSContent+=`\t\t\tif(tableName === "${tableName}"){return require("./${table}").default;}\n`;
|
|
121
121
|
});
|
|
122
122
|
//on génère le fichier getTable des tables data de l'application
|
|
123
123
|
if(getTableJSContent){
|
|
@@ -125,7 +125,7 @@ const generateTableOrStructDataStr = (tableDataPath)=>{
|
|
|
125
125
|
module.exports = function(tableName){
|
|
126
126
|
\tif(!tableName || typeof tableName !=="string") return null;
|
|
127
127
|
\ttableName = tableName.toUpperCase().trim();
|
|
128
|
-
|
|
128
|
+
${getTableJSContent}\treturn null;
|
|
129
129
|
}
|
|
130
130
|
`);
|
|
131
131
|
}
|
package/package.json
CHANGED
|
@@ -36,8 +36,7 @@ const AppbarContent = ({
|
|
|
36
36
|
const webStyle = isWeb() && theme.styles.webFontFamilly;
|
|
37
37
|
const content = (
|
|
38
38
|
<View
|
|
39
|
-
pointerEvents
|
|
40
|
-
style={[styles.container, style]}
|
|
39
|
+
style={[styles.container,{pointerEvents:"box-none"}, style]}
|
|
41
40
|
testID={testID}
|
|
42
41
|
{...rest}
|
|
43
42
|
>
|
|
@@ -34,7 +34,7 @@ export default function Logo (props) {
|
|
|
34
34
|
</View>
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
const getStyle = ({style,color,height:customHeight,smallStyle,mediumStyle,largeStyle})=>{
|
|
37
|
+
export const getStyle = ({style,color,height:customHeight,smallStyle,mediumStyle,largeStyle})=>{
|
|
38
38
|
const cColor = flattenStyle([{color:Colors.isValid(color)? color : theme.colors.primaryOnSurface}]);
|
|
39
39
|
let size = 5;
|
|
40
40
|
if(typeof customHeight =='number' && customHeight <= customHeight){
|
|
@@ -8,9 +8,8 @@ import appConfig from "$capp/config";
|
|
|
8
8
|
|
|
9
9
|
export default function LogoProgress (props){
|
|
10
10
|
let containerStyle = {width:(Logo.width?Logo.width:undefined),height:(Logo.height?(Logo.height+100):undefined),flex:1,alignItems:"center",justifyContent:"center"};
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
secondaryColor = isLight ? theme.colors.secondaryOnSurface : defaultDarkTheme.colors.secondary;
|
|
11
|
+
const primaryColor = theme.colors.primaryOnSurface,
|
|
12
|
+
secondaryColor = theme.colors.secondaryOnSurface;
|
|
14
13
|
return <View style={[containerStyle]}>
|
|
15
14
|
<Logo key='logo' style={{marginBottom:0}} color={primaryColor}/>
|
|
16
15
|
<ActivityIndicator size = {isIos()?'large':40} animating={true} color={secondaryColor} />
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {View} from "react-native";
|
|
1
|
+
import {View,StyleSheet} from "react-native";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import React from "$react";
|
|
4
4
|
import {isMobileNative} from "$cplatform";
|
|
5
|
-
import {debounce,isNumber} from "$cutils";
|
|
5
|
+
import {debounce,isNumber,isNonNullString} from "$cutils";
|
|
6
6
|
import {useMediaQueryUpdateStyle} from "$context/hooks";
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
const ViewComponent = React.forwardRef(({onRender,onLayoutTimeout,onLayout,autoHeight,autoWidth,elevation,...props},ref)=>{
|
|
9
|
+
const ViewComponent = React.forwardRef(({onRender,onLayoutTimeout,pointerEvents,onLayout,autoHeight,autoWidth,elevation,...props},ref)=>{
|
|
10
10
|
const style = useMediaQueryUpdateStyle(props);
|
|
11
11
|
const autoSize = autoHeight||autoWidth ? true : false;
|
|
12
12
|
const [state,setState] = autoSize ? React.useState({}) : [{}];
|
|
@@ -26,7 +26,8 @@ const ViewComponent = React.forwardRef(({onRender,onLayoutTimeout,onLayout,autoH
|
|
|
26
26
|
React.useOnRender(onRender);
|
|
27
27
|
return <View
|
|
28
28
|
{...props}
|
|
29
|
-
style = {[
|
|
29
|
+
style = {[isNonNullString(pointerEvents) && pointerEventsStyles[pointerEvents] ||null,
|
|
30
|
+
style,
|
|
30
31
|
autoSize && [
|
|
31
32
|
autoHeight && isNumber(height) && height > 10 && {height},
|
|
32
33
|
autoWidth && isNumber(width) && width > 10 && {width}
|
|
@@ -47,4 +48,16 @@ ViewComponent.propTypes = {
|
|
|
47
48
|
autoHeight : PropTypes.bool,//si la taille de
|
|
48
49
|
onLayout : PropTypes.func,
|
|
49
50
|
///si useCurrentMedia est à true, alors la mise à jour sera opérée uniquement lorsque le current media change
|
|
50
|
-
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const pointerEventsStyles = StyleSheet.create({
|
|
54
|
+
auto : {
|
|
55
|
+
pointerEvents : "auto",
|
|
56
|
+
},
|
|
57
|
+
none : {
|
|
58
|
+
pointerEvents : "none",
|
|
59
|
+
},
|
|
60
|
+
"box-none" : {
|
|
61
|
+
pointerEvents : "box-none",
|
|
62
|
+
},
|
|
63
|
+
})
|
|
@@ -33,7 +33,7 @@ export default function DatabaseStatisticScreen ({withScreen,fetchDataProps,tabl
|
|
|
33
33
|
const chartAllowedPerm = defaultStr(table.chartAllowedPerm);
|
|
34
34
|
const testID = "RN_DatabaseStatisticsCell_"+index;
|
|
35
35
|
if((chartAllowedPerm && !Auth.isAllowedFromStr(chartAllowedPerm)) || (!Auth.isTableDataAllowed({table:tableName}))) return null;
|
|
36
|
-
content.push(<Cell elevation = {5} withSurface mobileSize={12} desktopSize={3} tabletSize={
|
|
36
|
+
content.push(<Cell elevation = {5} withSurface mobileSize={12} desktopSize={3} tabletSize={6} {...contentProps} testID={testID} key = {index} >
|
|
37
37
|
<Surface testID = {testID+"_Surface"} elevation = {5} style={[theme.styles.w100]}>
|
|
38
38
|
<DatabaseStatistic
|
|
39
39
|
icon = {table.icon}
|