@ts-core/angular 11.0.86 → 11.0.87

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.
@@ -9015,36 +9015,6 @@
9015
9015
  // Protected Methods
9016
9016
  //
9017
9017
  // --------------------------------------------------------------------------
9018
- /*
9019
- protected async loginByParam(param?: any): Promise<void> {
9020
- if (this.isLoggedIn || this.isLoading) {
9021
- return;
9022
- }
9023
-
9024
- this.status = LoadableStatus.LOADING;
9025
- this.observer.next(new ObservableData(LoadableEvent.STARTED));
9026
- this.observer.next(new ObservableData(LoginBaseServiceEvent.LOGIN_STARTED));
9027
-
9028
- try {
9029
- this.parseLoginResponse(await this.loginRequest(param));
9030
- this.status = !this.isCanLoginWithSid() ? LoadableStatus.LOADED : LoadableStatus.LOADING;
9031
- if (this.isLoading) {
9032
- this.loginBySid();
9033
- }
9034
- } catch (error) {
9035
- error = ExtendedError.create(error);
9036
-
9037
- this.status = LoadableStatus.ERROR;
9038
- this.parseLoginErrorResponse(error);
9039
- this.observer.next(new ObservableData(LoginBaseServiceEvent.LOGIN_ERROR, null, error));
9040
- }
9041
-
9042
- if (!this.isLoading) {
9043
- this.observer.next(new ObservableData(LoadableEvent.FINISHED));
9044
- this.observer.next(new ObservableData(LoginBaseServiceEvent.LOGIN_FINISHED));
9045
- }
9046
- }
9047
- */
9048
9018
  LoginBaseService.prototype.loginByParam = function (param) {
9049
9019
  return __awaiter(this, void 0, void 0, function () {
9050
9020
  var _this = this;
@@ -9150,7 +9120,6 @@
9150
9120
  }
9151
9121
  this.reset();
9152
9122
  };
9153
- // public abstract registration(param: any): void;
9154
9123
  LoginBaseService.prototype.loginByResponse = function (param) {
9155
9124
  return __awaiter(this, void 0, void 0, function () {
9156
9125
  return __generator(this, function (_a) {
@@ -9179,6 +9148,7 @@
9179
9148
  return false;
9180
9149
  }
9181
9150
  if (!this.isLoggedIn && !this.isLoading) {
9151
+ this.status = common.LoadableStatus.LOADING;
9182
9152
  this.observer.next(new observer.ObservableData(common.LoadableEvent.STARTED));
9183
9153
  this.observer.next(new observer.ObservableData(exports.LoginBaseServiceEvent.LOGIN_STARTED));
9184
9154
  this.loginBySid();
@@ -9291,33 +9261,6 @@
9291
9261
  LoginBaseServiceEvent["REGISTRATION_FINISHED"] = "REGISTRATION_FINISHED";
9292
9262
  })(exports.LoginBaseServiceEvent || (exports.LoginBaseServiceEvent = {}));
9293
9263
 
9294
- var LoginGuard = /** @class */ (function () {
9295
- // --------------------------------------------------------------------------
9296
- //
9297
- // Constructor
9298
- //
9299
- // --------------------------------------------------------------------------
9300
- function LoginGuard(login) {
9301
- this.login = login;
9302
- }
9303
- // --------------------------------------------------------------------------
9304
- //
9305
- // Public Methods
9306
- //
9307
- // --------------------------------------------------------------------------
9308
- LoginGuard.prototype.canActivate = function (route, state) {
9309
- return this.login.isLoggedIn;
9310
- };
9311
- return LoginGuard;
9312
- }());
9313
- LoginGuard.ɵprov = i0.ɵɵdefineInjectable({ factory: function LoginGuard_Factory() { return new LoginGuard(i0.ɵɵinject(LoginBaseService)); }, token: LoginGuard, providedIn: "root" });
9314
- LoginGuard.decorators = [
9315
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
9316
- ];
9317
- LoginGuard.ctorParameters = function () { return [
9318
- { type: LoginBaseService }
9319
- ]; };
9320
-
9321
9264
  var LoginRequireResolver = /** @class */ (function () {
9322
9265
  // --------------------------------------------------------------------------
9323
9266
  //
@@ -9353,6 +9296,34 @@
9353
9296
  return LoginRequireResolver;
9354
9297
  }());
9355
9298
 
9299
+ var LoginGuard = /** @class */ (function (_super) {
9300
+ __extends(LoginGuard, _super);
9301
+ // --------------------------------------------------------------------------
9302
+ //
9303
+ // Constructor
9304
+ //
9305
+ // --------------------------------------------------------------------------
9306
+ function LoginGuard(login) {
9307
+ return _super.call(this, login) || this;
9308
+ }
9309
+ // --------------------------------------------------------------------------
9310
+ //
9311
+ // Public Methods
9312
+ //
9313
+ // --------------------------------------------------------------------------
9314
+ LoginGuard.prototype.canActivate = function (route, state) {
9315
+ return this.login.isLoggedIn;
9316
+ };
9317
+ return LoginGuard;
9318
+ }(LoginRequireResolver));
9319
+ LoginGuard.ɵprov = i0.ɵɵdefineInjectable({ factory: function LoginGuard_Factory() { return new LoginGuard(i0.ɵɵinject(LoginBaseService)); }, token: LoginGuard, providedIn: "root" });
9320
+ LoginGuard.decorators = [
9321
+ { type: i0.Injectable, args: [{ providedIn: 'root' },] }
9322
+ ];
9323
+ LoginGuard.ctorParameters = function () { return [
9324
+ { type: LoginBaseService }
9325
+ ]; };
9326
+
9356
9327
  var LoginResolver = /** @class */ (function (_super) {
9357
9328
  __extends(LoginResolver, _super);
9358
9329
  // --------------------------------------------------------------------------