ps-toolkit-ui 1.8.15 → 1.8.18

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();
@@ -2875,18 +2875,13 @@
2875
2875
  var _loop_3 = function (r) {
2876
2876
  if (r.table) {
2877
2877
  var options = JSON.parse(JSON.stringify(_this.row.Options));
2878
- console.log(options);
2879
- console.log(r);
2880
2878
  var rowOption_1 = options.find(function (x) { return x.ParentId === option.Id && x.Action === r.name; });
2881
- console.log(rowOption_1);
2882
- console.log(options.filter(function (x) { return x.ParentId === rowOption_1.Id; }));
2883
2879
  var p = new PermissionClass();
2884
2880
  p.RelatedId = _this.row.Data.Id;
2885
2881
  p.Area = _this.table.permissions.Area;
2886
2882
  p.Controller = option.Controller;
2887
2883
  p.Action = r.name;
2888
2884
  p.Accesses = options.filter(function (x) { return x.ParentId === rowOption_1.Id; });
2889
- console.log(p);
2890
2885
  r.table.permissions = p;
2891
2886
  if (r.table.form) {
2892
2887
  r.table.form.url = option.Url + 'insert';
@@ -4317,6 +4312,9 @@
4317
4312
  configurable: true
4318
4313
  });
4319
4314
  FormComponent.prototype.ngOnInit = function () {
4315
+ if (this.form.onTop) {
4316
+ this.form.inputs.forEach(function (x) { return 'h-30 ' + x.class; });
4317
+ }
4320
4318
  };
4321
4319
  FormComponent.prototype.changeIndex = function (index, action) {
4322
4320
  var _this = this;