ps-toolkit-ui 0.0.84 → 0.0.88

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.
@@ -6692,13 +6692,11 @@
6692
6692
  LoginComponent.prototype.ngOnInit = function () {
6693
6693
  var _this = this;
6694
6694
  if (this.login.type === 'Sms') {
6695
- var sendCodeForm = new FormClass(this.config.environment, this.l, 'SendCode', true, this.login.sendCodeUrl, 'p-h-50');
6695
+ var sendCodeForm_1 = new FormClass(this.config.environment, this.l, 'SendCode', true, this.login.sendCodeUrl, 'p-h-50');
6696
6696
  var sendCode = new InputClass(this.config.environment, this.l, 'SendCode', 'fad fa-paper-plane', exports.InputType.Submit);
6697
- sendCodeForm.subName = 'SendCodeSubTitle';
6697
+ sendCodeForm_1.subName = 'SendCodeSubTitle';
6698
6698
  this.mobile = new InputClass(this.config.environment, this.l, 'Mobile', 'fad fa-mobile-alt', exports.InputType.Mobile, 'm-b-10 h-45', '', true, 4, 50);
6699
- sendCodeForm.onSuccess = function () {
6700
- console.log(_this.l('LoginSmsSubTitle', _this.mobile.data()));
6701
- console.log(_this.login.steps);
6699
+ sendCodeForm_1.onSuccess = function () {
6702
6700
  loginForm_1.subName = _this.l('LoginSmsSubTitle', _this.mobile.data());
6703
6701
  _this.mobile.type = exports.InputType.Hidden;
6704
6702
  code_1.progress.start();
@@ -6707,10 +6705,13 @@
6707
6705
  code_1.focus();
6708
6706
  }, 100);
6709
6707
  };
6710
- sendCodeForm.inputs = [
6708
+ sendCodeForm_1.inputs = [
6711
6709
  this.mobile,
6712
6710
  sendCode
6713
6711
  ];
6712
+ sendCode.onClick = function () {
6713
+ sendCodeForm_1.submit();
6714
+ };
6714
6715
  var loginForm_1 = new FormClass(this.config.environment, this.l, 'LoginSms', true, this.login.loginUrl, 'p-h-50');
6715
6716
  loginForm_1.subName = this.l('LoginSmsSubTitle', '');
6716
6717
  loginForm_1.onSuccess = function (result) {
@@ -6762,13 +6763,11 @@
6762
6763
  };
6763
6764
  var loginStep = new LoginStepClass(loginForm_1);
6764
6765
  loginStep.show = function () {
6765
- console.log('loginStep.show');
6766
- _this.login.active = 0;
6766
+ _this.login.active = 1;
6767
6767
  };
6768
- var sendCodeStep = new LoginStepClass(sendCodeForm);
6768
+ var sendCodeStep = new LoginStepClass(sendCodeForm_1);
6769
6769
  sendCodeStep.show = function () {
6770
- console.log('sendCodeStep.show');
6771
- _this.login.active = 1;
6770
+ _this.login.active = 0;
6772
6771
  };
6773
6772
  this.login.steps.unshift(loginStep);
6774
6773
  this.login.steps.unshift(sendCodeStep);