@fto-consult/expo-ui 6.55.2 → 6.55.3

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.55.2",
3
+ "version": "6.55.3",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "main",
6
6
  "scripts": {
@@ -42,6 +42,7 @@ import * as XLSX from "xlsx";
42
42
  import {convertToSQL} from "$ecomponents/Filter";
43
43
  import events from "../events";
44
44
  import {MORE_ICON} from "$ecomponents/Icon"
45
+ import ActivityIndicator from "$ecomponents/ActivityIndicator";
45
46
 
46
47
  export const TIMEOUT = 100;
47
48
 
@@ -3648,7 +3649,7 @@ export default class CommonDatagridComponent extends AppComponent {
3648
3649
  },0);
3649
3650
  }
3650
3651
  getDefaultPreloader(props){
3651
- return CommonDatagridComponent.getDefaultPreloader();
3652
+ return CommonDatagridComponent.getDefaultPreloader({isDashboard:this.isDashboard()});
3652
3653
  }
3653
3654
  isLoading (){
3654
3655
  if(this.state.isReady === false) return true;
@@ -3842,8 +3843,9 @@ export default class CommonDatagridComponent extends AppComponent {
3842
3843
 
3843
3844
  export const ProgressBar = CommonDatagridComponent.LinesProgressBar;
3844
3845
 
3845
- CommonDatagridComponent.getDefaultPreloader = (props)=>{
3846
- return <Preloader {...defaultObj(props)}/>
3846
+ CommonDatagridComponent.getDefaultPreloader = (r)=>{
3847
+ const {isDashboard,...props} = defaultObj(r);
3848
+ return isDashboard? <ActivityIndicator size={"large"} {...props} style={[theme.styles.pb10,props.style]}/> : <Preloader {...props}/>
3847
3849
  }
3848
3850
 
3849
3851
  const chartDisplayType = PropTypes.oneOf(Object.keys(displayTypes).filter(type=>{