@arsedizioni/ars-utils 20.3.42 → 20.3.44

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.
@@ -1033,7 +1033,7 @@ declare class ClipperDocumentMenuComponent implements OnInit, OnDestroy {
1033
1033
  private changeDetector;
1034
1034
  private clipperService;
1035
1035
  readonly useSelections: _angular_core.InputSignal<boolean>;
1036
- readonly selectionSource: _angular_core.InputSignal<"bag" | "selection" | "none">;
1036
+ readonly selectionSource: _angular_core.InputSignal<"selection" | "bag" | "none">;
1037
1037
  protected selection: () => ClipperDocumentInfo[];
1038
1038
  readonly parent: _angular_core.InputSignal<ClipperSearchResultManager>;
1039
1039
  readonly item: _angular_core.InputSignal<ClipperDocumentInfo>;
@@ -802,9 +802,10 @@ declare class EvolutionService implements OnDestroy {
802
802
  */
803
803
  confirmIdentity(code: string): rxjs.Observable<ApiResult<EvolutionLoginResult>>;
804
804
  /**
805
- * Perform logout
806
- */
807
- logout(): rxjs.Observable<any>;
805
+ * Perform logout
806
+ * @param forget: true to dispose all user informations
807
+ */
808
+ logout(forget?: boolean): rxjs.Observable<any>;
808
809
  /**
809
810
  * Switch the current login to a new one with the same credentials except role possibly (context change)
810
811
  * @param id : new user id
@@ -2235,10 +2235,7 @@ class ClipperService {
2235
2235
  * @param onSuccess: function to execute on success
2236
2236
  */
2237
2237
  autoLogout(onSuccess) {
2238
- if (!this.loggedIn())
2239
- return;
2240
2238
  this.logout()
2241
- .pipe(finalize(() => this.dialogService.clearBusy()))
2242
2239
  .subscribe({
2243
2240
  next: r => {
2244
2241
  if (!r.success) {
@@ -2249,8 +2246,9 @@ class ClipperService {
2249
2246
  this.dialogService.toast('Disconnesso da Clipper', 1500, 'power_off');
2250
2247
  }
2251
2248
  },
2249
+ error: () => { },
2252
2250
  complete: () => {
2253
- this.clear();
2251
+ this.dialogService.clearBusy();
2254
2252
  if (onSuccess) {
2255
2253
  onSuccess();
2256
2254
  }
@@ -2337,7 +2335,8 @@ class ClipperService {
2337
2335
  * @param forget: true to dispose all user informations
2338
2336
  */
2339
2337
  logout(forget = false) {
2340
- return this.httpClient.post(this._serviceUri + '/logout/?forget=' + forget, {}).pipe(finalize(() => {
2338
+ return this.httpClient.post(this._serviceUri + '/logout/?forget=' + forget, {})
2339
+ .pipe(finalize(() => {
2341
2340
  this.removeKeepAlive();
2342
2341
  this.clear(true);
2343
2342
  // Clean up
@@ -2354,7 +2353,6 @@ class ClipperService {
2354
2353
  this._loginInfo = undefined;
2355
2354
  // Logged out
2356
2355
  this.loggedIn.set(false);
2357
- this.loggingIn.set(false);
2358
2356
  // Reset channels
2359
2357
  this.availableChannels.set([]);
2360
2358
  // Notify