@seniorsistemas/angular-components 14.16.24 → 14.16.25

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.
@@ -3849,6 +3849,7 @@ var TableFrozenPositionDirective = /** @class */ (function () {
3849
3849
  var _this = this;
3850
3850
  setTimeout(function () {
3851
3851
  _this.synchronizeRowHeight();
3852
+ _this.setUpRowResizeMonitoring();
3852
3853
  });
3853
3854
  },
3854
3855
  enumerable: true,
@@ -3884,32 +3885,27 @@ var TableFrozenPositionDirective = /** @class */ (function () {
3884
3885
  _this.handleColResize();
3885
3886
  });
3886
3887
  this.table.onRowExpand.subscribe(function () {
3887
- if (_this.rowExpandedObserver) {
3888
- _this.rowExpandedObserver.disconnect();
3889
- }
3890
- // The version of Angular/Typescript does not recognize the object ResizeObserver and breaks build
3891
- _this.rowExpandedObserver = new window.ResizeObserver(function () {
3892
- var frozenTDsToAdjust = _this.el.nativeElement.querySelectorAll(".ui-table-frozen-view .sds-expanded-row > td");
3893
- var unFrozenTDs = _this.el.nativeElement.querySelectorAll(".ui-table-unfrozen-view .sds-expanded-row > td");
3894
- frozenTDsToAdjust.forEach(function (frozenTd, index) {
3895
- var unfrozenTD = unFrozenTDs[index];
3896
- var unfrozenHeight = unfrozenTD.getBoundingClientRect().height;
3897
- var frozenHeight = frozenTd.getBoundingClientRect().height;
3898
- if (Math.abs(unfrozenHeight - frozenHeight) > 1) {
3899
- frozenTd.style.height = unfrozenHeight + "px";
3900
- }
3901
- });
3902
- });
3903
- setTimeout(function () {
3904
- var tdsToAdjust = _this.el.nativeElement.querySelectorAll(".ui-table-frozen-view .sds-expanded-row > td");
3905
- var originalsTds = _this.el.nativeElement.querySelectorAll(".ui-table-unfrozen-view .sds-expanded-row > td");
3906
- tdsToAdjust.forEach(function (td, index) {
3907
- var originalTd = originalsTds[index];
3908
- var height = originalTd.getBoundingClientRect().height;
3909
- td.innerHTML = "<div style=\"height: " + height + "px\"></div>";
3910
- td.style.padding = "0px";
3911
- _this.rowExpandedObserver.observe(originalTd);
3912
- });
3888
+ _this.setUpRowResizeMonitoring();
3889
+ });
3890
+ };
3891
+ TableFrozenPositionDirective.prototype.setUpRowResizeMonitoring = function () {
3892
+ var _this = this;
3893
+ if (this.rowExpandedObserver) {
3894
+ this.rowExpandedObserver.disconnect();
3895
+ }
3896
+ // The version of Angular/Typescript does not recognize the object ResizeObserver and breaks build
3897
+ this.rowExpandedObserver = new window.ResizeObserver(function () {
3898
+ _this.applyHeightForExpandedRows();
3899
+ });
3900
+ setTimeout(function () {
3901
+ var tdsToAdjust = _this.el.nativeElement.querySelectorAll(".ui-table-frozen-view .sds-expanded-row > td");
3902
+ var originalsTds = _this.el.nativeElement.querySelectorAll(".ui-table-unfrozen-view .sds-expanded-row > td");
3903
+ tdsToAdjust.forEach(function (td, index) {
3904
+ var originalTd = originalsTds[index];
3905
+ var height = originalTd.getBoundingClientRect().height;
3906
+ td.innerHTML = "<div style=\"height: " + height + "px\"></div>";
3907
+ td.style.padding = "0px";
3908
+ _this.rowExpandedObserver.observe(originalTd);
3913
3909
  });
3914
3910
  });
3915
3911
  };
@@ -3927,6 +3923,19 @@ var TableFrozenPositionDirective = /** @class */ (function () {
3927
3923
  });
3928
3924
  });
3929
3925
  };
3926
+ TableFrozenPositionDirective.prototype.applyHeightForExpandedRows = function () {
3927
+ var frozenTDsToAdjust = this.el.nativeElement.querySelectorAll(".ui-table-frozen-view .sds-expanded-row > td");
3928
+ var unFrozenTDs = this.el.nativeElement.querySelectorAll(".ui-table-unfrozen-view .sds-expanded-row > td");
3929
+ frozenTDsToAdjust.forEach(function (frozenTd, index) {
3930
+ var unfrozenTD = unFrozenTDs[index];
3931
+ var unfrozenHeight = unfrozenTD.getBoundingClientRect().height;
3932
+ var frozenHeight = frozenTd.getBoundingClientRect().height;
3933
+ if (Math.abs(unfrozenHeight - frozenHeight) > 1) {
3934
+ frozenTd.style.height = unfrozenHeight + "px";
3935
+ frozenTd.innerHTML = "<div></div>";
3936
+ }
3937
+ });
3938
+ };
3930
3939
  TableFrozenPositionDirective.prototype.applyStylesForTable = function () {
3931
3940
  var scrollWrapper = this.el.nativeElement.querySelector(".ui-table-scrollable-wrapper");
3932
3941
  if (!scrollWrapper) {