ps-toolkit-ui 0.0.139 → 0.0.143

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.
@@ -2590,7 +2590,7 @@
2590
2590
  var _loop_1 = function (option) {
2591
2591
  var opt = new InputClass(this_1.table.environment, this_1.table.l, option.Name, option.Icon, option.InputType === exports.PermissionInputTypeEnum.Icon ? exports.InputType.Icon : exports.InputType.Button, 'blue h-25 m-h-5 d-ib va-m f-u');
2592
2592
  opt.row = this_1.row;
2593
- if (option.AcceessType === exports.PermissionAccessTypeEnum.Update) {
2593
+ if (option.AccessType === exports.PermissionAccessTypeEnum.Update) {
2594
2594
  if (this_1.table.form) {
2595
2595
  opt.onClick = function () {
2596
2596
  _this.table.form.url = _this.table.url + 'Update/' + _this.row.Data.Id;
@@ -2621,7 +2621,7 @@
2621
2621
  opt.url = this_1.table.url + '/Update/' + this_1.row.Data.Id;
2622
2622
  }
2623
2623
  }
2624
- else if (option.AcceessType === exports.PermissionAccessTypeEnum.Delete) {
2624
+ else if (option.AccessType === exports.PermissionAccessTypeEnum.Delete) {
2625
2625
  opt.class = opt.class.replace('blue', 'red');
2626
2626
  opt.onClick = function () {
2627
2627
  if (_this.table.form) {
@@ -2738,7 +2738,7 @@
2738
2738
  });
2739
2739
  };
2740
2740
  }
2741
- else if (option.Type === exports.PermissionTypeEnum.Option) {
2741
+ else {
2742
2742
  if (option.OnClick) {
2743
2743
  opt.onClick = function (btn) {
2744
2744
  option.OnClick(btn);
@@ -7295,6 +7295,7 @@
7295
7295
  }
7296
7296
  finally { if (e_2) throw e_2.error; }
7297
7297
  }
7298
+ console.log(this.permissions, 'this.permissions');
7298
7299
  if ((this.permissions.hasAccess(exports.PermissionAccessTypeEnum.Insert) ||
7299
7300
  this.permissions.hasOption(exports.PermissionAccessTypeEnum.Update)) && this.form) {
7300
7301
  this.form.addButtons('Save', 'green', true, this.permissions.Type === exports.PermissionTypeEnum.Form ? function (data) {
@@ -7320,7 +7321,10 @@
7320
7321
  else {
7321
7322
  if (!this.modal) {
7322
7323
  this.modal = new ModalClass(this.environment, this.l, this.name);
7324
+ console.log(this.modal, 'this.modal');
7325
+ console.log(this.name, 'this.name');
7323
7326
  }
7327
+ console.log(this.form, 'this.form');
7324
7328
  this.modal.form = this.form;
7325
7329
  }
7326
7330
  }