ps-toolkit-ui 1.8.80 → 1.8.82

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.
@@ -3084,7 +3084,7 @@
3084
3084
  _this.table.form.inputs.filter(function (x) { return !x.inEditVisible; }).forEach(function (x) { return x.visible = false; });
3085
3085
  _this.table.form.inputs.forEach(function (x) { return x.required = x.inEditRequired; });
3086
3086
  if (_this.table.modal) {
3087
- _this.table.modal.show(true);
3087
+ _this.table.modal.show(_this.row.Data);
3088
3088
  }
3089
3089
  if (_this.table.form.onLoad) {
3090
3090
  _this.table.form.onLoad(result);
@@ -3134,11 +3134,11 @@
3134
3134
  this.id = this.name;
3135
3135
  this.class = cls;
3136
3136
  }
3137
- ModalClass.prototype.show = function (isEdit) {
3137
+ ModalClass.prototype.show = function (data) {
3138
3138
  var _this = this;
3139
- if (isEdit === void 0) { isEdit = false; }
3139
+ if (data === void 0) { data = null; }
3140
3140
  if (this.onShow) {
3141
- this.onShow(isEdit);
3141
+ this.onShow(data);
3142
3142
  }
3143
3143
  $__namespace('body').addClass('open-modal');
3144
3144
  $__namespace('#' + this.id + 'Modal').fadeIn(300, function () {
@@ -4278,7 +4278,7 @@
4278
4278
  if (this.inp.row) {
4279
4279
  this.inp.modal.relatedId = this.inp.row.Id;
4280
4280
  }
4281
- this.inp.modal.show();
4281
+ this.inp.modal.show(this.inp.row.Data);
4282
4282
  if (this.inp.modal.form) {
4283
4283
  this.inp.modal.form.onSuccessBase = function () {
4284
4284
  _this.inp.modal.hide();