@rolatech/angular-services 20.0.0-beta.14 → 20.0.0-beta.15

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.
@@ -1548,7 +1548,18 @@ class PropertyService extends BaseService {
1548
1548
  });
1549
1549
  }
1550
1550
  export() {
1551
- return this.http.get(`${this.actionUrl}/export`, { withCredentials: true });
1551
+ return this.http.get(`${this.actionUrl}/export`, {
1552
+ observe: 'response',
1553
+ responseType: 'blob',
1554
+ withCredentials: true
1555
+ }).pipe(map((resp) => {
1556
+ const cd = resp.headers.get('Content-Disposition') || '';
1557
+ const match = /filename\*?=(?:UTF-8''|")?([^";]+)/i.exec(cd);
1558
+ const raw = match?.[1] ?? 'properties.csv';
1559
+ // decode RFC5987 filenames
1560
+ const filename = decodeURIComponent(raw.replace(/"/g, ''));
1561
+ return { blob: resp.body, filename };
1562
+ }));
1552
1563
  }
1553
1564
  archived(propertyId) {
1554
1565
  return this.http.post(`${this.actionUrl}/${propertyId}/archived`, {}, {