@annalib/anna-core 22.1.32 → 22.1.34

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.
@@ -3951,12 +3951,13 @@ class AnnaNonEditableGenericTableComponent {
3951
3951
  setMarginLeftForFilterIcon() {
3952
3952
  let elementArr = this.viewChildTableHeaders.toArray();
3953
3953
  elementArr.forEach((item) => {
3954
+ var _a, _b, _c, _d, _e, _f;
3954
3955
  let childDivElements = item.nativeElement.children;
3955
3956
  if (childDivElements.length == 2) {
3956
- let firstParagraphWidth = childDivElements[0].children[0];
3957
- let secondParagraphWidth = childDivElements[1].children[0];
3958
- if ((firstParagraphWidth === null || firstParagraphWidth === void 0 ? void 0 : firstParagraphWidth.offsetWidth) > secondParagraphWidth.offsetWidth) {
3959
- let diff = (firstParagraphWidth === null || firstParagraphWidth === void 0 ? void 0 : firstParagraphWidth.offsetWidth) - secondParagraphWidth.offsetWidth;
3957
+ let firstParagraphOffsetWidth = ((_b = (_a = childDivElements[0]) === null || _a === void 0 ? void 0 : _a.children[0]) === null || _b === void 0 ? void 0 : _b.offsetWidth) ? (_d = (_c = childDivElements[0]) === null || _c === void 0 ? void 0 : _c.children[0]) === null || _d === void 0 ? void 0 : _d.offsetWidth : 0;
3958
+ let secondParagraphOffsetWidth = ((_e = childDivElements[1].children[0]) === null || _e === void 0 ? void 0 : _e.offsetWidth) ? (_f = childDivElements[1].children[0]) === null || _f === void 0 ? void 0 : _f.offsetWidth : 0;
3959
+ if (firstParagraphOffsetWidth > secondParagraphOffsetWidth) {
3960
+ let diff = firstParagraphOffsetWidth - secondParagraphOffsetWidth;
3960
3961
  if (childDivElements[0].children.length == 2) {
3961
3962
  childDivElements[0].children[1].style.marginLeft = 4 + 'px';
3962
3963
  }
@@ -3965,7 +3966,7 @@ class AnnaNonEditableGenericTableComponent {
3965
3966
  }
3966
3967
  }
3967
3968
  else {
3968
- let diff = (secondParagraphWidth === null || secondParagraphWidth === void 0 ? void 0 : secondParagraphWidth.offsetWidth) - (firstParagraphWidth === null || firstParagraphWidth === void 0 ? void 0 : firstParagraphWidth.offsetWidth);
3969
+ let diff = secondParagraphOffsetWidth - firstParagraphOffsetWidth;
3969
3970
  if (childDivElements[0].children.length == 2) {
3970
3971
  childDivElements[0].children[1].style.marginLeft = diff + 4 + 'px';
3971
3972
  }