ps-toolkit-ui 1.8.27 → 1.8.28

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.
@@ -4326,7 +4326,7 @@
4326
4326
  });
4327
4327
  FormComponent.prototype.ngOnInit = function () {
4328
4328
  if (this.form.onTop) {
4329
- this.form.inputs.forEach(function (x) { return x.class = 'h-30 ' + x.class; });
4329
+ this.form.inputs.filter(function (x) { return x.type !== exports.InputType.Label; }).forEach(function (x) { return x.class = 'h-30 ' + x.class; });
4330
4330
  }
4331
4331
  };
4332
4332
  FormComponent.prototype.changeIndex = function (index, action) {
@@ -7996,6 +7996,9 @@
7996
7996
  this.permission = false;
7997
7997
  return;
7998
7998
  }
7999
+ if (!this.permissions.getAccesses().some(function (x) { return x.AccessType === exports.PermissionAccessTypeEnum.Insert; }) && this.form.onTop) {
8000
+ this.form = null;
8001
+ }
7999
8002
  var _loop_1 = function (access) {
8000
8003
  if (this_1.buttons.filter(function (x) { return x.name === access.Name; }).length > 0) {
8001
8004
  return "continue";