ps-toolkit-ui 0.0.29 → 0.0.33

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.
@@ -5670,7 +5670,7 @@
5670
5670
  return _this.getSelected();
5671
5671
  };
5672
5672
  this.inp.setValue = function (v) {
5673
- _this.check(v);
5673
+ _this.check(v.map(String));
5674
5674
  };
5675
5675
  this.inp.clear = function () {
5676
5676
  _this.inp.setValue([], false);
@@ -6886,17 +6886,14 @@
6886
6886
  return app.getL("" + c + (a ? "." + a : ''), key, v);
6887
6887
  };
6888
6888
  if (app.currentUser !== null) {
6889
- this.permissions = this.getPermission();
6890
- console.log(this.permissions);
6889
+ this.permissions = this.getPermission(this.c, this.a);
6891
6890
  if (this.permissions) {
6892
6891
  this.permissions.Area = app.area;
6893
6892
  }
6894
6893
  }
6895
6894
  }
6896
- BaseComponent.prototype.getPermission = function () {
6897
- var _this = this;
6898
- console.log('getPermissiongetPermissiongetPermissiongetPermission');
6899
- var p = this.app.currentUser.Permissions.filter(function (per) { return per.Controller === _this.c && (_this.a == null || per.Action === _this.a) &&
6895
+ BaseComponent.prototype.getPermission = function (c, a) {
6896
+ var p = this.app.currentUser.Permissions.filter(function (per) { return per.Controller === c && (a == null || per.Action === a) &&
6900
6897
  per.Type === exports.PermissionTypeEnum.Item; });
6901
6898
  return p.length > 0 ? this.getPermissionClass(p[0]) : null;
6902
6899
  };
@@ -7056,15 +7053,17 @@
7056
7053
  var _this = this;
7057
7054
  if (changeRows === void 0) { changeRows = null; }
7058
7055
  this.permission = true;
7059
- var listAccess = this.permissions.getAccess('List');
7060
- if (this.permissions && listAccess !== null) {
7061
- this.title = listAccess.Name;
7062
- this.url = this.permissions.getUrl();
7063
- if (this.permissions.Type !== exports.PermissionTypeEnum.Form) {
7064
- this.load();
7065
- }
7066
- else {
7067
- this.loading = false;
7056
+ if (this.permissions) {
7057
+ var listAccess = this.permissions.getAccess('List');
7058
+ if (listAccess !== null) {
7059
+ this.title = listAccess.Name;
7060
+ this.url = this.permissions.getUrl();
7061
+ if (this.permissions.Type !== exports.PermissionTypeEnum.Form) {
7062
+ this.load();
7063
+ }
7064
+ else {
7065
+ this.loading = false;
7066
+ }
7068
7067
  }
7069
7068
  }
7070
7069
  else {
@@ -7164,6 +7163,7 @@
7164
7163
  opt.modal.table.set();
7165
7164
  }
7166
7165
  if (opt.modal.form) {
7166
+ opt.modal.form.name = option.Name;
7167
7167
  opt.modal.form.url = opt.modal.form.baseUrl + 'Update/' + btn.row.Id;
7168
7168
  opt.modal.form.loadData(opt.modal.form.baseUrl + 'Get/' + btn.row.Id);
7169
7169
  opt.modal.form.onSuccessBase = function () {