ps-toolkit-ui 0.0.85 → 0.0.89

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,24 +6692,26 @@
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 () {
6699
+ sendCodeForm_1.onSuccess = function () {
6700
6700
  loginForm_1.subName = _this.l('LoginSmsSubTitle', _this.mobile.data());
6701
6701
  _this.mobile.type = exports.InputType.Hidden;
6702
6702
  code_1.progress.start();
6703
- console.log(_this.login.steps[1]);
6704
6703
  _this.login.steps[1].show();
6705
6704
  setTimeout(function () {
6706
6705
  code_1.focus();
6707
6706
  }, 100);
6708
6707
  };
6709
- sendCodeForm.inputs = [
6708
+ sendCodeForm_1.inputs = [
6710
6709
  this.mobile,
6711
6710
  sendCode
6712
6711
  ];
6712
+ sendCode.onClick = function () {
6713
+ sendCodeForm_1.submit();
6714
+ };
6713
6715
  var loginForm_1 = new FormClass(this.config.environment, this.l, 'LoginSms', true, this.login.loginUrl, 'p-h-50');
6714
6716
  loginForm_1.subName = this.l('LoginSmsSubTitle', '');
6715
6717
  loginForm_1.onSuccess = function (result) {
@@ -6761,13 +6763,11 @@
6761
6763
  };
6762
6764
  var loginStep = new LoginStepClass(loginForm_1);
6763
6765
  loginStep.show = function () {
6764
- console.log('loginStep.show');
6765
- _this.login.active = 0;
6766
+ _this.login.active = 1;
6766
6767
  };
6767
- var sendCodeStep = new LoginStepClass(sendCodeForm);
6768
+ var sendCodeStep = new LoginStepClass(sendCodeForm_1);
6768
6769
  sendCodeStep.show = function () {
6769
- console.log('sendCodeStep.show');
6770
- _this.login.active = 1;
6770
+ _this.login.active = 0;
6771
6771
  };
6772
6772
  this.login.steps.unshift(loginStep);
6773
6773
  this.login.steps.unshift(sendCodeStep);
@@ -7206,6 +7206,8 @@
7206
7206
  p.Action = option.Action;
7207
7207
  p.Accesses = option.Accesses;
7208
7208
  opt.modal.table.permissions = p;
7209
+ console.log(p, 'p');
7210
+ console.log(p.getUrl(), p.getUrl());
7209
7211
  if (opt.modal.table.form) {
7210
7212
  opt.modal.table.form.url = p.getUrl() + 'Insert';
7211
7213
  opt.modal.table.form.baseUrl = p.getUrl() + 'Insert';
@@ -7213,6 +7215,8 @@
7213
7215
  opt.modal.table.set();
7214
7216
  }
7215
7217
  if (opt.modal.form) {
7218
+ console.log(opt.modal.form, 'opt.modal.form');
7219
+ console.log(opt.modal.form.baseUrl, 'opt.modal.form.baseUrl');
7216
7220
  opt.modal.form.name = option.Name;
7217
7221
  opt.modal.form.url = opt.modal.form.baseUrl + 'Update/' + btn.row.Id;
7218
7222
  opt.modal.form.loadData(opt.modal.form.baseUrl + 'Get/' + btn.row.Id);