@fto-consult/expo-ui 6.1.3 → 6.1.5
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 +3 -0
- package/package.json +1 -1
- package/src/App.js +1 -1
- package/src/auth/ProviderSelector.js +3 -3
- package/src/components/AppBar/Content.js +95 -88
- package/src/components/AppBar/Content2.js +132 -0
- package/src/components/AppBar/index.js +9 -13
- package/src/components/Avatar/index.js +1 -1
- package/src/components/Chart/appexChart/index.js +1 -1
- package/src/components/Countries/Flag.js +2 -2
- package/src/components/Datagrid/Accordion/Filters.js +1 -1
- package/src/components/Datagrid/RenderType.js +1 -1
- package/src/components/Date/PeriodAction.js +1 -1
- package/src/components/Drawer/DrawerLayout/index.js +1 -1
- package/src/components/FieldSet/index.js +2 -2
- package/src/components/Filter/index.js +1 -1
- package/src/components/Form/Action.js +1 -1
- package/src/components/Form/Fields/Field.js +1 -1
- package/src/components/Form/FormData/FieldsContent.js +1 -1
- package/src/components/Grid/Cell.js +1 -0
- package/src/components/Grid/Grid.js +1 -1
- package/src/components/Image/index.js +1 -1
- package/src/components/Menu/Menu.js +1 -2
- package/src/components/Snackbar/index.js +1 -1
- package/src/layouts/DatabaseStatistics/index.js +1 -1
- package/src/media/index.js +1 -1
- package/src/screens/Auth/PermProfile.js +7 -8
- package/src/screens/Auth/PermProfiles.js +1 -1
- package/src/screens/Help/PrivacyPolicy/content.js +1 -1
- package/src/screens/Help/TermsOfUses/content.js +1 -1
package/babel.config.js
CHANGED
package/package.json
CHANGED
package/src/App.js
CHANGED
|
@@ -10,7 +10,7 @@ import APP from "$app";
|
|
|
10
10
|
import {isMobileNative} from "$cplatform";
|
|
11
11
|
import {setDeviceIdRef} from "$capp";
|
|
12
12
|
import appConfig from "$capp/config";
|
|
13
|
-
import {showPrompt} from "$
|
|
13
|
+
import {showPrompt} from "$ecomponents/Dialog/confirm";
|
|
14
14
|
import { AppState } from 'react-native'
|
|
15
15
|
import {canFetchOffline} from "$capi/utils";
|
|
16
16
|
import {defaultNumber} from "$cutils";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Copyright 2022 @fto-consult/Boris Fouomene. All rights reserved.
|
|
2
2
|
// Use of this source code is governed by a BSD-style
|
|
3
3
|
// license that can be found in the LICENSE file.
|
|
4
|
-
import Button from "$
|
|
5
|
-
import Menu from "$
|
|
4
|
+
import Button from "$ecomponents/Button";
|
|
5
|
+
import Menu from "$ecomponents/Menu";
|
|
6
6
|
import theme from "$theme";
|
|
7
7
|
import React from "$react";
|
|
8
8
|
import {isObj,defaultStr,defaultObj} from "$cutils";
|
|
9
9
|
import PropTypes from "prop-types";
|
|
10
|
-
import View from "$
|
|
10
|
+
import View from "$ecomponents/View";
|
|
11
11
|
|
|
12
12
|
/****le selecteur de provider, pour l'authentification */
|
|
13
13
|
const ProviderSelector = React.forwardRef(({providers,anchorProps,containerProps,anchor,activeProvider,testID,onChange,...props},ref)=>{
|
|
@@ -1,86 +1,124 @@
|
|
|
1
|
-
import React from '
|
|
2
|
-
import {
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Platform,
|
|
4
|
+
StyleSheet,
|
|
5
|
+
TouchableWithoutFeedback,
|
|
6
|
+
View,
|
|
7
|
+
} from 'react-native';
|
|
3
8
|
import Label from "$ecomponents/Label";
|
|
4
|
-
import theme,{Colors
|
|
5
|
-
import
|
|
9
|
+
import theme,{Colors} from "$theme";
|
|
10
|
+
import {isIos,isWeb} from "$cplatform";
|
|
6
11
|
import {defaultObj,defaultStr} from "$cutils";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const AppbarContent = React.forwardRef(({
|
|
12
|
+
const AppbarContent = ({
|
|
10
13
|
color: titleColor,
|
|
11
14
|
subtitle,
|
|
12
|
-
subtitleProps,
|
|
13
15
|
subtitleStyle,
|
|
14
16
|
onPress,
|
|
17
|
+
disabled,
|
|
15
18
|
style,
|
|
16
|
-
titleProps,
|
|
17
19
|
titleRef,
|
|
18
20
|
titleStyle,
|
|
19
21
|
title,
|
|
20
|
-
|
|
22
|
+
theme: themeOverrides,
|
|
21
23
|
containerProps,
|
|
24
|
+
titleProps,
|
|
25
|
+
subtitleProps,
|
|
26
|
+
testID,
|
|
22
27
|
...rest
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
>
|
|
41
|
-
<Label
|
|
28
|
+
}) => {
|
|
29
|
+
|
|
30
|
+
const titleTextColor = Colors.isValid(titleColor) ? titleColor : theme.colors.primaryText;
|
|
31
|
+
titleProps = defaultObj(titleProps);
|
|
32
|
+
subtitleProps = defaultObj(subtitleProps);
|
|
33
|
+
testID = defaultStr(testID,"RN_AppBarContentComponent")
|
|
34
|
+
subtitle = subtitle === false ? null : subtitle;
|
|
35
|
+
const subtitleColor = Colors.setAlpha(titleTextColor,0.7);
|
|
36
|
+
const webStyle = isWeb() && theme.styles.webFontFamilly;
|
|
37
|
+
const content = (
|
|
38
|
+
<View
|
|
39
|
+
pointerEvents="box-none"
|
|
40
|
+
style={[styles.container, style]}
|
|
41
|
+
testID={testID}
|
|
42
|
+
{...rest}
|
|
43
|
+
>
|
|
44
|
+
<Label
|
|
42
45
|
ref={titleRef}
|
|
43
|
-
testID = {testID+"_Title"}
|
|
44
46
|
{...titleProps}
|
|
45
47
|
style={[
|
|
46
48
|
{
|
|
47
49
|
color: titleTextColor,
|
|
48
50
|
...(isIos()? theme.fonts.regular: theme.fonts.medium),
|
|
49
51
|
},
|
|
50
|
-
|
|
52
|
+
webStyle,
|
|
51
53
|
titleProps.style,
|
|
52
54
|
titleStyle,
|
|
53
55
|
]}
|
|
54
56
|
numberOfLines={1}
|
|
55
57
|
accessible
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
accessibilityRole={
|
|
59
|
+
onPress
|
|
60
|
+
? 'none'
|
|
61
|
+
: Platform.OS === 'web'
|
|
62
|
+
? ('heading')
|
|
63
|
+
: 'header'
|
|
64
|
+
}
|
|
65
|
+
// @ts-expect-error We keep old a11y props for backwards compat with old RN versions
|
|
66
|
+
accessibilityTraits="header"
|
|
67
|
+
testID={`${testID}-title-text`}
|
|
58
68
|
>
|
|
59
69
|
{title}
|
|
70
|
+
</Label>
|
|
71
|
+
{subtitle ? (
|
|
72
|
+
<Label
|
|
73
|
+
testID = {testID+"_Subtitle"}
|
|
74
|
+
{...subtitleProps}
|
|
75
|
+
style={[styles.subtitle, { color: subtitleColor },webStyle, subtitleProps.style, subtitleStyle]}
|
|
76
|
+
numberOfLines={1}
|
|
77
|
+
>
|
|
78
|
+
{subtitle}
|
|
60
79
|
</Label>
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
testID = {testID+"_Subtitle"}
|
|
64
|
-
{...subtitleProps}
|
|
65
|
-
style={[styles.subtitle, { color: subtitleColor }, subtitleProps.style, subtitleStyle]}
|
|
66
|
-
numberOfLines={1}
|
|
67
|
-
>
|
|
68
|
-
{subtitle}
|
|
69
|
-
</Label>
|
|
70
|
-
) : null}
|
|
71
|
-
</View>
|
|
72
|
-
</Pressable>
|
|
80
|
+
) : null}
|
|
81
|
+
</View>
|
|
73
82
|
);
|
|
74
|
-
});
|
|
75
83
|
|
|
76
|
-
|
|
84
|
+
if (onPress) {
|
|
85
|
+
return (
|
|
86
|
+
<TouchableWithoutFeedback
|
|
87
|
+
testID={testID+"_Container"}
|
|
88
|
+
{...containerProps}
|
|
89
|
+
accessibilityRole={touchableRole}
|
|
90
|
+
accessibilityTraits={touchableRole}
|
|
91
|
+
accessibilityComponentType="button"
|
|
92
|
+
onPress={onPress}
|
|
93
|
+
disabled={disabled}
|
|
94
|
+
>
|
|
95
|
+
{content}
|
|
96
|
+
</TouchableWithoutFeedback>
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
return content;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
AppbarContent.displayName = 'AppbarComponent.Content';
|
|
77
103
|
|
|
78
104
|
const styles = StyleSheet.create({
|
|
79
105
|
container: {
|
|
80
106
|
flex: 1,
|
|
81
|
-
paddingHorizontal:
|
|
82
|
-
|
|
83
|
-
|
|
107
|
+
paddingHorizontal: 12,
|
|
108
|
+
},
|
|
109
|
+
v3DefaultContainer: {
|
|
110
|
+
paddingHorizontal: 0,
|
|
111
|
+
},
|
|
112
|
+
v3MediumContainer: {
|
|
113
|
+
paddingHorizontal: 0,
|
|
114
|
+
justifyContent: 'flex-end',
|
|
115
|
+
paddingBottom: 24,
|
|
116
|
+
},
|
|
117
|
+
v3LargeContainer: {
|
|
118
|
+
paddingHorizontal: 0,
|
|
119
|
+
paddingTop: 36,
|
|
120
|
+
justifyContent: 'flex-end',
|
|
121
|
+
paddingBottom: 28,
|
|
84
122
|
},
|
|
85
123
|
title: {
|
|
86
124
|
fontSize: Platform.OS === 'ios' ? 17 : 20,
|
|
@@ -90,43 +128,12 @@ const styles = StyleSheet.create({
|
|
|
90
128
|
},
|
|
91
129
|
});
|
|
92
130
|
|
|
131
|
+
const iosTouchableRole = ['button', 'header'];
|
|
132
|
+
const touchableRole = Platform.select({
|
|
133
|
+
ios: iosTouchableRole,
|
|
134
|
+
default: iosTouchableRole[0],
|
|
135
|
+
});
|
|
136
|
+
|
|
93
137
|
export default AppbarContent;
|
|
94
|
-
const titleType = PropTypes.oneOfType([
|
|
95
|
-
PropTypes.string,
|
|
96
|
-
PropTypes.node,
|
|
97
|
-
PropTypes.bool,
|
|
98
|
-
])
|
|
99
138
|
|
|
100
|
-
AppbarContent.
|
|
101
|
-
/**
|
|
102
|
-
* Custom StyleProp for the text.
|
|
103
|
-
*/
|
|
104
|
-
StyleProp: PropTypes.string,
|
|
105
|
-
/**
|
|
106
|
-
* Text for the title.
|
|
107
|
-
*/
|
|
108
|
-
title: titleType,
|
|
109
|
-
/**
|
|
110
|
-
* Style for the title.
|
|
111
|
-
*/
|
|
112
|
-
titleStyle: StyleProp,
|
|
113
|
-
/**
|
|
114
|
-
* Reference for the title.
|
|
115
|
-
*/
|
|
116
|
-
titleRef : PropTypes.any,
|
|
117
|
-
/**
|
|
118
|
-
* @deprecated Deprecated in v5.x
|
|
119
|
-
* Text for the subtitle.
|
|
120
|
-
*/
|
|
121
|
-
subtitle : titleType,
|
|
122
|
-
/**
|
|
123
|
-
* @deprecated Deprecated in v5.x
|
|
124
|
-
* Style for the subtitle.
|
|
125
|
-
*/
|
|
126
|
-
subtitleStyle: StyleProp,
|
|
127
|
-
/**
|
|
128
|
-
* Function to execute on press.
|
|
129
|
-
*/
|
|
130
|
-
onPress : PropTypes.func,
|
|
131
|
-
style : StyleProp
|
|
132
|
-
}
|
|
139
|
+
AppbarContent.displayName = "AppBarContentComponent";
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import React from '$react';
|
|
2
|
+
import {Platform,StyleSheet,Pressable,View} from 'react-native';
|
|
3
|
+
import Label from "$ecomponents/Label";
|
|
4
|
+
import theme,{Colors,StyleProp} from "$theme";
|
|
5
|
+
import PropTypes from "prop-types";
|
|
6
|
+
import {defaultObj,defaultStr} from "$cutils";
|
|
7
|
+
import {isIos,isAndroid,isWeb} from "$cplatform";
|
|
8
|
+
|
|
9
|
+
const AppbarContent = React.forwardRef(({
|
|
10
|
+
color: titleColor,
|
|
11
|
+
subtitle,
|
|
12
|
+
subtitleProps,
|
|
13
|
+
subtitleStyle,
|
|
14
|
+
onPress,
|
|
15
|
+
style,
|
|
16
|
+
titleProps,
|
|
17
|
+
titleRef,
|
|
18
|
+
titleStyle,
|
|
19
|
+
title,
|
|
20
|
+
testID,
|
|
21
|
+
containerProps,
|
|
22
|
+
...rest
|
|
23
|
+
},ref) => {
|
|
24
|
+
|
|
25
|
+
const titleTextColor = titleColor ? titleColor : theme.colors.primaryText;
|
|
26
|
+
titleProps = defaultObj(titleProps);
|
|
27
|
+
subtitleProps = defaultObj(subtitleProps);
|
|
28
|
+
testID = defaultStr(testID,"RN_AppBarContentComponent")
|
|
29
|
+
subtitle = subtitle === false ? null : subtitle;
|
|
30
|
+
const subtitleColor = Colors.setAlpha(titleTextColor,0.7);
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<Pressable testID={testID+"_Container"} {...defaultObj(containerProps)} onPress={onPress} disabled={!onPress}>
|
|
34
|
+
<View
|
|
35
|
+
pointerEvents="box-none"
|
|
36
|
+
style={[styles.container, style]}
|
|
37
|
+
{...rest}
|
|
38
|
+
testID = {testID}
|
|
39
|
+
ref = {ref}
|
|
40
|
+
>
|
|
41
|
+
<Label
|
|
42
|
+
ref={titleRef}
|
|
43
|
+
testID = {testID+"_Title"}
|
|
44
|
+
{...titleProps}
|
|
45
|
+
style={[
|
|
46
|
+
{
|
|
47
|
+
color: titleTextColor,
|
|
48
|
+
...(isIos()? theme.fonts.regular: theme.fonts.medium),
|
|
49
|
+
},
|
|
50
|
+
isWeb() && theme.styles.webFontFamilly,
|
|
51
|
+
titleProps.style,
|
|
52
|
+
titleStyle,
|
|
53
|
+
]}
|
|
54
|
+
numberOfLines={1}
|
|
55
|
+
accessible
|
|
56
|
+
// @ts-ignore Type '"heading"' is not assignable to type ...
|
|
57
|
+
role={Platform.OS === 'web' ? 'heading' : 'header'}
|
|
58
|
+
>
|
|
59
|
+
{title}
|
|
60
|
+
</Label>
|
|
61
|
+
{subtitle ? (
|
|
62
|
+
<Label
|
|
63
|
+
testID = {testID+"_Subtitle"}
|
|
64
|
+
{...subtitleProps}
|
|
65
|
+
style={[styles.subtitle, { color: subtitleColor }, subtitleProps.style, subtitleStyle]}
|
|
66
|
+
numberOfLines={1}
|
|
67
|
+
>
|
|
68
|
+
{subtitle}
|
|
69
|
+
</Label>
|
|
70
|
+
) : null}
|
|
71
|
+
</View>
|
|
72
|
+
</Pressable>
|
|
73
|
+
);
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
AppbarContent.displayName = 'Appbar.Content';
|
|
77
|
+
|
|
78
|
+
const styles = StyleSheet.create({
|
|
79
|
+
container: {
|
|
80
|
+
flex: 1,
|
|
81
|
+
paddingHorizontal: 5,
|
|
82
|
+
justifyContent : 'center',
|
|
83
|
+
alignItems : 'flex-start',
|
|
84
|
+
},
|
|
85
|
+
title: {
|
|
86
|
+
fontSize: Platform.OS === 'ios' ? 17 : 20,
|
|
87
|
+
},
|
|
88
|
+
subtitle: {
|
|
89
|
+
fontSize: Platform.OS === 'ios' ? 11 : 14,
|
|
90
|
+
},
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
export default AppbarContent;
|
|
94
|
+
const titleType = PropTypes.oneOfType([
|
|
95
|
+
PropTypes.string,
|
|
96
|
+
PropTypes.node,
|
|
97
|
+
PropTypes.bool,
|
|
98
|
+
])
|
|
99
|
+
|
|
100
|
+
AppbarContent.propTypes = {
|
|
101
|
+
/**
|
|
102
|
+
* Custom StyleProp for the text.
|
|
103
|
+
*/
|
|
104
|
+
StyleProp: PropTypes.string,
|
|
105
|
+
/**
|
|
106
|
+
* Text for the title.
|
|
107
|
+
*/
|
|
108
|
+
title: titleType,
|
|
109
|
+
/**
|
|
110
|
+
* Style for the title.
|
|
111
|
+
*/
|
|
112
|
+
titleStyle: StyleProp,
|
|
113
|
+
/**
|
|
114
|
+
* Reference for the title.
|
|
115
|
+
*/
|
|
116
|
+
titleRef : PropTypes.any,
|
|
117
|
+
/**
|
|
118
|
+
* @deprecated Deprecated in v5.x
|
|
119
|
+
* Text for the subtitle.
|
|
120
|
+
*/
|
|
121
|
+
subtitle : titleType,
|
|
122
|
+
/**
|
|
123
|
+
* @deprecated Deprecated in v5.x
|
|
124
|
+
* Style for the subtitle.
|
|
125
|
+
*/
|
|
126
|
+
subtitleStyle: StyleProp,
|
|
127
|
+
/**
|
|
128
|
+
* Function to execute on press.
|
|
129
|
+
*/
|
|
130
|
+
onPress : PropTypes.func,
|
|
131
|
+
style : StyleProp
|
|
132
|
+
}
|
|
@@ -125,19 +125,15 @@ const AppBarComponent = React.forwardRef((props,ref)=> {
|
|
|
125
125
|
const hasRight = React.isValidElement(renderedActions) || React.isValidElement(renderedRight);
|
|
126
126
|
return (
|
|
127
127
|
<Appbar.Header elevation={elevation} {...appBarProps} testID={testID} style={[styles.header,{backgroundColor},elevStyle,appBarProps.style]} onLayout={onPageResize}>
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
{hasRight ? <View testID={testID+"_Actions"} style={styles.actions2right}>
|
|
138
|
-
{renderedActions}
|
|
139
|
-
{renderedRight}
|
|
140
|
-
</View> : null}
|
|
128
|
+
{backAction}
|
|
129
|
+
<Content {...defaultObj(appBarProps.contentProps)}
|
|
130
|
+
title={title}
|
|
131
|
+
titleProps = {{...titleProps,style:[styles.title,{color:primaryText},titleProps.style]}}
|
|
132
|
+
subtitle = {defaultVal(subtitle,params.subtitle,options.subtitle)}
|
|
133
|
+
subtitleProps = {subtitleProps}
|
|
134
|
+
/>
|
|
135
|
+
{renderedActions}
|
|
136
|
+
{renderedRight}
|
|
141
137
|
</Appbar.Header>
|
|
142
138
|
);
|
|
143
139
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "$react";
|
|
2
|
-
import Image from "$
|
|
2
|
+
import Image from "$ecomponents/Image";
|
|
3
3
|
import { getCountry,styles} from "./utils";
|
|
4
4
|
import {isNonNullString,defaultStr,isNumber} from "$cutils";
|
|
5
5
|
import View from "$ecomponents/View"
|
|
6
6
|
import theme from "$theme";
|
|
7
|
-
import Label from "$
|
|
7
|
+
import Label from "$ecomponents/Label";
|
|
8
8
|
|
|
9
9
|
export default function CountryFlagComponent({code,label,withName,withCode,text,containerProps,labelProps,withLabel,testID,...props}){
|
|
10
10
|
if(!isNonNullString(code)) return null;
|
|
@@ -10,7 +10,7 @@ import Label from "$ecomponents/Label";
|
|
|
10
10
|
import theme from "$theme"
|
|
11
11
|
import Expandable from "$ecomponents/Expandable";
|
|
12
12
|
import { Dimensions } from "react-native";
|
|
13
|
-
import Grid from "$
|
|
13
|
+
import Grid from "$ecomponents/Grid";
|
|
14
14
|
import { Pressable } from "react-native";
|
|
15
15
|
import Tooltip from "$ecomponents/Tooltip";
|
|
16
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {get,set} from "./Common/session";
|
|
2
2
|
import Icon from "$ecomponents/Icon";
|
|
3
|
-
import
|
|
3
|
+
import notify from "$enotify";
|
|
4
4
|
import {isDesktopMedia} from "$cplatform/dimensions";
|
|
5
5
|
import {defaultStr} from "$cutils";
|
|
6
6
|
import {Menu} from "$ecomponents/BottomSheet";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style
|
|
3
3
|
// license that can be found in the LICENSE file.
|
|
4
4
|
import React from "$react";
|
|
5
|
-
import TextField from "$
|
|
5
|
+
import TextField from "$ecomponents/TextField";
|
|
6
6
|
import {isNonNullString} from "$cutils";
|
|
7
7
|
import DateLib from "$date";
|
|
8
8
|
|
|
@@ -17,7 +17,7 @@ import Preloader from "$epreloader";
|
|
|
17
17
|
import {Elevations} from "$ecomponents/Surface";
|
|
18
18
|
|
|
19
19
|
const MIN_SWIPE_DISTANCE = 3;
|
|
20
|
-
const DEVICE_WIDTH =
|
|
20
|
+
const DEVICE_WIDTH = Math.max(Dimensions.get('window').width,280);
|
|
21
21
|
const THRESHOLD = DEVICE_WIDTH / 2;
|
|
22
22
|
const VX_MAX = 0.1;
|
|
23
23
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// license that can be found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import React from "$react";
|
|
6
|
-
import View from "$
|
|
7
|
-
import Label from "$
|
|
6
|
+
import View from "$ecomponents/View";
|
|
7
|
+
import Label from "$ecomponents/Label";
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { StyleSheet } from "react-native";
|
|
10
10
|
import {defaultStr,defaultObj} from "$cutils";
|
|
@@ -15,7 +15,7 @@ import React,{Component as AppComponent} from "$react";
|
|
|
15
15
|
import theme from "$theme";
|
|
16
16
|
import {isMobileMedia} from "$cplatform/dimensions";
|
|
17
17
|
import { ActivityIndicator } from "react-native-paper";
|
|
18
|
-
import DialogProvider from "$
|
|
18
|
+
import DialogProvider from "$ecomponents/Form/FormData/DialogProvider";
|
|
19
19
|
import FilterBetweenComponent from "./BetweenComponent";
|
|
20
20
|
|
|
21
21
|
const manualRunKey = "manual-run";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "$react";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
|
-
import Button from "$
|
|
3
|
+
import Button from "$ecomponents/Button";
|
|
4
4
|
import notify from "$notify";
|
|
5
5
|
import FormsManager from "./utils/FormsManager";
|
|
6
6
|
import {uniqid} from "$cutils";
|
|
@@ -20,7 +20,7 @@ import defaultKeyboardEvents from "../utils/keyboardEvents";
|
|
|
20
20
|
import sprintf from "./sprintf";
|
|
21
21
|
import ErrorMessage from "$ecomponents/ErrorBoundary/ErrorMessage";
|
|
22
22
|
import { UPPER_CASE, LOWER_CASE} from "$common/lib/validator";
|
|
23
|
-
import Label from "$
|
|
23
|
+
import Label from "$ecomponents/Label";
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
export default class Field extends AppComponent {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "$react";
|
|
2
|
-
import Divider from "$
|
|
2
|
+
import Divider from "$ecomponents/Divider";
|
|
3
3
|
import {isObj,isNonNullString,defaultStr,defaultObj} from "$utils";
|
|
4
4
|
import getComponentFromType from "./componentsTypes";
|
|
5
5
|
import appConfig from "$capp/config";
|
|
@@ -83,6 +83,7 @@ const GridCellComponent = React.forwardRef((p,ref)=>{
|
|
|
83
83
|
{...props}
|
|
84
84
|
testID={testID}
|
|
85
85
|
mediaQueryUpdateNativeProps = {(args)=>{
|
|
86
|
+
console.log("calling ",args);
|
|
86
87
|
if(typeof mediaQueryUpdateNativeProps =='function' && mediaQueryUpdateNativeProps(args) === false) return;
|
|
87
88
|
return getSizeStyle(p);
|
|
88
89
|
}}
|
|
@@ -2,7 +2,7 @@ import {Image,View} from "react-native";
|
|
|
2
2
|
import Menu from "$ecomponents/Menu";
|
|
3
3
|
import Avatar from "$ecomponents/Avatar";
|
|
4
4
|
import {isDecimal,setQueryParams,isValidURL,defaultDecimal,defaultStr as defaultString,isDataURL,isPromise,defaultBool,isObj,isNonNullString} from "$cutils";
|
|
5
|
-
import
|
|
5
|
+
import notify from "$enotify";
|
|
6
6
|
let maxWidthDiff = 150, maxHeightDiff = 150;
|
|
7
7
|
import {StyleSheet} from "react-native";
|
|
8
8
|
import React from "$react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React,{BaseComponent as AppComponent} from '$react';
|
|
2
|
-
import View from "$
|
|
2
|
+
import View from "$ecomponents/View";
|
|
3
3
|
import { ScrollView } from 'react-native';
|
|
4
4
|
import {
|
|
5
5
|
Platform,
|
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
import BackHandler from "$ecomponents/BackHandler";
|
|
15
15
|
import PropTypes from "prop-types";
|
|
16
16
|
import { withTheme,Surface,Portal} from 'react-native-paper';
|
|
17
|
-
//import Surface from "$components/Surface";
|
|
18
17
|
import { NativeModules} from 'react-native';
|
|
19
18
|
import {defaultDecimal,extendObj} from "$cutils";
|
|
20
19
|
import theme,{StylePropTypes} from "$theme";
|
|
@@ -16,7 +16,7 @@ import useEventCallback from '$react/useEventCallback';
|
|
|
16
16
|
import PropTypes from "prop-types";
|
|
17
17
|
import Surface from '$ecomponents/Surface';
|
|
18
18
|
import Label from "$ecomponents/Label"
|
|
19
|
-
import Button from "$
|
|
19
|
+
import Button from "$ecomponents/Button";
|
|
20
20
|
|
|
21
21
|
const DURATION_SHORT = 4000;
|
|
22
22
|
const DURATION_MEDIUM = 7000;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Screen from "$screen";
|
|
2
|
-
import Grid,{Cell} from "$
|
|
2
|
+
import Grid,{Cell} from "$ecomponents/Grid";
|
|
3
3
|
import {defaultStr,defaultNumber,defaultVal} from "$cutils";
|
|
4
4
|
import React from "$react";
|
|
5
5
|
import DatabaseStatistic from "./DatabaseStatistic";
|
package/src/media/index.js
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import showConfirm from "$
|
|
1
|
+
import showConfirm from "$ecomponents/Dialog/confirm";
|
|
2
2
|
import notify from "$notify";
|
|
3
3
|
import {defaultArray,arrayValueExists,defaultStr,uniqid} from "$cutils";
|
|
4
4
|
import userDbName from "$database/tables/users/dbName";
|
|
5
5
|
import Auth from "$auth";
|
|
6
6
|
import getData from "$database/getData";
|
|
7
7
|
import getDB from "$database/getDB";
|
|
8
|
-
import
|
|
9
|
-
import Icon from "$components/Icon";
|
|
8
|
+
import Icon from "$ecomponents/Icon";
|
|
10
9
|
import React from "$react";
|
|
11
|
-
import Label from "$
|
|
10
|
+
import Label from "$ecomponents/Label";
|
|
12
11
|
import {open as showPreloader,close as hidePreloader} from "$preloader";
|
|
13
|
-
import Expandable from "$
|
|
12
|
+
import Expandable from "$ecomponents/Expandable";
|
|
14
13
|
import theme from "$theme";
|
|
15
|
-
import View from "$
|
|
16
|
-
import Link from "$
|
|
17
|
-
import Button from "$
|
|
14
|
+
import View from "$ecomponents/View";
|
|
15
|
+
import Link from "$ecomponents/Link";
|
|
16
|
+
import Button from "$ecomponents/Button";
|
|
18
17
|
|
|
19
18
|
const tableName = Auth.permProfilesTableName.toUpperCase();
|
|
20
19
|
|
|
@@ -2,7 +2,7 @@ import FormDataScreen from "$elayouts/Screen/FormData";
|
|
|
2
2
|
import {defaultStr,defaultObj} from "$cutils";
|
|
3
3
|
import PermLines from "./PermLines";
|
|
4
4
|
import PropTypes from "prop-types";
|
|
5
|
-
import Label from "$
|
|
5
|
+
import Label from "$ecomponents/Label";
|
|
6
6
|
import theme from "$theme";
|
|
7
7
|
|
|
8
8
|
export const screenName = "PermProfileScreens";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style
|
|
3
3
|
// license that can be found in the LICENSE file.
|
|
4
4
|
|
|
5
|
-
import Label from "$
|
|
5
|
+
import Label from "$ecomponents/Label";
|
|
6
6
|
|
|
7
7
|
export default function ContentPrivacy (){
|
|
8
8
|
return <Label primary style={{fontSize:15,fontWeight:'bold',padding:10}}>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style
|
|
3
3
|
// license that can be found in the LICENSE file.
|
|
4
4
|
|
|
5
|
-
import Label from "$
|
|
5
|
+
import Label from "$ecomponents/Label";
|
|
6
6
|
|
|
7
7
|
export default function ContentTermsOfUses (){
|
|
8
8
|
return <Label primary style={{fontSize:15,fontWeight:'bold',padding:10}}>
|