@coolon/angular-ui-powerups 3.7.4 → 3.8.0

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.
@@ -1,5 +1,5 @@
1
1
  import { ComponentType } from '@angular/cdk/overlay';
2
- import { BooleanValueModelChain, CanIdentify, DirtyTrackingForm, ListModel, ListModelChain, SelectionModel, Types, UnaryCommand, ValueModelChain } from '@coolon/pectin';
2
+ import { BooleanValueModelChain, CanIdentify, DirtyTrackingForm, Disposable, ListModel, ListModelChain, SelectionModel, Types, UnaryCommand, ValueModelChain } from '@coolon/pectin';
3
3
  import { CellRenderer } from './cell-renderer';
4
4
  import { CellRendererOptions, ColumnModel, CustomTemplateColumnModel, CustomValueColumnModel, EditorControlColumnModel, ListPropertyColumnModel, OnComponentInit, PropertyColumnModel, SelectionColumnModel } from './column-model';
5
5
  import { ColumnTextProperties } from './column-text-properties';
@@ -91,6 +91,7 @@ export declare class TableModel<Row> {
91
91
  readonly firstEditableColumn: ValueModelChain<ColumnModel<Row>>;
92
92
  private selectionColumnModel;
93
93
  private hasColumnsWithRowSelectionExplicitlyEnabled;
94
+ private readonly rowClickListeners;
94
95
  static fromList<Row>(sourceOfTruth: ListModel<Row>, builder?: (tableModel: TableModel<Row>) => void): TableModel<Row>;
95
96
  private _createForm;
96
97
  protected constructor(sourceOfTruth: ListModel<Row>);
@@ -123,5 +124,9 @@ export declare class TableModel<Row> {
123
124
  isRowSelectionEnabledFor(column: ColumnModel<Row>): boolean | undefined;
124
125
  isRowSelectionEnabledByDefault(): boolean;
125
126
  isRowSelectionEnabled(): boolean;
127
+ isHoverEnabled(): boolean;
128
+ isCursorEnabled(column: ColumnModel<Row>): boolean;
126
129
  selectRow(row: Row): void;
130
+ onRowClicked(callback: (row: Row) => void): Disposable;
131
+ _notifyCellClicked(columnModel: ColumnModel<Row>, row: Row): void;
127
132
  }
@@ -39,5 +39,5 @@ export declare class TableComponent<Row> extends DisposableComponent implements
39
39
  ngOnInit(): void;
40
40
  isEditing(row: Row): boolean;
41
41
  registerColumnTemplate(columnId: string, templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, fillCell: boolean, padChild: boolean): void;
42
- onCellClicked(columnModel: ColumnModel<Row>, row: Row): void;
42
+ notifyCellClicked(columnModel: ColumnModel<Row>, row: Row): void;
43
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "3.7.4",
3
+ "version": "3.8.0",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "dependencies": {
6
6
  "@coolon/typescript-utilities": "^2.2.0",