ods-component-lib 1.14.23 → 1.14.25
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/dist/index.css +19 -8
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +13 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1188,10 +1188,19 @@ var renderMenuItem = function renderMenuItem() {
|
|
|
1188
1188
|
};
|
|
1189
1189
|
var customizeBooleanColumnRender = function customizeBooleanColumnRender(e) {
|
|
1190
1190
|
debugger;
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1191
|
+
if (e.column.dataField === 'IsActive' || e.column.dataField === 'Status') {
|
|
1192
|
+
var tagColor = e.value ? 'green' : 'gold';
|
|
1193
|
+
return React.createElement(Tag, {
|
|
1194
|
+
color: tagColor
|
|
1195
|
+
}, e.value ? 'Active' : 'Passive');
|
|
1196
|
+
}
|
|
1197
|
+
if (e.column.dataType === 'datetime') {
|
|
1198
|
+
if (e.value !== null) {
|
|
1199
|
+
var formatedDate = moment(e.value).format('DD.MM.YYYY HH.mm (ZZ)');
|
|
1200
|
+
return formatedDate;
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
return e.value;
|
|
1195
1204
|
};
|
|
1196
1205
|
function OdsDataGrid(props) {
|
|
1197
1206
|
return grid(props);
|