@fto-consult/expo-ui 8.51.1 → 8.52.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.
@@ -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.51.1",
3
+ "version": "8.52.1",
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": {
@@ -47,7 +47,7 @@
47
47
  "delete-node-modules": "rimraf ./**/node_modules",
48
48
  "dev": "npx expo start --no-dev --minify -c",
49
49
  "modifier-url-remote-git": "git remote set-url origin 'https://borispipo@github.com/borispipo/smart-eneo.git'",
50
- "update": "npm i @fto-consult/common@latest react-native-web react-native-big-list@latest apexcharts@latest file-saver@latest google-libphonenumber@latest react-native-iphone-x-helper@latest react-native-mime-types@latest react-native-paper@latest react-native-paper-dates@latest react-virtuoso@latest tippy.js@latest xlsx@latest && npm run update-apexchart && npm run find-licenses && npm i -D @fto-consult/node-utils@latest"
50
+ "update": "npm i @fto-consult/common@latest @fto-consult/node-utils@latest react-native-web react-native-big-list@latest apexcharts@latest file-saver@latest google-libphonenumber@latest react-native-iphone-x-helper@latest react-native-mime-types@latest react-native-paper@latest react-native-paper-dates@latest react-virtuoso@latest tippy.js@latest xlsx@latest && npm run update-apexchart && npm run find-licenses"
51
51
  },
52
52
  "bin": {
53
53
  "expo-ui": "bin/index.js"
@@ -70,6 +70,7 @@
70
70
  "@emotion/react": "^11.11.1",
71
71
  "@faker-js/faker": "^8.0.2",
72
72
  "@fto-consult/common": "^4.36.0",
73
+ "@fto-consult/node-utils": "^1.7.1",
73
74
  "apexcharts": "^3.47.0",
74
75
  "file-saver": "^2.0.5",
75
76
  "google-libphonenumber": "^3.2.34",
@@ -96,7 +97,6 @@
96
97
  "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
97
98
  "@expo/metro-config": "~0.17.1",
98
99
  "@expo/webpack-config": "^19.0.1",
99
- "@fto-consult/node-utils": "^1.7.1",
100
100
  "babel-plugin-inline-dotenv": "^1.7.0",
101
101
  "babel-plugin-module-resolver": "^5.0.0",
102
102
  "crypto-browserify": "^3.12.0",
@@ -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 : true;
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 : true,
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
- "version": "8.35.1",
4
- "url": "https://github.com/borispipo/expo-ui#readme",
5
- "license": "ISC"
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/native": {
13
- "version": "11.11.0",
14
- "url": "https://emotion.sh",
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
- "@pchmn/expo-material3-theme": {
38
- "version": "1.3.2",
39
- "url": "https://github.com/pchmn/expo-material3-theme#readme",
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
- "@react-navigation/native-stack": {
68
- "version": "6.9.25",
69
- "url": "https://github.com/software-mansion/react-native-screens#readme",
70
- "license": "MIT"
36
+ "@fto-consult/common": {
37
+ "version": "4.36.0",
38
+ "url": "https://github.com/borispipo/common#readme",
39
+ "license": "ISC"
71
40
  },
72
- "@react-navigation/stack": {
73
- "version": "6.3.28",
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
- "@shopify/flash-list": {
78
- "version": "1.6.3",
79
- "url": "https://shopify.github.io/flash-list/",
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
- "expo": {
93
- "version": "50.0.13",
94
- "url": "https://github.com/expo/expo/tree/main/packages/expo",
60
+ "crypto-browserify": {
61
+ "version": "3.12.0",
62
+ "url": "https://github.com/crypto-browserify/crypto-browserify",
95
63
  "license": "MIT"
96
64
  },
97
- "expo-camera": {
98
- "version": "14.1.1",
99
- "url": "https://docs.expo.dev/versions/latest/sdk/camera/",
65
+ "file-saver": {
66
+ "version": "2.0.5",
67
+ "url": "https://github.com/eligrey/FileSaver.js#readme",
100
68
  "license": "MIT"
101
69
  },
102
- "expo-clipboard": {
103
- "version": "5.0.1",
104
- "url": "https://docs.expo.dev/versions/latest/sdk/clipboard",
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
- "expo-font": {
108
- "version": "11.10.3",
109
- "url": "https://docs.expo.dev/versions/latest/sdk/font/",
75
+ "html2canvas": {
76
+ "version": "1.4.1",
77
+ "url": "https://html2canvas.hertzen.com",
110
78
  "license": "MIT"
111
79
  },
112
- "expo-image-picker": {
113
- "version": "14.7.1",
114
- "url": "https://docs.expo.dev/versions/latest/sdk/imagepicker/",
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
- "expo-intent-launcher": {
118
- "version": "10.11.0",
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
- "expo-linking": {
123
- "version": "6.2.2",
124
- "url": "https://docs.expo.dev/versions/latest/sdk/linking",
89
+ "jsbarcode": {
90
+ "version": "3.11.6",
91
+ "url": "https://github.com/lindell/JsBarcode#readme",
125
92
  "license": "MIT"
126
93
  },
127
- "expo-sharing": {
128
- "version": "11.10.0",
129
- "url": "https://docs.expo.dev/versions/latest/sdk/sharing/",
94
+ "prop-types": {
95
+ "version": "15.8.1",
96
+ "url": "https://facebook.github.io/react/",
130
97
  "license": "MIT"
131
98
  },
132
- "expo-sqlite": {
133
- "version": "13.3.0",
134
- "url": "https://docs.expo.dev/versions/latest/sdk/sqlite/",
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
- "expo-status-bar": {
138
- "version": "1.11.1",
139
- "url": "https://docs.expo.dev/versions/latest/sdk/status-bar/",
104
+ "react-dom": {
105
+ "version": "18.2.0",
106
+ "url": "https://reactjs.org/",
140
107
  "license": "MIT"
141
108
  },
142
- "expo-system-ui": {
143
- "version": "2.9.3",
144
- "url": "https://docs.expo.dev/versions/latest/sdk/system-ui",
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
- "expo-web-browser": {
148
- "version": "12.8.2",
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": "0.73.5",
154
- "url": "https://reactnative.dev/",
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-big-list": {
158
- "version": "1.6.1",
159
- "url": "https://marcocesarato.github.io/react-native-big-list-docs/",
160
- "license": "GPL-3.0-or-later"
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-blob-util": {
163
- "version": "0.18.6",
164
- "url": "https://github.com/RonRadtke/react-native-blob-util",
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-native-gesture-handler": {
168
- "version": "2.14.1",
169
- "url": "https://github.com/software-mansion/react-native-gesture-handler#readme",
138
+ "react-virtuoso": {
139
+ "version": "4.7.2",
140
+ "url": "https://virtuoso.dev/",
170
141
  "license": "MIT"
171
142
  },
172
- "react-native-reanimated": {
173
- "version": "3.6.2",
174
- "url": "https://github.com/software-mansion/react-native-reanimated#readme",
143
+ "readable-stream": {
144
+ "version": "4.5.2",
145
+ "url": "https://github.com/nodejs/readable-stream",
175
146
  "license": "MIT"
176
147
  },
177
- "react-native-safe-area-context": {
178
- "version": "4.8.2",
179
- "url": "https://github.com/th3rdwave/react-native-safe-area-context#readme",
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
- "react-native-screens": {
183
- "version": "3.29.0",
184
- "url": "https://github.com/software-mansion/react-native-screens#readme",
158
+ "stream-browserify": {
159
+ "version": "3.0.0",
160
+ "url": "https://github.com/browserify/stream-browserify",
185
161
  "license": "MIT"
186
162
  },
187
- "react-native-svg": {
188
- "version": "14.1.0",
189
- "url": "https://github.com/react-native-community/react-native-svg",
163
+ "tippy.js": {
164
+ "version": "6.3.7",
165
+ "url": "https://atomiks.github.io/tippyjs/",
190
166
  "license": "MIT"
191
167
  },
192
- "react-native-webview": {
193
- "version": "13.6.4",
194
- "url": "https://github.com/react-native-webview/react-native-webview#readme",
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
  };