@fto-consult/expo-ui 2.16.1 → 2.16.2

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": "2.16.1",
3
+ "version": "2.16.2",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -251,7 +251,7 @@ export default class TableDataScreenComponent extends FormDataScreen{
251
251
  currentField.form = false;
252
252
  }
253
253
  // les champs de type date par défaut qui sont requis, auront comme valeur par défaut la date actuelle s'il ne sont pas définies
254
- if((type.contains('date') || type.contains('time')) && currentField.required === true && !currentField.defaultValue){
254
+ if(currentField.autoSetDefaultValue !== false && (type.contains('date') || type.contains('time')) && currentField.required === true && !currentField.defaultValue){
255
255
  currentField.defaultValue = new Date();
256
256
  }
257
257
  generatedColumnsProperties.map((f)=>{
@@ -844,6 +844,7 @@ TableDataScreenComponent.propTypes = {
844
844
  PropTypes.node,
845
845
  PropTypes.element,
846
846
  ]),
847
+ autoSetDefaultValue : PropTypes.bool,//si la valeur par défaut sera définie pour les champs de types date et time
847
848
  }
848
849
 
849
850
  const styles = StyleSheet.create({