@fundamental-ngx/platform 0.43.0-rc.9 → 0.43.0

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 (70) hide show
  1. package/esm2020/dynamic-page/dynamic-page.component.mjs +1 -1
  2. package/esm2020/form/combobox/combobox/combobox.component.mjs +1 -1
  3. package/esm2020/form/form-generator/controls/dynamic-form-generator-multi-input/dynamic-form-generator-multi-input.component.mjs +2 -2
  4. package/esm2020/form/multi-combobox/multi-combobox/multi-combobox.component.mjs +1 -1
  5. package/esm2020/form/multi-input/multi-input.component.mjs +7 -4
  6. package/esm2020/form/step-input/number/number-step-input.component.mjs +1 -1
  7. package/esm2020/settings-generator/settings-generator-content/settings-generator-content.component.mjs +1 -1
  8. package/esm2020/smart-filter-bar/components/smart-filter-bar-condition-field/smart-filter-bar-condition-field.component.mjs +4 -3
  9. package/esm2020/smart-filter-bar/components/smart-filter-bar-settings-dialog/smart-filter-bar-settings-dialog.component.mjs +1 -1
  10. package/esm2020/smart-filter-bar/smart-filter-bar.component.mjs +3 -3
  11. package/esm2020/table/components/table-cell-header-popover/table-cell-header-popover.component.mjs +3 -3
  12. package/esm2020/table/components/table-header-row/table-header-row.component.mjs +8 -4
  13. package/esm2020/table/components/table-p13-dialog/sorting/sorting.component.mjs +3 -3
  14. package/esm2020/table/components/table-row/table-row.component.mjs +4 -3
  15. package/esm2020/table/table.component.mjs +29 -11
  16. package/esm2020/table-helpers/constants/index.mjs +3 -2
  17. package/esm2020/table-helpers/directives/table-scrollable.directive.mjs +9 -1
  18. package/esm2020/table-helpers/directives/table-virtual-scroll.directive.mjs +6 -2
  19. package/esm2020/table-helpers/interfaces/table-state.interface.mjs +1 -1
  20. package/esm2020/table-helpers/services/table-scroll-dispatcher.service.mjs +1 -1
  21. package/esm2020/table-helpers/services/table.service.mjs +3 -2
  22. package/esm2020/upload-collection/upload-collection/upload-collection.component.mjs +1 -1
  23. package/esm2020/value-help-dialog/components/define-tab/define-tab.component.mjs +1 -1
  24. package/esm2020/variant-management/components/manage-variants-dialog/manage-variants-dialog.component.mjs +1 -1
  25. package/fesm2015/fundamental-ngx-platform-dynamic-page.mjs +1 -1
  26. package/fesm2015/fundamental-ngx-platform-dynamic-page.mjs.map +1 -1
  27. package/fesm2015/fundamental-ngx-platform-form.mjs +9 -7
  28. package/fesm2015/fundamental-ngx-platform-form.mjs.map +1 -1
  29. package/fesm2015/fundamental-ngx-platform-settings-generator.mjs +1 -1
  30. package/fesm2015/fundamental-ngx-platform-settings-generator.mjs.map +1 -1
  31. package/fesm2015/fundamental-ngx-platform-smart-filter-bar.mjs +5 -5
  32. package/fesm2015/fundamental-ngx-platform-smart-filter-bar.mjs.map +1 -1
  33. package/fesm2015/fundamental-ngx-platform-table-helpers.mjs +14 -3
  34. package/fesm2015/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
  35. package/fesm2015/fundamental-ngx-platform-table.mjs +41 -19
  36. package/fesm2015/fundamental-ngx-platform-table.mjs.map +1 -1
  37. package/fesm2015/fundamental-ngx-platform-upload-collection.mjs +1 -1
  38. package/fesm2015/fundamental-ngx-platform-upload-collection.mjs.map +1 -1
  39. package/fesm2015/fundamental-ngx-platform-value-help-dialog.mjs +1 -1
  40. package/fesm2015/fundamental-ngx-platform-value-help-dialog.mjs.map +1 -1
  41. package/fesm2015/fundamental-ngx-platform-variant-management.mjs +1 -1
  42. package/fesm2015/fundamental-ngx-platform-variant-management.mjs.map +1 -1
  43. package/fesm2020/fundamental-ngx-platform-dynamic-page.mjs +1 -1
  44. package/fesm2020/fundamental-ngx-platform-dynamic-page.mjs.map +1 -1
  45. package/fesm2020/fundamental-ngx-platform-form.mjs +10 -7
  46. package/fesm2020/fundamental-ngx-platform-form.mjs.map +1 -1
  47. package/fesm2020/fundamental-ngx-platform-settings-generator.mjs +1 -1
  48. package/fesm2020/fundamental-ngx-platform-settings-generator.mjs.map +1 -1
  49. package/fesm2020/fundamental-ngx-platform-smart-filter-bar.mjs +5 -5
  50. package/fesm2020/fundamental-ngx-platform-smart-filter-bar.mjs.map +1 -1
  51. package/fesm2020/fundamental-ngx-platform-table-helpers.mjs +17 -3
  52. package/fesm2020/fundamental-ngx-platform-table-helpers.mjs.map +1 -1
  53. package/fesm2020/fundamental-ngx-platform-table.mjs +41 -19
  54. package/fesm2020/fundamental-ngx-platform-table.mjs.map +1 -1
  55. package/fesm2020/fundamental-ngx-platform-upload-collection.mjs +1 -1
  56. package/fesm2020/fundamental-ngx-platform-upload-collection.mjs.map +1 -1
  57. package/fesm2020/fundamental-ngx-platform-value-help-dialog.mjs +1 -1
  58. package/fesm2020/fundamental-ngx-platform-value-help-dialog.mjs.map +1 -1
  59. package/fesm2020/fundamental-ngx-platform-variant-management.mjs +1 -1
  60. package/fesm2020/fundamental-ngx-platform-variant-management.mjs.map +1 -1
  61. package/form/multi-input/multi-input.component.d.ts +3 -1
  62. package/fundamental-ngx-platform-v0.43.0.tgz +0 -0
  63. package/package.json +4 -4
  64. package/schematics/ng-add/index.js +1 -1
  65. package/table/components/table-header-row/table-header-row.component.d.ts +3 -1
  66. package/table/table.component.d.ts +7 -1
  67. package/table-helpers/directives/table-scrollable.directive.d.ts +2 -0
  68. package/table-helpers/interfaces/table-state.interface.d.ts +1 -0
  69. package/table-helpers/services/table-scroll-dispatcher.service.d.ts +2 -0
  70. package/fundamental-ngx-platform-v0.43.0-rc.9.tgz +0 -0
@@ -38,7 +38,8 @@ const DEFAULT_TABLE_STATE = {
38
38
  columnKeys: [],
39
39
  freezeToColumn: null,
40
40
  freezeToEndColumn: null,
41
- searchInput: DEFAULT_TABLE_SEARCH_INPUT
41
+ searchInput: DEFAULT_TABLE_SEARCH_INPUT,
42
+ scrollTopPosition: 0
42
43
  };
43
44
  const DEFAULT_HIGHLIGHTING_KEY = 'semantic';
44
45
  const EDITABLE_ROW_SEMANTIC_STATE = 'information';
@@ -1112,7 +1113,8 @@ class TableService {
1112
1113
  page: {
1113
1114
  pageSize: 0,
1114
1115
  currentPage: 1
1115
- }
1116
+ },
1117
+ scrollTopPosition: 0
1116
1118
  };
1117
1119
  }
1118
1120
  /**
@@ -2343,8 +2345,9 @@ class TableVirtualScrollDirective extends TableVirtualScroll {
2343
2345
  this._tableScrollDispatcher
2344
2346
  .verticallyScrolled()
2345
2347
  .pipe(filter$1(() => this.virtualScroll && !!this.bodyHeight), takeUntil(this._destroy$))
2346
- .subscribe(() => {
2348
+ .subscribe((scrollable) => {
2347
2349
  this.calculateVirtualScrollRows();
2350
+ this._table.setTableState(Object.assign(Object.assign({}, this._table.getTableState()), { scrollTopPosition: scrollable.getScrollTop() }));
2348
2351
  });
2349
2352
  }
2350
2353
  }
@@ -3510,6 +3513,14 @@ class TableScrollableDirective {
3510
3513
  }
3511
3514
  }
3512
3515
  }
3516
+ /** Set Scroll Position during component initialization. */
3517
+ initializeScrollTop(scrollTop) {
3518
+ this.ngZone.runOutsideAngular(() => {
3519
+ setTimeout(() => {
3520
+ this.setScrollTop(scrollTop, false);
3521
+ });
3522
+ });
3523
+ }
3513
3524
  }
3514
3525
  TableScrollableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableScrollableDirective, deps: [{ token: i0.ElementRef }, { token: TableScrollDispatcherService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
3515
3526
  TableScrollableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: TableScrollableDirective, isStandalone: true, selector: "[fdpTableScrollable]", providers: [