@coolon/angular-ui-powerups 16.1.0-aplpha.97 → 16.1.0-aplpha.98
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.
- package/assets/table.scss +5 -0
- package/esm2022/lib/components/components.module.mjs +1 -1
- package/esm2022/lib/components/tables/abstract-table-model.mjs +7 -1
- package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +19 -1
- package/esm2022/lib/components/tables/renderer/footer-row-portal-ref.mjs +12 -0
- package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +12 -7
- package/fesm2022/coolon-angular-ui-powerups.mjs +94 -56
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/tables/abstract-table-model.d.ts +3 -0
- package/lib/components/tables/renderer/cell-portal-ref.d.ts +8 -0
- package/lib/components/tables/renderer/footer-row-portal-ref.d.ts +8 -0
- package/lib/components/tables/renderer/table-body/table-body.component.d.ts +2 -0
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ import { SelectionColumnModel } from "./column/selection-column-model";
|
|
|
14
14
|
import { EditSession } from "./editor/edit-session";
|
|
15
15
|
import { TextSearchPredicate } from "./filter/text-search-predicate";
|
|
16
16
|
import { CellRenderer } from "./renderer/cell-renderer";
|
|
17
|
+
import { FooterRowPortalRef } from "./renderer/footer-row-portal-ref";
|
|
17
18
|
import { TableMoreMenuPopupComponent } from "./renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component";
|
|
18
19
|
export declare abstract class AbstractTableModel<Row extends object> extends GarbageCollector {
|
|
19
20
|
protected readonly _dataSource$: DelegatingListModel<Row>;
|
|
@@ -42,6 +43,7 @@ export declare abstract class AbstractTableModel<Row extends object> extends Gar
|
|
|
42
43
|
readonly selectedItems$: ListModel<Row>;
|
|
43
44
|
readonly leadSelection$: ValueModel<Row>;
|
|
44
45
|
readonly hasSelection$: BooleanValueModelChain;
|
|
46
|
+
footerRowPortalRef: FooterRowPortalRef<any>;
|
|
45
47
|
constructor();
|
|
46
48
|
protected setDataSource(dataSource$: any): void;
|
|
47
49
|
/**
|
|
@@ -80,6 +82,7 @@ export declare abstract class AbstractTableModel<Row extends object> extends Gar
|
|
|
80
82
|
addComponentColumn<C extends CellRenderer<Partial<Row>>>(columnId: string, component: ComponentType<C>, onInit?: OnComponentInit<C>): CustomValueColumnModel<Row, Row>;
|
|
81
83
|
addComponentColumn<C extends CellRenderer<Partial<Row>>>(columnId: string, component: ComponentType<C>, options?: CellRendererOptions<Row, C>): CustomValueColumnModel<Row, Row>;
|
|
82
84
|
addMoreMenu<C extends TableMoreMenuPopupComponent<Row>>(componentClass: Constructable<C>, initialiseCallback?: (component: C) => void): CustomValueColumnModel<Row, Row>;
|
|
85
|
+
addFooterRow<C>(component: ComponentType<C>, initialiseCallback?: (component: C) => void): void;
|
|
83
86
|
addTemplateColumn<V>(columnId: string): CustomTemplateColumnModel<Row>;
|
|
84
87
|
addRowClass(className: string, predicate: (row: Row) => boolean): void;
|
|
85
88
|
addRowAttribute(attributeName: string, getValue: (row: Row) => string): void;
|
|
@@ -5,6 +5,7 @@ import { EditSession } from '../editor/edit-session';
|
|
|
5
5
|
import { TableCellComponent } from './table-cell/table-cell.component';
|
|
6
6
|
import { TableHeaderCellComponent } from './table-header-cell/table-header-cell.component';
|
|
7
7
|
export declare const HEADER_CELL_RENDERER_PORTAL: unique symbol;
|
|
8
|
+
export declare const FOOTER_CELL_RENDERER_PORTAL: unique symbol;
|
|
8
9
|
export declare const CELL_RENDERER_PORTAL: unique symbol;
|
|
9
10
|
export declare const CELL_EDITOR_PORTAL: unique symbol;
|
|
10
11
|
export declare const PORTAL_RENDERER_COMPONENT: unique symbol;
|
|
@@ -50,3 +51,10 @@ export declare class TemplateCellRendererPortalRef<Row extends object> extends C
|
|
|
50
51
|
pushState(host: TableCellComponent<Row>): void;
|
|
51
52
|
private createPortal;
|
|
52
53
|
}
|
|
54
|
+
export declare class CellFooterPortalRef<Row extends object, C> extends CellPortalRef<Row, TableHeaderCellComponent, C> {
|
|
55
|
+
readonly componentType: ComponentType<C>;
|
|
56
|
+
readonly initialiseHeader: (component: C, columnModel: ColumnModel<Row>) => void;
|
|
57
|
+
constructor(componentType: ComponentType<C>, initialiseHeader: (component: C, columnModel: ColumnModel<Row>) => void);
|
|
58
|
+
initialiseHost(host: TableHeaderCellComponent, columnModel: ColumnModel<Row>): void;
|
|
59
|
+
onPortalAttached(host: TableHeaderCellComponent, portalComponent: C): void;
|
|
60
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentType } from "@angular/cdk/overlay";
|
|
2
|
+
import { ComponentPortal } from "@angular/cdk/portal";
|
|
3
|
+
export declare class FooterRowPortalRef<C> {
|
|
4
|
+
protected readonly component: ComponentType<C>;
|
|
5
|
+
readonly onInit: (component: C) => void;
|
|
6
|
+
readonly portal: ComponentPortal<C>;
|
|
7
|
+
constructor(component: ComponentType<C>, onInit: (component: C) => void);
|
|
8
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CdkPortalOutletAttachedRef } from "@angular/cdk/portal";
|
|
1
2
|
import { CdkVirtualScrollViewport } from "@angular/cdk/scrolling";
|
|
2
3
|
import { AfterViewInit, ElementRef, InjectionToken, OnInit } from "@angular/core";
|
|
3
4
|
import { ListModel, ListModelChain, MutableValueModel, ValueModel } from "@coolon/pectin";
|
|
@@ -47,6 +48,7 @@ export declare class TableBodyComponent<Row extends object> extends ResizeAwareC
|
|
|
47
48
|
private scheduleTableHeightCheck;
|
|
48
49
|
private notifyScrolled;
|
|
49
50
|
private clearScrollTimeout;
|
|
51
|
+
initialiseFooter($event: CdkPortalOutletAttachedRef): void;
|
|
50
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableBodyComponent<any>, [{ optional: true; }]>;
|
|
51
53
|
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>;
|
|
52
54
|
}
|