ods-component-lib 1.14.23 → 1.14.24
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.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.js
CHANGED
|
@@ -1192,10 +1192,19 @@ var renderMenuItem = function renderMenuItem() {
|
|
|
1192
1192
|
};
|
|
1193
1193
|
var customizeBooleanColumnRender = function customizeBooleanColumnRender(e) {
|
|
1194
1194
|
debugger;
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1195
|
+
if (e.column.dataField === 'IsActive' || e.column.dataField === 'Status') {
|
|
1196
|
+
var tagColor = e.value ? 'green' : 'gold';
|
|
1197
|
+
return React__default.createElement(antd.Tag, {
|
|
1198
|
+
color: tagColor
|
|
1199
|
+
}, e.value ? 'Active' : 'Passive');
|
|
1200
|
+
}
|
|
1201
|
+
if (e.column.dataType === 'datetime') {
|
|
1202
|
+
if (e.value !== null) {
|
|
1203
|
+
var formatedDate = moment(e.value).format('DD.MM.YYYY HH.mm (ZZ)');
|
|
1204
|
+
return formatedDate;
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
return e.value;
|
|
1199
1208
|
};
|
|
1200
1209
|
function OdsDataGrid(props) {
|
|
1201
1210
|
return grid(props);
|