ps-toolkit-ui 0.0.141 → 0.0.145

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,9 +2590,6 @@
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
- console.log(option, 'option');
2594
- console.log(option.AccessType, 'option.AccessType');
2595
- console.log(opt, 'opt');
2596
2593
  if (option.AccessType === exports.PermissionAccessTypeEnum.Update) {
2597
2594
  if (this_1.table.form) {
2598
2595
  opt.onClick = function () {
@@ -2625,11 +2622,8 @@
2625
2622
  }
2626
2623
  }
2627
2624
  else if (option.AccessType === exports.PermissionAccessTypeEnum.Delete) {
2628
- console.log(option, 'option');
2629
- console.log(opt, 'opt');
2630
2625
  opt.class = opt.class.replace('blue', 'red');
2631
2626
  opt.onClick = function () {
2632
- console.log(_this.row.Data.Id, 'opt onClick');
2633
2627
  if (_this.table.form) {
2634
2628
  _this.table.form.clear();
2635
2629
  }
@@ -7301,8 +7295,9 @@
7301
7295
  }
7302
7296
  finally { if (e_2) throw e_2.error; }
7303
7297
  }
7304
- if ((this.permissions.hasAccess(exports.PermissionAccessTypeEnum.Insert) ||
7305
- this.permissions.hasOption(exports.PermissionAccessTypeEnum.Update)) && this.form) {
7298
+ console.log(this.permissions, 'this.permissions');
7299
+ console.log(this.form, 'this.form');
7300
+ if (this.form) {
7306
7301
  this.form.addButtons('Save', 'green', true, this.permissions.Type === exports.PermissionTypeEnum.Form ? function (data) {
7307
7302
  if (data.Id) {
7308
7303
  var i = _this.rows.findIndex(function (x) { return x.Id === data.Id; });
@@ -7326,7 +7321,10 @@
7326
7321
  else {
7327
7322
  if (!this.modal) {
7328
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');
7329
7326
  }
7327
+ console.log(this.form, 'this.form');
7330
7328
  this.modal.form = this.form;
7331
7329
  }
7332
7330
  }