ps-toolkit-ui 0.0.86 → 0.0.90

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,11 +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 () {
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();
@@ -6705,10 +6705,13 @@
6705
6705
  code_1.focus();
6706
6706
  }, 100);
6707
6707
  };
6708
- sendCodeForm.inputs = [
6708
+ sendCodeForm_1.inputs = [
6709
6709
  this.mobile,
6710
6710
  sendCode
6711
6711
  ];
6712
+ sendCode.onClick = function () {
6713
+ sendCodeForm_1.submit();
6714
+ };
6712
6715
  var loginForm_1 = new FormClass(this.config.environment, this.l, 'LoginSms', true, this.login.loginUrl, 'p-h-50');
6713
6716
  loginForm_1.subName = this.l('LoginSmsSubTitle', '');
6714
6717
  loginForm_1.onSuccess = function (result) {
@@ -6762,7 +6765,7 @@
6762
6765
  loginStep.show = function () {
6763
6766
  _this.login.active = 1;
6764
6767
  };
6765
- var sendCodeStep = new LoginStepClass(sendCodeForm);
6768
+ var sendCodeStep = new LoginStepClass(sendCodeForm_1);
6766
6769
  sendCodeStep.show = function () {
6767
6770
  _this.login.active = 0;
6768
6771
  };
@@ -7210,6 +7213,15 @@
7210
7213
  opt.modal.table.set();
7211
7214
  }
7212
7215
  if (opt.modal.form) {
7216
+ var p = new PermissionClass();
7217
+ p.RelatedId = btn.row.Id;
7218
+ p.Area = _this.permissions.Area;
7219
+ p.Controller = _this.permissions.Controller;
7220
+ p.Action = option.Action;
7221
+ p.Accesses = option.Accesses;
7222
+ console.log(p.getUrl(), 'p.getUrl()');
7223
+ console.log(opt.modal.form, 'opt.modal.form');
7224
+ console.log(opt.modal.form.baseUrl, 'opt.modal.form.baseUrl');
7213
7225
  opt.modal.form.name = option.Name;
7214
7226
  opt.modal.form.url = opt.modal.form.baseUrl + 'Update/' + btn.row.Id;
7215
7227
  opt.modal.form.loadData(opt.modal.form.baseUrl + 'Get/' + btn.row.Id);