@arsedizioni/ars-utils 22.0.20 → 22.0.21

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.
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { signal, computed, inject, DestroyRef, Service, Injectable } from '@angular/core';
3
3
  import { HttpClient, HttpHeaders, HttpRequest, HttpErrorResponse } from '@angular/common/http';
4
- import { BroadcastService, SystemUtils } from '@arsedizioni/ars-utils/core';
4
+ import { BroadcastService, SplashService, SystemUtils } from '@arsedizioni/ars-utils/core';
5
5
  import { EMPTY, throwError, of, catchError as catchError$1 } from 'rxjs';
6
6
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
7
7
  import { catchError, map, finalize } from 'rxjs/operators';
@@ -2196,6 +2196,7 @@ class ClipperService {
2196
2196
  this.httpClient = inject(HttpClient);
2197
2197
  this.destroyRef = inject(DestroyRef);
2198
2198
  this.broadcastService = inject(BroadcastService);
2199
+ this.splashService = inject(SplashService);
2199
2200
  this.broadcastInitialized = false;
2200
2201
  this._serviceUri = '';
2201
2202
  this._flags = ClipperServiceFlags.None;
@@ -2414,6 +2415,7 @@ class ClipperService {
2414
2415
  * @param oauthAccessToken - The OAuth2 bearer token. Defaults to the value stored in session storage.
2415
2416
  */
2416
2417
  login(email, password, remember, oauth, oauthAccessToken = sessionStorage.getItem("clipper_oauth_token") ?? undefined) {
2418
+ this.splashService.setMessage('Accesso in corso...');
2417
2419
  return this.httpClient
2418
2420
  .post(this._serviceUri + '/login2', {
2419
2421
  user: oauth ? null : email,