@fto-consult/expo-ui 6.5.1 → 6.5.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
|
@@ -225,6 +225,7 @@ export default class Field extends AppComponent {
|
|
|
225
225
|
this.state.isFieldEditable = true;
|
|
226
226
|
this.state.isFieldVisible = typeof this.props.visible =='boolean'? this.props.visible : true;
|
|
227
227
|
this.state.wrapperStyle = this.getMediaQueryUpdateStyle();
|
|
228
|
+
this.state.currentMedia = Dimensions.getDimensionsProps().currentMedia;
|
|
228
229
|
}
|
|
229
230
|
validatorBeforeValidate({value,validRule,validParams,event,...rest}){
|
|
230
231
|
let _result = undefined;
|
|
@@ -638,6 +639,7 @@ export default class Field extends AppComponent {
|
|
|
638
639
|
return false;
|
|
639
640
|
}
|
|
640
641
|
doUpdateMediaQueryStyle(args){
|
|
642
|
+
if(args?.currentMedia === this.state.currentMedia) return null;
|
|
641
643
|
const wrapperStyle = this.getMediaQueryUpdateStyle(args);
|
|
642
644
|
this.setState({isMobile:args.isMobile,wrapperStyle});
|
|
643
645
|
}
|
|
@@ -229,7 +229,7 @@ const TextFieldComponent = React.forwardRef((componentProps,inputRef)=>{
|
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
selectionColor = Colors.isValid(selectionColor)? selectionColor : theme.colors.secondaryOnSurface;
|
|
232
|
-
const flattenStyle = StyleSheet.flatten([styles.input,styles.textInput,props.style,styles.w100,style,upperStyle]);
|
|
232
|
+
const flattenStyle = StyleSheet.flatten([{pointerEvents},styles.input,styles.textInput,props.style,styles.w100,style,upperStyle]);
|
|
233
233
|
fontSize = defaultNumber(fontSize,flattenStyle.fontSize,FONT_SIZE);
|
|
234
234
|
labelProps = defaultObj(labelProps);
|
|
235
235
|
const alphaColor = isShadowMode || isNormalMode ? theme.colors.text : Colors.setAlpha(theme.colors.text,theme.ALPHA);
|
|
@@ -296,6 +296,7 @@ const TextFieldComponent = React.forwardRef((componentProps,inputRef)=>{
|
|
|
296
296
|
const withAutoHeight = typeof autoHeight === 'boolean'? autoHeight : false;
|
|
297
297
|
const height = withAutoHeight || multiline ? undefined : tHeight;
|
|
298
298
|
const inputStyle2 = withAutoHeight || multiline ? {minHeight : heightRef.current} : null;
|
|
299
|
+
const containerStyle = StyleSheet.flatten(containerProps.style) || {};
|
|
299
300
|
const inputProps= {
|
|
300
301
|
caretHidden : false,
|
|
301
302
|
ellipsizeMode : "head",
|
|
@@ -358,7 +359,6 @@ const TextFieldComponent = React.forwardRef((componentProps,inputRef)=>{
|
|
|
358
359
|
isShadowMode && styles.inputShadowMode,
|
|
359
360
|
multiline && {paddingTop : isFlatMode? 12 : 7},
|
|
360
361
|
],
|
|
361
|
-
pointerEvents,
|
|
362
362
|
secureTextEntry,
|
|
363
363
|
inputMode,
|
|
364
364
|
autoCapitalize : upper?(isAndroid?'characters':"none"):autoCapitalize,
|
|
@@ -399,7 +399,7 @@ const TextFieldComponent = React.forwardRef((componentProps,inputRef)=>{
|
|
|
399
399
|
let hasRight = React.isValidElement(right),hasLeft = React.isValidElement(left);
|
|
400
400
|
enableCopy = enableCopy ? true : false;
|
|
401
401
|
fieldToCopy = defaultStr(fieldToCopy).toLowerCase().trim();
|
|
402
|
-
if(isEditable || isFilter || defaultStr(
|
|
402
|
+
if(isEditable || isFilter || defaultStr(containerStyle.pointerEvents).toLowerCase().contains("none")){
|
|
403
403
|
enableCopy = false;
|
|
404
404
|
}
|
|
405
405
|
if(enableCopy){
|
|
@@ -530,7 +530,7 @@ const TextFieldComponent = React.forwardRef((componentProps,inputRef)=>{
|
|
|
530
530
|
{label}
|
|
531
531
|
</Label> : null}
|
|
532
532
|
<>
|
|
533
|
-
<Surface testID={testID+"_ContentContainer"}
|
|
533
|
+
<Surface testID={testID+"_ContentContainer"} {...contentContainerProps} elevation={elevation} style={[styles.contentContainer,{pointerEvents},!left? styles.paddingLeft:null,styles.row,contentContainerStyle,contentContainerProps.style]}>
|
|
534
534
|
{left ? (<View testID={testID+"_Left"} {...leftContainerProps} style={[styles.AdornmentContainer,styles.leftAdornment,leftContainerProps.style,disabledStyle]}>
|
|
535
535
|
{left}
|
|
536
536
|
</View>) : null}
|