@fto-consult/expo-ui 6.89.1 → 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
@@ -13,7 +13,7 @@ const GridComponent = React.forwardRef(({onPress,responsive,activeOpacity,onLong
|
|
13
13
|
const flex = customFlex !== undefined ? customFlex : (flattenedStyle && (col && flattenedStyle.width || !col && flattenedStyle.height)) ? undefined : undefined;
|
14
14
|
const C = onPress || onLongPress || onPressIn || onPressOut ? Pressable : View;
|
15
15
|
return <C {...props} activeOpacity={activeOpacity} onLongPress={onLongPress} onPressIn={onPressIn} onPressOut={onPressOut}
|
16
|
-
testID={testID
|
16
|
+
testID={testID} onPress={onPress}
|
17
17
|
style={[styles.container,{flexGrow},col && {flexDirection:'column'},responsive!== false && !col && grid.row(false),style,flex !== undefined && {flex}]} ref={ref}
|
18
18
|
/>
|
19
19
|
});
|
@@ -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 ?
|
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();
|