@fto-consult/expo-ui 6.89.2 → 6.90.0

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": "6.89.2",
3
+ "version": "6.90.0",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "main",
6
6
  "scripts": {
@@ -330,11 +330,11 @@ export default class TableDataScreenComponent extends FormDataScreen{
330
330
  ...formProps,
331
331
  context,
332
332
  cloneAction : cCloneAction,
333
- save2newAction : this.canCreateNew() && save2newAction !== false ? true : false,
333
+ save2newAction : this.canCreateNew() && save2newAction !== false ? typeof save2cloneAction =="boolean"? save2cloneAction : saveAction !== false : false,
334
334
  save2cloneAction : cCloneAction && save2cloneAction !== false ? true : false,
335
335
  isMobile : isMobOrTab,
336
336
  saveAction,
337
- save2closeAction,
337
+ save2closeAction : typeof save2cloneAction ==="boolean"? save2cloneAction : saveAction !== false,
338
338
  tableName,
339
339
  sessionName,
340
340
  table,
@@ -396,9 +396,12 @@ export default class TableDataScreenComponent extends FormDataScreen{
396
396
  handleCustomRender(){
397
397
  return true;
398
398
  }
399
+ canRenderActions(){
400
+ return (this.props.renderActions !== false);
401
+ }
399
402
  componentWillRender({...rActionsArg}){
400
403
  rActionsArg.context = this;
401
- const rActions = renderActions.call(this,rActionsArg);
404
+ const rActions = this.canRenderActions()? renderActions.call(this,rActionsArg) : {};
402
405
  const renderedActs = this.renderActions(rActionsArg);
403
406
  if(!rActionsArg.archived){
404
407
  const customActionKeyPrefix = this.getRenderedActionPrefix();