@coolon/angular-ui-powerups 16.1.0-aplpha.118 → 16.1.0-aplpha.12
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/activities/input-activities.scss +6 -14
- package/assets/form.scss +27 -74
- package/assets/icons.scss +0 -1
- package/assets/table.scss +27 -47
- package/assets/tabs.scss +6 -2
- package/esm2022/lib/animations/slide-animations.mjs +1 -6
- package/esm2022/lib/components/cards/card-container/card-container.component.mjs +4 -4
- package/esm2022/lib/components/commands/command/command.component.mjs +10 -24
- package/esm2022/lib/components/commands/command-face/command-face.component.mjs +3 -11
- package/esm2022/lib/components/commands/command-face.mjs +11 -11
- package/esm2022/lib/components/commands/group/popup-menu/abstract-popup-menu.component.mjs +11 -11
- package/esm2022/lib/components/commands/group/tool-bar/tool-bar.component.mjs +4 -6
- package/esm2022/lib/components/components.module.mjs +8 -27
- package/esm2022/lib/components/disposable-component.mjs +37 -20
- package/esm2022/lib/components/exports.mjs +2 -9
- package/esm2022/lib/components/forms/abstract-input.component.mjs +12 -55
- package/esm2022/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +2 -2
- package/esm2022/lib/components/forms/checkbox-input/checkbox-input.component.mjs +6 -8
- package/esm2022/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +2 -2
- package/esm2022/lib/components/forms/number-input/number-input.component.mjs +10 -49
- package/esm2022/lib/components/forms/password-input/password-input.component.mjs +3 -40
- package/esm2022/lib/components/forms/select-input/select-input.component.mjs +10 -11
- package/esm2022/lib/components/forms/string-input/string-input.component.mjs +9 -21
- package/esm2022/lib/components/icon/icon.component.mjs +4 -7
- package/esm2022/lib/components/resize-aware.component.mjs +24 -61
- package/esm2022/lib/components/switch-case/switch-case.component.mjs +7 -5
- package/esm2022/lib/components/tables/abstract-table-model.mjs +27 -69
- package/esm2022/lib/components/tables/abstract-table.component.mjs +5 -19
- package/esm2022/lib/components/tables/column/column-list-model.mjs +44 -0
- package/esm2022/lib/components/tables/column/column-model.mjs +3 -13
- package/esm2022/lib/components/tables/column/custom-template-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/custom-value-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/editor-controls-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/list-propery-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/property-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/selection-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +1 -1
- package/esm2022/lib/components/tables/editor/edit-session.mjs +1 -3
- package/esm2022/lib/components/tables/filter/table-filter-model.mjs +2 -4
- package/esm2022/lib/components/tables/filter/text-search-predicate.mjs +2 -16
- package/esm2022/lib/components/tables/renderer/cell-portal-ref.mjs +1 -19
- package/esm2022/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.mjs +3 -3
- package/esm2022/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +2 -3
- package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +40 -150
- package/esm2022/lib/components/tables/renderer/table-cell/table-cell.component.mjs +1 -1
- package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu.component.mjs +2 -7
- package/esm2022/lib/components/tables/table/table-model.mjs +1 -1
- package/esm2022/lib/components/tables/table/table.component.mjs +61 -39
- package/esm2022/lib/components/tables/tree-table/decorated-tree-node.mjs +4 -5
- package/esm2022/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.mjs +1 -1
- package/esm2022/lib/components/tables/tree-table/tree-label-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/tree-table/tree-table-component.mjs +5 -12
- package/esm2022/lib/components/tables/tree-table/tree-table-model.mjs +4 -4
- package/esm2022/lib/components/text/markdown/markdown.component.mjs +2 -2
- package/esm2022/lib/directives/directives.module.mjs +1 -1
- package/esm2022/lib/directives/exports.mjs +1 -2
- package/esm2022/lib/directives/highlight.pipe.mjs +2 -2
- package/esm2022/lib/interaction/activity.mjs +4 -3
- package/esm2022/lib/interaction/alert.mjs +2 -2
- package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +4 -8
- package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +11 -20
- package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +11 -28
- package/esm2022/lib/interaction/components/activity-title/activity-title.component.mjs +4 -4
- package/esm2022/lib/interaction/components/activity-triggers/inline-activity-trigger/inline-activity-trigger.component.mjs +1 -1
- package/esm2022/lib/interaction/components/add-card-activity/add-card-activity.component.mjs +1 -1
- package/esm2022/lib/interaction/components/add-item-interaction-context/add-item-interaction-context.component.mjs +1 -1
- package/esm2022/lib/interaction/components/alert-dialog/alert-dialog.component.mjs +1 -1
- package/esm2022/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.mjs +1 -1
- package/esm2022/lib/interaction/components/confirm-then-execute-dialog/confirm-then-execute-dialog.component.mjs +1 -1
- package/esm2022/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.mjs +1 -1
- package/esm2022/lib/interaction/components/editors/edit-context.mjs +1 -1
- package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +3 -3
- package/esm2022/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +5 -21
- package/esm2022/lib/interaction/components/input-activities/input-activity.mjs +2 -2
- package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +2 -4
- package/esm2022/lib/interaction/components/input-activities/string-input-activity.mjs +4 -8
- package/esm2022/lib/interaction/directives/interaction-context-trigger-for.directive.mjs +2 -2
- package/esm2022/lib/interaction/exports.mjs +1 -2
- package/esm2022/lib/interaction/interaction-context.mjs +2 -3
- package/esm2022/lib/interaction/interaction.module.mjs +9 -7
- package/esm2022/lib/place/components/list-place-nav/list-place-nav.component.mjs +4 -3
- package/esm2022/lib/place/components/place-outlet/place-outlet.component.mjs +9 -7
- package/esm2022/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +2 -2
- package/esm2022/lib/place/guards/consolidated-param-map.mjs +4 -4
- package/esm2022/lib/place/guards/place.guard.mjs +1 -2
- package/esm2022/lib/place/navigation/place-component-deactivation-handler.mjs +2 -2
- package/esm2022/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.mjs +6 -3
- package/esm2022/lib/place/place-component.mjs +7 -7
- package/esm2022/lib/place/place-definition.mjs +3 -3
- package/esm2022/lib/place/place-history.mjs +2 -2
- package/esm2022/lib/place/place-router.mjs +18 -20
- package/esm2022/lib/place/place.decorator.mjs +2 -2
- package/esm2022/lib/place/place.module.mjs +5 -1
- package/esm2022/lib/place/route/formatter.mjs +2 -2
- package/esm2022/lib/place/route/parameter-decorators.mjs +50 -54
- package/esm2022/lib/place/route/parameter-definition.mjs +2 -2
- package/esm2022/lib/place/url-snapshot.mjs +3 -3
- package/esm2022/lib/place/visit-segment.mjs +2 -2
- package/esm2022/lib/place/visit.mjs +2 -2
- package/fesm2022/coolon-angular-ui-powerups.mjs +537 -1333
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/animations/slide-animations.d.ts +0 -1
- package/lib/components/cards/card-container/card-container.component.d.ts +1 -1
- package/lib/components/commands/command/command.component.d.ts +1 -2
- package/lib/components/commands/command-face/command-face.component.d.ts +0 -2
- package/lib/components/commands/command-face.d.ts +7 -5
- package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +2 -2
- package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +1 -1
- package/lib/components/components.module.d.ts +53 -56
- package/lib/components/disposable-component.d.ts +8 -12
- package/lib/components/exports.d.ts +1 -8
- package/lib/components/forms/abstract-input.component.d.ts +5 -13
- package/lib/components/forms/checkbox-input/checkbox-input.component.d.ts +0 -2
- package/lib/components/forms/number-input/number-input.component.d.ts +4 -8
- package/lib/components/forms/password-input/password-input.component.d.ts +1 -7
- package/lib/components/forms/select-input/select-input.component.d.ts +3 -4
- package/lib/components/forms/string-input/string-input.component.d.ts +1 -3
- package/lib/components/resize-aware.component.d.ts +5 -24
- package/lib/components/switch-case/switch-case.component.d.ts +3 -2
- package/lib/components/tables/abstract-table-model.d.ts +8 -27
- package/lib/components/tables/abstract-table.component.d.ts +3 -4
- package/lib/components/tables/column/column-list-model.d.ts +13 -0
- package/lib/components/tables/column/column-model.d.ts +3 -7
- package/lib/components/tables/column/custom-template-column-model.d.ts +2 -3
- package/lib/components/tables/column/custom-value-column-model.d.ts +2 -3
- package/lib/components/tables/column/editor-controls-column-model.d.ts +2 -3
- package/lib/components/tables/column/list-propery-column-model.d.ts +2 -3
- package/lib/components/tables/column/property-column-model.d.ts +2 -3
- package/lib/components/tables/column/selection-column-model.d.ts +2 -3
- package/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.d.ts +1 -1
- package/lib/components/tables/editor/edit-session.d.ts +1 -1
- package/lib/components/tables/filter/text-search-predicate.d.ts +0 -9
- package/lib/components/tables/renderer/cell-portal-ref.d.ts +6 -14
- package/lib/components/tables/renderer/table-body/table-body.component.d.ts +16 -40
- package/lib/components/tables/renderer/table-cell/table-cell.component.d.ts +1 -1
- package/lib/components/tables/renderer/table-more-menu/table-more-menu.component.d.ts +1 -2
- package/lib/components/tables/table/table-model.d.ts +1 -1
- package/lib/components/tables/table/table.component.d.ts +10 -14
- package/lib/components/tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component.d.ts +1 -1
- package/lib/components/tables/tree-table/tree-label-column-model.d.ts +2 -3
- package/lib/components/tables/tree-table/tree-table-component.d.ts +0 -3
- package/lib/components/tables/tree-table/tree-table-model.d.ts +2 -3
- package/lib/directives/exports.d.ts +0 -1
- package/lib/interaction/activity.d.ts +2 -2
- package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +0 -1
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +5 -10
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +3 -7
- package/lib/interaction/components/activity-title/activity-title.component.d.ts +1 -1
- package/lib/interaction/components/editors/edit-context.d.ts +1 -1
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +3 -5
- package/lib/interaction/exports.d.ts +0 -1
- package/lib/interaction/interaction-context.d.ts +0 -2
- package/lib/interaction/interaction.module.d.ts +28 -28
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +4 -3
- package/lib/place/place-component.d.ts +4 -4
- package/lib/place/place-router.d.ts +0 -4
- package/lib/place/place.module.d.ts +5 -4
- package/package.json +4 -6
- package/esm2022/lib/components/forms/form-field.mjs +0 -2
- package/esm2022/lib/components/forms/search-input/search-input.component.mjs +0 -33
- package/esm2022/lib/components/loadable-component.mjs +0 -49
- package/esm2022/lib/components/tables/column/column-manager.mjs +0 -81
- package/esm2022/lib/components/tables/column/column-order-manager.mjs +0 -19
- package/esm2022/lib/components/tables/footer/footer-row-model.mjs +0 -38
- package/esm2022/lib/components/tables/renderer/abstract-cell-renderer.mjs +0 -12
- package/esm2022/lib/components/tables/renderer/table-footer-row/table-footer-row.component.mjs +0 -30
- package/esm2022/lib/directives/resize-observer.directive.mjs +0 -40
- package/esm2022/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.mjs +0 -134
- package/lib/components/forms/form-field.d.ts +0 -5
- package/lib/components/forms/search-input/search-input.component.d.ts +0 -10
- package/lib/components/loadable-component.d.ts +0 -17
- package/lib/components/tables/column/column-manager.d.ts +0 -19
- package/lib/components/tables/column/column-order-manager.d.ts +0 -20
- package/lib/components/tables/footer/footer-row-model.d.ts +0 -22
- package/lib/components/tables/renderer/abstract-cell-renderer.d.ts +0 -8
- package/lib/components/tables/renderer/table-footer-row/table-footer-row.component.d.ts +0 -11
- package/lib/directives/resize-observer.directive.d.ts +0 -16
- package/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.d.ts +0 -53
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { ComponentType } from "@angular/cdk/overlay";
|
|
2
2
|
import { Injector } from "@angular/core";
|
|
3
|
-
import { BooleanValueModelChain, Command, Constructable, DelegatingListModel,
|
|
4
|
-
import { ColumnManager } from "./column/column-manager";
|
|
3
|
+
import { BooleanValueModelChain, Command, Constructable, DelegatingListModel, DirtyTrackingForm, Disposable, GarbageCollector, ListModel, SelectionModel, Types, ValueModel, ValueModelChain } from "@coolon/pectin";
|
|
5
4
|
import { CellRendererOptions, ColumnModel, OnComponentInit } from "./column/column-model";
|
|
6
|
-
import { ColumnOrderManager } from "./column/column-order-manager";
|
|
7
5
|
import { ColumnTextProperties } from "./column/column-text-properties";
|
|
8
6
|
import { CustomTemplateColumnModel } from "./column/custom-template-column-model";
|
|
9
7
|
import { CustomValueColumnModel } from "./column/custom-value-column-model";
|
|
@@ -14,19 +12,17 @@ import { SelectionColumnModel } from "./column/selection-column-model";
|
|
|
14
12
|
import { EditSession } from "./editor/edit-session";
|
|
15
13
|
import { TextSearchPredicate } from "./filter/text-search-predicate";
|
|
16
14
|
import { CellRenderer } from "./renderer/cell-renderer";
|
|
17
|
-
import { FooterRowModel } from "./footer/footer-row-model";
|
|
18
15
|
import { TableMoreMenuPopupComponent } from "./renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component";
|
|
19
|
-
export declare abstract class AbstractTableModel<Row
|
|
16
|
+
export declare abstract class AbstractTableModel<Row> extends GarbageCollector {
|
|
20
17
|
protected readonly _dataSource$: DelegatingListModel<Row>;
|
|
21
18
|
protected readonly _filteredRows$: DelegatingListModel<Row>;
|
|
22
19
|
protected readonly _visibleRows$: DelegatingListModel<Row>;
|
|
23
|
-
|
|
20
|
+
private readonly _columnList;
|
|
24
21
|
private _editorSessions;
|
|
25
22
|
private readonly _rowsBeingEdited$;
|
|
26
23
|
private saveCommandFactory;
|
|
27
24
|
private _editorSessionByRowId;
|
|
28
25
|
private readonly rowClassNamePredicates;
|
|
29
|
-
private readonly rowAttributeGenerators;
|
|
30
26
|
private _columnTextPropertiesLookup;
|
|
31
27
|
readonly editing$: BooleanValueModelChain;
|
|
32
28
|
readonly firstEditableColumn$: ValueModelChain<ColumnModel<Row>>;
|
|
@@ -43,8 +39,6 @@ export declare abstract class AbstractTableModel<Row extends object> extends Gar
|
|
|
43
39
|
readonly selectedItems$: ListModel<Row>;
|
|
44
40
|
readonly leadSelection$: ValueModel<Row>;
|
|
45
41
|
readonly hasSelection$: BooleanValueModelChain;
|
|
46
|
-
footerRowModel: FooterRowModel.Impl<any>;
|
|
47
|
-
private readonly _viewDependencies;
|
|
48
42
|
constructor();
|
|
49
43
|
protected setDataSource(dataSource$: any): void;
|
|
50
44
|
/**
|
|
@@ -54,16 +48,6 @@ export declare abstract class AbstractTableModel<Row extends object> extends Gar
|
|
|
54
48
|
* @param rest
|
|
55
49
|
*/
|
|
56
50
|
initialise(injector: Injector, identityOf: (item: Row) => any): void;
|
|
57
|
-
/**
|
|
58
|
-
* Adds additional models that will trigger a table repaint. This is required if the table
|
|
59
|
-
* needs to be redrawn outside of changes to the rows of filters. i.e. some eternal state is used
|
|
60
|
-
* to assign row classes etc.
|
|
61
|
-
*
|
|
62
|
-
* Note: This function must be called before the table is bound to the model.
|
|
63
|
-
* @param hasValues
|
|
64
|
-
*/
|
|
65
|
-
viewStateDependsOn(...hasValues: ReadonlyArray<HasValue<any>>): void;
|
|
66
|
-
get viewStateDependencies(): ReadonlyArray<HasValue<any>>;
|
|
67
51
|
get dataSource$(): ListModel<Row>;
|
|
68
52
|
/**
|
|
69
53
|
* Gets the rows that are visible after any filters are applied. If there are
|
|
@@ -79,8 +63,8 @@ export declare abstract class AbstractTableModel<Row extends object> extends Gar
|
|
|
79
63
|
startEditSession(row: Row): EditSession<Row>;
|
|
80
64
|
getEditSessionFor(row: Row): EditSession<Row>;
|
|
81
65
|
cancelAllEditorSessions(): void;
|
|
82
|
-
get columns
|
|
83
|
-
get visibleColumns
|
|
66
|
+
get columns(): ListModel<ColumnModel<Row>>;
|
|
67
|
+
get visibleColumns(): ListModel<ColumnModel<Row>>;
|
|
84
68
|
pluck<P extends Types.ValuePropertiesOf<Row>>(property: P, options?: {
|
|
85
69
|
columnId: string;
|
|
86
70
|
}): PropertyColumnModel<Row, P>;
|
|
@@ -92,14 +76,11 @@ export declare abstract class AbstractTableModel<Row extends object> extends Gar
|
|
|
92
76
|
addCustomColumn<V>(columnId: string, dataAccessor: (row: Row) => V): CustomValueColumnModel<Row, V>;
|
|
93
77
|
addComponentColumn<C extends CellRenderer<Partial<Row>>>(columnId: string, component: ComponentType<C>, onInit?: OnComponentInit<C>): CustomValueColumnModel<Row, Row>;
|
|
94
78
|
addComponentColumn<C extends CellRenderer<Partial<Row>>>(columnId: string, component: ComponentType<C>, options?: CellRendererOptions<Row, C>): CustomValueColumnModel<Row, Row>;
|
|
95
|
-
addMoreMenu
|
|
96
|
-
addFooterRow<C>(component: ComponentType<C>, initialiseCallback?: (component: C) => void): FooterRowModel<C>;
|
|
79
|
+
addMoreMenu(componentClass: Constructable<TableMoreMenuPopupComponent<Row>>): CustomValueColumnModel<Row, Row>;
|
|
97
80
|
addTemplateColumn<V>(columnId: string): CustomTemplateColumnModel<Row>;
|
|
98
|
-
addRowClass(className: string, predicate: (row: Row) => boolean
|
|
99
|
-
addRowAttribute(attributeName: string, getValue: (row: Row) => string): void;
|
|
81
|
+
addRowClass(className: string, predicate: (row: Row) => boolean): void;
|
|
100
82
|
getRowClasses(row: Row): string[];
|
|
101
|
-
|
|
102
|
-
protected addColumn<C extends ColumnModel<Row>>(column: C, position?: ColumnOrderManager.Position): C;
|
|
83
|
+
protected addColumn<C extends ColumnModel<Row>>(column: C, index?: number): C;
|
|
103
84
|
columnTextProperties(columnTextProperties: {
|
|
104
85
|
[columnName: string]: ColumnTextProperties;
|
|
105
86
|
}): void;
|
|
@@ -63,7 +63,7 @@ import * as i0 from "@angular/core";
|
|
|
63
63
|
* }
|
|
64
64
|
* }
|
|
65
65
|
*/
|
|
66
|
-
export declare class AbstractTableComponent<Row
|
|
66
|
+
export declare class AbstractTableComponent<Row> extends DisposableComponent implements OnInit {
|
|
67
67
|
readonly injector: Injector;
|
|
68
68
|
accessor showHeader$: ValueModel<boolean>;
|
|
69
69
|
accessor showHeader: boolean;
|
|
@@ -72,8 +72,7 @@ export declare class AbstractTableComponent<Row extends object> extends Disposab
|
|
|
72
72
|
* need to set it explicitly e.g. height: 400px; or by using flex or grid layout to make it fill it's
|
|
73
73
|
* containment area.
|
|
74
74
|
*/
|
|
75
|
-
|
|
76
|
-
accessor enableScrolling: boolean;
|
|
75
|
+
enableScrolling: boolean;
|
|
77
76
|
columns: ListModelChain<ColumnModel<Row>>;
|
|
78
77
|
columnIds: ListModelChain<string>;
|
|
79
78
|
private columnsById;
|
|
@@ -92,5 +91,5 @@ export declare class AbstractTableComponent<Row extends object> extends Disposab
|
|
|
92
91
|
protected getModel(): AbstractTableModel<Row>;
|
|
93
92
|
registerColumnTemplate(columnId: string, templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, fillCell: boolean, padChild: boolean): void;
|
|
94
93
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractTableComponent<any>, never>;
|
|
95
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractTableComponent<any>, "aup-abstract-table", never, { "showHeader$": { "alias": "showHeader$"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "enableScrolling
|
|
94
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractTableComponent<any>, "aup-abstract-table", never, { "showHeader$": { "alias": "showHeader$"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "enableScrolling": { "alias": "enableScrolling"; "required": false; }; }, {}, never, never, false, never>;
|
|
96
95
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AbstractComputedListModel, ListModel } from '@coolon/pectin';
|
|
2
|
+
import { ColumnModel } from './column-model';
|
|
3
|
+
export declare class ColumnListModel<Row> extends AbstractComputedListModel<ColumnModel<Row>, boolean> {
|
|
4
|
+
private readonly _allColumns$;
|
|
5
|
+
private readonly columnsById$;
|
|
6
|
+
constructor();
|
|
7
|
+
get allColumns$(): ListModel<ColumnModel<Row>>;
|
|
8
|
+
getColumn(id: string): ColumnModel<Row>;
|
|
9
|
+
hasColumn(id: string): boolean;
|
|
10
|
+
hasMatchingColumn(row: Row, regex: RegExp): boolean;
|
|
11
|
+
addColumn<C extends ColumnModel<Row>>(column: C, index?: number): C;
|
|
12
|
+
doComputeValue(): ColumnModel<Row>[];
|
|
13
|
+
}
|
|
@@ -7,9 +7,8 @@ import { ColumnTextSearchFormatter } from "../filter/column-text-search-formatte
|
|
|
7
7
|
import { CellEditorPortalRef, CellHeaderPortalRef, CellRendererPortalRef } from "../renderer/cell-portal-ref";
|
|
8
8
|
import { TableCellComponent } from "../renderer/table-cell/table-cell.component";
|
|
9
9
|
import { TableHeaderCellComponent } from "../renderer/table-header-cell/table-header-cell.component";
|
|
10
|
-
import { ColumnOrderManager } from "./column-order-manager";
|
|
11
10
|
import { ColumnTextProperties } from "./column-text-properties";
|
|
12
|
-
export interface RowData<Row
|
|
11
|
+
export interface RowData<Row> {
|
|
13
12
|
row: Row;
|
|
14
13
|
editSession?: EditSession<Row>;
|
|
15
14
|
editRowCommand: Command<void>;
|
|
@@ -22,9 +21,8 @@ export interface CellRendererOptions<Row, E> {
|
|
|
22
21
|
export interface MutableCellRendererOptions<Row, E, P extends keyof Row> extends CellRendererOptions<Row, E> {
|
|
23
22
|
onValueEdit: (row: Row, is: Row[P], was: Row[P]) => void;
|
|
24
23
|
}
|
|
25
|
-
export declare class ColumnModel<Row
|
|
24
|
+
export declare class ColumnModel<Row> extends GarbageCollector {
|
|
26
25
|
readonly columnId: string;
|
|
27
|
-
private readonly order;
|
|
28
26
|
private textPropertiesProvider;
|
|
29
27
|
private _columnTextProperties;
|
|
30
28
|
private _columnHeaderPortalRef;
|
|
@@ -38,7 +36,7 @@ export declare class ColumnModel<Row extends object> extends GarbageCollector {
|
|
|
38
36
|
readonly dasherisedColumnId: string;
|
|
39
37
|
private readonly textSearchDelegate;
|
|
40
38
|
readonly visible$: ValueModel<boolean>;
|
|
41
|
-
constructor(columnId: string,
|
|
39
|
+
constructor(columnId: string, textPropertiesProvider: ColumnModel.TextPropertiesProvider);
|
|
42
40
|
protected installHeaderRenderer(): void;
|
|
43
41
|
getHeaderText(): string;
|
|
44
42
|
isVisible(): boolean;
|
|
@@ -53,8 +51,6 @@ export declare class ColumnModel<Row extends object> extends GarbageCollector {
|
|
|
53
51
|
*/
|
|
54
52
|
textProperties(columnTextProperties: ColumnTextProperties): this;
|
|
55
53
|
columnTextProperties(columnTextProperties: ColumnTextProperties): this;
|
|
56
|
-
positionAfter(column: ColumnModel<any>): this;
|
|
57
|
-
positionBefore(column: ColumnModel<any>): this;
|
|
58
54
|
getSearchTextFor(row: Row): string;
|
|
59
55
|
configureColumnTextSearch(formatter: ColumnTextSearchFormatter<Row>): this;
|
|
60
56
|
configureColumnTextSearch<T>(formatter: ColumnTextSearchFormatter<T>, mapper: (row: Row) => T): this;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { TemplateRef, ViewContainerRef } from "@angular/core";
|
|
2
2
|
import { ColumnModel } from "./column-model";
|
|
3
|
-
|
|
4
|
-
export declare class CustomTemplateColumnModel<Row extends object> extends ColumnModel<Row> {
|
|
3
|
+
export declare class CustomTemplateColumnModel<Row> extends ColumnModel<Row> {
|
|
5
4
|
private readonly config;
|
|
6
|
-
constructor(columnId: string,
|
|
5
|
+
constructor(columnId: string, defaults: ColumnModel.TextPropertiesProvider);
|
|
7
6
|
setTemplate(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, fillCell: boolean, padChild: boolean): void;
|
|
8
7
|
selectRowOnClick(selectOnRowClick: boolean): this;
|
|
9
8
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ComponentType } from "@angular/cdk/overlay";
|
|
2
2
|
import { CellRendererOptions, ColumnModel, OnComponentInit } from "./column-model";
|
|
3
|
-
|
|
4
|
-
export declare class CustomValueColumnModel<Row extends object, V> extends ColumnModel<Row> {
|
|
3
|
+
export declare class CustomValueColumnModel<Row, V> extends ColumnModel<Row> {
|
|
5
4
|
private getValue;
|
|
6
|
-
constructor(columnId: string,
|
|
5
|
+
constructor(columnId: string, defaults: ColumnModel.TextPropertiesProvider, getValue: (row: Row) => V);
|
|
7
6
|
cellRenderer<C extends {
|
|
8
7
|
value: Partial<V>;
|
|
9
8
|
}>(componentType: ComponentType<C>, onComponentInitOrOptions?: CellRendererOptions<Row, C> | OnComponentInit<C>): this;
|
|
@@ -2,9 +2,8 @@ import { ComponentType } from "@angular/cdk/overlay";
|
|
|
2
2
|
import { Command, DirtyTrackingForm } from "@coolon/pectin";
|
|
3
3
|
import { EditSession } from "../editor/edit-session";
|
|
4
4
|
import { ColumnModel } from "./column-model";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
constructor(columnId: string, order: ColumnOrderManager, saveCommandFactory: Command.Factory<DirtyTrackingForm<Row>, boolean | Promise<boolean>>, defaults: ColumnModel.TextPropertiesProvider);
|
|
5
|
+
export declare class EditorControlColumnModel<Row> extends ColumnModel<Row> {
|
|
6
|
+
constructor(columnId: string, saveCommandFactory: Command.Factory<DirtyTrackingForm<Row>, boolean | Promise<boolean>>, defaults: ColumnModel.TextPropertiesProvider);
|
|
8
7
|
cellRenderer(componentType: ComponentType<{
|
|
9
8
|
row: Row;
|
|
10
9
|
editSession: EditSession<Row>;
|
|
@@ -3,12 +3,11 @@ import { Types, Validator } from "@coolon/pectin";
|
|
|
3
3
|
import { CellListEditorComponent } from "../renderer/cell-editors";
|
|
4
4
|
import { CellRenderer } from "../renderer/cell-renderer";
|
|
5
5
|
import { ColumnModel } from "./column-model";
|
|
6
|
-
|
|
7
|
-
export declare class ListPropertyColumnModel<Row extends object, P extends Types.ArrayPropertiesOf<Row>> extends ColumnModel<Row> {
|
|
6
|
+
export declare class ListPropertyColumnModel<Row, P extends Types.ArrayPropertiesOf<Row>> extends ColumnModel<Row> {
|
|
8
7
|
readonly property: P;
|
|
9
8
|
private _userFormat;
|
|
10
9
|
private _defaultSearchTextFormat;
|
|
11
|
-
constructor(id: string,
|
|
10
|
+
constructor(id: string, property: P, defaults: ColumnModel.TextPropertiesProvider);
|
|
12
11
|
cellRenderer(componentType: ComponentType<CellRenderer<Types.ArrayElementType<Row, P>[]>>): Omit<this, "format">;
|
|
13
12
|
cellEditor<C extends CellListEditorComponent<Types.ArrayElementType<Row, P>>>(editor: ComponentType<C>, validators?: Validator<Types.ArrayElementType<Row, P>[]>[], initialiseComponent?: (component: C) => void): this;
|
|
14
13
|
cellEditor<C extends CellListEditorComponent<Types.ArrayElementType<Row, P>>>(editor: ComponentType<C>, initialiseComponent?: (component: C) => void): this;
|
|
@@ -4,12 +4,11 @@ import { EditableCellRenderer } from "../editor/editable-cell-renderer";
|
|
|
4
4
|
import { CellEditorComponent } from "../renderer/cell-editors";
|
|
5
5
|
import { CellRenderer } from "../renderer/cell-renderer";
|
|
6
6
|
import { CellRendererOptions, ColumnModel, MutableCellRendererOptions, OnComponentInit } from "./column-model";
|
|
7
|
-
|
|
8
|
-
export declare class PropertyColumnModel<Row extends object, P extends Types.ValuePropertiesOf<Row>> extends ColumnModel<Row> {
|
|
7
|
+
export declare class PropertyColumnModel<Row, P extends Types.ValuePropertiesOf<Row>> extends ColumnModel<Row> {
|
|
9
8
|
readonly property: P;
|
|
10
9
|
private _userFormat;
|
|
11
10
|
private _defaultSearchTextFormatter;
|
|
12
|
-
constructor(id: string,
|
|
11
|
+
constructor(id: string, property: P, defaults: ColumnModel.TextPropertiesProvider);
|
|
13
12
|
cellRenderer<E extends CellRenderer<Row[P]>>(componentType: ComponentType<E>, options?: CellRendererOptions<Row, E>): Omit<this, "format">;
|
|
14
13
|
cellRenderer<E extends CellRenderer<Row[P]>>(componentType: ComponentType<E>, onComponentInit?: OnComponentInit<E>): Omit<this, "format">;
|
|
15
14
|
liveEditCellRenderer<E extends EditableCellRenderer<Row[P]>>(componentType: ComponentType<E>, options: MutableCellRendererOptions<Row, E, P>): this;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { ThemePalette } from "@angular/material/core";
|
|
2
2
|
import { Proxified, SelectionModel } from "@coolon/pectin";
|
|
3
3
|
import { ColumnModel } from "./column-model";
|
|
4
|
-
|
|
5
|
-
export declare class SelectionColumnModel<Row extends object> extends ColumnModel<Row> {
|
|
4
|
+
export declare class SelectionColumnModel<Row> extends ColumnModel<Row> {
|
|
6
5
|
readonly selectionModel: Proxified<SelectionModel<Row>>;
|
|
7
6
|
private _enableHeaderControls;
|
|
8
7
|
private _color;
|
|
9
|
-
constructor(columnId: string,
|
|
8
|
+
constructor(columnId: string, defaults: ColumnModel.TextPropertiesProvider, selectionModel: Proxified<SelectionModel<Row>>);
|
|
10
9
|
useSelectionModel(selectionModel: SelectionModel<Row>): void;
|
|
11
10
|
protected getDefaultHeaderText(): string;
|
|
12
11
|
enableHeaderControls(enable: boolean): this;
|
|
@@ -2,7 +2,7 @@ import { Command, DirtyTrackingForm } from '@coolon/pectin';
|
|
|
2
2
|
import { DisposableComponent } from '../../../disposable-component';
|
|
3
3
|
import { EditSession } from '../edit-session';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class EditRowControlsComponent<Row
|
|
5
|
+
export declare class EditRowControlsComponent<Row> extends DisposableComponent {
|
|
6
6
|
row: Row;
|
|
7
7
|
accessor editRowCommand: Command<void>;
|
|
8
8
|
private _session;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Command, DirtyTrackingForm, GarbageCollector } from '@coolon/pectin';
|
|
2
|
-
export declare class EditSession<Row
|
|
2
|
+
export declare class EditSession<Row> extends GarbageCollector {
|
|
3
3
|
readonly rowId: any;
|
|
4
4
|
readonly form: DirtyTrackingForm<Row>;
|
|
5
5
|
readonly saveCommand: Command<boolean | Promise<boolean>>;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import { AbstractConstructable } from "@coolon/restilence-plugin";
|
|
2
1
|
export type TextSearchPredicate<Row> = (row: Row, regex: RegExp) => boolean;
|
|
3
|
-
export declare class TextSearchContext<Row> {
|
|
4
|
-
readonly row: Row;
|
|
5
|
-
readonly searchText: string;
|
|
6
|
-
readonly searchRegex: RegExp;
|
|
7
|
-
constructor(row: Row, searchText: string, searchRegex: RegExp);
|
|
8
|
-
getOrCreate<T>(type: AbstractConstructable<T>, create: () => T): void;
|
|
9
|
-
matchesText(text: string): boolean;
|
|
10
|
-
}
|
|
@@ -5,26 +5,25 @@ 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;
|
|
9
8
|
export declare const CELL_RENDERER_PORTAL: unique symbol;
|
|
10
9
|
export declare const CELL_EDITOR_PORTAL: unique symbol;
|
|
11
10
|
export declare const PORTAL_RENDERER_COMPONENT: unique symbol;
|
|
12
11
|
export declare const PORTAL_EDITOR_COMPONENT: unique symbol;
|
|
13
|
-
export declare abstract class CellPortalRef<Row
|
|
12
|
+
export declare abstract class CellPortalRef<Row, Host, Portal> {
|
|
14
13
|
abstract initialiseHost(host: Host, columnModel: ColumnModel<Row>): void;
|
|
15
14
|
abstract onPortalAttached(host: Host, portalComponent: Portal): void;
|
|
16
15
|
}
|
|
17
|
-
export declare class CellHeaderPortalRef<Row
|
|
16
|
+
export declare class CellHeaderPortalRef<Row, C> extends CellPortalRef<Row, TableHeaderCellComponent, C> {
|
|
18
17
|
readonly componentType: ComponentType<C>;
|
|
19
18
|
readonly initialiseHeader: (component: C, columnModel: ColumnModel<Row>) => void;
|
|
20
19
|
constructor(componentType: ComponentType<C>, initialiseHeader: (component: C, columnModel: ColumnModel<Row>) => void);
|
|
21
20
|
initialiseHost(host: TableHeaderCellComponent, columnModel: ColumnModel<Row>): void;
|
|
22
21
|
onPortalAttached(host: TableHeaderCellComponent, portalComponent: C): void;
|
|
23
22
|
}
|
|
24
|
-
export declare abstract class CellRendererPortalRef<Row
|
|
23
|
+
export declare abstract class CellRendererPortalRef<Row, Portal> extends CellPortalRef<Row, TableCellComponent<Row>, Portal> {
|
|
25
24
|
abstract pushState(host: TableCellComponent<Row>): void;
|
|
26
25
|
}
|
|
27
|
-
export declare class ComponentCellRendererPortalRef<Row
|
|
26
|
+
export declare class ComponentCellRendererPortalRef<Row, Portal> extends CellRendererPortalRef<Row, Portal> {
|
|
28
27
|
readonly componentType: ComponentType<Portal>;
|
|
29
28
|
readonly updateComponent: (component: Portal, rowData: RowData<Row>, firstTime: boolean) => void;
|
|
30
29
|
constructor(componentType: ComponentType<Portal>, updateComponent: (component: Portal, rowData: RowData<Row>, firstTime: boolean) => void);
|
|
@@ -32,14 +31,14 @@ export declare class ComponentCellRendererPortalRef<Row extends object, Portal>
|
|
|
32
31
|
onPortalAttached(host: TableCellComponent<Row>, portalComponent: Portal): void;
|
|
33
32
|
pushState(host: TableCellComponent<Row>): void;
|
|
34
33
|
}
|
|
35
|
-
export declare class CellEditorPortalRef<Row
|
|
34
|
+
export declare class CellEditorPortalRef<Row, Portal> extends CellPortalRef<Row, TableCellComponent<Row>, Portal> {
|
|
36
35
|
readonly componentType: ComponentType<Portal>;
|
|
37
36
|
readonly initialiseEditorSession: (component: Portal, editSession: EditSession<Row>) => void;
|
|
38
37
|
constructor(componentType: ComponentType<Portal>, initialiseEditorSession: (component: Portal, editSession: EditSession<Row>) => void);
|
|
39
38
|
initialiseHost(host: TableCellComponent<Row>, columnModel: ColumnModel<Row>): void;
|
|
40
39
|
onPortalAttached(host: TableCellComponent<Row>, portalComponent: Portal): void;
|
|
41
40
|
}
|
|
42
|
-
export declare class TemplateCellRendererPortalRef<Row
|
|
41
|
+
export declare class TemplateCellRendererPortalRef<Row> extends CellRendererPortalRef<Row, undefined> {
|
|
43
42
|
private templateRef;
|
|
44
43
|
private viewContainer;
|
|
45
44
|
private fillCell;
|
|
@@ -51,10 +50,3 @@ export declare class TemplateCellRendererPortalRef<Row extends object> extends C
|
|
|
51
50
|
pushState(host: TableCellComponent<Row>): void;
|
|
52
51
|
private createPortal;
|
|
53
52
|
}
|
|
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,60 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { AfterViewInit, ElementRef, InjectionToken, OnInit } from "@angular/core";
|
|
4
|
-
import { ListModel, ListModelChain, MutableValueModel, Proxify, ValueModel } from "@coolon/pectin";
|
|
5
|
-
import { TableVirtualScrollDataSource } from "ng-table-virtual-scroll";
|
|
1
|
+
import { ElementRef, EventEmitter, NgZone, OnInit } from "@angular/core";
|
|
2
|
+
import { ListModel, ListModelChain, ValueModel } from "@coolon/pectin";
|
|
6
3
|
import { ResizeAwareComponent } from "../../../resize-aware.component";
|
|
7
4
|
import { AbstractTableModel } from "../../abstract-table-model";
|
|
8
5
|
import { ColumnModel } from "../../column/column-model";
|
|
9
|
-
import { FooterRowModel } from "../../footer/footer-row-model";
|
|
10
6
|
import * as i0 from "@angular/core";
|
|
11
|
-
export declare
|
|
12
|
-
export declare class TableRowAttributesDirective implements OnInit {
|
|
13
|
-
protected readonly elementRef: ElementRef<HTMLElement>;
|
|
14
|
-
aupTableRowAttributes: Record<string, string>;
|
|
15
|
-
constructor(elementRef: ElementRef<HTMLElement>);
|
|
16
|
-
ngOnInit(): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableRowAttributesDirective, never>;
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TableRowAttributesDirective, "[aupTableRowAttributes]", never, { "aupTableRowAttributes": { "alias": "aupTableRowAttributes"; "required": false; }; }, {}, never, never, false, never>;
|
|
19
|
-
}
|
|
20
|
-
export declare class TableBodyComponent<Row extends object> extends ResizeAwareComponent implements AfterViewInit {
|
|
21
|
-
protected bufferMultiplier: number;
|
|
7
|
+
export declare class TableBodyComponent<Row> extends ResizeAwareComponent implements OnInit {
|
|
22
8
|
accessor data$: ListModel<Row>;
|
|
23
9
|
accessor tableModel: AbstractTableModel<Row>;
|
|
24
|
-
accessor footerRow: FooterRowModel.Impl<any>;
|
|
25
10
|
accessor showHeader$: ValueModel<boolean>;
|
|
26
11
|
accessor showHeader: boolean;
|
|
12
|
+
readonly visibleRowCount: EventEmitter<number>;
|
|
27
13
|
trackBy: (index: number, item: Row) => any;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Set to true to enable scrolling. Once enabled the table will have 0 implicit height. You will either
|
|
16
|
+
* need to set it explicitly e.g. height: 400px; or by using flex or grid layout to make it fill it's
|
|
17
|
+
* containment area.
|
|
18
|
+
*/
|
|
19
|
+
enableScrolling: boolean;
|
|
31
20
|
columns$: ListModelChain<ColumnModel<Row>>;
|
|
32
21
|
columnIds$: ListModelChain<string>;
|
|
33
22
|
private columnsById$;
|
|
34
|
-
|
|
35
|
-
|
|
23
|
+
readonly _visibleRowCount$: ValueModel<number>;
|
|
24
|
+
private readonly headerHeight$;
|
|
25
|
+
private readonly rowHeight$;
|
|
36
26
|
baseCssClass: string;
|
|
37
|
-
|
|
38
|
-
private virtualScrollActive$;
|
|
39
|
-
private scrollTimeout;
|
|
40
|
-
constructor(bufferMultiplier?: number);
|
|
41
|
-
ngAfterViewInit(): void;
|
|
27
|
+
constructor(elementRef: ElementRef, ngZone: NgZone);
|
|
42
28
|
get hideHeader(): boolean;
|
|
43
|
-
get headerHeightCssVar(): string;
|
|
44
|
-
get rowHeightCssVar(): string;
|
|
45
29
|
isEditing(row: Row): boolean;
|
|
46
30
|
notifyCellClicked(columnModel: ColumnModel<Row>, row: Row): void;
|
|
47
31
|
isFirstVisibleColumn(columnId: string): boolean;
|
|
48
32
|
isLastVisibleColumn(columnId: string): boolean;
|
|
49
33
|
getColumnClasses(columnId: string): string[];
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
private clearScrollTimeout;
|
|
53
|
-
initialiseFooter($event: CdkPortalOutletAttachedRef): void;
|
|
54
|
-
protected readonly Proxify: typeof Proxify;
|
|
55
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableBodyComponent<any>, [{ optional: true; }]>;
|
|
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>;
|
|
57
|
-
}
|
|
58
|
-
export declare namespace TableBodyComponent {
|
|
59
|
-
type ScrollMode = "none" | "classic" | "virtual";
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableBodyComponent<any>, never>;
|
|
35
|
+
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; }; "enableScrolling": { "alias": "enableScrolling"; "required": false; }; }, { "visibleRowCount": "visibleRowCount"; }, never, never, false, never>;
|
|
60
36
|
}
|
|
@@ -6,7 +6,7 @@ import { ColumnModel, RowData } from "../../column/column-model";
|
|
|
6
6
|
import { EditSession } from "../../editor/edit-session";
|
|
7
7
|
import { CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL } from "../cell-portal-ref";
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class TableCellComponent<Row
|
|
9
|
+
export declare class TableCellComponent<Row> extends DisposableComponent implements OnChanges {
|
|
10
10
|
row: Row;
|
|
11
11
|
column: ColumnModel<Row>;
|
|
12
12
|
editSession: EditSession<Row>;
|
|
@@ -13,9 +13,8 @@ export declare class TableMoreMenuComponent<T> extends DisposableComponent imple
|
|
|
13
13
|
private readonly popupType$;
|
|
14
14
|
popupComponentPortal$: ValueModelChain<ComponentPortal<TableMoreMenuPopupComponent<T>>>;
|
|
15
15
|
private readonly _visible$;
|
|
16
|
-
private initialiseCallback?;
|
|
17
16
|
constructor();
|
|
18
|
-
configurePopupComponentType(popupComponentType: Constructable<TableMoreMenuPopupComponent<T
|
|
17
|
+
configurePopupComponentType(popupComponentType: Constructable<TableMoreMenuPopupComponent<T>>): void;
|
|
19
18
|
preventDefault($event: MouseEvent): void;
|
|
20
19
|
initialise($event: CdkPortalOutletAttachedRef): void;
|
|
21
20
|
get visible$(): import("@coolon/pectin").ValueModel<boolean>;
|
|
@@ -80,7 +80,7 @@ import { SelectionColumnModel } from "../column/selection-column-model";
|
|
|
80
80
|
* table.columnTextProperties(I18n.table.columns); // <- configures all columns
|
|
81
81
|
* });
|
|
82
82
|
*/
|
|
83
|
-
export declare class TableModel<Row
|
|
83
|
+
export declare class TableModel<Row> extends AbstractTableModel<Row> {
|
|
84
84
|
constructor(sourceOfTruth?: ListModel<Row>, builder?: (table: TableModel<Row>) => void);
|
|
85
85
|
bindToTable(filteredRows$: ListModel<Row>, visibleRows$: ListModel<Row>): void;
|
|
86
86
|
addSelectionColumn(selectionModel?: SelectionModel<Row>, showSelectionColumn?: ValueModel<boolean> | boolean): SelectionColumnModel<Row>;
|
|
@@ -3,7 +3,6 @@ import { ValueModel } from "@coolon/pectin";
|
|
|
3
3
|
import { AbstractTableModel } from '../abstract-table-model';
|
|
4
4
|
import { AbstractTableComponent } from '../abstract-table.component';
|
|
5
5
|
import { TableFilterModel } from "../filter/table-filter-model";
|
|
6
|
-
import { TableBodyComponent } from "../renderer/table-body/table-body.component";
|
|
7
6
|
import { TableModel } from "./table-model";
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
/**
|
|
@@ -66,26 +65,23 @@ import * as i0 from "@angular/core";
|
|
|
66
65
|
* }
|
|
67
66
|
* }
|
|
68
67
|
*/
|
|
69
|
-
export declare class TableComponent<Row
|
|
68
|
+
export declare class TableComponent<Row> extends AbstractTableComponent<Row> implements OnInit {
|
|
70
69
|
accessor tableModel: TableModel<Row>;
|
|
71
70
|
accessor filterModel: TableFilterModel<Row>;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
* Set to true to scroll mode to classic or virtual (default). Virtual scrolll performs better for large data sets but clamps the row height. Classic scroll
|
|
75
|
-
* renders all rows but allows row heights to grow.
|
|
76
|
-
*/
|
|
77
|
-
accessor scrollMode$: ValueModel<TableComponent.ScrollMode>;
|
|
78
|
-
accessor scrollMode: TableComponent.ScrollMode;
|
|
71
|
+
accessor enablePaging$: ValueModel<boolean>;
|
|
72
|
+
accessor enablePaging: boolean;
|
|
79
73
|
private _footerContentAdded;
|
|
80
74
|
private readonly _filteredRows$;
|
|
81
|
-
|
|
75
|
+
private _pageSize;
|
|
76
|
+
private pagedListModel;
|
|
82
77
|
constructor(injector: Injector);
|
|
83
78
|
ngOnInit(): void;
|
|
84
79
|
protected getModel(): AbstractTableModel<Row>;
|
|
80
|
+
get pageController(): import("@coolon/pectin").PageController;
|
|
81
|
+
private configurePaging;
|
|
82
|
+
private disposeOfPagedListModel;
|
|
85
83
|
footerContentChanged($event: any): void;
|
|
84
|
+
updatePageSize(count: number): void;
|
|
86
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
87
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "aup-table", never, { "tableModel": { "alias": "tableModel"; "required": false; }; "filterModel": { "alias": "filterModel"; "required": false; }; "
|
|
88
|
-
}
|
|
89
|
-
export declare namespace TableComponent {
|
|
90
|
-
type ScrollMode = Omit<TableBodyComponent.ScrollMode, 'none'>;
|
|
86
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "aup-table", never, { "tableModel": { "alias": "tableModel"; "required": false; }; "filterModel": { "alias": "filterModel"; "required": false; }; "enablePaging$": { "alias": "enablePaging$"; "required": false; }; "enablePaging": { "alias": "enablePaging"; "required": false; }; }, {}, never, ["[footer]"], false, never>;
|
|
91
87
|
}
|
|
@@ -5,7 +5,7 @@ import { CellRenderer } from '../../renderer/cell-renderer';
|
|
|
5
5
|
import { TreeInheritanceIconComponent } from '../tree-inheritance-icon/tree-inheritance-icon.component';
|
|
6
6
|
import { TreeTableModel } from '../tree-table-model';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class TreeLabelCellRendererComponent<T
|
|
8
|
+
export declare class TreeLabelCellRendererComponent<T> extends DisposableComponent implements CellRenderer<T>, OnInit {
|
|
9
9
|
private node$;
|
|
10
10
|
accessor value: T;
|
|
11
11
|
label: string;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { ComponentType } from '@angular/cdk/overlay';
|
|
2
2
|
import { Types } from '@coolon/pectin';
|
|
3
3
|
import { ColumnModel } from '../column/column-model';
|
|
4
|
-
import { ColumnOrderManager } from "../column/column-order-manager";
|
|
5
4
|
import { TreeLabelCellRendererComponent } from './tree-label-cell-renderer/tree-label-cell-renderer.component';
|
|
6
5
|
import { TreeTableModel } from './tree-table-model';
|
|
7
|
-
export declare class TreeLabelColumnModel<Row
|
|
6
|
+
export declare class TreeLabelColumnModel<Row> extends ColumnModel<Row> {
|
|
8
7
|
readonly expansionModel: TreeTableModel<Row>;
|
|
9
8
|
private labelFactory;
|
|
10
9
|
private iconFactory;
|
|
11
|
-
constructor(columnId: string,
|
|
10
|
+
constructor(columnId: string, textPropertiesProvider: ColumnModel.TextPropertiesProvider, expansionModel: TreeTableModel<Row>);
|
|
12
11
|
pluck<P extends Types.StringValuePropertiesOf<Row>>(property: P): void;
|
|
13
12
|
useLabel(factory: (row: Row) => string): void;
|
|
14
13
|
/**
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { Injector, OnInit } from "@angular/core";
|
|
2
|
-
import { ValueModel } from '@coolon/pectin';
|
|
3
2
|
import { TreeNode } from '@coolon/typescript-utilities';
|
|
4
3
|
import { AbstractTableModel } from '../abstract-table-model';
|
|
5
4
|
import { AbstractTableComponent } from '../abstract-table.component';
|
|
6
|
-
import { TableBodyComponent } from "../renderer/table-body/table-body.component";
|
|
7
5
|
import { TreeExpansionModel } from "./tree-expansion-model";
|
|
8
6
|
import { TreeTableModel } from './tree-table-model';
|
|
9
7
|
import * as i0 from "@angular/core";
|
|
@@ -70,7 +68,6 @@ import * as i0 from "@angular/core";
|
|
|
70
68
|
export declare class TreeTableComponent<T extends TreeNode<T>> extends AbstractTableComponent<T> implements OnInit {
|
|
71
69
|
accessor treeTableModel: TreeTableModel<T>;
|
|
72
70
|
accessor expansionModel: TreeExpansionModel<T>;
|
|
73
|
-
protected readonly scrollMode$: ValueModel<TableBodyComponent.ScrollMode>;
|
|
74
71
|
constructor(injector: Injector);
|
|
75
72
|
ngOnInit(): void;
|
|
76
73
|
getModel(): AbstractTableModel<T>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ChangeDetectorRef } from "@angular/core";
|
|
2
1
|
import { ListModel, MutableValueModel, SelectionModel, ValueModel } from '@coolon/pectin';
|
|
3
2
|
import { AbstractTableModel } from '../abstract-table-model';
|
|
4
3
|
import { SelectionColumnModel } from "../column/selection-column-model";
|
|
@@ -7,14 +6,14 @@ import { TreeLabelColumnModel } from './tree-label-column-model';
|
|
|
7
6
|
export type ChildArrayPropertiesOf<T> = {
|
|
8
7
|
[K in keyof T]: T[K] extends T[] ? K : never;
|
|
9
8
|
}[keyof T];
|
|
10
|
-
export declare class TreeTableModel<Row
|
|
9
|
+
export declare class TreeTableModel<Row> extends AbstractTableModel<Row> {
|
|
11
10
|
private treeExpansionModel;
|
|
12
11
|
private readonly flattenedDataSource;
|
|
13
12
|
readonly childExtractor: (row: Row) => Row[];
|
|
14
13
|
private _isExpandedPredicate$;
|
|
15
14
|
constructor(source$: ListModel<Row>, childAccessor: ChildArrayPropertiesOf<Row> | ((node: Row) => Row[]), builder?: (model: TreeTableModel<Row>) => void);
|
|
16
15
|
get isExpandedPredicate$(): ValueModel<(node: Row) => boolean>;
|
|
17
|
-
bindToTable(expansionModel: TreeExpansionModel<Row>, filteredRows$: ListModel<Row>, visibleRows$: ListModel<Row
|
|
16
|
+
bindToTable(expansionModel: TreeExpansionModel<Row>, filteredRows$: ListModel<Row>, visibleRows$: ListModel<Row>): void;
|
|
18
17
|
treeControlColumn(builder: (column: TreeLabelColumnModel<Row>) => void): void;
|
|
19
18
|
expand(node: Row): void;
|
|
20
19
|
collapse(node: Row): void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AfterViewInit, InjectionToken } from "@angular/core";
|
|
2
2
|
import { Command, Disposable, ValueModel } from "@coolon/pectin";
|
|
3
|
-
import {
|
|
3
|
+
import { DisposableComponent } from "../components/disposable-component";
|
|
4
4
|
import { ActivityActionsComponent } from "./components/activity-actions/activity-actions.component";
|
|
5
5
|
import { InteractionContext } from "./interaction-context";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare const ACTIVITY_DATA: InjectionToken<any>;
|
|
8
8
|
type OnActivityReadyParams<D, R, E = any> = (activity: Activity<D, R, E>) => void;
|
|
9
|
-
export declare class Activity<D, R, E = any> extends
|
|
9
|
+
export declare class Activity<D, R, E = any> extends DisposableComponent implements AfterViewInit {
|
|
10
10
|
readonly activityData: D;
|
|
11
11
|
private readonly activityReadyListeners;
|
|
12
12
|
private readonly _busy$;
|
|
@@ -4,7 +4,6 @@ import { AbstractDialogComponent } from './abstract-dialog.component';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class AbstractConfirmDialogComponent<D, R, E = any> extends AbstractDialogComponent<D, R, E> {
|
|
6
6
|
readonly cancelFace: CommandFace;
|
|
7
|
-
confirmClass: string;
|
|
8
7
|
constructor(config: Confirm);
|
|
9
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractConfirmDialogComponent<any, any, any>, never>;
|
|
10
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractConfirmDialogComponent<any, any, any>, "ng-component", never, {}, {}, never, never, false, never>;
|