@fto-consult/expo-ui 8.51.1 → 8.52.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/src/database/tables/index.js +1 -1
- package/bin/create-app/src/database/tables/users/fields.js +2 -1
- package/package.json +1 -1
- package/src/components/Avatar/Image.js +2 -0
- package/src/components/Datagrid/Common/Common.js +2 -2
- package/src/screens/Help/openLibraries.js +100 -119
@@ -46,7 +46,7 @@
|
|
46
46
|
//si false est retournée, alors rien n'est fait et le status de ce champ reste toujours à invalide. il sera donc impossible d'enregistrer le formulaire form data
|
47
47
|
//si true est retourneé, alors la formField est valide
|
48
48
|
onValidatorValid : ({value,context,....rest}) => <boolean | object {} | string | Promise <boolean | object : {} | string>>,
|
49
|
-
|
49
|
+
exportable : <boolean>, //si le champ est exportable au format pdf ou excel
|
50
50
|
//Cette fonction est appélée à chaque échec de validation du form field
|
51
51
|
onValidatorNoValid : ({value,context,...rest}) => <any>
|
52
52
|
|
@@ -13,6 +13,7 @@ export default {
|
|
13
13
|
},
|
14
14
|
sortable : false, //on ne peut trier les avatars
|
15
15
|
filterable : false, //on ne peut également filtrer
|
16
|
+
exportable : false,//le champ avatar n'est pas exportable
|
16
17
|
},
|
17
18
|
userId : {
|
18
19
|
primaryKey : true,
|
@@ -38,6 +39,6 @@ export default {
|
|
38
39
|
},
|
39
40
|
birthdate : {
|
40
41
|
type : "date",
|
41
|
-
label : "Date",
|
42
|
+
label : "Date de naissance",
|
42
43
|
},
|
43
44
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fto-consult/expo-ui",
|
3
|
-
"version": "8.
|
3
|
+
"version": "8.52.0",
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
5
|
"react-native-paper-doc": "https://github.com/callstack/react-native-paper/tree/main/docs/docs/guides",
|
6
6
|
"scripts": {
|
@@ -25,6 +25,7 @@ const AvatarImage = React.forwardRef(({
|
|
25
25
|
testID,
|
26
26
|
imageProps,
|
27
27
|
rounded,
|
28
|
+
alt,
|
28
29
|
...rest
|
29
30
|
},ref) => {
|
30
31
|
imageProps = defaultObj(imageProps);
|
@@ -66,6 +67,7 @@ const AvatarImage = React.forwardRef(({
|
|
66
67
|
source={source}
|
67
68
|
{...cProps}
|
68
69
|
{...imageProps}
|
70
|
+
alt = {defaultStr(alt,React.getTextContent(rest.label),React.getTextContent(rest.text))}
|
69
71
|
style={[
|
70
72
|
hasImage && { width,height,borderRadius},
|
71
73
|
//!hasImage && width && {width},
|
@@ -284,7 +284,7 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
284
284
|
});
|
285
285
|
this.state.fetchOnlyVisibleColumns = !!defaultVal(this.props.fetchOnlyVisibleColumns,config.fetchOnlyVisibleColumns,this.getSessionData("fetchOnlyVisibleColumns"));
|
286
286
|
const abreviateVals = this.getSessionData("abreviateValues");
|
287
|
-
this.state.abreviateValues = abreviateVals !== undefined ? !!abreviateVals : "abreviateValues" in this.props? !!this.props.abreviateValues :
|
287
|
+
this.state.abreviateValues = abreviateVals !== undefined ? !!abreviateVals : "abreviateValues" in this.props? !!this.props.abreviateValues : false;
|
288
288
|
const sessionAggregator = this.getSessionData("aggregatorFunction");
|
289
289
|
this.state.aggregatorFunction= this.isValidAggregator(config.aggregatorFunction) && config.aggregatorFunction || this.isValidAggregator(this.props.aggregatorFunction) && this.props.aggregatorFunction || this.isValidAggregator(sessionAggregator) && sessionAggregator || Object.keys(this.aggregatorFunctions)[0];;
|
290
290
|
this.isLoading = this.isLoading.bind(this);
|
@@ -1573,7 +1573,7 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
1573
1573
|
abreviateValues : {
|
1574
1574
|
type : "switch",
|
1575
1575
|
label : "Abréger les valeurs numériques",
|
1576
|
-
defaultValue :
|
1576
|
+
defaultValue : false,
|
1577
1577
|
},
|
1578
1578
|
showXaxis : {
|
1579
1579
|
type : "switch",
|
@@ -1,22 +1,21 @@
|
|
1
1
|
module.exports = {
|
2
2
|
"@fto-consult/expo-ui": {
|
3
|
-
"
|
4
|
-
"
|
5
|
-
"
|
3
|
+
"name": "@fto-consult/expo-ui",
|
4
|
+
"version": "8.51.1",
|
5
|
+
"repository": {
|
6
|
+
"type": "git",
|
7
|
+
"url": "git+https://github.com/borispipo/expo-ui.git"
|
8
|
+
},
|
9
|
+
"homepage": "https://github.com/borispipo/expo-ui#readme"
|
6
10
|
},
|
7
11
|
"@babel/plugin-proposal-export-namespace-from": {
|
8
12
|
"version": "7.18.9",
|
9
13
|
"url": "https://babel.dev/docs/en/next/babel-plugin-proposal-export-namespace-from",
|
10
14
|
"license": "MIT"
|
11
15
|
},
|
12
|
-
"@emotion/
|
13
|
-
"version": "11.11.
|
14
|
-
"url": "https://emotion
|
15
|
-
"license": "MIT"
|
16
|
-
},
|
17
|
-
"@expo/html-elements": {
|
18
|
-
"version": "0.5.1",
|
19
|
-
"url": "https://github.com/expo/expo/tree/main/packages/html-elements",
|
16
|
+
"@emotion/react": {
|
17
|
+
"version": "11.11.4",
|
18
|
+
"url": "https://github.com/emotion-js/emotion/tree/main/packages/react",
|
20
19
|
"license": "MIT"
|
21
20
|
},
|
22
21
|
"@expo/metro-config": {
|
@@ -24,59 +23,28 @@ module.exports = {
|
|
24
23
|
"url": "https://github.com/expo/expo.git",
|
25
24
|
"license": "MIT"
|
26
25
|
},
|
27
|
-
"@expo/vector-icons": {
|
28
|
-
"version": "14.0.0",
|
29
|
-
"url": "https://expo.github.io/vector-icons",
|
30
|
-
"license": "MIT"
|
31
|
-
},
|
32
26
|
"@expo/webpack-config": {
|
33
27
|
"version": "19.0.1",
|
34
28
|
"url": "https://github.com/expo/expo-webpack-integrations/tree/main/packages/webpack-config#readme",
|
35
29
|
"license": "MIT"
|
36
30
|
},
|
37
|
-
"@
|
38
|
-
"version": "
|
39
|
-
"url": "https://github.com/
|
40
|
-
"license": "MIT"
|
41
|
-
},
|
42
|
-
"@react-native-async-storage/async-storage": {
|
43
|
-
"version": "1.21.0",
|
44
|
-
"url": "https://github.com/react-native-async-storage/async-storage#readme",
|
45
|
-
"license": "MIT"
|
46
|
-
},
|
47
|
-
"@react-native-community/datetimepicker": {
|
48
|
-
"version": "7.6.1",
|
49
|
-
"url": "https://github.com/react-native-community/datetimepicker#readme",
|
50
|
-
"license": "MIT"
|
51
|
-
},
|
52
|
-
"@react-native-community/netinfo": {
|
53
|
-
"version": "11.1.0",
|
54
|
-
"url": "https://github.com/react-native-netinfo/react-native-netinfo#readme",
|
55
|
-
"license": "MIT"
|
56
|
-
},
|
57
|
-
"@react-native/assets-registry": {
|
58
|
-
"version": "0.72.0",
|
59
|
-
"url": "git@github.com:facebook/react-native.git",
|
60
|
-
"license": "MIT"
|
61
|
-
},
|
62
|
-
"@react-navigation/native": {
|
63
|
-
"version": "6.1.16",
|
64
|
-
"url": "https://reactnavigation.org",
|
31
|
+
"@faker-js/faker": {
|
32
|
+
"version": "8.4.1",
|
33
|
+
"url": "https://github.com/faker-js/faker.git",
|
65
34
|
"license": "MIT"
|
66
35
|
},
|
67
|
-
"@
|
68
|
-
"version": "
|
69
|
-
"url": "https://github.com/
|
70
|
-
"license": "
|
36
|
+
"@fto-consult/common": {
|
37
|
+
"version": "4.36.0",
|
38
|
+
"url": "https://github.com/borispipo/common#readme",
|
39
|
+
"license": "ISC"
|
71
40
|
},
|
72
|
-
"@
|
73
|
-
"version": "
|
74
|
-
"url": "https://reactnavigation.org/docs/stack-navigator/",
|
41
|
+
"@fto-consult/node-utils": {
|
42
|
+
"version": "1.7.1",
|
75
43
|
"license": "MIT"
|
76
44
|
},
|
77
|
-
"
|
78
|
-
"version": "
|
79
|
-
"url": "https://
|
45
|
+
"apexcharts": {
|
46
|
+
"version": "3.47.0",
|
47
|
+
"url": "https://apexcharts.com",
|
80
48
|
"license": "MIT"
|
81
49
|
},
|
82
50
|
"babel-plugin-inline-dotenv": {
|
@@ -89,109 +57,122 @@ module.exports = {
|
|
89
57
|
"url": "https://github.com/tleunen/babel-plugin-module-resolver.git",
|
90
58
|
"license": "MIT"
|
91
59
|
},
|
92
|
-
"
|
93
|
-
"version": "
|
94
|
-
"url": "https://github.com/
|
60
|
+
"crypto-browserify": {
|
61
|
+
"version": "3.12.0",
|
62
|
+
"url": "https://github.com/crypto-browserify/crypto-browserify",
|
95
63
|
"license": "MIT"
|
96
64
|
},
|
97
|
-
"
|
98
|
-
"version": "
|
99
|
-
"url": "https://
|
65
|
+
"file-saver": {
|
66
|
+
"version": "2.0.5",
|
67
|
+
"url": "https://github.com/eligrey/FileSaver.js#readme",
|
100
68
|
"license": "MIT"
|
101
69
|
},
|
102
|
-
"
|
103
|
-
"version": "
|
104
|
-
"url": "https://
|
105
|
-
"license": "MIT"
|
70
|
+
"google-libphonenumber": {
|
71
|
+
"version": "3.2.34",
|
72
|
+
"url": "https://ruimarinho.github.io/google-libphonenumber/",
|
73
|
+
"license": "(MIT AND Apache-2.0)"
|
106
74
|
},
|
107
|
-
"
|
108
|
-
"version": "
|
109
|
-
"url": "https://
|
75
|
+
"html2canvas": {
|
76
|
+
"version": "1.4.1",
|
77
|
+
"url": "https://html2canvas.hertzen.com",
|
110
78
|
"license": "MIT"
|
111
79
|
},
|
112
|
-
"
|
113
|
-
"version": "
|
114
|
-
"url": "
|
80
|
+
"htmlparser2-without-node-native": {
|
81
|
+
"version": "3.9.2",
|
82
|
+
"url": "git://github.com/fb55/htmlparser2.git",
|
115
83
|
"license": "MIT"
|
116
84
|
},
|
117
|
-
"
|
118
|
-
"version": "
|
119
|
-
"url": "https://docs.expo.dev/versions/latest/sdk/intent-launcher/",
|
85
|
+
"is-plain-obj": {
|
86
|
+
"version": "4.1.0",
|
120
87
|
"license": "MIT"
|
121
88
|
},
|
122
|
-
"
|
123
|
-
"version": "
|
124
|
-
"url": "https://
|
89
|
+
"jsbarcode": {
|
90
|
+
"version": "3.11.6",
|
91
|
+
"url": "https://github.com/lindell/JsBarcode#readme",
|
125
92
|
"license": "MIT"
|
126
93
|
},
|
127
|
-
"
|
128
|
-
"version": "
|
129
|
-
"url": "https://
|
94
|
+
"prop-types": {
|
95
|
+
"version": "15.8.1",
|
96
|
+
"url": "https://facebook.github.io/react/",
|
130
97
|
"license": "MIT"
|
131
98
|
},
|
132
|
-
"
|
133
|
-
"version": "
|
134
|
-
"url": "https://
|
99
|
+
"react-content-loader": {
|
100
|
+
"version": "6.2.1",
|
101
|
+
"url": "https://github.com/danilowoz/react-content-loader",
|
135
102
|
"license": "MIT"
|
136
103
|
},
|
137
|
-
"
|
138
|
-
"version": "
|
139
|
-
"url": "https://
|
104
|
+
"react-dom": {
|
105
|
+
"version": "18.2.0",
|
106
|
+
"url": "https://reactjs.org/",
|
140
107
|
"license": "MIT"
|
141
108
|
},
|
142
|
-
"
|
143
|
-
"version": "
|
144
|
-
"url": "https://
|
109
|
+
"react-native-big-list": {
|
110
|
+
"version": "1.6.1",
|
111
|
+
"url": "https://marcocesarato.github.io/react-native-big-list-docs/",
|
112
|
+
"license": "GPL-3.0-or-later"
|
113
|
+
},
|
114
|
+
"react-native-iphone-x-helper": {
|
115
|
+
"version": "1.3.1",
|
116
|
+
"url": "https://github.com/ptelad/react-native-iphone-x-helper#readme",
|
145
117
|
"license": "MIT"
|
146
118
|
},
|
147
|
-
"
|
148
|
-
"version": "
|
149
|
-
"url": "https://docs.expo.dev/versions/latest/sdk/webbrowser/",
|
119
|
+
"react-native-mime-types": {
|
120
|
+
"version": "2.5.0",
|
150
121
|
"license": "MIT"
|
151
122
|
},
|
152
|
-
"react-native": {
|
153
|
-
"version": "
|
154
|
-
"url": "https://
|
123
|
+
"react-native-paper": {
|
124
|
+
"version": "5.12.3",
|
125
|
+
"url": "https://callstack.github.io/react-native-paper",
|
155
126
|
"license": "MIT"
|
156
127
|
},
|
157
|
-
"react-native-
|
158
|
-
"version": "
|
159
|
-
"url": "https://
|
160
|
-
"license": "
|
128
|
+
"react-native-paper-dates": {
|
129
|
+
"version": "0.22.3",
|
130
|
+
"url": "https://github.com/web-ridge/react-native-paper-dates#readme",
|
131
|
+
"license": "MIT"
|
161
132
|
},
|
162
|
-
"react-native-
|
163
|
-
"version": "0.
|
164
|
-
"url": "
|
133
|
+
"react-native-web": {
|
134
|
+
"version": "0.19.10",
|
135
|
+
"url": "git://github.com/necolas/react-native-web.git",
|
165
136
|
"license": "MIT"
|
166
137
|
},
|
167
|
-
"react-
|
168
|
-
"version": "
|
169
|
-
"url": "https://
|
138
|
+
"react-virtuoso": {
|
139
|
+
"version": "4.7.2",
|
140
|
+
"url": "https://virtuoso.dev/",
|
170
141
|
"license": "MIT"
|
171
142
|
},
|
172
|
-
"
|
173
|
-
"version": "
|
174
|
-
"url": "https://github.com/
|
143
|
+
"readable-stream": {
|
144
|
+
"version": "4.5.2",
|
145
|
+
"url": "https://github.com/nodejs/readable-stream",
|
175
146
|
"license": "MIT"
|
176
147
|
},
|
177
|
-
"
|
178
|
-
"version": "
|
179
|
-
"url": "
|
148
|
+
"sanitize-filename": {
|
149
|
+
"version": "1.6.3",
|
150
|
+
"url": "git@github.com:parshap/node-sanitize-filename.git",
|
151
|
+
"license": "WTFPL OR ISC"
|
152
|
+
},
|
153
|
+
"sharp-cli": {
|
154
|
+
"version": "2.1.1",
|
155
|
+
"url": "https://github.com/vseventer/sharp-cli",
|
180
156
|
"license": "MIT"
|
181
157
|
},
|
182
|
-
"
|
183
|
-
"version": "3.
|
184
|
-
"url": "https://github.com/
|
158
|
+
"stream-browserify": {
|
159
|
+
"version": "3.0.0",
|
160
|
+
"url": "https://github.com/browserify/stream-browserify",
|
185
161
|
"license": "MIT"
|
186
162
|
},
|
187
|
-
"
|
188
|
-
"version": "
|
189
|
-
"url": "https://github.
|
163
|
+
"tippy.js": {
|
164
|
+
"version": "6.3.7",
|
165
|
+
"url": "https://atomiks.github.io/tippyjs/",
|
190
166
|
"license": "MIT"
|
191
167
|
},
|
192
|
-
"
|
193
|
-
"version": "
|
194
|
-
"url": "https://github.com/
|
168
|
+
"vm": {
|
169
|
+
"version": "0.1.0",
|
170
|
+
"url": "https://github.com/DiegoRBaquero/node-vm#readme",
|
195
171
|
"license": "MIT"
|
172
|
+
},
|
173
|
+
"xlsx": {
|
174
|
+
"version": "0.18.5",
|
175
|
+
"url": "https://sheetjs.com/",
|
176
|
+
"license": "Apache-2.0"
|
196
177
|
}
|
197
178
|
};
|