@coolon/angular-ui-powerups 2.0.0-alpha.11 → 2.0.0-alpha.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.
@@ -87,7 +87,7 @@ export declare class CustomValueColumnModel<Row, V> extends ColumnModel<Row> {
87
87
  constructor(columnId: string, defaults: ColumnModel.Defaults, getValue: (row: Row) => V);
88
88
  cellRenderer<C extends {
89
89
  value: V;
90
- }>(componentType: ComponentType<C>, onComponentInit?: OnComponentInit<C>): this;
90
+ }>(componentType: ComponentType<C>, onComponentInitOrOptions?: CellRendererOptions<Row, C> | OnComponentInit<C>): this;
91
91
  selectRowOnClick(selectOnRowClick: boolean): this;
92
92
  }
93
93
  export declare class EditorControlColumnModel<Row> extends ColumnModel<Row> {
@@ -1,6 +1,6 @@
1
1
  import { ComponentType } from '@angular/cdk/overlay';
2
2
  import { BooleanValueModelChain, CanIdentify, DirtyTrackingForm, ListModel, ListModelChain, SelectionModel, Types, UnaryCommand, ValueModelChain } from '@coolon/pectin';
3
- import { ColumnModel, CustomTemplateColumnModel, CustomValueColumnModel, EditorControlColumnModel, ListPropertyColumnModel, PropertyColumnModel, SelectionColumnModel } from './column-model';
3
+ import { CellRendererOptions, ColumnModel, CustomTemplateColumnModel, CustomValueColumnModel, EditorControlColumnModel, ListPropertyColumnModel, OnComponentInit, PropertyColumnModel, SelectionColumnModel } from './column-model';
4
4
  import { ColumnTextProperties } from './column-text-properties';
5
5
  import { EditSession } from './edit-session';
6
6
  /**
@@ -107,7 +107,10 @@ export declare class TableModel<Row> {
107
107
  addCustomColumn<V>(columnId: string, dataAccessor: (row: Row) => V): CustomValueColumnModel<Row, V>;
108
108
  addComponentColumn<C extends {
109
109
  value: Row;
110
- }>(columnId: string, component: ComponentType<C>, onInit?: (c: C) => void): CustomValueColumnModel<Row, Row>;
110
+ }>(columnId: string, component: ComponentType<C>, onInit?: OnComponentInit<C>): CustomValueColumnModel<Row, Row>;
111
+ addComponentColumn<C extends {
112
+ value: Row;
113
+ }>(columnId: string, component: ComponentType<C>, options?: CellRendererOptions<Row, C>): CustomValueColumnModel<Row, Row>;
111
114
  addTemplateColumn<V>(columnId: string): CustomTemplateColumnModel<Row>;
112
115
  addRowClass(className: string, predicate: (row: Row) => boolean): void;
113
116
  getRowClasses(row: Row): string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "2.0.0-alpha.11",
3
+ "version": "2.0.0-alpha.12",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "dependencies": {
6
6
  "@coolon/typescript-utilities": "^2.0.0",