coer-elements 1.1.35 → 2.0.1
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/components/lib/coer-sidenav/coer-sidenav.component.d.ts +1 -1
- package/fesm2022/coer-elements-components.mjs +10 -5
- package/fesm2022/coer-elements-components.mjs.map +1 -1
- package/fesm2022/coer-elements-tools.mjs +10 -0
- package/fesm2022/coer-elements-tools.mjs.map +1 -1
- package/fesm2022/coer-elements.mjs.map +1 -1
- package/package.json +30 -12
- package/tools/lib/service.class.d.ts +2 -0
- package/README.md +0 -63
@@ -1956,6 +1956,16 @@ class Service {
|
|
1956
1956
|
return BLOB;
|
1957
1957
|
}
|
1958
1958
|
/** */
|
1959
|
+
DOWNLOAD_TXT(buffer, fileName = '') {
|
1960
|
+
if (Tools.IsOnlyWhiteSpace(fileName))
|
1961
|
+
fileName = 'COERSystem';
|
1962
|
+
if (!fileName.endsWith('.txt'))
|
1963
|
+
fileName += ".txt";
|
1964
|
+
const BLOB = new Blob([buffer], { type: 'text/plain' });
|
1965
|
+
saveAs(BLOB, fileName);
|
1966
|
+
return BLOB;
|
1967
|
+
}
|
1968
|
+
/** */
|
1959
1969
|
AlertError(httpError, message) {
|
1960
1970
|
if (httpError.status >= 500) {
|
1961
1971
|
if (Tools.IsNotOnlyWhiteSpace(message)) {
|