@arsedizioni/ars-utils 20.3.20 → 20.3.22

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.
@@ -1067,15 +1067,9 @@ declare class ClipperService implements OnDestroy {
1067
1067
  updateContext(result: ClipperLoginResult): void;
1068
1068
  /**
1069
1069
  * Perform auto login using current link data
1070
- * @param email: the optional email if using OAuth2
1071
- * @parma password: the optional password if using OAuth2
1072
- * @param remember: remember credentials
1073
- * @param oauth: the optional open authentication supported
1074
- * @param oauthAccessToken: the optional OAuth2 access token
1075
1070
  * @param onSuccess: function to execute on seccess
1076
- * @param flags: the optional login flags
1077
1071
  */
1078
- autoLogin(email?: string, password?: string, remember?: boolean, oauth?: LoginOAuthType, oauthAccessToken?: string | undefined, onSuccess?: Function, flags?: ClipperLoginFlags): void;
1072
+ autoLogin(onSuccess?: Function): void;
1079
1073
  /**
1080
1074
  * Perform auto logout
1081
1075
  * @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<"bag" | "selection" | "none">;
1042
+ readonly selectionSource: _angular_core.InputSignal<"selection" | "bag" | "none">;
1043
1043
  protected selection: () => ClipperDocumentInfo[];
1044
1044
  readonly parent: _angular_core.InputSignal<ClipperSearchResultManager>;
1045
1045
  readonly item: _angular_core.InputSignal<ClipperDocumentInfo>;
@@ -782,14 +782,9 @@ declare class EvolutionService implements OnDestroy {
782
782
  updateContext(result: EvolutionLoginResult): void;
783
783
  /**
784
784
  * Perform auto login using current link data
785
- * @param email: the optional email if using OAuth2
786
- * @parma password: the optional password if using OAuth2
787
- * @param remember: remember credentials
788
- * @param oauth: the optional open authentication supported
789
- * @param oauthAccessToken: the optional OAuth2 access token
790
785
  * @param onSuccess: function to execute on seccess
791
786
  */
792
- autoLogin(email?: string, password?: string, remember?: boolean, oauth?: LoginOAuthType, oauthAccessToken?: string, onSuccess?: Function, flags?: EvolutionLoginFlags): boolean;
787
+ autoLogin(onSuccess?: Function): boolean;
793
788
  /**
794
789
  * Perform auto logout
795
790
  * @param onSuccess: function to execute on seccess
@@ -2215,19 +2215,10 @@ class ClipperService {
2215
2215
  }
2216
2216
  /**
2217
2217
  * Perform auto login using current link data
2218
- * @param email: the optional email if using OAuth2
2219
- * @parma password: the optional password if using OAuth2
2220
- * @param remember: remember credentials
2221
- * @param oauth: the optional open authentication supported
2222
- * @param oauthAccessToken: the optional OAuth2 access token
2223
2218
  * @param onSuccess: function to execute on seccess
2224
- * @param flags: the optional login flags
2225
2219
  */
2226
- autoLogin(email, password, remember, oauth, oauthAccessToken = sessionStorage.getItem("clipper_oauth_token") ?? undefined, onSuccess, flags) {
2227
- if (remember) {
2228
- flags |= ClipperLoginFlags.RememberCredentials;
2229
- }
2230
- this.login(email, password, remember, oauth, oauthAccessToken, flags)
2220
+ autoLogin(onSuccess) {
2221
+ this.login(null, null, true)
2231
2222
  .pipe(finalize(() => this.dialogService.clearBusy()))
2232
2223
  .subscribe({
2233
2224
  next: r => {
@@ -2285,7 +2276,7 @@ class ClipperService {
2285
2276
  */
2286
2277
  login(email, password, remember, oauth, oauthAccessToken = sessionStorage.getItem("clipper_oauth_token") ?? undefined, flags) {
2287
2278
  if (remember) {
2288
- flags |= ClipperLoginFlags.RememberCredentials;
2279
+ flags = (flags ?? 0) | ClipperLoginFlags.RememberCredentials;
2289
2280
  }
2290
2281
  return this.httpClient
2291
2282
  .post(this._serviceUri + '/login2', {