@messaia/cdk 19.0.0-rc05 → 19.0.0-rc07
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/fesm2022/messaia-cdk.mjs
CHANGED
|
@@ -4462,8 +4462,15 @@ class GenericService {
|
|
|
4462
4462
|
* @param disposition
|
|
4463
4463
|
*/
|
|
4464
4464
|
getFileNameFromHeaders(headers) {
|
|
4465
|
+
/* Extract the Content-Disposition header from the HTTP headers */
|
|
4465
4466
|
var disposition = headers.get('content-disposition');
|
|
4466
4467
|
if (disposition && disposition.indexOf('attachment') !== -1) {
|
|
4468
|
+
/* Use a regular expression to extract the UTF-8 file name from the Content-Disposition header */
|
|
4469
|
+
var utf8Matches = /filename\*=[^;=\n]*'[^']*'([^;\n]*)/.exec(disposition);
|
|
4470
|
+
if (utf8Matches != null && utf8Matches[1]) {
|
|
4471
|
+
return decodeURIComponent(utf8Matches[1].replace(/['"]/g, ''));
|
|
4472
|
+
}
|
|
4473
|
+
/* Use a regular expression to extract the file name from the Content-Disposition header */
|
|
4467
4474
|
var matches = /filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(disposition);
|
|
4468
4475
|
if (matches != null && matches[1]) {
|
|
4469
4476
|
return matches[1].replace(/['"]/g, '');
|
|
@@ -25343,7 +25350,6 @@ class VdChipsComponent extends AbstractMatFormField {
|
|
|
25343
25350
|
this.chips.push(x);
|
|
25344
25351
|
/* Emit the selected item */
|
|
25345
25352
|
this.initSelect.emit(x);
|
|
25346
|
-
this.focused = true;
|
|
25347
25353
|
this.changeDetectorRef.detectChanges();
|
|
25348
25354
|
},
|
|
25349
25355
|
error: () => this.loading = false
|