@churchillliving/se-ui-toolkit 6.53.252 → 6.53.253
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/bundles/churchillliving-se-ui-toolkit.umd.js +16 -8
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/churchillliving-se-ui-toolkit.metadata.json +1 -1
- package/esm2015/lib/services/grid.service.js +18 -10
- package/fesm2015/churchillliving-se-ui-toolkit.js +16 -8
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -2557,11 +2557,15 @@
|
|
|
2557
2557
|
}
|
|
2558
2558
|
else if (column.formatter && column.type === exports.EGridColumnType.BOOLEAN) {
|
|
2559
2559
|
rowsData.forEach(function (row) {
|
|
2560
|
-
|
|
2561
|
-
|
|
2560
|
+
var value = row[column.field.toLowerCase()];
|
|
2561
|
+
if (column.formatter === exports.EGridFormatter.CHAR) {
|
|
2562
|
+
row[column.field.toLowerCase()] = value === true || (value === null || value === void 0 ? void 0 : value.toString()) === 'Y' || (value === null || value === void 0 ? void 0 : value.toString()) === '1' ? 'Y' : 'N';
|
|
2562
2563
|
}
|
|
2563
|
-
else if (column.formatter ===
|
|
2564
|
-
row[column.field.toLowerCase()] =
|
|
2564
|
+
else if (column.formatter === exports.EGridFormatter.NUMERIC) {
|
|
2565
|
+
row[column.field.toLowerCase()] = value === true || (value === null || value === void 0 ? void 0 : value.toString()) === 'Y' || (value === null || value === void 0 ? void 0 : value.toString()) === '1' ? '1' : '0';
|
|
2566
|
+
}
|
|
2567
|
+
else if (column.formatter === exports.EGridFormatter.BOOLEAN) {
|
|
2568
|
+
row[column.field.toLowerCase()] = value === true || (value === null || value === void 0 ? void 0 : value.toString()) === 'Y' || (value === null || value === void 0 ? void 0 : value.toString()) === '1' ? true : false;
|
|
2565
2569
|
}
|
|
2566
2570
|
});
|
|
2567
2571
|
}
|
|
@@ -2589,11 +2593,15 @@
|
|
|
2589
2593
|
}
|
|
2590
2594
|
}
|
|
2591
2595
|
else if (column.formatter && column.type === exports.EGridColumnType.BOOLEAN) {
|
|
2592
|
-
|
|
2593
|
-
|
|
2596
|
+
var value = row[column.field.toLowerCase()];
|
|
2597
|
+
if (column.formatter === exports.EGridFormatter.CHAR) {
|
|
2598
|
+
row[column.field.toLowerCase()] = value === true || (value === null || value === void 0 ? void 0 : value.toString()) === 'Y' || (value === null || value === void 0 ? void 0 : value.toString()) === '1' ? 'Y' : 'N';
|
|
2594
2599
|
}
|
|
2595
|
-
else if (column.formatter ===
|
|
2596
|
-
row[column.field.toLowerCase()] =
|
|
2600
|
+
else if (column.formatter === exports.EGridFormatter.NUMERIC) {
|
|
2601
|
+
row[column.field.toLowerCase()] = value === true || (value === null || value === void 0 ? void 0 : value.toString()) === 'Y' || (value === null || value === void 0 ? void 0 : value.toString()) === '1' ? '1' : '0';
|
|
2602
|
+
}
|
|
2603
|
+
else if (column.formatter === exports.EGridFormatter.BOOLEAN) {
|
|
2604
|
+
row[column.field.toLowerCase()] = value === true || (value === null || value === void 0 ? void 0 : value.toString()) === 'Y' || (value === null || value === void 0 ? void 0 : value.toString()) === '1' ? true : false;
|
|
2597
2605
|
}
|
|
2598
2606
|
}
|
|
2599
2607
|
});
|