@coolon/angular-ui-powerups 12.0.1 → 12.0.3

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.
@@ -42,6 +42,7 @@ export * from "./section-header/section-header.component";
42
42
  export * from "./switch-case/switch-case.component";
43
43
  export * from "./tables/abstract-table-model";
44
44
  export * from "./tables/abstract-table.component";
45
+ export * from "./tables/column-list-model";
45
46
  export * from "./tables/table/cell-editors";
46
47
  export * from "./tables/table/cell-portal-ref";
47
48
  export * from "./tables/table/cell-renderer";
@@ -6,9 +6,7 @@ import { ColumnTextProperties } from './table/column-text-properties';
6
6
  import { EditSession } from './table/edit-session';
7
7
  export declare class AbstractTableModel<Row> extends GarbageCollector {
8
8
  private sourceOfTruth;
9
- private readonly _columns;
10
- private readonly _visibleColumnTracker;
11
- private _columnsById;
9
+ private readonly _columnList;
12
10
  private _editorSessions;
13
11
  private readonly _rowsBeingEdited;
14
12
  private readonly rowClassNamePredicates;
@@ -45,7 +43,7 @@ export declare class AbstractTableModel<Row> extends GarbageCollector {
45
43
  addRowClass(className: string, predicate: (row: Row) => boolean): void;
46
44
  getRowClasses(row: Row): string[];
47
45
  useFormFactory(factory: (row: Row) => DirtyTrackingForm<Row>): this;
48
- protected addColumn<C extends ColumnModel<Row>>(column: C): C;
46
+ protected addColumn<C extends ColumnModel<Row>>(column: C, index?: number): C;
49
47
  columnTextProperties(columnTextProperties: {
50
48
  [columnName: string]: ColumnTextProperties;
51
49
  }): void;
@@ -0,0 +1,12 @@
1
+ import { AbstractComputedListModel, ListModel } from '@coolon/pectin';
2
+ import { ColumnModel } from './table/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
+ addColumn<C extends ColumnModel<Row>>(column: C, index?: number): C;
11
+ doComputeValue(): ColumnModel<Row>[];
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "12.0.1",
3
+ "version": "12.0.3",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "dependencies": {
6
6
  "@coolon/typescript-utilities": "^2.2.0",
@@ -32,7 +32,7 @@
32
32
  "rxjs": "~6.6.3",
33
33
  "reflect-metadata": "^0.1.13",
34
34
  "zone.js": "~0.11.4",
35
- "@coolon/pectin": ">=3.13.2"
35
+ "@coolon/pectin": ">=3.13.5"
36
36
  },
37
37
  "main": "bundles/coolon-angular-ui-powerups.umd.js",
38
38
  "module": "fesm2015/coolon-angular-ui-powerups.js",