ngx-sp-auth 3.2.6 → 3.2.7
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/fesm2022/ngx-sp-auth.mjs
CHANGED
|
@@ -2089,12 +2089,13 @@ class LoginOSComponent {
|
|
|
2089
2089
|
// #endregion PUBLIC
|
|
2090
2090
|
// #endregion ==========> PROPERTIES <==========
|
|
2091
2091
|
// #region ==========> INITIALIZATION <==========
|
|
2092
|
-
constructor(_authService,
|
|
2092
|
+
constructor(_authService, _projectUtilService, _route, _router, _storageService, _messageService) {
|
|
2093
2093
|
this._authService = _authService;
|
|
2094
|
-
this.
|
|
2094
|
+
this._projectUtilService = _projectUtilService;
|
|
2095
2095
|
this._route = _route;
|
|
2096
2096
|
this._router = _router;
|
|
2097
2097
|
this._storageService = _storageService;
|
|
2098
|
+
this._messageService = _messageService;
|
|
2098
2099
|
// #endregion PRIVATE
|
|
2099
2100
|
// #region PUBLIC
|
|
2100
2101
|
this.loginStatus = "loading";
|
|
@@ -2133,13 +2134,13 @@ class LoginOSComponent {
|
|
|
2133
2134
|
},
|
|
2134
2135
|
error: (error) => {
|
|
2135
2136
|
this.loginStatus = "error";
|
|
2136
|
-
this.
|
|
2137
|
+
this._projectUtilService.showHttpError(error);
|
|
2137
2138
|
},
|
|
2138
2139
|
});
|
|
2139
2140
|
},
|
|
2140
2141
|
error: (error) => {
|
|
2141
2142
|
this.loginStatus = "error";
|
|
2142
|
-
this.
|
|
2143
|
+
this._projectUtilService.showHttpError(error);
|
|
2143
2144
|
}
|
|
2144
2145
|
});
|
|
2145
2146
|
}
|
|
@@ -2166,8 +2167,9 @@ class LoginOSComponent {
|
|
|
2166
2167
|
getParams() {
|
|
2167
2168
|
const payloadString = this._route.snapshot.queryParamMap.get('payload');
|
|
2168
2169
|
if (!payloadString) {
|
|
2169
|
-
|
|
2170
|
+
this._messageService.showAlertDanger('Payload não encontrado na URL.');
|
|
2170
2171
|
this.loginStatus = "error";
|
|
2172
|
+
console.warn('Payload não encontrado na URL.');
|
|
2171
2173
|
throw new Error('Payload não encontrado na URL.');
|
|
2172
2174
|
}
|
|
2173
2175
|
try {
|
|
@@ -2185,6 +2187,8 @@ class LoginOSComponent {
|
|
|
2185
2187
|
};
|
|
2186
2188
|
}
|
|
2187
2189
|
catch (error) {
|
|
2190
|
+
this._messageService.showAlertDanger('Erro ao fazer parse do payload.');
|
|
2191
|
+
this.loginStatus = "error";
|
|
2188
2192
|
console.error('Erro ao fazer parse do payload:', error);
|
|
2189
2193
|
throw error;
|
|
2190
2194
|
}
|
|
@@ -2193,7 +2197,7 @@ class LoginOSComponent {
|
|
|
2193
2197
|
ngOnDestroy() {
|
|
2194
2198
|
this._timerSubscription?.unsubscribe();
|
|
2195
2199
|
}
|
|
2196
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LoginOSComponent, deps: [{ token: AuthService }, { token: ProjectUtilservice }, { token: i1$1.ActivatedRoute }, { token: i1$1.Router }, { token: AuthStorageService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2200
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LoginOSComponent, deps: [{ token: AuthService }, { token: ProjectUtilservice }, { token: i1$1.ActivatedRoute }, { token: i1$1.Router }, { token: AuthStorageService }, { token: i3.MessageService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2197
2201
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: LoginOSComponent, isStandalone: true, selector: "login-os", ngImport: i0, template: `
|
|
2198
2202
|
<div class="d-flex flex-column justify-content-center align-items-center h-100 w-100 bg-light" >
|
|
2199
2203
|
|
|
@@ -2301,7 +2305,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
2301
2305
|
|
|
2302
2306
|
</div>
|
|
2303
2307
|
` }]
|
|
2304
|
-
}], ctorParameters: () => [{ type: AuthService }, { type: ProjectUtilservice }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: AuthStorageService }] });
|
|
2308
|
+
}], ctorParameters: () => [{ type: AuthService }, { type: ProjectUtilservice }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: AuthStorageService }, { type: i3.MessageService }] });
|
|
2305
2309
|
|
|
2306
2310
|
class SecondaryDropdownComponent {
|
|
2307
2311
|
constructor(_projectUtilservice) {
|