@seniorsistemas/angular-components 14.16.5 → 14.16.8

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.
@@ -2041,6 +2041,7 @@
2041
2041
  _this.multipleSelectedLabel = config.multipleSelectedLabel || "{0} registros selecionados";
2042
2042
  _this.onClick = config.onClick;
2043
2043
  _this.onChange = config.onChange;
2044
+ _this.emptyMessage = config.emptyMessage;
2044
2045
  return _this;
2045
2046
  }
2046
2047
  return SelectField;
@@ -3977,7 +3978,9 @@
3977
3978
  this.el = el;
3978
3979
  this.host = host;
3979
3980
  this.sTableFrozenPosition = "left";
3981
+ this.isTableVisible = false;
3980
3982
  this.onColumnsChanged = new core.EventEmitter();
3983
+ this.table = host;
3981
3984
  this.host.onColResize.subscribe(function () {
3982
3985
  _this.handleColResize();
3983
3986
  });
@@ -4013,6 +4016,15 @@
4013
4016
  this.applyStylesForTable();
4014
4017
  this.setUpColumnMonitoring();
4015
4018
  };
4019
+ TableFrozenPositionDirective.prototype.ngAfterContentChecked = function () {
4020
+ if (!this.isTableVisible && !!this.table.el.nativeElement.offsetParent) {
4021
+ this.isTableVisible = true;
4022
+ this.synchronizeRowHeight();
4023
+ }
4024
+ else if (this.isTableVisible && !this.table.el.nativeElement.offsetParent) {
4025
+ this.isTableVisible = false;
4026
+ }
4027
+ };
4016
4028
  TableFrozenPositionDirective.prototype.ngOnDestroy = function () {
4017
4029
  window.removeEventListener("resize", this.handleWindowResize.bind(this));
4018
4030
  if (this.tableHeadObservable) {
@@ -4930,7 +4942,7 @@
4930
4942
  ], SelectFieldComponent.prototype, "formControl", void 0);
4931
4943
  SelectFieldComponent = __decorate([
4932
4944
  core.Component({
4933
- template: "<p-dropdown\n *ngIf=\"!field.multiple\"\n [inputId]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [options]=\"isFunction(field.options) ? field.options() : field.options\"\n [placeholder]=\"field.placeholder || ' '\"\n [formControl]=\"formControl\"\n [pTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [showDelay]=\"500\"\n [showClear]=\"field.showClear\"\n dataKey=\"{{field.dataKey}}\"\n optionLabel=\"{{field.optionLabel}}\"\n [autoDisplayFirst]=\"field.autoDisplayFirst\"\n [appendTo]=\"field.appendTo ? field.appendTo : 'body'\"\n (onClick)=\"field.onClick ? field.onClick($event) : null\"\n (onChange)=\"field.onChange ? field.onChange($event) : null\"\n>\n</p-dropdown>\n<p-multiSelect\n *ngIf=\"field.multiple\"\n [formControl]=\"formControl\"\n [name]=\"field.name\"\n [inputId]=\"(field.id || field.name)\"\n [options]=\"isFunction(field.options) ? field.options() : field.options\"\n [defaultLabel]=\"field.placeholder\"\n [pTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n emptyFilterMessage=\"Nenhum registro encontrado\"\n [showDelay]=\"500\"\n [selectedItemsLabel]=\"field.multipleSelectedLabel\"\n [appendTo]=\"field.appendTo ? field.appendTo : 'body'\"\n (onClick)=\"field.onClick ? field.onClick($event) : null\"\n (onChange)=\"field.onChange ? field.onChange($event) : null\"\n>\n</p-multiSelect>\n\n"
4945
+ template: "<p-dropdown\n *ngIf=\"!field.multiple\"\n [inputId]=\"(field.id || field.name)\"\n [name]=\"field.name\"\n [options]=\"isFunction(field.options) ? field.options() : field.options\"\n [placeholder]=\"field.placeholder || ' '\"\n [formControl]=\"formControl\"\n [pTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [showDelay]=\"500\"\n [showClear]=\"field.showClear\"\n dataKey=\"{{field.dataKey}}\"\n optionLabel=\"{{field.optionLabel}}\"\n [autoDisplayFirst]=\"field.autoDisplayFirst\"\n [appendTo]=\"field.appendTo || 'body'\"\n (onClick)=\"field.onClick ? field.onClick($event) : null\"\n (onChange)=\"field.onChange ? field.onChange($event) : null\"\n>\n</p-dropdown>\n<p-multiSelect\n *ngIf=\"field.multiple\"\n [formControl]=\"formControl\"\n [name]=\"field.name\"\n [inputId]=\"(field.id || field.name)\"\n [options]=\"isFunction(field.options) ? field.options() : field.options\"\n [defaultLabel]=\"field.placeholder\"\n [pTooltip]=\"field.tooltip\"\n tooltipPosition=\"top\"\n [emptyFilterMessage]=\"field.emptyMessage || 'Nenhum registro encontrado'\"\n [showDelay]=\"500\"\n [selectedItemsLabel]=\"field.multipleSelectedLabel\"\n [appendTo]=\"field.appendTo || 'body'\"\n (onClick)=\"field.onClick ? field.onClick($event) : null\"\n (onChange)=\"field.onChange ? field.onChange($event) : null\"\n>\n</p-multiSelect>\n\n"
4934
4946
  })
4935
4947
  ], SelectFieldComponent);
4936
4948
  return SelectFieldComponent;