@coolon/angular-ui-powerups 16.1.0-aplpha.97 → 16.1.0-aplpha.99
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 +19 -0
- package/esm2022/lib/components/components.module.mjs +9 -4
- package/esm2022/lib/components/exports.mjs +3 -1
- package/esm2022/lib/components/tables/abstract-table-model.mjs +8 -1
- package/esm2022/lib/components/tables/footer/footer-row-model.mjs +38 -0
- package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +19 -1
- package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +22 -6
- package/esm2022/lib/components/tables/renderer/table-footer-row/table-footer-row.component.mjs +30 -0
- package/esm2022/lib/components/tables/table/table.component.mjs +3 -3
- package/esm2022/lib/components/tables/tree-table/tree-table-component.mjs +1 -1
- package/fesm2022/coolon-angular-ui-powerups.mjs +141 -37
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/components.module.d.ts +23 -22
- package/lib/components/exports.d.ts +2 -0
- package/lib/components/tables/abstract-table-model.d.ts +3 -0
- package/lib/components/tables/footer/footer-row-model.d.ts +22 -0
- package/lib/components/tables/renderer/cell-portal-ref.d.ts +8 -0
- package/lib/components/tables/renderer/table-body/table-body.component.d.ts +7 -2
- package/lib/components/tables/renderer/table-footer-row/table-footer-row.component.d.ts +11 -0
- package/package.json +1 -1
|
@@ -53,29 +53,30 @@ import * as i51 from "./text/markdown/markdown.component";
|
|
|
53
53
|
import * as i52 from "./tables/renderer/table-more-menu/table-more-menu.component";
|
|
54
54
|
import * as i53 from "./tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component";
|
|
55
55
|
import * as i54 from "./forms/search-input/search-input.component";
|
|
56
|
-
import * as i55 from "
|
|
57
|
-
import * as i56 from "@angular/
|
|
58
|
-
import * as i57 from "@angular/
|
|
59
|
-
import * as i58 from "@angular/
|
|
60
|
-
import * as i59 from "@angular/material/
|
|
61
|
-
import * as i60 from "@angular/material/
|
|
62
|
-
import * as i61 from "@angular/material/
|
|
63
|
-
import * as i62 from "
|
|
64
|
-
import * as i63 from "
|
|
65
|
-
import * as i64 from "@angular/material/
|
|
66
|
-
import * as i65 from "@angular/material/
|
|
67
|
-
import * as i66 from "@angular/material/
|
|
68
|
-
import * as i67 from "@angular/
|
|
69
|
-
import * as i68 from "@angular/cdk/
|
|
70
|
-
import * as i69 from "@angular/
|
|
71
|
-
import * as i70 from "@angular/material/
|
|
72
|
-
import * as i71 from "@angular/material/
|
|
73
|
-
import * as i72 from "@angular/material/
|
|
74
|
-
import * as i73 from "@angular/material/
|
|
75
|
-
import * as i74 from "@angular/material/progress-
|
|
76
|
-
import * as i75 from "
|
|
56
|
+
import * as i55 from "./tables/renderer/table-footer-row/table-footer-row.component";
|
|
57
|
+
import * as i56 from "@angular/common";
|
|
58
|
+
import * as i57 from "@angular/platform-browser/animations";
|
|
59
|
+
import * as i58 from "@angular/forms";
|
|
60
|
+
import * as i59 from "@angular/material/input";
|
|
61
|
+
import * as i60 from "@angular/material/form-field";
|
|
62
|
+
import * as i61 from "@angular/material/select";
|
|
63
|
+
import * as i62 from "@angular/material/tabs";
|
|
64
|
+
import * as i63 from "../directives/directives.module";
|
|
65
|
+
import * as i64 from "@angular/material/icon";
|
|
66
|
+
import * as i65 from "@angular/material/button";
|
|
67
|
+
import * as i66 from "@angular/material/checkbox";
|
|
68
|
+
import * as i67 from "@angular/material/table";
|
|
69
|
+
import * as i68 from "@angular/cdk/portal";
|
|
70
|
+
import * as i69 from "@angular/cdk/scrolling";
|
|
71
|
+
import * as i70 from "@angular/material/tooltip";
|
|
72
|
+
import * as i71 from "@angular/material/autocomplete";
|
|
73
|
+
import * as i72 from "@angular/material/menu";
|
|
74
|
+
import * as i73 from "@angular/material/divider";
|
|
75
|
+
import * as i74 from "@angular/material/progress-spinner";
|
|
76
|
+
import * as i75 from "@angular/material/progress-bar";
|
|
77
|
+
import * as i76 from "ng-table-virtual-scroll";
|
|
77
78
|
export declare class ComponentsModule {
|
|
78
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsModule, never>;
|
|
79
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, [typeof i1.AbstractInputComponent, typeof i2.AbstractValueInputComponent, typeof i3.AbstractListInputComponent, typeof i4.NumberInputComponent, typeof i5.StringInputComponent, typeof i6.TextInputComponent, typeof i7.PasswordInputComponent, typeof i8.SelectInputComponent, typeof i9.MultipleSelectInputComponent, typeof i10.AutocompleteInputComponent, typeof i11.CheckboxInputComponent, typeof i12.ScrollContainerComponent, typeof i13.NoopComponent, typeof i14.SwitchCaseComponent, typeof i14.SwitchCaseWhenDirective, typeof i14.SwitchCaseDefaultDirective, typeof i15.FocusContainerComponent, typeof i16.VerticalFocusContainerComponent, typeof i17.FocusableComponent, typeof i18.CardContainerComponent, typeof i19.TableComponent, typeof i20.TableRowAttributesDirective, typeof i21.EditRowControlsComponent, typeof i22.ColumnTemplateDirective, typeof i23.DefaultCellRendererComponent, typeof i24.TableCellComponent, typeof i25.SelectionCellComponent, typeof i26.SelectionHeaderCellComponent, typeof i27.DefaultHeaderCellRendererComponent, typeof i28.TableHeaderCellComponent, typeof i29.IconComponent, typeof i30.SectionHeaderComponent, typeof i31.TableRowMenuComponent, typeof i32.ToolBarComponent, typeof i33.CommandComponent, typeof i34.PopupMenuComponent, typeof i35.CommandFaceComponent, typeof i36.MoreMenuComponent, typeof i37.SeparatorComponent, typeof i38.FlexComponent, typeof i39.AbstractPopupMenuComponent, typeof i40.PopupMenuRendererComponent, typeof i41.TreeTableComponent, typeof i42.TreeInheritanceIconComponent, typeof i43.TreeLabelCellRendererComponent, typeof i44.BusyOverlayComponent, typeof i45.EmptyStateComponent, typeof i46.PaginatorComponent, typeof i47.AbstractTableComponent, typeof i48.AbstractCardContainerComponent, typeof i49.LabelledValueComponent, typeof i50.LoadingContainerComponent, typeof i51.MarkdownComponent, typeof i20.TableBodyComponent, typeof i52.TableMoreMenuComponent, typeof i53.TableMoreMenuPopupComponent, typeof i54.SearchInputComponent], [typeof
|
|
80
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, [typeof i1.AbstractInputComponent, typeof i2.AbstractValueInputComponent, typeof i3.AbstractListInputComponent, typeof i4.NumberInputComponent, typeof i5.StringInputComponent, typeof i6.TextInputComponent, typeof i7.PasswordInputComponent, typeof i8.SelectInputComponent, typeof i9.MultipleSelectInputComponent, typeof i10.AutocompleteInputComponent, typeof i11.CheckboxInputComponent, typeof i12.ScrollContainerComponent, typeof i13.NoopComponent, typeof i14.SwitchCaseComponent, typeof i14.SwitchCaseWhenDirective, typeof i14.SwitchCaseDefaultDirective, typeof i15.FocusContainerComponent, typeof i16.VerticalFocusContainerComponent, typeof i17.FocusableComponent, typeof i18.CardContainerComponent, typeof i19.TableComponent, typeof i20.TableRowAttributesDirective, typeof i21.EditRowControlsComponent, typeof i22.ColumnTemplateDirective, typeof i23.DefaultCellRendererComponent, typeof i24.TableCellComponent, typeof i25.SelectionCellComponent, typeof i26.SelectionHeaderCellComponent, typeof i27.DefaultHeaderCellRendererComponent, typeof i28.TableHeaderCellComponent, typeof i29.IconComponent, typeof i30.SectionHeaderComponent, typeof i31.TableRowMenuComponent, typeof i32.ToolBarComponent, typeof i33.CommandComponent, typeof i34.PopupMenuComponent, typeof i35.CommandFaceComponent, typeof i36.MoreMenuComponent, typeof i37.SeparatorComponent, typeof i38.FlexComponent, typeof i39.AbstractPopupMenuComponent, typeof i40.PopupMenuRendererComponent, typeof i41.TreeTableComponent, typeof i42.TreeInheritanceIconComponent, typeof i43.TreeLabelCellRendererComponent, typeof i44.BusyOverlayComponent, typeof i45.EmptyStateComponent, typeof i46.PaginatorComponent, typeof i47.AbstractTableComponent, typeof i48.AbstractCardContainerComponent, typeof i49.LabelledValueComponent, typeof i50.LoadingContainerComponent, typeof i51.MarkdownComponent, typeof i20.TableBodyComponent, typeof i52.TableMoreMenuComponent, typeof i53.TableMoreMenuPopupComponent, typeof i54.SearchInputComponent, typeof i55.TableFooterRow], [typeof i56.CommonModule, typeof i57.BrowserAnimationsModule, typeof i58.FormsModule, typeof i59.MatInputModule, typeof i60.MatFormFieldModule, typeof i61.MatSelectModule, typeof i62.MatTabsModule, typeof i63.DirectivesModule, typeof i64.MatIconModule, typeof i65.MatButtonModule, typeof i66.MatCheckboxModule, typeof i67.MatTableModule, typeof i68.PortalModule, typeof i69.CdkScrollableModule, typeof i70.MatTooltipModule, typeof i71.MatAutocompleteModule, typeof i72.MatMenuModule, typeof i73.MatDividerModule, typeof i74.MatProgressSpinnerModule, typeof i75.MatProgressBarModule, typeof i69.ScrollingModule, typeof i76.TableVirtualScrollModule], [typeof i55.TableFooterRow, typeof i4.NumberInputComponent, typeof i5.StringInputComponent, typeof i6.TextInputComponent, typeof i7.PasswordInputComponent, typeof i11.CheckboxInputComponent, typeof i8.SelectInputComponent, typeof i9.MultipleSelectInputComponent, typeof i10.AutocompleteInputComponent, typeof i12.ScrollContainerComponent, typeof i13.NoopComponent, typeof i14.SwitchCaseComponent, typeof i14.SwitchCaseWhenDirective, typeof i14.SwitchCaseDefaultDirective, typeof i15.FocusContainerComponent, typeof i16.VerticalFocusContainerComponent, typeof i17.FocusableComponent, typeof i18.CardContainerComponent, typeof i19.TableComponent, typeof i21.EditRowControlsComponent, typeof i22.ColumnTemplateDirective, typeof i29.IconComponent, typeof i30.SectionHeaderComponent, typeof i31.TableRowMenuComponent, typeof i32.ToolBarComponent, typeof i33.CommandComponent, typeof i34.PopupMenuComponent, typeof i35.CommandFaceComponent, typeof i36.MoreMenuComponent, typeof i37.SeparatorComponent, typeof i38.FlexComponent, typeof i41.TreeTableComponent, typeof i44.BusyOverlayComponent, typeof i45.EmptyStateComponent, typeof i46.PaginatorComponent, typeof i49.LabelledValueComponent, typeof i50.LoadingContainerComponent, typeof i51.MarkdownComponent, typeof i52.TableMoreMenuComponent, typeof i53.TableMoreMenuPopupComponent, typeof i54.SearchInputComponent]>;
|
|
80
81
|
static ɵinj: i0.ɵɵInjectorDeclaration<ComponentsModule>;
|
|
81
82
|
}
|
|
@@ -66,6 +66,7 @@ export * from "./tables/filter/column-text-search-formatter";
|
|
|
66
66
|
export * from "./tables/filter/enable-cell-text-search.decorator";
|
|
67
67
|
export * from "./tables/filter/table-filter-model";
|
|
68
68
|
export * from "./tables/filter/text-search-predicate";
|
|
69
|
+
export * from "./tables/footer/footer-row-model";
|
|
69
70
|
export * from "./tables/paginator/paginator.component";
|
|
70
71
|
export * from "./tables/renderer/cell-editors";
|
|
71
72
|
export * from "./tables/renderer/cell-portal-ref";
|
|
@@ -76,6 +77,7 @@ export * from "./tables/renderer/select-header-cell/selection-header-cell.compon
|
|
|
76
77
|
export * from "./tables/renderer/selection-cell/selection-cell.component";
|
|
77
78
|
export * from "./tables/renderer/table-body/table-body.component";
|
|
78
79
|
export * from "./tables/renderer/table-cell/table-cell.component";
|
|
80
|
+
export * from "./tables/renderer/table-footer-row/table-footer-row.component";
|
|
79
81
|
export * from "./tables/renderer/table-header-cell/table-header-cell.component";
|
|
80
82
|
export * from "./tables/renderer/table-more-menu/table-more-menu.component";
|
|
81
83
|
export * from "./tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component";
|
|
@@ -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 { FooterRowModel } from "./footer/footer-row-model";
|
|
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
|
+
footerRowModel: FooterRowModel.Impl<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): FooterRowModel<C>;
|
|
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;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentType } from "@angular/cdk/overlay";
|
|
2
|
+
import { ComponentPortal } from "@angular/cdk/portal";
|
|
3
|
+
declare class RowClass {
|
|
4
|
+
readonly className: string;
|
|
5
|
+
readonly matches: () => boolean;
|
|
6
|
+
constructor(className: string, matches: () => boolean);
|
|
7
|
+
}
|
|
8
|
+
export declare abstract class FooterRowModel<C> {
|
|
9
|
+
protected readonly _rowClasses: RowClass[];
|
|
10
|
+
noPadding(): void;
|
|
11
|
+
addClass(className: string, condition?: () => boolean): void;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace FooterRowModel {
|
|
14
|
+
class Impl<C> extends FooterRowModel<C> {
|
|
15
|
+
protected readonly component: ComponentType<C>;
|
|
16
|
+
readonly onInit: (component: C) => void;
|
|
17
|
+
readonly portal: ComponentPortal<C>;
|
|
18
|
+
constructor(component: ComponentType<C>, onInit: (component: C) => void);
|
|
19
|
+
getActiveRowClasses(): string;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -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
|
+
}
|
|
@@ -1,10 +1,12 @@
|
|
|
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
|
-
import { ListModel, ListModelChain, MutableValueModel, ValueModel } from "@coolon/pectin";
|
|
4
|
+
import { ListModel, ListModelChain, MutableValueModel, Proxify, ValueModel } from "@coolon/pectin";
|
|
4
5
|
import { TableVirtualScrollDataSource } from "ng-table-virtual-scroll";
|
|
5
6
|
import { ResizeAwareComponent } from "../../../resize-aware.component";
|
|
6
7
|
import { AbstractTableModel } from "../../abstract-table-model";
|
|
7
8
|
import { ColumnModel } from "../../column/column-model";
|
|
9
|
+
import { FooterRowModel } from "../../footer/footer-row-model";
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
11
|
export declare const AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER: InjectionToken<number>;
|
|
10
12
|
export declare class TableRowAttributesDirective implements OnInit {
|
|
@@ -19,6 +21,7 @@ export declare class TableBodyComponent<Row extends object> extends ResizeAwareC
|
|
|
19
21
|
protected bufferMultiplier: number;
|
|
20
22
|
accessor data$: ListModel<Row>;
|
|
21
23
|
accessor tableModel: AbstractTableModel<Row>;
|
|
24
|
+
accessor footerRow: FooterRowModel.Impl<any>;
|
|
22
25
|
accessor showHeader$: ValueModel<boolean>;
|
|
23
26
|
accessor showHeader: boolean;
|
|
24
27
|
trackBy: (index: number, item: Row) => any;
|
|
@@ -47,8 +50,10 @@ export declare class TableBodyComponent<Row extends object> extends ResizeAwareC
|
|
|
47
50
|
private scheduleTableHeightCheck;
|
|
48
51
|
private notifyScrolled;
|
|
49
52
|
private clearScrollTimeout;
|
|
53
|
+
initialiseFooter($event: CdkPortalOutletAttachedRef): void;
|
|
54
|
+
protected readonly Proxify: typeof Proxify;
|
|
50
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableBodyComponent<any>, [{ optional: true; }]>;
|
|
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>;
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableBodyComponent<any>, "aup-table-body", never, { "data$": { "alias": "data$"; "required": false; }; "tableModel": { "alias": "tableModel"; "required": false; }; "footerRow": { "alias": "footerRow"; "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
57
|
}
|
|
53
58
|
export declare namespace TableBodyComponent {
|
|
54
59
|
type ScrollMode = "none" | "classic" | "virtual";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CdkPortalOutletAttachedRef } from "@angular/cdk/portal";
|
|
2
|
+
import { FooterRowModel } from "../../footer/footer-row-model";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TableFooterRow {
|
|
5
|
+
row: FooterRowModel.Impl<any>;
|
|
6
|
+
defaultClassNames: string;
|
|
7
|
+
get rowClasses(): string;
|
|
8
|
+
initialise($event: CdkPortalOutletAttachedRef): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableFooterRow, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableFooterRow, "aup-table-footer-row", never, { "row": { "alias": "row"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
|
+
}
|