@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
@@ -9530,10 +9530,10 @@
9530
9530
  var TableFrozenPositionDirective = /** @class */ (function () {
9531
9531
  function TableFrozenPositionDirective(el, host) {
9532
9532
  this.el = el;
9533
- this.host = host;
9534
9533
  this.sTableFrozenPosition = "left";
9535
9534
  this.isTableVisible = false;
9536
9535
  this.onColumnsChanged = new core.EventEmitter();
9536
+ this.TABLE_SCROLLABLE_WRAPPER_CLASS = ".ui-table-scrollable-wrapper";
9537
9537
  this.table = host;
9538
9538
  this.table.styleClass = (this.table.styleClass || "") + " s-table-frozen-position";
9539
9539
  this.setUpTableEvents();
@@ -9577,6 +9577,9 @@
9577
9577
  if (this.rowExpandedObserver) {
9578
9578
  this.rowExpandedObserver.disconnect();
9579
9579
  }
9580
+ if (this.tableWrapperObserver) {
9581
+ this.tableWrapperObserver.disconnect();
9582
+ }
9580
9583
  };
9581
9584
  TableFrozenPositionDirective.prototype.setUpTableEvents = function () {
9582
9585
  var _this = this;
@@ -9621,6 +9624,17 @@
9621
9624
  childList: true
9622
9625
  });
9623
9626
  });
9627
+ var tableWraper = this.el.nativeElement.querySelector(this.TABLE_SCROLLABLE_WRAPPER_CLASS);
9628
+ if (tableWraper) {
9629
+ var mutationObserver = new MutationObserver(function () {
9630
+ _this.synchronizeRowHeight();
9631
+ });
9632
+ mutationObserver.observe(tableWraper, {
9633
+ subtree: true,
9634
+ childList: true
9635
+ });
9636
+ this.tableWrapperObserver = mutationObserver;
9637
+ }
9624
9638
  };
9625
9639
  TableFrozenPositionDirective.prototype.applyHeightForExpandedRows = function () {
9626
9640
  var frozenTDsToAdjust = this.el.nativeElement.querySelectorAll(".ui-table-frozen-view .sds-expanded-row > td");
@@ -9636,7 +9650,7 @@
9636
9650
  });
9637
9651
  };
9638
9652
  TableFrozenPositionDirective.prototype.applyStylesForTable = function () {
9639
- var scrollWrapper = this.el.nativeElement.querySelector(".ui-table-scrollable-wrapper");
9653
+ var scrollWrapper = this.el.nativeElement.querySelector(this.TABLE_SCROLLABLE_WRAPPER_CLASS);
9640
9654
  if (!scrollWrapper) {
9641
9655
  console.warn("Unable to find scroll-wrapper element from table. Is the table configured with frozen template?");
9642
9656
  return;
@@ -9961,6 +9975,7 @@
9961
9975
  infoSign: this.getColumnInfoSign(column.infoSign),
9962
9976
  onLinkClick: column.onLinkClick,
9963
9977
  onColumnClick: column.onColumnClick,
9978
+ compact: column.compact,
9964
9979
  };
9965
9980
  };
9966
9981
  TableColumnsComponent.prototype.getColumnScale = function (scale) {
@@ -10040,11 +10055,14 @@
10040
10055
  __decorate([
10041
10056
  core.Input()
10042
10057
  ], TableColumnsComponent.prototype, "locale", void 0);
10058
+ __decorate([
10059
+ core.ViewChildren("column")
10060
+ ], TableColumnsComponent.prototype, "testeElements", void 0);
10043
10061
  TableColumnsComponent = __decorate([
10044
10062
  core.Component({
10045
- 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",
10063
+ 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",
10046
10064
  selector: "s-table-columns",
10047
- styles: [":host{display:none}"]
10065
+ 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}"]
10048
10066
  }),
10049
10067
  __param(4, core.Inject(HostProjectConfigsInjectionToken))
10050
10068
  ], TableColumnsComponent);
@@ -18033,6 +18051,7 @@
18033
18051
  style: "decimal",
18034
18052
  minimumFractionDigits: 0,
18035
18053
  maximumFractionDigits: 2,
18054
+ roundingMode: "trunc",
18036
18055
  };
18037
18056
  this.showValue = true;
18038
18057
  this.mode = ProgressBarMode.Determinate;