@fto-consult/expo-ui 7.17.2 → 7.17.4
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
@@ -323,7 +323,7 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
323
323
|
if(!("sparkline" in this.state.config) && this.isDashboard()){
|
324
324
|
this.state.config.sparkline = true;
|
325
325
|
}
|
326
|
-
const dType = defaultStr(this.
|
326
|
+
const dType = defaultStr(this.getSessionData("displayType"),this.props.displayType,"table");
|
327
327
|
this.state.displayType = this.displayTypes[dType] ? this.displayTypes[dType].code : "table" in this.displayTypes ? "table" : Object.keys(this.displayTypes)[0]?.code;
|
328
328
|
this.state.displayOnlySectionListHeaders = defaultBool(this.getSessionData("displayOnlySectionListHeaders"),this.props.displayOnlySectionListHeaders,false)
|
329
329
|
if(this.state.displayOnlySectionListHeaders){
|
@@ -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) || ((
|
324
|
+
} else if(((this.props.allowWhiteSpaces === false) || ((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
|
}
|