@seniorsistemas/angular-components 17.17.7 → 17.17.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.
Files changed (24) hide show
  1. package/bundles/seniorsistemas-angular-components.umd.js +23 -4
  2. package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
  3. package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
  4. package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
  5. package/components/table/frozen-position/frozen-position.directive.d.ts +2 -2
  6. package/components/table/table-column/models/column-values.interface.d.ts +1 -0
  7. package/components/table/table-column/models/column.interface.d.ts +1 -0
  8. package/components/table/table-column/table-columns.component.d.ts +2 -1
  9. package/esm2015/components/progressbar/progressbar.component.js +2 -1
  10. package/esm2015/components/table/frozen-position/frozen-position.directive.js +17 -3
  11. package/esm2015/components/table/table-column/models/column-values.interface.js +1 -1
  12. package/esm2015/components/table/table-column/models/column.interface.js +1 -1
  13. package/esm2015/components/table/table-column/table-columns.component.js +8 -4
  14. package/esm5/components/progressbar/progressbar.component.js +2 -1
  15. package/esm5/components/table/frozen-position/frozen-position.directive.js +17 -3
  16. package/esm5/components/table/table-column/models/column-values.interface.js +1 -1
  17. package/esm5/components/table/table-column/models/column.interface.js +1 -1
  18. package/esm5/components/table/table-column/table-columns.component.js +8 -4
  19. package/fesm2015/seniorsistemas-angular-components.js +24 -5
  20. package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
  21. package/fesm5/seniorsistemas-angular-components.js +24 -5
  22. package/fesm5/seniorsistemas-angular-components.js.map +1 -1
  23. package/package.json +1 -1
  24. package/seniorsistemas-angular-components.metadata.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __values, __assign, __extends, __spread, __awaiter, __generator, __param, __rest, __read } from 'tslib';
2
- import { EventEmitter, Input, Output, Component, ContentChildren, ViewChild, HostListener, forwardRef, NgModule, ɵɵdefineInjectable, Injectable, ElementRef, ApplicationRef, ComponentFactoryResolver, Injector, Renderer2, Directive, KeyValueDiffers, HostBinding, ChangeDetectorRef, TemplateRef, InjectionToken, Inject, ViewEncapsulation, ViewContainerRef, Pipe, ɵɵinject, ContentChild, Optional, ViewChildren } from '@angular/core';
2
+ import { EventEmitter, Input, Output, Component, ContentChildren, ViewChild, HostListener, forwardRef, NgModule, ɵɵdefineInjectable, Injectable, ElementRef, ApplicationRef, ComponentFactoryResolver, Injector, Renderer2, Directive, KeyValueDiffers, HostBinding, ChangeDetectorRef, TemplateRef, InjectionToken, Inject, ViewEncapsulation, ViewContainerRef, Pipe, ɵɵinject, ViewChildren, ContentChild, Optional } from '@angular/core';
3
3
  import { trigger, transition, style as style$7, animate, state, group, query, animateChild } from '@angular/animations';
4
4
  import { Subject, of, from, ReplaySubject, throwError, fromEvent, forkJoin, pipe } from 'rxjs';
5
5
  import { takeUntil, tap, map, switchMap, catchError, first, filter, take, delay, debounceTime, repeat, finalize } from 'rxjs/operators';
@@ -9384,10 +9384,10 @@ var RowTogllerDirective = /** @class */ (function (_super) {
9384
9384
  var TableFrozenPositionDirective = /** @class */ (function () {
9385
9385
  function TableFrozenPositionDirective(el, host) {
9386
9386
  this.el = el;
9387
- this.host = host;
9388
9387
  this.sTableFrozenPosition = "left";
9389
9388
  this.isTableVisible = false;
9390
9389
  this.onColumnsChanged = new EventEmitter();
9390
+ this.TABLE_SCROLLABLE_WRAPPER_CLASS = ".ui-table-scrollable-wrapper";
9391
9391
  this.table = host;
9392
9392
  this.table.styleClass = (this.table.styleClass || "") + " s-table-frozen-position";
9393
9393
  this.setUpTableEvents();
@@ -9431,6 +9431,9 @@ var TableFrozenPositionDirective = /** @class */ (function () {
9431
9431
  if (this.rowExpandedObserver) {
9432
9432
  this.rowExpandedObserver.disconnect();
9433
9433
  }
9434
+ if (this.tableWrapperObserver) {
9435
+ this.tableWrapperObserver.disconnect();
9436
+ }
9434
9437
  };
9435
9438
  TableFrozenPositionDirective.prototype.setUpTableEvents = function () {
9436
9439
  var _this = this;
@@ -9475,6 +9478,17 @@ var TableFrozenPositionDirective = /** @class */ (function () {
9475
9478
  childList: true
9476
9479
  });
9477
9480
  });
9481
+ var tableWraper = this.el.nativeElement.querySelector(this.TABLE_SCROLLABLE_WRAPPER_CLASS);
9482
+ if (tableWraper) {
9483
+ var mutationObserver = new MutationObserver(function () {
9484
+ _this.synchronizeRowHeight();
9485
+ });
9486
+ mutationObserver.observe(tableWraper, {
9487
+ subtree: true,
9488
+ childList: true
9489
+ });
9490
+ this.tableWrapperObserver = mutationObserver;
9491
+ }
9478
9492
  };
9479
9493
  TableFrozenPositionDirective.prototype.applyHeightForExpandedRows = function () {
9480
9494
  var frozenTDsToAdjust = this.el.nativeElement.querySelectorAll(".ui-table-frozen-view .sds-expanded-row > td");
@@ -9490,7 +9504,7 @@ var TableFrozenPositionDirective = /** @class */ (function () {
9490
9504
  });
9491
9505
  };
9492
9506
  TableFrozenPositionDirective.prototype.applyStylesForTable = function () {
9493
- var scrollWrapper = this.el.nativeElement.querySelector(".ui-table-scrollable-wrapper");
9507
+ var scrollWrapper = this.el.nativeElement.querySelector(this.TABLE_SCROLLABLE_WRAPPER_CLASS);
9494
9508
  if (!scrollWrapper) {
9495
9509
  console.warn("Unable to find scroll-wrapper element from table. Is the table configured with frozen template?");
9496
9510
  return;
@@ -9815,6 +9829,7 @@ var TableColumnsComponent = /** @class */ (function () {
9815
9829
  infoSign: this.getColumnInfoSign(column.infoSign),
9816
9830
  onLinkClick: column.onLinkClick,
9817
9831
  onColumnClick: column.onColumnClick,
9832
+ compact: column.compact,
9818
9833
  };
9819
9834
  };
9820
9835
  TableColumnsComponent.prototype.getColumnScale = function (scale) {
@@ -9894,11 +9909,14 @@ var TableColumnsComponent = /** @class */ (function () {
9894
9909
  __decorate([
9895
9910
  Input()
9896
9911
  ], TableColumnsComponent.prototype, "locale", void 0);
9912
+ __decorate([
9913
+ ViewChildren("column")
9914
+ ], TableColumnsComponent.prototype, "testeElements", void 0);
9897
9915
  TableColumnsComponent = __decorate([
9898
9916
  Component({
9899
- template: "<ng-template #columnsTemplate>\n <td\n *ngFor=\"let column of formattedColumns; let i = index\"\n [ngStyle]=\"column.style\"\n (click)=\"column.onColumnClick ? column.onColumnClick(rowValue) : null\"\n >\n <div *ngIf=\"column.type !== 'TOKENS' || !isArray(column.columnValue); else tokensTemplate\">\n <span *ngIf=\"column.type !== 'LINK'\" [sTooltip]=\"column.tooltip\" [escape]=\"false\">\n <ng-container *ngTemplateOutlet=\"columnValueTemplate\"></ng-container>\n </span>\n\n <ng-container *ngIf=\"column.type === 'LINK'\">\n <span *ngIf=\"cellsData[i][0].isUninformed; else anchorTemplate\" class=\"sds-empty-value\">{{ cellsData[i][0].value }}</span>\n\n <ng-template #anchorTemplate>\n <a [sTooltip]=\"column.tooltip\" [escape]=\"false\" (click)=\"column.onLinkClick ? column.onLinkClick(rowValue) : null\">\n <ng-container *ngTemplateOutlet=\"columnValueTemplate\"></ng-container>\n </a>\n </ng-template>\n </ng-container>\n\n <ng-template #columnValueTemplate>\n <ng-container *ngFor=\"let cellData of cellsData[i]\">\n <span *ngIf=\"cellData.isUninformed; else isInformedTemplate\" class=\"sds-empty-value\">{{ cellData.value }}</span>\n\n <ng-template #isInformedTemplate>\n <s-badge\n *ngIf=\"column.badgeConfigs; else withoutBadgeTemplate\"\n [sTooltip]=\"column.tooltip\"\n [color]=\"column.badgeConfigs.color\"\n [text]=\"cellData.value\"\n ></s-badge>\n\n <ng-template #withoutBadgeTemplate>\n <span>{{ cellData.value }}</span>\n </ng-template>\n </ng-template>\n\n <span *ngIf=\"cellData.separator\">{{ cellData.separator }}</span>\n </ng-container>\n\n <ng-container *ngIf=\"!!column.infoSign\">\n <span *sInfoSign=\"column.infoSign\"></span>\n </ng-container>\n </ng-template>\n </div>\n\n <ng-template #tokensTemplate>\n <s-token-list [tokens]=\"column.columnValue\" [hidePointerEvents]=\"true\"></s-token-list>\n\n <ng-container *ngIf=\"!!column.infoSign\">\n <span *sInfoSign=\"column.infoSign\"></span>\n </ng-container>\n </ng-template>\n </td>\n</ng-template>\n",
9917
+ template: "<ng-template #columnsTemplate>\n <td\n *ngFor=\"let column of formattedColumns; let i = index\"\n [ngStyle]=\"column.style\"\n (click)=\"column.onColumnClick ? column.onColumnClick(rowValue) : null\"\n >\n <div *ngIf=\"column.type !== 'TOKENS' || !isArray(column.columnValue); else tokensTemplate\" [ngClass]=\"{'compact-column': column.compact }\">\n <span *ngIf=\"column.type !== 'LINK'\" [sTooltip]=\"column.tooltip\" [escape]=\"false\">\n <ng-container *ngTemplateOutlet=\"columnValueTemplate\"></ng-container>\n </span>\n\n <ng-container *ngIf=\"column.type === 'LINK'\">\n <span *ngIf=\"cellsData[i][0].isUninformed; else anchorTemplate\" class=\"sds-empty-value\">{{ cellsData[i][0].value }}</span>\n\n <ng-template #anchorTemplate>\n <a [sTooltip]=\"column.tooltip\" [escape]=\"false\" (click)=\"column.onLinkClick ? column.onLinkClick(rowValue) : null\">\n <ng-container *ngTemplateOutlet=\"columnValueTemplate\"></ng-container>\n </a>\n </ng-template>\n </ng-container>\n\n <ng-template #columnValueTemplate>\n <ng-container *ngFor=\"let cellData of cellsData[i]\">\n <span *ngIf=\"cellData.isUninformed; else isInformedTemplate\" class=\"sds-empty-value\">{{ cellData.value }}</span>\n\n <ng-template #isInformedTemplate>\n <s-badge\n *ngIf=\"column.badgeConfigs; else withoutBadgeTemplate\"\n [sTooltip]=\"column.tooltip\"\n [color]=\"column.badgeConfigs.color\"\n [text]=\"cellData.value\"\n ></s-badge>\n\n <ng-template #withoutBadgeTemplate>\n <span>{{ cellData.value }}</span>\n </ng-template>\n </ng-template>\n\n <span *ngIf=\"cellData.separator\">{{ cellData.separator }}</span>\n </ng-container>\n\n <ng-container *ngIf=\"!!column.infoSign\">\n <span *sInfoSign=\"column.infoSign\"></span>\n </ng-container>\n </ng-template>\n </div>\n\n <ng-template #tokensTemplate>\n <s-token-list [tokens]=\"column.columnValue\" [hidePointerEvents]=\"true\"></s-token-list>\n\n <ng-container *ngIf=\"!!column.infoSign\">\n <span *sInfoSign=\"column.infoSign\"></span>\n </ng-container>\n </ng-template>\n </td>\n</ng-template>\n",
9900
9918
  selector: "s-table-columns",
9901
- styles: [":host{display:none}"]
9919
+ styles: [":host{display:none}.compact-column{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;word-break:break-word}"]
9902
9920
  }),
9903
9921
  __param(4, Inject(HostProjectConfigsInjectionToken))
9904
9922
  ], TableColumnsComponent);
@@ -17887,6 +17905,7 @@ var ProgressBarComponent = /** @class */ (function () {
17887
17905
  style: "decimal",
17888
17906
  minimumFractionDigits: 0,
17889
17907
  maximumFractionDigits: 2,
17908
+ roundingMode: "trunc",
17890
17909
  };
17891
17910
  this.showValue = true;
17892
17911
  this.mode = ProgressBarMode.Determinate;