@kuzntsv/uikit 1.0.106 → 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) => {
@@ -5299,10 +5303,10 @@ function uniqueCodeValidator(field, formSchema, options) {
5299
5303
  return {
5300
5304
  url: `${options.endpoint}${divider}${encodeURIComponent(code)}`,
5301
5305
  method: "GET",
5302
- options: { headers: new HttpHeaders({
5306
+ headers: new HttpHeaders({
5303
5307
  [X_SKIP_NOTIFICATION]: "true",
5304
5308
  [X_SKIP_LOADER]: "true"
5305
- }) }
5309
+ })
5306
5310
  };
5307
5311
  },
5308
5312
  onSuccess: (foundEntity, { value, valueOf }) => {
@@ -5334,10 +5338,10 @@ function uniqueNameValidator(field, formSchema, options) {
5334
5338
  return {
5335
5339
  url: `${options.endpoint}${divider}${encodeURIComponent(name)}`,
5336
5340
  method: "GET",
5337
- options: { headers: new HttpHeaders({
5341
+ headers: new HttpHeaders({
5338
5342
  [X_SKIP_NOTIFICATION]: "true",
5339
5343
  [X_SKIP_LOADER]: "true"
5340
- }) }
5344
+ })
5341
5345
  };
5342
5346
  },
5343
5347
  onSuccess: (foundEntity, { value, valueOf }) => {