@arsedizioni/ars-utils 20.2.19 → 20.2.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.
- package/clipper.common/index.d.ts +2 -2
- package/clipper.ui/index.d.ts +1 -1
- package/evolution.common/index.d.ts +4 -4
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +4 -4
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +8 -8
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/package.json +13 -13
|
@@ -1084,10 +1084,10 @@ declare class ClipperService implements OnDestroy {
|
|
|
1084
1084
|
* @param remember: remember credentials
|
|
1085
1085
|
* @param oauth: the optional open authentication supported
|
|
1086
1086
|
* @param oauthAccessToken: the optional OAuth2 access token
|
|
1087
|
-
* @param
|
|
1087
|
+
* @param onSuccess: function to execute on seccess
|
|
1088
1088
|
* @param flags: the optional login flags
|
|
1089
1089
|
*/
|
|
1090
|
-
autoLogin(email?: string, password?: string, remember?: boolean, oauth?: LoginOAuthType, oauthAccessToken?: string | undefined,
|
|
1090
|
+
autoLogin(email?: string, password?: string, remember?: boolean, oauth?: LoginOAuthType, oauthAccessToken?: string | undefined, onSuccess?: Function, flags?: ClipperLoginFlags): boolean;
|
|
1091
1091
|
/**
|
|
1092
1092
|
* Perform auto logout
|
|
1093
1093
|
* @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>;
|
|
@@ -778,14 +778,14 @@ declare class EvolutionService implements OnDestroy {
|
|
|
778
778
|
* @param remember: remember credentials
|
|
779
779
|
* @param oauth: the optional open authentication supported
|
|
780
780
|
* @param oauthAccessToken: the optional OAuth2 access token
|
|
781
|
-
* @param
|
|
781
|
+
* @param onSuccess: function to execute on seccess
|
|
782
782
|
*/
|
|
783
|
-
autoLogin(email?: string, password?: string, remember?: boolean, oauth?: LoginOAuthType, oauthAccessToken?: string,
|
|
783
|
+
autoLogin(email?: string, password?: string, remember?: boolean, oauth?: LoginOAuthType, oauthAccessToken?: string, onSuccess?: Function): boolean;
|
|
784
784
|
/**
|
|
785
785
|
* Perform auto logout
|
|
786
|
-
* @param
|
|
786
|
+
* @param onSuccess: function to execute on seccess
|
|
787
787
|
*/
|
|
788
|
-
autoLogout(
|
|
788
|
+
autoLogout(onSuccess?: Function): void;
|
|
789
789
|
/**
|
|
790
790
|
* Perform login
|
|
791
791
|
* @param email: the optional email if using OAuth2
|
|
@@ -2251,10 +2251,10 @@ class ClipperService {
|
|
|
2251
2251
|
* @param remember: remember credentials
|
|
2252
2252
|
* @param oauth: the optional open authentication supported
|
|
2253
2253
|
* @param oauthAccessToken: the optional OAuth2 access token
|
|
2254
|
-
* @param
|
|
2254
|
+
* @param onSuccess: function to execute on seccess
|
|
2255
2255
|
* @param flags: the optional login flags
|
|
2256
2256
|
*/
|
|
2257
|
-
autoLogin(email, password, remember, oauth, oauthAccessToken = sessionStorage.getItem("clipper_oauth_token") ?? undefined,
|
|
2257
|
+
autoLogin(email, password, remember, oauth, oauthAccessToken = sessionStorage.getItem("clipper_oauth_token") ?? undefined, onSuccess, flags) {
|
|
2258
2258
|
if (remember) {
|
|
2259
2259
|
flags |= ClipperLoginFlags.RememberCredentials;
|
|
2260
2260
|
}
|
|
@@ -2266,8 +2266,8 @@ class ClipperService {
|
|
|
2266
2266
|
}
|
|
2267
2267
|
else {
|
|
2268
2268
|
this.dialogService.toast('Connesso a Clipper', 1500, 'power');
|
|
2269
|
-
if (
|
|
2270
|
-
|
|
2269
|
+
if (onSuccess) {
|
|
2270
|
+
onSuccess();
|
|
2271
2271
|
}
|
|
2272
2272
|
}
|
|
2273
2273
|
},
|