ps-toolkit-ui 1.8.16 → 1.8.19

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.
@@ -1736,14 +1736,14 @@
1736
1736
  return;
1737
1737
  }
1738
1738
  var br = new InputClass(this.environment, this.l, null, null, exports.InputType.Label, this.onTop ? 'space' : 'underline');
1739
- var save = new InputClass(this.environment, this.l, name, 'fa-duotone fa-check', exports.InputType.Submit, 'save-form-btn h-30 ' + cls);
1739
+ var save = new InputClass(this.environment, this.l, name, 'fa-duotone fa-check', exports.InputType.Submit, 'save-form-btn ' + (this.onTop ? 'h-25 ' : 'h-30 ') + cls);
1740
1740
  save.onClick = function () {
1741
1741
  _this.submit(onSubmit);
1742
1742
  };
1743
1743
  this.inputs.push(br);
1744
1744
  this.inputs.push(save);
1745
1745
  if (clear) {
1746
- var erase = new InputClass(this.environment, this.l, null, 'fa-duotone fa-eraser', exports.InputType.Button, 'f-l w-u grey erase-form-btn h-30');
1746
+ var erase = new InputClass(this.environment, this.l, null, 'fa-duotone fa-eraser', exports.InputType.Button, 'f-l w-u grey erase-form-btn ' + (this.onTop ? 'h-25 ' : 'h-30 '));
1747
1747
  erase.onClick = function () {
1748
1748
  if (_this.onTop) {
1749
1749
  _this.clear();
@@ -4312,6 +4312,9 @@
4312
4312
  configurable: true
4313
4313
  });
4314
4314
  FormComponent.prototype.ngOnInit = function () {
4315
+ if (this.form.onTop) {
4316
+ this.form.inputs.forEach(function (x) { return x.class = 'h-30 ' + x.class; });
4317
+ }
4315
4318
  };
4316
4319
  FormComponent.prototype.changeIndex = function (index, action) {
4317
4320
  var _this = this;