@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.
- package/CHANGELOG.md +7 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +15 -5
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/esm2015/lib/components/table/column-model.js +13 -3
- package/esm2015/lib/components/table/column-model.js.map +1 -1
- package/esm2015/lib/components/table/column-model.metadata.json +1 -1
- package/esm2015/lib/components/table/table-model.js +2 -2
- package/esm2015/lib/components/table/table-model.js.map +1 -1
- package/esm2015/lib/components/table/table-model.metadata.json +1 -1
- package/esm5/lib/components/table/column-model.js +13 -3
- package/esm5/lib/components/table/column-model.js.map +1 -1
- package/esm5/lib/components/table/table-model.js +2 -2
- package/esm5/lib/components/table/table-model.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +15 -5
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +15 -5
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/table/column-model.d.ts +1 -1
- package/lib/components/table/table-model.d.ts +5 -2
- package/package.json +1 -1
|
@@ -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>,
|
|
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?:
|
|
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[];
|