@fto-consult/expo-ui 2.18.4 → 2.18.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.18.4",
3
+ "version": "2.18.5",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -2067,10 +2067,10 @@ export default class CommonDatagridComponent extends AppComponent {
2067
2067
  _render = <Hashtag>{_render}</Hashtag>
2068
2068
  } else if(typeof columnDef.render === "function"){
2069
2069
  _render = columnDef.render.call(this,renderArgs);
2070
- } else if(arrayValueExists( _type,["date","datetime","time"]) && isNonNullString(rowData[columnField])){
2070
+ } else if(arrayValueExists( _type,["date","datetime","time"])){
2071
2071
  let _dd =DateLib.parse(rowData[columnField],_type === 'time'?DateLib.isoTimeFormat:DateLib.SQLDateFormat);
2072
2072
  if(DateLib.isDateObj(_dd)){
2073
- _render = DateLib.format(_dd,(_type === 'time'?DateLib.defaultTimeFormat:DateLib.masks.defaultDate));
2073
+ _render = DateLib.format(_dd,defaultStr(columnDef.format,(_type === 'time'?DateLib.defaultTimeFormat:DateLib.masks.defaultDate)));
2074
2074
  }
2075
2075
  if(!_render) _render = rowData[columnField]
2076
2076
  } else if(arrayValueExists(_type,['switch','checkbox'])){