@annalib/anna-core 15.0.8 → 15.0.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.
@@ -1871,6 +1871,7 @@ class AnnaNonEditableGenericTableComponent {
1871
1871
  this.disableClearAllBtn = true;
1872
1872
  this.disableColumnClearAllBtn = true;
1873
1873
  this.allSelected = 0;
1874
+ this.margin = 5;
1874
1875
  this.options = {
1875
1876
  floor: 0,
1876
1877
  ceil: 0,
@@ -2417,9 +2418,8 @@ class AnnaNonEditableGenericTableComponent {
2417
2418
  let unselectedItems = sortBy(tooltipOptions.filter(item => !item.isSelected), "value");
2418
2419
  this.clonedTooltipOptions = [...selectedItems, ...unselectedItems];
2419
2420
  this.tooltipOptions = cloneDeep(this.clonedTooltipOptions);
2420
- let margin = 5;
2421
2421
  let dataLength = this.tooltipOptions.length;
2422
- this.heightOfCheckboxTooltipFilter = dataLength > 6 ? 200 : ((26.03 * dataLength) + (margin * dataLength) + margin);
2422
+ this.heightOfCheckboxTooltipFilter = dataLength > 6 ? 200 : ((26.03 * dataLength) + (this.margin * dataLength) + this.margin);
2423
2423
  this.disableSelectAll = unselectedItems.length == 0;
2424
2424
  this.disableClearAll = selectedItems.length == 0;
2425
2425
  this.selectedCheckboxOptionsCount = selectedItems.length;
@@ -3205,8 +3205,10 @@ class AnnaNonEditableGenericTableComponent {
3205
3205
  this.disableCheckboxFilterApplyButton();
3206
3206
  }
3207
3207
  searchForTheItem(str) {
3208
+ let dataLength = this.tooltipOptions.length;
3208
3209
  if (str) {
3209
3210
  this.tooltipOptions = cloneDeep(this.clonedTooltipOptions.filter(item => item.label.toString().toLowerCase().includes(str.toLowerCase())));
3211
+ this.heightOfCheckboxTooltipFilter = this.tooltipOptions.length > 6 ? 200 : ((26.03 * dataLength) + (this.margin * dataLength) + this.margin);
3210
3212
  this.tooltipOptions.forEach(element => {
3211
3213
  element.label = this.boldString(element.label, str);
3212
3214
  });