ps-toolkit-ui 1.8.61 → 1.8.63

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.
@@ -5342,10 +5342,9 @@
5342
5342
  };
5343
5343
  this.inp.data = function () {
5344
5344
  var d = {};
5345
- console.log(_this.inp, '##');
5346
- d[_this.inp.name] = _this.inp.value;
5345
+ d[_this.inp.name] = _this.inp.addNew ? _this.inp.search : _this.inp.value;
5347
5346
  d[_this.inp.name + 'Name'] = _this.inp.search;
5348
- return !_this.inp.multiple ? (_this.inp.addNew ? _this.inp.search : _this.inp.value) : _this.getSelected();
5347
+ return !_this.inp.multiple ? d : _this.getSelected();
5349
5348
  };
5350
5349
  this.inp.focusOut = function () {
5351
5350
  $__namespace(_this.inputBase.nativeElement).blur();
@@ -8084,16 +8083,27 @@
8084
8083
  }
8085
8084
  if (this.form) {
8086
8085
  this.form.addButtons('Save', 'green', true, this.permissions.Type === exports.PermissionTypeEnum.Form ? function (data) {
8087
- console.log(data);
8088
8086
  if (data.Id) {
8089
8087
  var i = _this.rows.findIndex(function (x) { return x.Id === data.Id; });
8090
8088
  _this.rows[i].Data = data;
8091
8089
  }
8092
8090
  else {
8093
8091
  data.Id = parseInt(HelperClass.random(5, false, false), 10);
8092
+ var uAccess = new PermissionClass();
8093
+ uAccess.Action = 'Update';
8094
+ uAccess.Type = exports.PermissionTypeEnum.Option;
8095
+ uAccess.AccessType = exports.PermissionAccessTypeEnum.Update;
8096
+ uAccess.InputAction = exports.PermissionInputActionEnum.None;
8097
+ uAccess.InputType = exports.PermissionInputTypeEnum.Icon;
8098
+ var dAccess = new PermissionClass();
8099
+ dAccess.Action = 'Delete';
8100
+ dAccess.Type = exports.PermissionTypeEnum.Option;
8101
+ dAccess.InputAction = exports.PermissionInputActionEnum.Modal;
8102
+ dAccess.InputType = exports.PermissionInputTypeEnum.Button;
8103
+ dAccess.AccessType = exports.PermissionAccessTypeEnum.Delete;
8094
8104
  _this.rows.unshift({
8095
8105
  Data: data,
8096
- Options: []
8106
+ Options: [uAccess, dAccess]
8097
8107
  });
8098
8108
  }
8099
8109
  if (changeRows) {