@coolon/angular-ui-powerups 16.1.0-aplpha.35 → 16.1.0-aplpha.37
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/esm2022/lib/components/tables/abstract-table-model.mjs +10 -10
- package/esm2022/lib/components/tables/column/column-list-model.mjs +83 -23
- package/fesm2022/coolon-angular-ui-powerups.mjs +90 -30
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/tables/abstract-table-model.d.ts +3 -2
- package/lib/components/tables/column/column-list-model.d.ts +26 -6
- package/package.json +4 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComponentType } from "@angular/cdk/overlay";
|
|
2
2
|
import { Injector } from "@angular/core";
|
|
3
3
|
import { BooleanValueModelChain, Command, Constructable, DelegatingListModel, DirtyTrackingForm, Disposable, GarbageCollector, ListModel, SelectionModel, Types, ValueModel, ValueModelChain } from "@coolon/pectin";
|
|
4
|
+
import { ColumnListModel } from "./column/column-list-model";
|
|
4
5
|
import { CellRendererOptions, ColumnModel, OnComponentInit } from "./column/column-model";
|
|
5
6
|
import { ColumnTextProperties } from "./column/column-text-properties";
|
|
6
7
|
import { CustomTemplateColumnModel } from "./column/custom-template-column-model";
|
|
@@ -64,7 +65,7 @@ export declare abstract class AbstractTableModel<Row> extends GarbageCollector {
|
|
|
64
65
|
getEditSessionFor(row: Row): EditSession<Row>;
|
|
65
66
|
cancelAllEditorSessions(): void;
|
|
66
67
|
get columns(): ListModel<ColumnModel<Row>>;
|
|
67
|
-
get visibleColumns(): ListModel<ColumnModel<Row>>;
|
|
68
|
+
get visibleColumns$(): ListModel<ColumnModel<Row>>;
|
|
68
69
|
pluck<P extends Types.ValuePropertiesOf<Row>>(property: P, options?: {
|
|
69
70
|
columnId: string;
|
|
70
71
|
}): PropertyColumnModel<Row, P>;
|
|
@@ -80,7 +81,7 @@ export declare abstract class AbstractTableModel<Row> extends GarbageCollector {
|
|
|
80
81
|
addTemplateColumn<V>(columnId: string): CustomTemplateColumnModel<Row>;
|
|
81
82
|
addRowClass(className: string, predicate: (row: Row) => boolean): void;
|
|
82
83
|
getRowClasses(row: Row): string[];
|
|
83
|
-
protected addColumn<C extends ColumnModel<Row>>(column: C,
|
|
84
|
+
protected addColumn<C extends ColumnModel<Row>>(column: C, position?: ColumnListModel.Position): C;
|
|
84
85
|
columnTextProperties(columnTextProperties: {
|
|
85
86
|
[columnName: string]: ColumnTextProperties;
|
|
86
87
|
}): void;
|
|
@@ -1,13 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GarbageCollector, ListModel, WatchList } from '@coolon/pectin';
|
|
2
2
|
import { ColumnModel } from './column-model';
|
|
3
|
-
export declare class ColumnListModel<Row> extends
|
|
4
|
-
private readonly
|
|
5
|
-
private readonly
|
|
3
|
+
export declare class ColumnListModel<Row> extends GarbageCollector {
|
|
4
|
+
private readonly _columnRefs$;
|
|
5
|
+
private readonly orderedColumnRefs$;
|
|
6
|
+
private readonly _columnsById$;
|
|
7
|
+
readonly allColumns$: ListModel<ColumnModel<Row>>;
|
|
8
|
+
readonly columnVisibilities$: WatchList<boolean>;
|
|
9
|
+
readonly visibleColumns$: ListModel<ColumnModel<Row>>;
|
|
6
10
|
constructor();
|
|
7
|
-
get allColumns$(): ListModel<ColumnModel<Row>>;
|
|
8
11
|
getColumn(id: string): ColumnModel<Row>;
|
|
9
12
|
hasColumn(id: string): boolean;
|
|
10
13
|
hasMatchingColumn(row: Row, regex: RegExp): boolean;
|
|
11
|
-
addColumn<C extends ColumnModel<Row>>(column: C,
|
|
14
|
+
addColumn<C extends ColumnModel<Row>>(column: C, position?: ColumnListModel.Position): C;
|
|
15
|
+
computePosition(position?: ColumnListModel.Position): string;
|
|
12
16
|
doComputeValue(): ColumnModel<Row>[];
|
|
13
17
|
}
|
|
18
|
+
export declare namespace ColumnListModel {
|
|
19
|
+
type Before = {
|
|
20
|
+
before: ColumnModel<any> | null;
|
|
21
|
+
};
|
|
22
|
+
type After = {
|
|
23
|
+
after: ColumnModel<any> | null;
|
|
24
|
+
};
|
|
25
|
+
export type Position = Before | After;
|
|
26
|
+
export function processPosition(position: ColumnListModel.Position | undefined, callback: {
|
|
27
|
+
before(col: ColumnModel<any> | null): string;
|
|
28
|
+
after(col: ColumnModel<any> | null): string;
|
|
29
|
+
first(): string;
|
|
30
|
+
last(): string;
|
|
31
|
+
}): string;
|
|
32
|
+
export {};
|
|
33
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolon/angular-ui-powerups",
|
|
3
|
-
"version": "16.1.0-aplpha.
|
|
3
|
+
"version": "16.1.0-aplpha.37",
|
|
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.
|
|
15
|
+
"@coolon/pectin": "^5.0.0-alpha.12",
|
|
16
16
|
"@typescript-plus/fast-memoize-decorator": "^0.2.1",
|
|
17
17
|
"lodash-es": "^4.17.21",
|
|
18
18
|
"marked": "4.0.10",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"json5": "^2.1.0",
|
|
23
23
|
"immer": ">=10.0.3",
|
|
24
24
|
"escape-string-regexp": "^5.0.0",
|
|
25
|
-
"@coolon/typescript-utilities": "^5.0.0-alpha.4"
|
|
25
|
+
"@coolon/typescript-utilities": "^5.0.0-alpha.4",
|
|
26
|
+
"fractional-indexing": "^3.2.0"
|
|
26
27
|
},
|
|
27
28
|
"optionalDependencies": {
|
|
28
29
|
"@fortawesome/fontawesome-free": "^6.0.0"
|