@fto-consult/expo-ui 2.36.3 → 2.36.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
|
@@ -158,7 +158,7 @@ const SWRDatagridComponent = React.forwardRef((props,ref)=>{
|
|
|
158
158
|
const fPathRef = React.useRef(defaultStr(fetchPathKey,uniqid("fetchPath")));
|
|
159
159
|
fetchPath = defaultStr(fetchPath,table.queryPath,tableName.toLowerCase()).trim();
|
|
160
160
|
if(fetchPath){
|
|
161
|
-
fetchPath = setQueryParams(fetchPath,
|
|
161
|
+
fetchPath = setQueryParams(fetchPath,"SWRFetchPathKey",fPathRef.current)
|
|
162
162
|
}
|
|
163
163
|
const innerRef = React.useRef(null);
|
|
164
164
|
const showProgressRef = React.useRef(true);
|
|
@@ -23,7 +23,6 @@ export default function DatabaseStatisticContainer ({dashboardProps,onRefreshAll
|
|
|
23
23
|
const [count,setCount] = React.useState(0);
|
|
24
24
|
const datagridRef = React.useRef(null);
|
|
25
25
|
let {} = props;
|
|
26
|
-
title = defaultStr(title)
|
|
27
26
|
table = defaultObj(table);
|
|
28
27
|
const dbStatistics = defaultObj(table.databaseStatistics,table.databaseStatisticsProps);
|
|
29
28
|
const databaseStatisticsFields = defaultObj(table.databaseStatisticsFields);
|
|
@@ -106,6 +105,8 @@ export default function DatabaseStatisticContainer ({dashboardProps,onRefreshAll
|
|
|
106
105
|
},[columns])();
|
|
107
106
|
const counUpStyle = {fontSize:20,fontWeight:'bold',color:theme.colors.secondaryOnSurface};
|
|
108
107
|
title = React.isValidElement(title,true)?<Label splitText numberOfLines={1} color={theme.colors.primaryOnSurface} style={[{fontSize:15}]}>{title}</Label>: null;
|
|
108
|
+
const titleText = title && React.getTextContent(title) || null;
|
|
109
|
+
const titleItem = titleText && {text:titleText,icon,divider:true} || null;
|
|
109
110
|
return withDashboard ? <Dashboard
|
|
110
111
|
chartProps = {{
|
|
111
112
|
stroke: {
|
|
@@ -154,7 +155,7 @@ export default function DatabaseStatisticContainer ({dashboardProps,onRefreshAll
|
|
|
154
155
|
</View>
|
|
155
156
|
<Menu
|
|
156
157
|
testID={testID+"_Menu"}
|
|
157
|
-
items = {[
|
|
158
|
+
items = {[titleItem,...context.renderMenu(),onRefreshAllItem]}
|
|
158
159
|
anchor = {(p)=><Pressable {...p} style={[theme.styles.pl1]} testID={testID+"_MenuAnchor"}>
|
|
159
160
|
<Label
|
|
160
161
|
textCenter
|
|
@@ -179,6 +180,7 @@ export default function DatabaseStatisticContainer ({dashboardProps,onRefreshAll
|
|
|
179
180
|
return <Menu
|
|
180
181
|
testID={testID+"_Menu"}
|
|
181
182
|
items = {[
|
|
183
|
+
titleItem,
|
|
182
184
|
{
|
|
183
185
|
icon : "refresh",
|
|
184
186
|
onPress : refresh,
|