@seniorsistemas/angular-components 14.16.6 → 14.16.9

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.
@@ -3978,7 +3978,9 @@
3978
3978
  this.el = el;
3979
3979
  this.host = host;
3980
3980
  this.sTableFrozenPosition = "left";
3981
+ this.isTableVisible = false;
3981
3982
  this.onColumnsChanged = new core.EventEmitter();
3983
+ this.table = host;
3982
3984
  this.host.onColResize.subscribe(function () {
3983
3985
  _this.handleColResize();
3984
3986
  });
@@ -4014,6 +4016,15 @@
4014
4016
  this.applyStylesForTable();
4015
4017
  this.setUpColumnMonitoring();
4016
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
+ };
4017
4028
  TableFrozenPositionDirective.prototype.ngOnDestroy = function () {
4018
4029
  window.removeEventListener("resize", this.handleWindowResize.bind(this));
4019
4030
  if (this.tableHeadObservable) {
@@ -4470,8 +4481,8 @@
4470
4481
  TokenListComponent = TokenListComponent_1 = __decorate([
4471
4482
  core.Component({
4472
4483
  selector: "s-token-list",
4473
- template: "<div [id]=\"id\" class=\"token-list\">\n <ng-container *ngFor=\"let token of tokens\">\n <span [id]=\"token.id\" class=\"sds-token\" [ngClass]=\"{ 'noPointerEvents': hidePointerEvents }\">\n <a [id]=\"(token.id || 'token') + '-label'\" (click)=\"tokenSelected.next(token)\">{{token.label}}</a>\n <span [id]=\"token.id + '-remove'\" class=\"sds-token-icon fa fa-fw fa-close\" *ngIf=\"removableTokens\" (click)=\"tokenRemoved.next(token)\"></span>\n </span>\n </ng-container>\n</div>",
4474
- styles: ["a,a:focus,a:hover{text-decoration:none;color:#333}.token-list{display:inline-block;vertical-align:middle;padding-left:10px;padding-right:10px}.noPointerEvents{pointer-events:none}"]
4484
+ template: "<div\n [id]=\"id\"\n class=\"token-list\">\n <ng-container *ngFor=\"let token of tokens\">\n <span\n [id]=\"token.id\"\n class=\"token\"\n [ngClass]=\"{ 'no-pointer-events': hidePointerEvents }\">\n <a\n [id]=\"(token.id || 'token') + '-label'\"\n class=\"token-label\"\n (click)=\"tokenSelected.next(token)\">\n {{ token.label }}\n </a>\n <span\n *ngIf=\"removableTokens\"\n [id]=\"token.id + '-remove'\"\n class=\"token-icon fa fa-fw fa-close\"\n (click)=\"tokenRemoved.next(token)\">\n </span>\n </span>\n </ng-container>\n</div>",
4485
+ styles: [".no-pointer-events{pointer-events:none}.token-list{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0 10px;text-transform:none}.token-list .token{-ms-flex-align:center;align-items:center;background-color:#ccc;border-radius:4px;color:#333;display:-ms-flexbox;display:flex;font:400 12px/150% \"Open Sans\",sans-serif;margin:2px 5px 0 0;max-width:100%;padding:2px 8px}.token-list .token-label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.token-list .token:focus,.token-list .token:hover{background-color:#e5eaea}.token-list .token a{text-decoration:none;color:#333}"]
4475
4486
  })
4476
4487
  ], TokenListComponent);
4477
4488
  return TokenListComponent;