@fto-consult/expo-ui 7.16.2 → 7.16.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "7.16.2",
3
+ "version": "7.16.4",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -71,7 +71,7 @@
71
71
  "@expo/html-elements": "^0.5.1",
72
72
  "@expo/vector-icons": "^13.0.0",
73
73
  "@faker-js/faker": "^8.0.2",
74
- "@fto-consult/common": "^4.1.2",
74
+ "@fto-consult/common": "^4.1.3",
75
75
  "@fto-consult/electron-gen": "^2.2.0",
76
76
  "@pchmn/expo-material3-theme": "^1.3.1",
77
77
  "@react-native-async-storage/async-storage": "1.18.2",
@@ -284,7 +284,7 @@ export default class TableDataScreenComponent extends FormDataScreen{
284
284
  currentField.readOnly = true;
285
285
  }
286
286
  });
287
- const cArgs = {field:currentField,columnField,columnDef:currentField,isUpdate:isUpdated,name:columnField,index:i,counterIndex,isPrimary,fields:preparedFields,contex:this,data:this.getCurrentData(),datas,currentIndex,isUpdated,tableName,table};
287
+ const cArgs = {...rest,field:currentField,columnField,columnDef:currentField,isUpdate:isUpdated,name:columnField,index:i,counterIndex,isPrimary,fields:preparedFields,contex:this,data:this.getCurrentData(),datas,currentIndex,isUpdated,tableName,table};
288
288
  if(isUpdated){
289
289
  //la props readOnlyOnEditing permet de rendre le champ readOnly en cas de mise à jour de la tableData
290
290
  const readOnlyOnEditing = typeof currentField.readOnlyOnEditing =='function'? currentField.readOnlyOnEditing(cArgs) : currentField.readOnlyOnEditing;
@@ -314,6 +314,10 @@ export default class TableDataScreenComponent extends FormDataScreen{
314
314
  }
315
315
 
316
316
  }
317
+ if(rest.archived === true){
318
+ currentField.readOnly = true;
319
+ currentField.disabled = true;
320
+ }
317
321
  fields[i] = currentField;
318
322
  });
319
323
  const context = this;