@fto-consult/expo-ui 8.76.8 → 8.77.2

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.
@@ -655,7 +655,7 @@ export default class Field extends AppComponent {
655
655
  let {keyboardEvents,onKeyEvent} = this.props;
656
656
  const formInstance = this.getForm();
657
657
  const data = formInstance ? formInstance.getData() : {};
658
- const arg = {key,event,formInstance,field:this.name,formName:this.getFormName(),value:this.getValidRule(),validValue:this.getValidValue(data),data,context:this,isFormField:true,formInstance};
658
+ const arg = {key,event,formInstance,form:formInstance,field:this.name,formName:this.getFormName(),value:this.getValidRule(),validValue:this.getValidValue(data),data,context:this,isFormField:true,formInstance};
659
659
  let handler = undefined;
660
660
  if(isObj(keyboardEvents)){
661
661
  handler = keyboardEvents[key];
@@ -5,13 +5,14 @@ import React from "$react";
5
5
  import TextField from "$ecomponents/TextField";
6
6
  import appConfig from "$capp/config";
7
7
  import {isNonNullString,defaultStr} from "$cutils";
8
+ import {formatDescription} from "$clib/currency";
8
9
  import Icon from "$ecomponents/Icon";
9
10
  import {styles} from "$theme";
10
11
 
11
12
  const CurrencyFormat = React.forwardRef(({disabled,readOnly,right,isFilter,...props},ref)=>{
12
13
  const isEditable = disabled !== true && readOnly !== true;
13
14
  const defaultValue = isNonNullString(props.defaultValue) && props.defaultValue.contains("v" && props.defaultValue) && props.defaultValue || defaultStr(appConfig.currencyFormat,"%v %s");
14
- const title = "Format d'affichage des valeurs numériques : une chaine de caractère constituée des lettre %v et %s où %v représente la valeur du montant et %s représente la devise : exemple %s%v => $10 et %v %s => 10 $";
15
+ const title = formatDescription;
15
16
  return <TextField
16
17
  affix = {false}
17
18
  enableCopy = {false}