@fto-consult/expo-ui 2.39.7 → 2.39.8
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
|
@@ -3272,6 +3272,9 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
|
3272
3272
|
return isObj(this.progressBarRef.current) && typeof this.progressBarRef.current.setIsLoading =='function' ? true : false;
|
|
3273
3273
|
}
|
|
3274
3274
|
onRender(){
|
|
3275
|
+
if(typeof this.props.onRender ==='function'){
|
|
3276
|
+
this.props.onRender({context:this});
|
|
3277
|
+
}
|
|
3275
3278
|
if(this.isRenderingRef.current === true){
|
|
3276
3279
|
setTimeout(()=>{
|
|
3277
3280
|
this.isRenderingRef.current = false;
|
|
@@ -3382,7 +3385,7 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
|
3382
3385
|
if((stableHash(nextProps.data) === stableHash(this.props.data))) {
|
|
3383
3386
|
return false;
|
|
3384
3387
|
}
|
|
3385
|
-
this.setIsLoading(true);
|
|
3388
|
+
this.setIsLoading(true,true);
|
|
3386
3389
|
this.prepareData({...nextProps,force:true},(state)=>{
|
|
3387
3390
|
this.setState(state)
|
|
3388
3391
|
});
|
|
@@ -3393,7 +3396,7 @@ export default class CommonDatagridComponent extends AppComponent {
|
|
|
3393
3396
|
isLoading (){
|
|
3394
3397
|
if(this.state.isReady === false || this.isRenderingRef.current) return true;
|
|
3395
3398
|
if(typeof this.props.isLoading =='boolean') return this.props.isLoading;
|
|
3396
|
-
return
|
|
3399
|
+
return this.isLoadingRef.current === true ? true : false;
|
|
3397
3400
|
}
|
|
3398
3401
|
getLinesProgressBar(){
|
|
3399
3402
|
return CommonDatagridComponent.LinesProgressBar(this.props);
|
|
@@ -66,7 +66,7 @@ export default function DatabaseStatisticContainer ({dashboardProps,onRefreshAll
|
|
|
66
66
|
setIsLoading(false);
|
|
67
67
|
refreshingRef.current = false;
|
|
68
68
|
});
|
|
69
|
-
|
|
69
|
+
},100);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
React.useEffect(()=>{
|
|
@@ -170,7 +170,7 @@ export default function DatabaseStatisticContainer ({dashboardProps,onRefreshAll
|
|
|
170
170
|
onPress = {onPress}
|
|
171
171
|
title = {title}
|
|
172
172
|
//style = {[theme.styles.pv1]}
|
|
173
|
-
description = {isLoading
|
|
173
|
+
description = {isLoading ?progressBar:<CountUp
|
|
174
174
|
from={0}
|
|
175
175
|
to={count}
|
|
176
176
|
style = {counUpStyle}
|