@coolon/angular-ui-powerups 2.0.0-alpha.21 → 2.0.0-alpha.22
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 +206 -53
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.d.ts +35 -34
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +33 -32
- package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/commands/command-face.js +66 -0
- package/esm2015/lib/components/commands/command-face.js.map +1 -0
- package/esm2015/lib/components/commands/command-face.metadata.json +1 -0
- package/esm2015/lib/components/components.module.js +9 -3
- package/esm2015/lib/components/components.module.js.map +1 -1
- package/esm2015/lib/components/components.module.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/index.js +2 -0
- package/esm2015/lib/components/index.js.map +1 -1
- package/esm2015/lib/components/index.metadata.json +1 -1
- package/esm2015/lib/components/table/table-model.js.map +1 -1
- package/esm2015/lib/components/table/table-model.metadata.json +1 -1
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js +82 -0
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.js.map +1 -0
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.metadata.json +1 -0
- package/esm2015/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +1 -0
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm5/coolon-angular-ui-powerups.js +33 -32
- package/esm5/coolon-angular-ui-powerups.js.map +1 -1
- package/esm5/lib/angular-ui-powerups.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/commands/command-face.js +91 -0
- package/esm5/lib/components/commands/command-face.js.map +1 -0
- package/esm5/lib/components/components.module.js +9 -3
- package/esm5/lib/components/components.module.js.map +1 -1
- package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/index.js +2 -0
- package/esm5/lib/components/index.js.map +1 -1
- package/esm5/lib/components/table/table-model.js.map +1 -1
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js +66 -0
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.js.map +1 -0
- package/esm5/lib/components/table/table-row-menu/table-row-menu.component.ngfactory.js.map +1 -0
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +148 -5
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +157 -5
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/commands/command-face.d.ts +22 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/components/table/table-model.d.ts +3 -6
- package/lib/components/table/table-row-menu/table-row-menu.component.d.ts +25 -0
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface CommandFace {
|
|
2
|
+
text?(): string;
|
|
3
|
+
icon?(): string;
|
|
4
|
+
iconPosition?(): CommandFace.Position;
|
|
5
|
+
tooltip?(): string;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace CommandFace {
|
|
8
|
+
enum Position {
|
|
9
|
+
START = "start",
|
|
10
|
+
END = "end"
|
|
11
|
+
}
|
|
12
|
+
class Instance {
|
|
13
|
+
readonly face: CommandFace;
|
|
14
|
+
constructor(face: CommandFace);
|
|
15
|
+
get text(): string;
|
|
16
|
+
get icon(): string;
|
|
17
|
+
get iconPosition(): Position.START | Position;
|
|
18
|
+
get tooltip(): string;
|
|
19
|
+
get iconPositionStart(): boolean;
|
|
20
|
+
get iconPositionEnd(): boolean;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -6,6 +6,7 @@ export * from "./disposable-component";
|
|
|
6
6
|
export * from "./focusable.component";
|
|
7
7
|
export * from "./resize-aware.component";
|
|
8
8
|
export * from "./card-container/card-container.component";
|
|
9
|
+
export * from "./commands/command-face";
|
|
9
10
|
export * from "./focus-container/focus-container.component";
|
|
10
11
|
export * from "./forms/abstract-input.component";
|
|
11
12
|
export * from "./forms/abstract-list-input.component";
|
|
@@ -41,6 +42,7 @@ export * from "./table/select-cell-renderer/select-cell-renderer.component";
|
|
|
41
42
|
export * from "./table/select-header-cell-renderer/select-header-cell-renderer.component";
|
|
42
43
|
export * from "./table/table-cell-renderer/table-cell-renderer.component";
|
|
43
44
|
export * from "./table/table-header-cell-renderer/table-header-cell-renderer.component";
|
|
45
|
+
export * from "./table/table-row-menu/table-row-menu.component";
|
|
44
46
|
export * from "./types/bounds.class";
|
|
45
47
|
export * from "./types/dimension.class";
|
|
46
48
|
export * from "./types/point.class";
|
|
@@ -1,5 +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 { CellRenderer } from './cell-renderer';
|
|
3
4
|
import { CellRendererOptions, ColumnModel, CustomTemplateColumnModel, CustomValueColumnModel, EditorControlColumnModel, ListPropertyColumnModel, OnComponentInit, PropertyColumnModel, SelectionColumnModel } from './column-model';
|
|
4
5
|
import { ColumnTextProperties } from './column-text-properties';
|
|
5
6
|
import { EditSession } from './edit-session';
|
|
@@ -105,12 +106,8 @@ export declare class TableModel<Row> {
|
|
|
105
106
|
addSelectionColumn(selectionModel: SelectionModel<Row>): SelectionColumnModel<Row>;
|
|
106
107
|
addEditControls(saveCommand: UnaryCommand<DirtyTrackingForm<Row>, boolean>): EditorControlColumnModel<Row>;
|
|
107
108
|
addCustomColumn<V>(columnId: string, dataAccessor: (row: Row) => V): CustomValueColumnModel<Row, V>;
|
|
108
|
-
addComponentColumn<C extends
|
|
109
|
-
|
|
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>;
|
|
109
|
+
addComponentColumn<C extends CellRenderer<Row>>(columnId: string, component: ComponentType<C>, onInit?: OnComponentInit<C>): CustomValueColumnModel<Row, Row>;
|
|
110
|
+
addComponentColumn<C extends CellRenderer<Row>>(columnId: string, component: ComponentType<C>, options?: CellRendererOptions<Row, C>): CustomValueColumnModel<Row, Row>;
|
|
114
111
|
addTemplateColumn<V>(columnId: string): CustomTemplateColumnModel<Row>;
|
|
115
112
|
addRowClass(className: string, predicate: (row: Row) => boolean): void;
|
|
116
113
|
getRowClasses(row: Row): string[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatMenuTrigger } from '@angular/material/menu';
|
|
3
|
+
import { Command } from '@coolon/pectin';
|
|
4
|
+
import { CommandFace } from '../../commands/command-face';
|
|
5
|
+
import { DisposableComponent } from '../../disposable-component';
|
|
6
|
+
declare class MenuItemData<T> extends CommandFace.Instance {
|
|
7
|
+
readonly factory: Command.Factory<T, void>;
|
|
8
|
+
constructor(factory: Command.Factory<T, void>, face: CommandFace);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export declare class TableRowMenuComponent<T> extends DisposableComponent implements OnInit {
|
|
14
|
+
value: T;
|
|
15
|
+
menu: MatMenuTrigger;
|
|
16
|
+
readonly actions: MenuItemData<T>[];
|
|
17
|
+
readonly moreActions: MenuItemData<T>[];
|
|
18
|
+
registerAction(commandFactory: Command.Factory<T, void>, properties: CommandFace): void;
|
|
19
|
+
registerMoreAction(commandFactory: Command.Factory<T, void>, properties: CommandFace): void;
|
|
20
|
+
constructor();
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
createCommandFor(item: MenuItemData<T>, value: T): Command<void>;
|
|
23
|
+
private closeMenu;
|
|
24
|
+
}
|
|
25
|
+
export {};
|