ps-toolkit-ui 0.0.45 → 0.0.49

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.
@@ -4813,12 +4813,14 @@
4813
4813
  this.inp.rel.index = 0;
4814
4814
  this.inp.rel.search = '';
4815
4815
  this.inp.rel.options = [];
4816
- this.inp.rel.url = this.inp.relUrl.replace('{}', this.inp.value);
4817
- if (this.inp.rel.type !== exports.InputType.SelectAutoComplete) {
4818
- this.inp.rel.load();
4819
- }
4820
- else {
4821
- this.inp.rel.url += '_{}';
4816
+ if (v !== null) {
4817
+ this.inp.rel.url = this.inp.relUrl.replace('{}', this.inp.value);
4818
+ if (this.inp.rel.type !== exports.InputType.SelectAutoComplete) {
4819
+ this.inp.rel.load();
4820
+ }
4821
+ else {
4822
+ this.inp.rel.url += '_{}';
4823
+ }
4822
4824
  }
4823
4825
  }
4824
4826
  if (!isEdit && !this.inp.multiple) {
@@ -5081,6 +5083,9 @@
5081
5083
  PermissionClass.prototype.hasAccess = function (a) {
5082
5084
  return this.Accesses.filter(function (x) { return x.Action === a && x.Type === exports.PermissionTypeEnum.Access; }).length > 0;
5083
5085
  };
5086
+ PermissionClass.prototype.deleteAccess = function (a) {
5087
+ this.Accesses = this.Accesses.filter(function (x) { return x.Action !== a && x.Type === exports.PermissionTypeEnum.Access; });
5088
+ };
5084
5089
  PermissionClass.prototype.hasOption = function (a) {
5085
5090
  return this.Accesses.filter(function (x) { return x.Action === a && x.Type !== exports.PermissionTypeEnum.Access; }).length > 0;
5086
5091
  };
@@ -5091,6 +5096,9 @@
5091
5096
  var c = this.Accesses.filter(function (x) { return x.Action === a && x.Type !== exports.PermissionTypeEnum.Access; });
5092
5097
  return c.length > 0 ? c[0] : null;
5093
5098
  };
5099
+ PermissionClass.prototype.deleteOption = function (a) {
5100
+ this.Accesses = this.Accesses.filter(function (x) { return x.Action !== a && x.Type !== exports.PermissionTypeEnum.Access; });
5101
+ };
5094
5102
  PermissionClass.prototype.getUrl = function () {
5095
5103
  return (this.Area ? '/' + this.Area : '') + '/' + this.Controller + '/' +
5096
5104
  (this.RelatedId ? this.RelatedId + "/" : '') +