@fto-consult/expo-ui 6.55.2 → 6.55.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
@@ -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 = (
|
3846
|
-
|
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=>{
|
@@ -5,7 +5,6 @@ import { useWindowDimensions } from "react-native";
|
|
5
5
|
const DialogContentComponent = ({isPreloader,title,children,isFullScreen,...props})=>{
|
6
6
|
const isFull = isFullScreen();
|
7
7
|
const content = React.useMemo(()=>children,[isPreloader,title,children]);
|
8
|
-
return content;
|
9
8
|
return isPreloader || !isFull ? content : <KeyboardAvoidingView testID="RN_DialogKeybaordAvoidingView">{content}</KeyboardAvoidingView>
|
10
9
|
}
|
11
10
|
export default DialogContentComponent;
|
@@ -21,6 +21,7 @@ import Menu from "$ecomponents/Menu/Menu";
|
|
21
21
|
import Chip from "$ecomponents/Chip";
|
22
22
|
import {Content as BottomSheet,Menu as BottomSheetMenu,getContentHeight} from "$ecomponents/BottomSheet";
|
23
23
|
import {isWeb} from "$cplatform";
|
24
|
+
import Tooltip from "$ecomponents/Tooltip";
|
24
25
|
|
25
26
|
const _isIos = isIos();
|
26
27
|
|
@@ -1102,8 +1103,13 @@ class DropdownComponent extends AppComponent {
|
|
1102
1103
|
self.selectItem({value,valueKey,select:!multiple?true:select});
|
1103
1104
|
};
|
1104
1105
|
return (
|
1105
|
-
<
|
1106
|
-
|
1106
|
+
<Tooltip key={key}
|
1107
|
+
title = {content}
|
1108
|
+
testID = {testID+"_DropdownTooltipContainer"}
|
1109
|
+
style = {[[theme.styles.h100]]}
|
1110
|
+
tooltipProps = {{style:[theme.styles.h100],testID:testID+"_DropdownTooltipPopoverContainer"}}
|
1111
|
+
>
|
1112
|
+
<TouchableRipple
|
1107
1113
|
testID={testID+"Container"}
|
1108
1114
|
style={{
|
1109
1115
|
flexDirection: "row",
|
@@ -1119,7 +1125,7 @@ class DropdownComponent extends AppComponent {
|
|
1119
1125
|
</View>
|
1120
1126
|
</TouchableRipple>
|
1121
1127
|
<Divider disabled={isDisabled}/>
|
1122
|
-
</
|
1128
|
+
</Tooltip>
|
1123
1129
|
)}}
|
1124
1130
|
/>
|
1125
1131
|
</View>
|
@@ -40,7 +40,7 @@ const CommonListComponent = React.forwardRef((props,ref)=>{
|
|
40
40
|
}
|
41
41
|
let ret = renderItem({item,numColumns,index,section,numColumns,itemContainerWidth:itemWindowWidth,itemWindowWidth,...rest,isScrolling:listRef.current?.isScrolling?true:false,items:defaultArray(context.items)});
|
42
42
|
if(typeof ret =='string' || typeof ret =='number'){
|
43
|
-
return <Label children = {ret}/>
|
43
|
+
return <Label testID={testID+"_ListItemLabel"} children = {ret}/>
|
44
44
|
}
|
45
45
|
return (React.isValidElement(ret)) ? ret : null;
|
46
46
|
},
|
@@ -9,7 +9,8 @@ import {isDOMElement} from "$cutils/dom";
|
|
9
9
|
import {uniqid,defaultStr,defaultObj} from "$cutils";
|
10
10
|
|
11
11
|
const TippyTooltipComponent = React.forwardRef((props,ref)=>{
|
12
|
-
let {children,content,...rest} = props;
|
12
|
+
let {children,content,testID,...rest} = props;
|
13
|
+
testID = defaultStr(testID,"RN_TooltipPopoverComponent")
|
13
14
|
const instanceIdRef = React.useRef(uniqid("tippy-instance-id"));
|
14
15
|
const buttonRef = React.useRef(null);
|
15
16
|
const innerRef = React.useMergeRefs(ref,buttonRef);
|
@@ -48,7 +49,7 @@ const TippyTooltipComponent = React.forwardRef((props,ref)=>{
|
|
48
49
|
if(typeof children =='function'){
|
49
50
|
return children(cProps,innerRef);
|
50
51
|
}
|
51
|
-
return <Label {...cProps} ref={innerRef}>
|
52
|
+
return <Label {...cProps} testID={testID} ref={innerRef}>
|
52
53
|
{children}
|
53
54
|
</Label>
|
54
55
|
});
|