ps-toolkit-ui 1.17.32 → 1.17.35

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.
@@ -3631,20 +3631,21 @@
3631
3631
  var _loop_3 = function (r) {
3632
3632
  if (r.table) {
3633
3633
  var options = JSON.parse(JSON.stringify((_c = _this.row.Options) !== null && _c !== void 0 ? _c : []));
3634
- console.log(options, option, r);
3635
3634
  var rowOption_1 = options.find(function (x) { return x.ParentId === option.Id && x.Action === r.name; });
3636
- var p = new PermissionClass();
3637
- p.RelatedId = _this.row.Data.Id;
3638
- p.Area = _this.table.permissions.Area;
3639
- p.Controller = option.Controller;
3640
- p.Action = r.name;
3641
- p.Accesses = options.filter(function (x) { return x.ParentId === rowOption_1.Id; });
3642
- r.table.permissions = p;
3643
- if (r.table.form) {
3644
- r.table.form.url = option.Url + 'insert';
3645
- r.table.form.baseUrl = option.Url + 'insert';
3635
+ if (rowOption_1) {
3636
+ var p = new PermissionClass();
3637
+ p.RelatedId = _this.row.Data.Id;
3638
+ p.Area = _this.table.permissions.Area;
3639
+ p.Controller = option.Controller;
3640
+ p.Action = r.name;
3641
+ p.Accesses = options.filter(function (x) { return x.ParentId === rowOption_1.Id; });
3642
+ r.table.permissions = p;
3643
+ if (r.table.form) {
3644
+ r.table.form.url = option.Url + 'insert';
3645
+ r.table.form.baseUrl = option.Url + 'insert';
3646
+ }
3647
+ r.table.set();
3646
3648
  }
3647
- r.table.set();
3648
3649
  }
3649
3650
  };
3650
3651
  try {
@@ -6914,7 +6915,10 @@
6914
6915
  this.onKeyUp(e);
6915
6916
  };
6916
6917
  FormTextboxComponent.prototype.onKeyUp = function (e) {
6917
- this.inp.value = e.target.value;
6918
+ console.log(e.target.value, e.target.value.includes(' '), e.target.value.includes('\n'));
6919
+ if (this.inp.name === 'Test') {
6920
+ this.inp.value = e.target.value;
6921
+ }
6918
6922
  if (this.inp.onKeyUp) {
6919
6923
  this.inp.onKeyUp(this.inp);
6920
6924
  }