@fto-consult/expo-ui 7.16.6 → 7.16.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "7.16.6",
3
+ "version": "7.16.7",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -311,7 +311,7 @@ export default class Field extends AppComponent {
311
311
  }
312
312
  if(!this.isFilter()){
313
313
  const vRule =defaultStr(this.getValidRule()).toLowerCase();
314
- const value = typeof args.value == "undefined" || args.value == null ? "" : String(args.value).replaceAll("/","").replaceAll("\\",'').trim();
314
+ const value = typeof args.value == "undefined" || args.value == null ? "" : String(args.value).replaceAll("/","").replaceAll("\\",'');
315
315
  if(value){
316
316
  if(this.type ==='email' || vRule.contains('email')){
317
317
  if(!isValidEmail(value)){
@@ -321,7 +321,7 @@ export default class Field extends AppComponent {
321
321
  if(!isValidPhoneNumber(value)){
322
322
  return "Merci d'entrer un numéro de téléphone valide";
323
323
  }
324
- } else if(((this.props.allowWhiteSpaces === false) || ((this.type ==='id' || this.type =='piece') && this.props.allowWhiteSpaces !== true))){
324
+ } else if(((this.props.allowWhiteSpaces === false) || ((defaultStr(this.type).toLowerCase().trim() ==="selecttabledata" || this.type ==='id' || this.type =='piece') && this.props.allowWhiteSpaces !== true))){
325
325
  if((value.contains(" ") || !isValidDataFileName(value.replaceAll("@","").replaceAll(".","")))){
326
326
  return "Veuillez renseigner une valeur ne contenant pas d'espace ou de caractère accentués";
327
327
  }