@coolon/angular-ui-powerups 1.11.4 → 1.12.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.
@@ -30,7 +30,7 @@ export declare class ColumnModel<Row> {
30
30
  getColumnTextProperties(): ColumnTextProperties;
31
31
  textProperties(columnTextProperties: ColumnTextProperties): this;
32
32
  protected setCellRenderer<C>(cellRenderer: ComponentType<C>, initialiser: (component: C, row: Row, editRowCommand: Command<void>, editSession: EditSession<Row>) => void): void;
33
- cellHeaderRenderer<C>(cellRenderer: ComponentType<C>, initialiser: (component: C, column: ColumnModel<Row>) => void): void;
33
+ cellHeaderRenderer<C>(cellRenderer: ComponentType<C>, initialiser: (component: C, column: ColumnModel<Row>) => void): this;
34
34
  protected setCellEditor<E extends AbstractInputComponent<any>>(cellEditor: CellEditorConfig<any, any, any>): void;
35
35
  get cellRendererPortal(): Portal<any>;
36
36
  get columnHeaderCellRendererPortal(): Portal<any>;
@@ -51,18 +51,20 @@ export interface CellEditorOptions<V, E extends CellEditorComponent<V>> {
51
51
  }
52
52
  export declare class PropertyColumnModel<Row, P extends Types.ValuePropertiesOf<Row>> extends ColumnModel<Row> {
53
53
  readonly property: P;
54
+ private _format;
54
55
  constructor(property: P, defaults: ColumnModel.Defaults);
55
56
  cellRenderer(componentType: ComponentType<{
56
57
  value: Row[P];
57
- }>): void;
58
+ }>): this;
58
59
  cellEditor<E extends CellEditorComponent<Row[P]>>(editor: ComponentType<E>, options?: CellEditorOptions<Row[P], E>): this;
60
+ format(formatter: (value: Row[P]) => any): this;
59
61
  }
60
62
  export declare class CustomValueColumnModel<Row, V> extends ColumnModel<Row> {
61
63
  private getValue;
62
64
  constructor(columnId: string, defaults: ColumnModel.Defaults, getValue: (row: Row) => V);
63
65
  cellRenderer(componentType: ComponentType<{
64
66
  value: V;
65
- }>): void;
67
+ }>): this;
66
68
  }
67
69
  export declare class EditorControlColumnModel<Row> extends ColumnModel<Row> {
68
70
  constructor(columnId: string, saveCommand: UnaryCommand<Form<Row>, boolean>, defaults: ColumnModel.Defaults);
@@ -70,7 +72,7 @@ export declare class EditorControlColumnModel<Row> extends ColumnModel<Row> {
70
72
  row: Row;
71
73
  editSession: EditSession<Row>;
72
74
  editRowCommand: Command<void>;
73
- }>): void;
75
+ }>): this;
74
76
  protected getDefaultHeaderText(): string;
75
77
  }
76
78
  export declare class CustomTemplateColumnModel<Row> extends ColumnModel<Row> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "1.11.4",
3
+ "version": "1.12.0",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "dependencies": {
6
6
  "ts-morph": "^7.0.3",