@fto-consult/expo-ui 2.39.1 → 2.39.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": "2.39.1",
3
+ "version": "2.39.3",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -215,10 +215,6 @@ const DatagridFactory = (Factory)=>{
215
215
  hasScrollViewParent(){
216
216
  return this.props.hasScrollViewParent ? true : false;
217
217
  }
218
- updateLayout(a){
219
- if(!this.bindResizeEvents()) return;
220
- return super.updateLayout(a);
221
- }
222
218
  bindResizeEvents(){
223
219
  return true;
224
220
  }
@@ -2825,7 +2825,7 @@ export default class CommonDatagridComponent extends AppComponent {
2825
2825
  const key2 = key+column;
2826
2826
  if(!this.state.columns[column] || !footers[column]) {
2827
2827
  if(this.isAccordion()) return null;
2828
- cells.push(<View key={key2} testID={testID+"_FooterCellContainer_"+key2} style={[tableStyles.headerItemOrCell,{width}]}></View>)
2828
+ cells.push(<View key={key2} testID={testID+"_FooterCellContainer_"+key2} style={[{width,marginLeft:0,paddingLeft:0,marginRight:0,paddingRight:0}]}></View>)
2829
2829
  } else {
2830
2830
  const footer = footers[column];
2831
2831
  cells.push(<View key={key2} testID={testID+"_FooterCellContainer_"+key2} style={[tableStyles.headerItemOrCell,!isA?{width,alignItems:'flex-start',justifyContent:'flex-start'}:{marginLeft:0,paddingLeft:0,marginRight:5}]}>
@@ -2844,8 +2844,8 @@ export default class CommonDatagridComponent extends AppComponent {
2844
2844
  });
2845
2845
  }
2846
2846
  }
2847
- return <View testID={testID+"_ContentContainer"} style={[theme.styles.w100,isA && this.state.displayOnlySectionListHeaders && {borderTopColor:theme.colors.divider,borderTopWidth:1},isA ? [theme.styles.ph2,theme.styles.pt1] : [theme.styles.pt1,theme.styles.ph1],theme.styles.justifyContentCenter,theme.styles.alignItemsCenter,theme.styles.pb1,!cells && theme.styles.ml1,theme.styles.mr1,cStyle]}>
2848
- <Label testID={testID+"_Label"} splitText numberOfLines={3} textBold style={[theme.styles.w100,{color:theme.colors.primaryOnSurface,fontSize:isA?15 :16},lStyle]}>{label}</Label>
2847
+ return <View testID={testID+"_ContentContainer"} style={[theme.styles.w100,isA && this.state.displayOnlySectionListHeaders && {borderTopColor:theme.colors.divider,borderTopWidth:1},isA ? [theme.styles.ph2,theme.styles.pt1] : [theme.styles.pt1,theme.styles.noPadding,theme.styles.noMargin],theme.styles.justifyContentCenter,theme.styles.alignItemsCenter,theme.styles.pb1,!cells && theme.styles.ml1,theme.styles.mr1,cStyle]}>
2848
+ <Label testID={testID+"_Label"} splitText numberOfLines={3} textBold style={[theme.styles.w100,{color:theme.colors.primaryOnSurface,fontSize:isA?15 :16},lStyle,theme.styles.ph1]}>{label}</Label>
2849
2849
  {cells ? <View testID={testID+"_TableRow"} style = {[theme.styles.w100,theme.styles.row,isA && theme.styles.pt1,theme.styles.alignItemsFlexStart,this.isAccordion() && theme.styles.rowWrap]}
2850
2850
  >{cells}</View> : null}
2851
2851
  </View>
@@ -3360,11 +3360,11 @@ export default class CommonDatagridComponent extends AppComponent {
3360
3360
  this.measureLayout(state=>{
3361
3361
  if(isObj(state)){
3362
3362
  this.layoutRef.current = state;
3363
- return;
3363
+ /*
3364
3364
  if(!this.state.isReady){
3365
3365
  state.isReady = true;
3366
3366
  }
3367
- this.setState(state);
3367
+ this.setState(state);*/
3368
3368
  }
3369
3369
  },isObj(p) && typeof p.force ==='boolean'?p.force : !this.state.isReady)
3370
3370
  }
@@ -11,7 +11,7 @@ import {styles} from "$theme";
11
11
  const CurrencyFormat = React.forwardRef(({disabled,readOnly,right,isFilter,editable,...props},ref)=>{
12
12
  const isEditable = disabled !== true && readOnly !== true && editable !== false;
13
13
  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é des lettre %v et %s où %v représente la valeur du montant et %s représente la devise : exemple %s%v => $10 et %s %v => 10 $";
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
15
  return <TextField
16
16
  affix = {false}
17
17
  enableCopy = {false}