@kuzntsv/uikit 1.0.107 → 1.0.108
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.
|
@@ -1338,10 +1338,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1338
1338
|
var SecureImageService = class SecureImageService {
|
|
1339
1339
|
http = inject(HttpClient);
|
|
1340
1340
|
sanitizer = inject(DomSanitizer);
|
|
1341
|
-
getSecureUrl(relativeUrl, apiKey = "default") {
|
|
1341
|
+
getSecureUrl(relativeUrl, apiKey = "default", skipErrorNotification = false, skipLoader = false) {
|
|
1342
1342
|
if (!relativeUrl) return of("");
|
|
1343
1343
|
const context = new HttpContext().set(API_NAME, apiKey);
|
|
1344
|
+
let params = new HttpParams();
|
|
1345
|
+
if (skipErrorNotification) params = params.append(X_SKIP_NOTIFICATION, "true");
|
|
1346
|
+
if (skipLoader) params = params.append(X_SKIP_LOADER, "true");
|
|
1344
1347
|
return this.http.get(relativeUrl, {
|
|
1348
|
+
params,
|
|
1345
1349
|
responseType: "blob",
|
|
1346
1350
|
context
|
|
1347
1351
|
}).pipe(map$1((blob) => {
|