@churchillliving/se-ui-toolkit 6.53.252 → 6.53.254
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 +26 -11
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/churchillliving-se-ui-toolkit.metadata.json +1 -1
- package/esm2015/lib/components/base/report/report-Filter/report-filter/report-filter.component.js +3 -2
- package/esm2015/lib/components/base/report/reportGenerateBtn/generate-report-btn/generate-report-btn.component.js +3 -2
- package/esm2015/lib/services/grid.service.js +18 -10
- package/esm2015/lib/services/request.service.js +2 -2
- package/esm2015/lib/services/utilities.service.js +7 -1
- package/fesm2015/churchillliving-se-ui-toolkit.js +26 -12
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/lib/services/utilities.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -604,7 +604,7 @@
|
|
|
604
604
|
}
|
|
605
605
|
RequestService.prototype.download = function (endpoint, data, baseUrl) {
|
|
606
606
|
if (baseUrl === void 0) { baseUrl = this.env.baseUrl; }
|
|
607
|
-
return this.http.post("" + baseUrl + endpoint, data, { responseType: 'blob' });
|
|
607
|
+
return this.http.post("" + baseUrl + endpoint, data, { responseType: 'blob', observe: 'response' });
|
|
608
608
|
};
|
|
609
609
|
RequestService.prototype.get = function (endpoint, data, baseUrl) {
|
|
610
610
|
if (baseUrl === void 0) { baseUrl = this.env.baseUrl; }
|
|
@@ -2054,6 +2054,12 @@
|
|
|
2054
2054
|
}
|
|
2055
2055
|
});
|
|
2056
2056
|
}
|
|
2057
|
+
// returns the response header fileName
|
|
2058
|
+
function getResponseHeaderFileName(response) {
|
|
2059
|
+
var _a, _b, _c;
|
|
2060
|
+
var header = response.headers.get('Content-Disposition');
|
|
2061
|
+
return (_c = (_b = (_a = header.split('filename=')) === null || _a === void 0 ? void 0 : _a[1]) === null || _b === void 0 ? void 0 : _b.split(";")[0]) === null || _c === void 0 ? void 0 : _c.replaceAll(/\"/g, '');
|
|
2062
|
+
}
|
|
2057
2063
|
function draggableDialog(id) {
|
|
2058
2064
|
setTimeout(function () {
|
|
2059
2065
|
var _a, _b;
|
|
@@ -2557,11 +2563,15 @@
|
|
|
2557
2563
|
}
|
|
2558
2564
|
else if (column.formatter && column.type === exports.EGridColumnType.BOOLEAN) {
|
|
2559
2565
|
rowsData.forEach(function (row) {
|
|
2560
|
-
|
|
2561
|
-
|
|
2566
|
+
var value = row[column.field.toLowerCase()];
|
|
2567
|
+
if (column.formatter === exports.EGridFormatter.CHAR) {
|
|
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' ? 'Y' : 'N';
|
|
2569
|
+
}
|
|
2570
|
+
else if (column.formatter === exports.EGridFormatter.NUMERIC) {
|
|
2571
|
+
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';
|
|
2562
2572
|
}
|
|
2563
|
-
else if (column.formatter ===
|
|
2564
|
-
row[column.field.toLowerCase()] =
|
|
2573
|
+
else if (column.formatter === exports.EGridFormatter.BOOLEAN) {
|
|
2574
|
+
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
2575
|
}
|
|
2566
2576
|
});
|
|
2567
2577
|
}
|
|
@@ -2589,11 +2599,15 @@
|
|
|
2589
2599
|
}
|
|
2590
2600
|
}
|
|
2591
2601
|
else if (column.formatter && column.type === exports.EGridColumnType.BOOLEAN) {
|
|
2592
|
-
|
|
2593
|
-
|
|
2602
|
+
var value = row[column.field.toLowerCase()];
|
|
2603
|
+
if (column.formatter === exports.EGridFormatter.CHAR) {
|
|
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' ? 'Y' : 'N';
|
|
2594
2605
|
}
|
|
2595
|
-
else if (column.formatter ===
|
|
2596
|
-
row[column.field.toLowerCase()] =
|
|
2606
|
+
else if (column.formatter === exports.EGridFormatter.NUMERIC) {
|
|
2607
|
+
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';
|
|
2608
|
+
}
|
|
2609
|
+
else if (column.formatter === exports.EGridFormatter.BOOLEAN) {
|
|
2610
|
+
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
2611
|
}
|
|
2598
2612
|
}
|
|
2599
2613
|
});
|
|
@@ -8840,7 +8854,7 @@
|
|
|
8840
8854
|
var data = window.URL.createObjectURL(newBlob);
|
|
8841
8855
|
var a = document.createElement('a');
|
|
8842
8856
|
a.href = data;
|
|
8843
|
-
a.download =
|
|
8857
|
+
a.download = getResponseHeaderFileName(response);
|
|
8844
8858
|
document.body.appendChild(a);
|
|
8845
8859
|
a.click();
|
|
8846
8860
|
document.body.removeChild(a);
|
|
@@ -8934,7 +8948,7 @@
|
|
|
8934
8948
|
var data = window.URL.createObjectURL(newBlob);
|
|
8935
8949
|
var a = document.createElement('a');
|
|
8936
8950
|
a.href = data;
|
|
8937
|
-
a.download =
|
|
8951
|
+
a.download = getResponseHeaderFileName(response);
|
|
8938
8952
|
document.body.appendChild(a);
|
|
8939
8953
|
a.click();
|
|
8940
8954
|
document.body.removeChild(a);
|
|
@@ -9963,6 +9977,7 @@
|
|
|
9963
9977
|
exports.getMatchKey = getMatchKey;
|
|
9964
9978
|
exports.getOrigDataFieldValue = getOrigDataFieldValue;
|
|
9965
9979
|
exports.getOrigDataFieldValueAsString = getOrigDataFieldValueAsString;
|
|
9980
|
+
exports.getResponseHeaderFileName = getResponseHeaderFileName;
|
|
9966
9981
|
exports.getSectionFieldValue = getSectionFieldValue;
|
|
9967
9982
|
exports.hasRole = hasRole;
|
|
9968
9983
|
exports.highlightLeftSidebar = highlightLeftSidebar;
|