@fundamental-ngx/platform 0.43.42 → 0.43.44

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.
Files changed (27) hide show
  1. package/esm2020/form/multi-combobox/commons/base-multi-combobox.mjs +14 -6
  2. package/esm2020/form/multi-combobox/multi-combobox/multi-combobox.component.mjs +11 -5
  3. package/esm2020/table/table.component.mjs +3 -3
  4. package/esm2020/table-helpers/directives/table-virtual-scroll.directive.mjs +13 -5
  5. package/esm2020/value-help-dialog/value-help-dialog/value-help-dialog.component.mjs +2 -1
  6. package/fesm2015/fundamental-ngx-platform-form.mjs +17 -8
  7. package/fesm2015/fundamental-ngx-platform-form.mjs.map +1 -1
  8. package/fesm2015/fundamental-ngx-platform-table-helpers.mjs +12 -4
  9. package/fesm2015/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
  10. package/fesm2015/fundamental-ngx-platform-table.mjs +2 -2
  11. package/fesm2015/fundamental-ngx-platform-table.mjs.map +1 -1
  12. package/fesm2015/fundamental-ngx-platform-value-help-dialog.mjs +1 -0
  13. package/fesm2015/fundamental-ngx-platform-value-help-dialog.mjs.map +1 -1
  14. package/fesm2020/fundamental-ngx-platform-form.mjs +17 -8
  15. package/fesm2020/fundamental-ngx-platform-form.mjs.map +1 -1
  16. package/fesm2020/fundamental-ngx-platform-table-helpers.mjs +12 -4
  17. package/fesm2020/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
  18. package/fesm2020/fundamental-ngx-platform-table.mjs +2 -2
  19. package/fesm2020/fundamental-ngx-platform-table.mjs.map +1 -1
  20. package/fesm2020/fundamental-ngx-platform-value-help-dialog.mjs +1 -0
  21. package/fesm2020/fundamental-ngx-platform-value-help-dialog.mjs.map +1 -1
  22. package/form/multi-combobox/commons/base-multi-combobox.d.ts +11 -5
  23. package/form/multi-combobox/multi-combobox/multi-combobox.component.d.ts +4 -2
  24. package/fundamental-ngx-platform-v0.43.44.tgz +0 -0
  25. package/package.json +4 -4
  26. package/schematics/ng-add/index.js +1 -1
  27. package/fundamental-ngx-platform-v0.43.42.tgz +0 -0
@@ -2571,6 +2571,12 @@ class TableVirtualScrollDirective extends TableVirtualScroll {
2571
2571
  ngOnDestroy() {
2572
2572
  var _a;
2573
2573
  (_a = this._focusableGridSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
2574
+ if (this.scrollWholeRows) {
2575
+ this._table.tableContainer.nativeElement.removeEventListener('wheel', this._wheelScrollListenerFunction, {
2576
+ passive: false
2577
+ });
2578
+ this._table.tableScrollMockContainer.nativeElement.removeEventListener('scroll', this._mockScrollbarListenerFunction, { passive: false });
2579
+ }
2574
2580
  }
2575
2581
  /** Sets table reference. */
2576
2582
  setTable(table) {
@@ -2599,7 +2605,7 @@ class TableVirtualScrollDirective extends TableVirtualScroll {
2599
2605
  }
2600
2606
  }
2601
2607
  const totalNodeCount = this._table._tableRowsVisible.length;
2602
- let visibleNodeCount = Math.floor(this._table.tableContainer.nativeElement.clientHeight / this.rowHeight);
2608
+ let visibleNodeCount = this._getNumberOfRowsToDisplay();
2603
2609
  visibleNodeCount = Math.min(totalNodeCount - startNodeIndex, visibleNodeCount);
2604
2610
  this.virtualScrollTotalHeight = totalNodeCount * this.rowHeight - visibleNodeCount * this.rowHeight;
2605
2611
  this._setRows(startNodeIndex);
@@ -2660,13 +2666,15 @@ class TableVirtualScrollDirective extends TableVirtualScroll {
2660
2666
  const tableContainer = this._table.tableContainer.nativeElement;
2661
2667
  let tableHeight = tableContainer.clientHeight;
2662
2668
  tableHeight = tableHeight - tableContainer.querySelector('thead').clientHeight;
2663
- const numberOfRows = Math.floor(tableHeight / (this.rowHeight + 2));
2669
+ const numberOfRows = Math.floor(tableHeight / this.rowHeight);
2670
+ let retVal;
2664
2671
  if (this._table._tableRowsVisible.length < numberOfRows) {
2665
- return this._table._tableRowsVisible.length;
2672
+ retVal = this._table._tableRowsVisible.length;
2666
2673
  }
2667
2674
  else {
2668
- return numberOfRows;
2675
+ retVal = numberOfRows;
2669
2676
  }
2677
+ return retVal;
2670
2678
  }
2671
2679
  /**
2672
2680
  * @hidden