@fto-consult/expo-ui 6.6.7 → 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fto-consult/expo-ui",
|
|
3
|
-
"version": "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.
|
|
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
|
-
|
|
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
|
-
|
|
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'])){
|