@coolon/angular-ui-powerups 2.0.0-alpha.10 → 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 +14 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +19 -17
- 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/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js +2 -10
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/multiple-select-input/multiple-select-input.component.metadata.json +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.js +2 -2
- package/esm2015/lib/components/forms/select-input/select-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/select-input/select-input.component.metadata.json +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/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.js +2 -10
- package/esm5/lib/components/forms/multiple-select-input/multiple-select-input.component.js.map +1 -1
- package/esm5/lib/components/forms/select-input/select-input.component.js +2 -2
- package/esm5/lib/components/forms/select-input/select-input.component.js.map +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 +19 -17
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +19 -17
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/forms/multiple-select-input/multiple-select-input.component.d.ts +1 -3
- package/lib/components/forms/select-input/select-input.component.d.ts +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
|
@@ -5,16 +5,14 @@ import { AbstractListInputComponent } from '../abstract-list-input.component';
|
|
|
5
5
|
* Using templates:
|
|
6
6
|
* <aup-multiple-select-input [valueModel]="myModel" [options]="myOptions">
|
|
7
7
|
* <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
8
|
-
* <ng-template #
|
|
8
|
+
* <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
9
9
|
* </aup-multiple-select_input>
|
|
10
10
|
*/
|
|
11
11
|
export declare class MultipleSelectInputComponent<T = any> extends AbstractListInputComponent<T> implements OnInit {
|
|
12
12
|
optionsModel: ListModel<T>;
|
|
13
13
|
options: T[];
|
|
14
14
|
optionLabel: keyof T;
|
|
15
|
-
allowNil: boolean;
|
|
16
15
|
optionTemplateRef: TemplateRef<any>;
|
|
17
|
-
nilOptionTemplateRef: TemplateRef<any>;
|
|
18
16
|
optionLabelFormat: (option: T) => any;
|
|
19
17
|
constructor();
|
|
20
18
|
ngOnInit(): void;
|
|
@@ -5,7 +5,7 @@ import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
|
5
5
|
* Using templates:
|
|
6
6
|
* <aup-select-input [valueModel]="myModel" [options]="myOptions">
|
|
7
7
|
* <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
8
|
-
* <ng-template #
|
|
8
|
+
* <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
9
9
|
* </aup-select_input>
|
|
10
10
|
*/
|
|
11
11
|
export declare class SelectInputComponent<T = any> extends AbstractValueInputComponent<T> implements OnInit {
|
|
@@ -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[];
|