@coolon/angular-ui-powerups 3.17.1 → 3.17.3
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/assets/table.scss +14 -9
- package/bundles/coolon-angular-ui-powerups.umd.js +57 -14
- 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/card-container/card-container.component.js +1 -1
- package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/table/abstract-table-model.js +24 -2
- package/esm2015/lib/components/table/abstract-table-model.js.map +1 -1
- package/esm2015/lib/components/table/abstract-table-model.metadata.json +1 -1
- package/esm2015/lib/components/table/table.component.js +14 -4
- package/esm2015/lib/components/table/table.component.js.map +1 -1
- package/esm2015/lib/components/table/table.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +9 -6
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +48 -13
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/table/abstract-table-model.d.ts +5 -1
- package/lib/components/table/table.component.d.ts +2 -0
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +9 -6
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType } from '@angular/cdk/overlay';
|
|
2
|
-
import { BooleanValueModelChain, CanIdentify, DirtyTrackingForm, Disposable, GarbageCollector, ListModel, ListModelChain, SelectionModel, Types, UnaryCommand, ValueModelChain } from '@coolon/pectin';
|
|
2
|
+
import { BooleanValueModelChain, CanIdentify, DirtyTrackingForm, Disposable, GarbageCollector, ListModel, ListModelChain, SelectionModel, Types, UnaryCommand, ValueModel, 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';
|
|
@@ -7,6 +7,7 @@ import { EditSession } from './edit-session';
|
|
|
7
7
|
export declare class AbstractTableModel<Row> extends GarbageCollector {
|
|
8
8
|
private sourceOfTruth;
|
|
9
9
|
private readonly _columns;
|
|
10
|
+
private readonly _visibleColumnTracker;
|
|
10
11
|
private _columnsById;
|
|
11
12
|
private _editorSessions;
|
|
12
13
|
private readonly _rowsBeingEdited;
|
|
@@ -21,11 +22,14 @@ export declare class AbstractTableModel<Row> extends GarbageCollector {
|
|
|
21
22
|
private selectionColumnModel;
|
|
22
23
|
private hasColumnsWithRowSelectionExplicitlyEnabled;
|
|
23
24
|
private readonly rowClickListeners;
|
|
25
|
+
readonly firstVisibleColumn: ValueModel<ColumnModel<Row>>;
|
|
26
|
+
readonly lastVisibleColumn: ValueModel<ColumnModel<Row>>;
|
|
24
27
|
private _createForm;
|
|
25
28
|
protected constructor(sourceOfTruth: ListModel<Row>);
|
|
26
29
|
get rowsBeingEdited(): ListModel<Row>;
|
|
27
30
|
readonly trackBy: (index: number, item: Row) => any;
|
|
28
31
|
get columns(): ListModel<ColumnModel<Row>>;
|
|
32
|
+
get visibleColumns(): ListModel<ColumnModel<Row>>;
|
|
29
33
|
pluck<P extends Types.ValuePropertiesOf<Row>>(property: P, options?: {
|
|
30
34
|
columnId: string;
|
|
31
35
|
}): PropertyColumnModel<Row, P>;
|
|
@@ -67,4 +67,6 @@ export declare class TableComponent<Row> extends ResizeAwareComponent implements
|
|
|
67
67
|
isEditing(row: Row): boolean;
|
|
68
68
|
registerColumnTemplate(columnId: string, templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, fillCell: boolean, padChild: boolean): void;
|
|
69
69
|
notifyCellClicked(columnModel: ColumnModel<Row>, row: Row): void;
|
|
70
|
+
isFirstVisibleColumn(columnId: string): boolean;
|
|
71
|
+
isLastVisibleColumn(columnId: string): boolean;
|
|
70
72
|
}
|
|
@@ -4,19 +4,22 @@ import { CommandFace } from '../../../components/commands/command-face';
|
|
|
4
4
|
import { DisposableComponent } from '../../../components/disposable-component';
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* <aup-activity-actions [
|
|
7
|
+
* <aup-activity-actions [confirmFace]="saveFace" [cancelFace]="cancelFace">
|
|
8
8
|
* </aup-activity-actions>
|
|
9
9
|
*
|
|
10
|
+
* <aup-activity-actions [faces]="{confirm: saveFace, cancel: cancelFace}">
|
|
11
|
+
* </aup-activity-actions>
|
|
12
|
+
*
|
|
10
13
|
* // Running `ng g @coolon/angular-ui-powerups:aup-i18n` will install default
|
|
11
14
|
* // style definitions
|
|
12
|
-
* <aup-activity-actions [
|
|
15
|
+
* <aup-activity-actions [faces]="I18n.aup.components.activityActions.styles.okCancelIcons">
|
|
13
16
|
* </aup-activity-actions>
|
|
14
17
|
*
|
|
15
18
|
* // you can also add additional content that will be displayed along with the buttons.
|
|
16
19
|
* // The location of the content depends on the alignment attribute.
|
|
17
20
|
* <aup-activity-actions
|
|
18
21
|
* align="stretch"
|
|
19
|
-
* [
|
|
22
|
+
* [faces]="I18n.aup.components.activityActions.styles.okCancelIcons">
|
|
20
23
|
* <span>This content will be between the two commands</span>
|
|
21
24
|
* </aup-activity-actions>
|
|
22
25
|
*/
|
|
@@ -34,7 +37,7 @@ export declare class ActivityActionsComponent extends DisposableComponent implem
|
|
|
34
37
|
confirmFace: CommandFace;
|
|
35
38
|
cancelFace: CommandFace;
|
|
36
39
|
/**
|
|
37
|
-
* @deprecated use #
|
|
40
|
+
* @deprecated use #faces instead.
|
|
38
41
|
*/
|
|
39
42
|
set style(style: ActivityActionsComponent.Style);
|
|
40
43
|
align: 'start' | 'end' | 'stretch';
|
|
@@ -42,8 +45,8 @@ export declare class ActivityActionsComponent extends DisposableComponent implem
|
|
|
42
45
|
get alignStretch(): boolean;
|
|
43
46
|
constructor(cdr: ChangeDetectorRef);
|
|
44
47
|
ngOnInit(): void;
|
|
45
|
-
hasConfirmFace():
|
|
46
|
-
hasCancelFace():
|
|
48
|
+
hasConfirmFace(): boolean;
|
|
49
|
+
hasCancelFace(): boolean;
|
|
47
50
|
initCommands(activity: {
|
|
48
51
|
confirmCommand: Command<unknown>;
|
|
49
52
|
cancelCommand: Command<unknown>;
|