@fto-consult/expo-ui 6.6.6 → 6.6.8

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/babel.config.js CHANGED
@@ -33,7 +33,7 @@ module.exports = function(api,opts) {
33
33
  //generate getTable.js file
34
34
  const generateGetTable = String(envObj.GENERATE_GET_TABLE_JS_FILE ).trim().toLowerCase();
35
35
  const willGenerateGetTableJs = generateGetTable === "false" || generateGetTable ==="0" ? false : true;
36
- const tableDataPath = String(envObj.TABLES_DATA_PATH);
36
+ const tableDataPath = envObj.TABLES_DATA_PATH && path.resolve(String(envObj.TABLES_DATA_PATH)) || null;
37
37
  if(willGenerateGetTableJs && tableDataPath && fs.existsSync(tableDataPath)){
38
38
  if(fs.lstatSync(tableDataPath).isDirectory()){
39
39
  const getTableJsPath = path.resolve(tableDataPath,"getTable.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "6.6.6",
3
+ "version": "6.6.8",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -62,7 +62,7 @@
62
62
  "@emotion/native": "^11.11.0",
63
63
  "@expo/html-elements": "^0.5.1",
64
64
  "@expo/vector-icons": "^13.0.0",
65
- "@fto-consult/common": "^3.21.0",
65
+ "@fto-consult/common": "^3.21.1",
66
66
  "@gorhom/portal": "^1.0.14",
67
67
  "@pchmn/expo-material3-theme": "^1.3.1",
68
68
  "@react-native-async-storage/async-storage": "1.18.2",
@@ -45,9 +45,11 @@ export const renderRowCell = (arg)=>{
45
45
  } else if(typeof columnDef.render === "function"){
46
46
  _render = columnDef.render.call(context,renderArgs);
47
47
  } else if(arrayValueExists( _type,["date","datetime","time"])){
48
- let _dd =DateLib.parse(rowData[columnField],_type === 'time'?DateLib.isoTimeFormat:DateLib.SQLDateFormat);
48
+ const sqlFormat =_type === 'time'?DateLib.isoTimeFormat : _type ==="datetime" ? DateLib.SQLDateTimeFormat : DateLib.SQLDateFormat;
49
+ let _dd =DateLib.parse(rowData[columnField],sqlFormat);
49
50
  if(DateLib.isDateObj(_dd)){
50
- _render = DateLib.format(_dd,defaultStr(columnDef.format,(_type === 'time'?DateLib.defaultTimeFormat:DateLib.masks.defaultDate)));
51
+ const eFormat = defaultStr(columnDef.format,(_type === 'time'?DateLib.defaultTimeFormat:DateLib.masks.defaultDate));
52
+ _render = DateLib.format(_dd,eFormat);
51
53
  }
52
54
  if(!_render) _render = rowData[columnField]
53
55
  } else if(arrayValueExists(_type,['switch','checkbox'])){