@fto-consult/expo-ui 8.62.3 → 8.63.0

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": "8.62.3",
3
+ "version": "8.63.0",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "react-native-paper-doc": "https://github.com/callstack/react-native-paper/tree/main/docs/docs/guides",
6
6
  "scripts": {
@@ -830,7 +830,9 @@ export default class Field extends AppComponent {
830
830
  return this.state.errorText;
831
831
  }
832
832
  }
833
-
833
+ getHashTagTooltip(){
834
+ return "Cliquer insérer un hashtag.\nle motif &sdate& permet de sélectionner une date; le motif &date& insère la date actuelle au format : jj/mm/aaaa; Le motif &heure& insère l'heure actuelle; Le motif &dateheure& insère l'heure actuelle au format jj/mm/aaaa hh:mm:ss.";
835
+ }
834
836
  render (){
835
837
  let {
836
838
  data,onKeyEvent,
@@ -976,7 +978,7 @@ export default class Field extends AppComponent {
976
978
  right = <Icon color={theme.colors.primary} {...props} tooltip = {tooltip} style={[styles.icon,props.style]} icon="information"/>;
977
979
  }
978
980
  if(canRenderHashtag && !rest.disabled && !rest.readOnly){
979
- const nRight = <Icon {...props} icon={"format-header-pound"} style={[right||cRight?{marginLeft:-5}:null,props.style]} title={"Cliquer insérer un hashtag, ie faire référence à une données externe"} onPress={this.sprintf.bind(this)}/>;
981
+ const nRight = <Icon {...props} icon={"format-header-pound"} style={[right||cRight?{marginLeft:-5}:null,props.style]} title={this.getHashTagTooltip()} onPress={this.sprintf.bind(this)}/>;
980
982
  right = right ? <>{right}{nRight}</> : nRight;
981
983
  }
982
984
  return (cRight)? <>{cRight}{right}</> : right;
@@ -1021,6 +1023,7 @@ export default class Field extends AppComponent {
1021
1023
  rest.error = this.state.error;
1022
1024
  rest.onFocus = this.onFocusField.bind(this);
1023
1025
  rest.testID = defaultStr(rest.testID,"RN_FormField_"+this.getName());
1026
+ rest.tooltip = tooltip;
1024
1027
  if(this.canHandleWidthOrHeightProps()){
1025
1028
  if(width){
1026
1029
  rest.width = width;
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
2
  "@fto-consult/expo-ui": {
3
- "version": "8.62.1",
3
+ "version": "8.62.3",
4
4
  "url": "https://github.com/borispipo/expo-ui#readme",
5
5
  "license": "ISC"
6
6
  },