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