@fto-consult/expo-ui 8.25.10 → 8.25.11

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.25.10",
3
+ "version": "8.25.11",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "scripts": {
6
6
  "clear-npx-cache": "npx clear-npx-cache",
@@ -68,7 +68,7 @@
68
68
  "dependencies": {
69
69
  "@emotion/react": "^11.11.1",
70
70
  "@faker-js/faker": "^8.0.2",
71
- "@fto-consult/common": "^4.25.17",
71
+ "@fto-consult/common": "^4.25.20",
72
72
  "@fto-consult/node-utils": "^1.4.7",
73
73
  "apexcharts": "^3.45.2",
74
74
  "crypto-browserify": "^3.12.0",
@@ -39,9 +39,8 @@ export const renderRowCell = (arg)=>{
39
39
  } else if(isFunction(columnDef.multiplicater)){
40
40
  _render = defaultDecimal(columnDef.multiplicater({...renderArgs,value:rowData[columnField]}),rowData[columnField]);
41
41
  }
42
- const cellValue = defaultVal(_render,rowData[columnField]);
43
- {
44
- _render = cellValue;
42
+ const cellValue = _render = defaultVal(_render,rowData[columnField]);
43
+ if(!React.isValidElement(_render)){
45
44
  if(!renderText && defaultStr(columnDef.format).toLowerCase() === 'hashtag'){
46
45
  _render = <Hashtag>{_render}</Hashtag>
47
46
  } else if(arrayValueExists( _type,["date","datetime","time"])){
@@ -179,7 +178,7 @@ export const renderRowCell = (arg)=>{
179
178
  if((typeof _render ==='string' || typeof _render =='number')){
180
179
  _render = <Label userSelect>{_render}</Label>
181
180
  }
182
- _render = React.isValidElement(_render)|| Array.isArray(_render)?_render:null;
181
+ _render = React.isValidElement(_render) || Array.isArray(_render)?_render:null;
183
182
  return {render:_render,style,extra,key};
184
183
  }
185
184
 
@@ -70,7 +70,7 @@ export default class FormSelectField extends Field{
70
70
  }
71
71
  return undefined;
72
72
  }
73
- isValid(...args){
73
+ isValid11(...args){
74
74
  if(this.hasNoValidSelectedValue() === true) return false;
75
75
  return super.isValid(...args);
76
76
  }
@@ -77,7 +77,6 @@ export const getFilterComponentProps = (_props)=>{
77
77
  type,
78
78
  visible,
79
79
  jsType,
80
- filterType,
81
80
  getValidValue,
82
81
  validate,
83
82
  onValidatorValid,///il s'agit de la fonction de rappel appelée immédiatement après que le validateur ait réuissie la validation
@@ -88,7 +87,7 @@ export const getFilterComponentProps = (_props)=>{
88
87
  props = defaultObj(props);
89
88
  const componentTypes = getComponentTypes();
90
89
  let component = componentTypes.TextField;
91
- type = defaultStr(filterType,jsType,type,'text').toLowerCase().replaceAll("_","").replaceAll("-","").trim();
90
+ type = defaultStr(jsType,type,'text').toLowerCase().replaceAll("_","").replaceAll("-","").trim();
92
91
  const sanitizedType = type.replaceAll("_","").toLowerCase().trim();
93
92
  props = defaultObj(props);
94
93
  props.label = defaultStr(label,text);