@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.
- package/bundles/seniorsistemas-angular-components.umd.js +13 -2
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/table/frozen-position/frozen-position.directive.d.ts +5 -2
- package/esm2015/components/table/frozen-position/frozen-position.directive.js +13 -2
- package/esm2015/components/token-list/token-list.component.js +3 -3
- package/esm5/components/table/frozen-position/frozen-position.directive.js +13 -2
- package/esm5/components/token-list/token-list.component.js +3 -3
- package/fesm2015/seniorsistemas-angular-components.js +13 -2
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +13 -2
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +2 -2
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -3805,7 +3805,9 @@ var TableFrozenPositionDirective = /** @class */ (function () {
|
|
|
3805
3805
|
this.el = el;
|
|
3806
3806
|
this.host = host;
|
|
3807
3807
|
this.sTableFrozenPosition = "left";
|
|
3808
|
+
this.isTableVisible = false;
|
|
3808
3809
|
this.onColumnsChanged = new EventEmitter();
|
|
3810
|
+
this.table = host;
|
|
3809
3811
|
this.host.onColResize.subscribe(function () {
|
|
3810
3812
|
_this.handleColResize();
|
|
3811
3813
|
});
|
|
@@ -3841,6 +3843,15 @@ var TableFrozenPositionDirective = /** @class */ (function () {
|
|
|
3841
3843
|
this.applyStylesForTable();
|
|
3842
3844
|
this.setUpColumnMonitoring();
|
|
3843
3845
|
};
|
|
3846
|
+
TableFrozenPositionDirective.prototype.ngAfterContentChecked = function () {
|
|
3847
|
+
if (!this.isTableVisible && !!this.table.el.nativeElement.offsetParent) {
|
|
3848
|
+
this.isTableVisible = true;
|
|
3849
|
+
this.synchronizeRowHeight();
|
|
3850
|
+
}
|
|
3851
|
+
else if (this.isTableVisible && !this.table.el.nativeElement.offsetParent) {
|
|
3852
|
+
this.isTableVisible = false;
|
|
3853
|
+
}
|
|
3854
|
+
};
|
|
3844
3855
|
TableFrozenPositionDirective.prototype.ngOnDestroy = function () {
|
|
3845
3856
|
window.removeEventListener("resize", this.handleWindowResize.bind(this));
|
|
3846
3857
|
if (this.tableHeadObservable) {
|
|
@@ -4297,8 +4308,8 @@ var TokenListComponent = /** @class */ (function () {
|
|
|
4297
4308
|
TokenListComponent = TokenListComponent_1 = __decorate([
|
|
4298
4309
|
Component({
|
|
4299
4310
|
selector: "s-token-list",
|
|
4300
|
-
template: "<div
|
|
4301
|
-
styles: ["
|
|
4311
|
+
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>",
|
|
4312
|
+
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}"]
|
|
4302
4313
|
})
|
|
4303
4314
|
], TokenListComponent);
|
|
4304
4315
|
return TokenListComponent;
|