ps-toolkit-ui 1.16.56 → 1.16.58

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.
@@ -3311,7 +3311,7 @@
3311
3311
  _this.showChildren.type = exports.InputType.Icon;
3312
3312
  _this.loadChildren(_this.row.Data.Id);
3313
3313
  };
3314
- _this.table.showInsertModal(_this.row.Data.Id, _this.level);
3314
+ _this.table.showInsertModal(_this.row.Data.Id, _this.level, _this.row.Data);
3315
3315
  };
3316
3316
  }
3317
3317
  this.showChildren = new InputClass(this.table.environment, this.table.l, this.table.name + 'SubsetTitle', 'fa-duotone fa-angle-left f-s-22', this.row.Data.CountChild > 0 || (!this.table.childrenAutoLoad && this.children.length > 0) ? exports.InputType.Icon : exports.InputType.Hidden, 'h-25 m-h-5 d-ib va-m f-u');
@@ -4189,7 +4189,7 @@
4189
4189
  };
4190
4190
  FormBankCardComponent.prototype.setIcon = function () {
4191
4191
  var _this = this;
4192
- var b = this.banks.filter(function (x) { return x.startWith.includes(_this.part1.data().toString() + _this.part2.data().toString().substring(0, 2)); });
4192
+ var b = this.banks.filter(function (x) { var _a, _b; return x.startWith.includes(((_a = _this.part1.data()) !== null && _a !== void 0 ? _a : '').toString() + ((_b = _this.part2.data()) !== null && _b !== void 0 ? _b : '').toString().substring(0, 2)); });
4193
4193
  if (b.length > 0) {
4194
4194
  $__namespace(this.inputIcon.nativeElement).removeClass('fa-money-check').addClass(b[0].name);
4195
4195
  }
@@ -9202,9 +9202,10 @@
9202
9202
  TableClass.prototype.getUrl = function (url) {
9203
9203
  return this.permissions.RelatedId ? url.replace('{}', this.permissions.RelatedId) : url.replace('/{}', '');
9204
9204
  };
9205
- TableClass.prototype.showInsertModal = function (cId, level) {
9205
+ TableClass.prototype.showInsertModal = function (cId, level, data) {
9206
9206
  if (cId === void 0) { cId = null; }
9207
9207
  if (level === void 0) { level = null; }
9208
+ if (data === void 0) { data = null; }
9208
9209
  this.form.isEdit = false;
9209
9210
  this.form.url = this.form.baseUrl = this.getUrl(this.insertAccess.Url) + (cId ? '/' + cId : '');
9210
9211
  this.form.name = this.insertAccess.Name;
@@ -9216,7 +9217,7 @@
9216
9217
  if (level != null && l) {
9217
9218
  l.value = level;
9218
9219
  }
9219
- this.modal.show();
9220
+ this.modal.show(data);
9220
9221
  };
9221
9222
  TableClass.prototype.set = function (changeRows) {
9222
9223
  var e_3, _a, e_4, _b;