@fto-consult/expo-ui 2.48.4 → 2.48.5

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.48.4",
3
+ "version": "2.48.5",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -910,7 +910,7 @@ export default class Field extends AppComponent {
910
910
  visible = false;
911
911
  }
912
912
  rest.defaultValue = this.validatingValue;
913
- rest.style = [{backgroundColor:'transparent'},rest.style,!visible?{display:'none'}:undefined];
913
+ rest.style = [{backgroundColor:'transparent'},rest.style,!visible && theme.styles.hidden,!visible?{display:'none',opacity:0}:undefined];
914
914
 
915
915
  /**** si ce n'est pas un composant de type dropdown*/
916
916
  if(!isFunction(rest.filter)){
@@ -194,7 +194,7 @@ export default class FormDataComponent extends AppComponent{
194
194
  const type = defaultStr(field.jsType,field.type,"text").trim().toLowerCase().replaceAll("_","");
195
195
  const isDate = (type.contains('date') || type.contains('time'));
196
196
  const Component = componentsTypes[type] || componentsTypes.default;
197
- let {defaultValue,useDefaultValueFromData,primaryKey,hidden,renderFormDataField,getMediaQueryStyle,printLabels,queryLimit,selected,value,visible,dataFilesInterest,perm,ignore,form,responsiveProps:customResponsiveProps,...rest} = field;
197
+ let {defaultValue,useDefaultValueFromData,primaryKey,hidden,renderFormDataField,getMediaQueryStyle,printLabels,queryLimit,selected,value,dataFilesInterest,perm,ignore,form,responsiveProps:customResponsiveProps,...rest} = field;
198
198
  rest = Object.assign({},rest);
199
199
  delete rest.import;
200
200
  delete rest.export;
@@ -207,7 +207,6 @@ export default class FormDataComponent extends AppComponent{
207
207
  if(primaryKey === true && typeof rest.required !=='boolean'){
208
208
  rest.required = true;
209
209
  }
210
- hidden = visible === false ? true : hidden;
211
210
  if(typeof rest.filter !=='function'){
212
211
  delete rest.filter;
213
212
  }
@@ -219,9 +218,6 @@ export default class FormDataComponent extends AppComponent{
219
218
  } else {
220
219
  rest.defaultValue = defaultValue;
221
220
  }
222
- if(hidden){
223
- rest.style = flattenStyle([rest.style,theme.styles.hidden]);
224
- }
225
221
  if(rest.defaultValue === null){
226
222
  rest.defaultValue = undefined;
227
223
  }
@@ -250,7 +246,7 @@ export default class FormDataComponent extends AppComponent{
250
246
  archivable = {this.props.archivable || this.isArchivable()}
251
247
  name = {name}
252
248
  responsive = {responsive}
253
- responsiveProps = {{...responsiveProps,...customResponsiveProps,style:[responsiveProps.style,customResponsiveProps.style,hidden?theme.styles.hidden:null]}}
249
+ responsiveProps = {{...responsiveProps,...customResponsiveProps,style:[responsiveProps.style,customResponsiveProps.style]}}
254
250
  />);
255
251
  }
256
252
  });