@seniorsistemas/angular-components 17.17.7 → 17.17.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.
@@ -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;
@@ -18033,6 +18047,7 @@
18033
18047
  style: "decimal",
18034
18048
  minimumFractionDigits: 0,
18035
18049
  maximumFractionDigits: 2,
18050
+ roundingMode: "trunc",
18036
18051
  };
18037
18052
  this.showValue = true;
18038
18053
  this.mode = ProgressBarMode.Determinate;