coer-elements 1.1.35 → 2.0.0

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.
@@ -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)) {