@fto-consult/expo-ui 6.10.0 → 6.10.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
|
@@ -248,7 +248,7 @@ const DatagridFactory = (Factory)=>{
|
|
|
248
248
|
{this.renderDisplayTypes()}
|
|
249
249
|
{this.renderAggregatorFunctionsMenu()}
|
|
250
250
|
{this.renderExportableMenu()}
|
|
251
|
-
<View pointerEvents={pointerEvents} testID={testID+"_HeaderPagination"} style = {styles.paginationItem}>
|
|
251
|
+
{!canRenderChart ? <View pointerEvents={pointerEvents} testID={testID+"_HeaderPagination"} style = {styles.paginationItem}>
|
|
252
252
|
<BottomSheetMenu
|
|
253
253
|
testID={testID+"_HeaderMenus"}
|
|
254
254
|
anchor={(props)=>(<Icon {...props} icon={'axis-z-arrow'}/>)}
|
|
@@ -270,7 +270,7 @@ const DatagridFactory = (Factory)=>{
|
|
|
270
270
|
},
|
|
271
271
|
]}
|
|
272
272
|
/>
|
|
273
|
-
</View
|
|
273
|
+
</View>:null}
|
|
274
274
|
{/*filters !== false && <td className="datagrid-local-filter-wrapper" ><LocalFilter title = {this.props.title} fields ={this.state.columns} onChange={this.onLocalFiltersChange.bind(this)}/></td>*/}
|
|
275
275
|
{!canRenderChart && <RenderType/> || null}
|
|
276
276
|
</View>
|
|
@@ -288,7 +288,6 @@ class SwiperComponent extends React.Component {
|
|
|
288
288
|
const autoHeight = !!this.props.autoHeight;
|
|
289
289
|
const height = autoHeight ? undefined : !isReady ? WIDTH_HEIGHT : customHeight;
|
|
290
290
|
if(withScrollView){
|
|
291
|
-
wrapperProps.nestedScrollEnabled = typeof wrapperProps.nestedScrollEnabled ==="boolean"? wrapperProps.nestedScrollEnabled : isNative;
|
|
292
291
|
if(typeof wrapperProps.showsVerticalScrollIndicator !=='boolean'){
|
|
293
292
|
wrapperProps.showsVerticalScrollIndicator = !isNative;
|
|
294
293
|
}
|
|
@@ -377,11 +377,7 @@ export default class TableDataScreenComponent extends FormDataScreen{
|
|
|
377
377
|
const isMobile = isMobileOrTabletMedia();
|
|
378
378
|
const contentProps = restProps.contentProps;
|
|
379
379
|
const elevation = restProps.elevation;
|
|
380
|
-
const renderingTabsProps = {tabs,data:this.getCurrentData(),
|
|
381
|
-
if(!isMobileOrTabletMedia()){
|
|
382
|
-
tabsProps.withScrollView = false;
|
|
383
|
-
}
|
|
384
|
-
},isMobile,sessionName:this.getSessionName(),props:restProps,tabProps,tabsProps,context,tabKey};
|
|
380
|
+
const renderingTabsProps = {tabs,data:this.getCurrentData(),isMobile,sessionName:this.getSessionName(),props:restProps,tabProps,tabsProps,context,tabKey};
|
|
385
381
|
const hasTabs = Object.size(tabs,true);
|
|
386
382
|
let mainContent = undefined;
|
|
387
383
|
testID = defaultStr(testID,"RN_TableDataScreenItem_"+restProps.tableName);
|
|
@@ -430,7 +426,7 @@ export default class TableDataScreenComponent extends FormDataScreen{
|
|
|
430
426
|
appBarProps.elevation = 0;
|
|
431
427
|
restProps.elevation = 0;
|
|
432
428
|
}
|
|
433
|
-
return <ScreenContainer {...restProps}
|
|
429
|
+
return <ScreenContainer {...restProps} appBarProps = {appBarProps} testID={testID}>
|
|
434
430
|
{this.wrapRenderingContent(mainContent,{testID})}
|
|
435
431
|
</ScreenContainer>
|
|
436
432
|
}
|
|
@@ -8,7 +8,7 @@ import {getTableDataRouteName} from "$enavigation/utils";
|
|
|
8
8
|
//@seee : https://github.com/typeorm/typeorm/blob/master/src/entity-schema/EntitySchemaColumnOptions.ts
|
|
9
9
|
export const generatedColumnsProperties = ["createDate","updateDate","deleteDate","createBy","updateBy","deleteBy"]
|
|
10
10
|
|
|
11
|
-
export const renderTabsContent = ({tabs,context,data,sessionName,
|
|
11
|
+
export const renderTabsContent = ({tabs,context,data,sessionName,isMobile,props,firstTab,tabKey,tabProps,tabsProps})=>{
|
|
12
12
|
let tabsArr = [],hasFirstTab = false;
|
|
13
13
|
if(React.isValidElement(firstTab)){
|
|
14
14
|
tabsArr.push(firstTab);
|
|
@@ -52,9 +52,6 @@ export const renderTabsContent = ({tabs,context,data,sessionName,tabsPropsMutato
|
|
|
52
52
|
})
|
|
53
53
|
}
|
|
54
54
|
if(tabsArr.length> (hasFirstTab ? 1 : 0)){
|
|
55
|
-
if(typeof tabsPropsMutator =='function' && tabsPropsMutator({tabsProps,tabs:tabsArr,hasFirstTab}) === false){
|
|
56
|
-
return null;
|
|
57
|
-
}
|
|
58
55
|
return <Tab testID={testID}
|
|
59
56
|
{...tabsProps}
|
|
60
57
|
onChange={(args)=>{
|