ps-toolkit-ui 1.10.74 → 1.10.76

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.
@@ -1776,11 +1776,11 @@
1776
1776
  save.onClick = function () {
1777
1777
  _this.submit(onSubmit);
1778
1778
  };
1779
- if (clear) {
1779
+ if (!cls.includes('only-icon')) {
1780
1780
  this.inputs.push(br);
1781
1781
  }
1782
1782
  else {
1783
- save.class = save.class.replace('save-form-btn ', 'w-10 ').replace('h-25 ', 'h-30 ');
1783
+ save.class = save.class.replace('save-form-btn ', '').replace('h-25 ', 'h-30 ');
1784
1784
  }
1785
1785
  this.inputs.push(save);
1786
1786
  if (clear) {
@@ -8306,7 +8306,7 @@
8306
8306
  finally { if (e_3) throw e_3.error; }
8307
8307
  }
8308
8308
  if (this.form) {
8309
- this.form.addButtons('Save', 'green', this.permissions.Type !== exports.PermissionTypeEnum.Form && !this.form.onTop, this.permissions.Type === exports.PermissionTypeEnum.Form ? function (data) {
8309
+ this.form.addButtons('Save', this.permissions.Type === exports.PermissionTypeEnum.Form ? 'green w-10 only-icon' : 'green', this.permissions.Type !== exports.PermissionTypeEnum.Form, this.permissions.Type === exports.PermissionTypeEnum.Form ? function (data) {
8310
8310
  if (data.Id) {
8311
8311
  var i = _this.rows.findIndex(function (x) { return x.Data.Id === data.Id; });
8312
8312
  _this.rows[i].Data = data;