@arsedizioni/ars-utils 20.3.18 → 20.3.20

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.
@@ -1075,7 +1075,7 @@ declare class ClipperService implements OnDestroy {
1075
1075
  * @param onSuccess: function to execute on seccess
1076
1076
  * @param flags: the optional login flags
1077
1077
  */
1078
- autoLogin(email?: string, password?: string, remember?: boolean, oauth?: LoginOAuthType, oauthAccessToken?: string | undefined, onSuccess?: Function, flags?: ClipperLoginFlags): boolean;
1078
+ autoLogin(email?: string, password?: string, remember?: boolean, oauth?: LoginOAuthType, oauthAccessToken?: string | undefined, onSuccess?: Function, flags?: ClipperLoginFlags): void;
1079
1079
  /**
1080
1080
  * Perform auto logout
1081
1081
  * @param onSuccess: function to execute on success
@@ -1039,7 +1039,7 @@ declare class ClipperDocumentMenuComponent implements OnInit, OnDestroy {
1039
1039
  private changeDetector;
1040
1040
  private clipperService;
1041
1041
  readonly useSelections: _angular_core.InputSignal<boolean>;
1042
- readonly selectionSource: _angular_core.InputSignal<"selection" | "bag" | "none">;
1042
+ readonly selectionSource: _angular_core.InputSignal<"bag" | "selection" | "none">;
1043
1043
  protected selection: () => ClipperDocumentInfo[];
1044
1044
  readonly parent: _angular_core.InputSignal<ClipperSearchResultManager>;
1045
1045
  readonly item: _angular_core.InputSignal<ClipperDocumentInfo>;
@@ -2088,7 +2088,6 @@ class ClipperService {
2088
2088
  }
2089
2089
  }
2090
2090
  else {
2091
- this.completeLogin(r.value);
2092
2091
  if ((this.flags & ClipperServiceFlags.DisplayConnectionStateMessages) > 0) {
2093
2092
  this.dialogService.toast('Connesso a Clipper', 1500, 'power');
2094
2093
  }
@@ -2236,16 +2235,16 @@ class ClipperService {
2236
2235
  this.dialogService.error(r.message, undefined, "Errore in Clipper");
2237
2236
  }
2238
2237
  else {
2239
- this.completeLogin(r.value);
2240
- this.dialogService.toast('Connesso a Clipper', 1500, 'power');
2238
+ if (!r.value.requiresMfa) {
2239
+ this.dialogService.toast('Connesso a Clipper', 1500, 'power');
2240
+ }
2241
2241
  if (onSuccess) {
2242
- onSuccess();
2242
+ onSuccess(r.value);
2243
2243
  }
2244
2244
  }
2245
2245
  },
2246
2246
  error: () => { this.dialogService.error("Clipper non disponibile."); }
2247
2247
  });
2248
- return true;
2249
2248
  }
2250
2249
  /**
2251
2250
  * Perform auto logout