@coolon/angular-ui-powerups 16.1.0-aplpha.81 → 16.1.0-aplpha.83

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.
@@ -1,4 +1,5 @@
1
- import { ElementRef, InjectionToken, OnInit } from "@angular/core";
1
+ import { CdkVirtualScrollViewport } from "@angular/cdk/scrolling";
2
+ import { AfterViewInit, ElementRef, InjectionToken, OnInit } from "@angular/core";
2
3
  import { ListModel, ListModelChain, MutableValueModel, ValueModel } from "@coolon/pectin";
3
4
  import { TableVirtualScrollDataSource } from "ng-table-virtual-scroll";
4
5
  import { ResizeAwareComponent } from "../../../resize-aware.component";
@@ -14,7 +15,7 @@ export declare class TableRowAttributesDirective implements OnInit {
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<TableRowAttributesDirective, never>;
15
16
  static ɵdir: i0.ɵɵDirectiveDeclaration<TableRowAttributesDirective, "[aupTableRowAttributes]", never, { "aupTableRowAttributes": { "alias": "aupTableRowAttributes"; "required": false; }; }, {}, never, never, false, never>;
16
17
  }
17
- export declare class TableBodyComponent<Row> extends ResizeAwareComponent implements OnInit {
18
+ export declare class TableBodyComponent<Row> extends ResizeAwareComponent implements AfterViewInit {
18
19
  protected bufferMultiplier: number;
19
20
  accessor data$: ListModel<Row>;
20
21
  accessor tableModel: AbstractTableModel<Row>;
@@ -23,6 +24,7 @@ export declare class TableBodyComponent<Row> extends ResizeAwareComponent implem
23
24
  trackBy: (index: number, item: Row) => any;
24
25
  accessor scrollMode$: ValueModel<TableBodyComponent.ScrollMode>;
25
26
  accessor scrollMode: TableBodyComponent.ScrollMode;
27
+ scrollViewport: CdkVirtualScrollViewport;
26
28
  columns$: ListModelChain<ColumnModel<Row>>;
27
29
  columnIds$: ListModelChain<string>;
28
30
  private columnsById$;
@@ -30,14 +32,21 @@ export declare class TableBodyComponent<Row> extends ResizeAwareComponent implem
30
32
  protected rowHeight$: MutableValueModel<number>;
31
33
  baseCssClass: string;
32
34
  protected virtualScrollDataSource: TableVirtualScrollDataSource<Row>;
35
+ private virtualScrollActive$;
36
+ private scrollTimeout;
33
37
  constructor(bufferMultiplier?: number);
38
+ ngAfterViewInit(): void;
34
39
  get hideHeader(): boolean;
40
+ get headerHeightCssVar(): string;
41
+ get rowHeightCssVar(): string;
35
42
  isEditing(row: Row): boolean;
36
43
  notifyCellClicked(columnModel: ColumnModel<Row>, row: Row): void;
37
44
  isFirstVisibleColumn(columnId: string): boolean;
38
45
  isLastVisibleColumn(columnId: string): boolean;
39
46
  getColumnClasses(columnId: string): string[];
40
47
  private scheduleTableHeightCheck;
48
+ private notifyScrolled;
49
+ private clearScrollTimeout;
41
50
  static ɵfac: i0.ɵɵFactoryDeclaration<TableBodyComponent<any>, [{ optional: true; }]>;
42
51
  static ɵcmp: i0.ɵɵComponentDeclaration<TableBodyComponent<any>, "aup-table-body", never, { "data$": { "alias": "data$"; "required": false; }; "tableModel": { "alias": "tableModel"; "required": false; }; "showHeader$": { "alias": "showHeader$"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "scrollMode$": { "alias": "scrollMode$"; "required": false; }; "scrollMode": { "alias": "scrollMode"; "required": false; }; }, {}, never, never, false, never>;
43
52
  }
@@ -69,6 +69,7 @@ import * as i0 from "@angular/core";
69
69
  export declare class TableComponent<Row> extends AbstractTableComponent<Row> implements OnInit {
70
70
  accessor tableModel: TableModel<Row>;
71
71
  accessor filterModel: TableFilterModel<Row>;
72
+ tableBody: TableBodyComponent<Row>;
72
73
  private _footerContentAdded;
73
74
  private readonly _filteredRows$;
74
75
  protected readonly scrollMode$: ValueModelChain<TableBodyComponent.ScrollMode>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "16.1.0-aplpha.81",
3
+ "version": "16.1.0-aplpha.83",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.9",
6
6
  "@angular/common": "^16.2.9",
@@ -12,7 +12,7 @@
12
12
  "@angular/platform-browser-dynamic": "^16.2.9",
13
13
  "@angular/material-moment-adapter": "^16.2.10",
14
14
  "@angular/router": "^16.2.9",
15
- "@coolon/pectin": "^5.0.0-alpha.32",
15
+ "@coolon/pectin": "^5.0.0-alpha.34",
16
16
  "fast-typescript-memoize": "^1.1.1",
17
17
  "lodash-es": "^4.17.21",
18
18
  "marked": "4.0.10",
@@ -24,7 +24,7 @@
24
24
  "escape-string-regexp": "^5.0.0",
25
25
  "@coolon/typescript-utilities": "^5.0.0-alpha.8",
26
26
  "fractional-indexing": "^3.2.0",
27
- "ng-table-virtual-scroll": "^1.6.0"
27
+ "ng-table-virtual-scroll": "^1.6.1"
28
28
  },
29
29
  "optionalDependencies": {
30
30
  "@fortawesome/fontawesome-free": "^6.0.0"