@arsedizioni/ars-utils 20.3.19 → 20.3.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.
- package/clipper.common/index.d.ts +1 -7
- package/clipper.ui/index.d.ts +1 -1
- package/evolution.common/index.d.ts +1 -6
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +6 -16
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +5 -12
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -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(
|
|
1072
|
+
autoLogin(onSuccess?: Function): void;
|
|
1079
1073
|
/**
|
|
1080
1074
|
* Perform auto logout
|
|
1081
1075
|
* @param onSuccess: function to execute on success
|
package/clipper.ui/index.d.ts
CHANGED
|
@@ -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<"
|
|
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>;
|
|
@@ -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(
|
|
787
|
+
autoLogin(onSuccess?: Function): boolean;
|
|
793
788
|
/**
|
|
794
789
|
* Perform auto logout
|
|
795
790
|
* @param onSuccess: function to execute on seccess
|
|
@@ -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
|
}
|
|
@@ -2216,19 +2215,10 @@ class ClipperService {
|
|
|
2216
2215
|
}
|
|
2217
2216
|
/**
|
|
2218
2217
|
* Perform auto login using current link data
|
|
2219
|
-
* @param email: the optional email if using OAuth2
|
|
2220
|
-
* @parma password: the optional password if using OAuth2
|
|
2221
|
-
* @param remember: remember credentials
|
|
2222
|
-
* @param oauth: the optional open authentication supported
|
|
2223
|
-
* @param oauthAccessToken: the optional OAuth2 access token
|
|
2224
2218
|
* @param onSuccess: function to execute on seccess
|
|
2225
|
-
* @param flags: the optional login flags
|
|
2226
2219
|
*/
|
|
2227
|
-
autoLogin(
|
|
2228
|
-
|
|
2229
|
-
flags |= ClipperLoginFlags.RememberCredentials;
|
|
2230
|
-
}
|
|
2231
|
-
this.login(email, password, remember, oauth, oauthAccessToken, flags)
|
|
2220
|
+
autoLogin(onSuccess) {
|
|
2221
|
+
this.login(null, null, true)
|
|
2232
2222
|
.pipe(finalize(() => this.dialogService.clearBusy()))
|
|
2233
2223
|
.subscribe({
|
|
2234
2224
|
next: r => {
|
|
@@ -2236,16 +2226,16 @@ class ClipperService {
|
|
|
2236
2226
|
this.dialogService.error(r.message, undefined, "Errore in Clipper");
|
|
2237
2227
|
}
|
|
2238
2228
|
else {
|
|
2239
|
-
|
|
2240
|
-
|
|
2229
|
+
if (!r.value.requiresMfa) {
|
|
2230
|
+
this.dialogService.toast('Connesso a Clipper', 1500, 'power');
|
|
2231
|
+
}
|
|
2241
2232
|
if (onSuccess) {
|
|
2242
|
-
onSuccess();
|
|
2233
|
+
onSuccess(r.value);
|
|
2243
2234
|
}
|
|
2244
2235
|
}
|
|
2245
2236
|
},
|
|
2246
2237
|
error: () => { this.dialogService.error("Clipper non disponibile."); }
|
|
2247
2238
|
});
|
|
2248
|
-
return true;
|
|
2249
2239
|
}
|
|
2250
2240
|
/**
|
|
2251
2241
|
* Perform auto logout
|