@coolon/angular-ui-powerups 1.11.3 → 1.11.4
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 +821 -822
- 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 +15 -16
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +15 -16
- package/esm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/esm2015/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/index.js +1 -0
- package/esm2015/lib/components/index.js.map +1 -1
- package/esm2015/lib/components/index.metadata.json +1 -1
- package/esm2015/lib/components/table/column-model.js +1 -1
- 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/default-header-cell-renderer/default-header-cell-renderer.component.js +3 -4
- package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.js +2 -2
- package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.js.map +1 -1
- package/esm2015/lib/components/table/edit-row-controls/edit-row-controls.component.metadata.json +1 -1
- package/esm2015/lib/components/table/edit-session.js +20 -0
- package/esm2015/lib/components/table/edit-session.js.map +1 -0
- package/esm2015/lib/components/table/edit-session.metadata.json +1 -0
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js +2 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/table/table-model.js +3 -23
- 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/interaction/components/activity-actions/activity-actions.component.js +1 -1
- 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/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js +2 -2
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js.map +1 -1
- package/esm2015/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.metadata.json +1 -1
- package/esm5/coolon-angular-ui-powerups.js +15 -16
- package/esm5/coolon-angular-ui-powerups.js.map +1 -1
- package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/index.js +1 -0
- package/esm5/lib/components/index.js.map +1 -1
- package/esm5/lib/components/table/column-model.js +1 -1
- package/esm5/lib/components/table/column-model.js.map +1 -1
- package/esm5/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.js +3 -4
- package/esm5/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.js.map +1 -1
- package/esm5/lib/components/table/edit-row-controls/edit-row-controls.component.js +2 -2
- package/esm5/lib/components/table/edit-row-controls/edit-row-controls.component.js.map +1 -1
- package/esm5/lib/components/table/edit-session.js +25 -0
- package/esm5/lib/components/table/edit-session.js.map +1 -0
- package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.js +2 -1
- package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
- package/esm5/lib/components/table/table-model.js +4 -27
- package/esm5/lib/components/table/table-model.js.map +1 -1
- package/esm5/lib/interaction/components/activity-actions/activity-actions.component.js +1 -1
- package/esm5/lib/interaction/components/activity-actions/activity-actions.component.js.map +1 -1
- package/esm5/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js +2 -2
- package/esm5/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +541 -543
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +795 -797
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/table/column-model.d.ts +10 -8
- package/lib/components/table/default-header-cell-renderer/default-header-cell-renderer.component.d.ts +1 -2
- package/lib/components/table/edit-row-controls/edit-row-controls.component.d.ts +2 -2
- package/lib/components/table/edit-session.d.ts +9 -0
- package/lib/components/table/table-cell-renderer/table-cell-renderer.component.d.ts +2 -1
- package/lib/components/table/table-model.d.ts +4 -13
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +1 -1
- package/lib/interaction/components/popup-interaction-context/popup-interaction-context.component.d.ts +3 -2
- package/package.json +1 -1
|
@@ -23,6 +23,7 @@ export * from "./table/cell-editor.component";
|
|
|
23
23
|
export * from "./table/cell-renderer";
|
|
24
24
|
export * from "./table/column-model";
|
|
25
25
|
export * from "./table/column-text-properties";
|
|
26
|
+
export * from "./table/edit-session";
|
|
26
27
|
export * from "./table/table-def";
|
|
27
28
|
export * from "./table/table-model";
|
|
28
29
|
export * from "./table/table.component";
|
|
@@ -4,18 +4,18 @@ import { Command, Form, SelectionModel, Types, UnaryCommand, Validator } from '@
|
|
|
4
4
|
import { AbstractInputComponent } from '../forms/abstract-input.component';
|
|
5
5
|
import { CellEditorComponent } from './cell-editor.component';
|
|
6
6
|
import { ColumnTextProperties } from './column-text-properties';
|
|
7
|
-
import {
|
|
7
|
+
import { EditSession } from './edit-session';
|
|
8
8
|
export interface ColumnHeaderConfig<Row, C extends any> {
|
|
9
9
|
portal: Portal<C>;
|
|
10
10
|
initialiseComponent?: (component: C, column: ColumnModel<Row>) => void;
|
|
11
11
|
}
|
|
12
12
|
export interface CellRendererConfig<Row, C extends any> {
|
|
13
13
|
portal: Portal<C>;
|
|
14
|
-
pushState?: (component: C, row: Row, editRowCommand: Command<void>, editSession:
|
|
14
|
+
pushState?: (component: C, row: Row, editRowCommand: Command<void>, editSession: EditSession<Row>) => void;
|
|
15
15
|
}
|
|
16
16
|
export interface CellEditorConfig<Row, V, C extends AbstractInputComponent<V>> {
|
|
17
17
|
portal: Portal<C>;
|
|
18
|
-
initialiseComponent?: (component: C, editSession:
|
|
18
|
+
initialiseComponent?: (component: C, editSession: EditSession<Row>) => void;
|
|
19
19
|
}
|
|
20
20
|
export declare class ColumnModel<Row> {
|
|
21
21
|
readonly columnId: string;
|
|
@@ -29,19 +29,21 @@ export declare class ColumnModel<Row> {
|
|
|
29
29
|
protected getDefaultHeaderText(): string;
|
|
30
30
|
getColumnTextProperties(): ColumnTextProperties;
|
|
31
31
|
textProperties(columnTextProperties: ColumnTextProperties): this;
|
|
32
|
-
protected setCellRenderer<C>(cellRenderer: ComponentType<C>, initialiser: (component: C, row: Row, editRowCommand: Command<void>, editSession:
|
|
32
|
+
protected setCellRenderer<C>(cellRenderer: ComponentType<C>, initialiser: (component: C, row: Row, editRowCommand: Command<void>, editSession: EditSession<Row>) => void): void;
|
|
33
33
|
cellHeaderRenderer<C>(cellRenderer: ComponentType<C>, initialiser: (component: C, column: ColumnModel<Row>) => void): void;
|
|
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>;
|
|
37
37
|
get cellEditorPortal(): Portal<any>;
|
|
38
38
|
hasEditor(): boolean;
|
|
39
|
-
updateCellRenderer(component: any, row: Row, editRowCommand: Command<void>, editSession:
|
|
39
|
+
updateCellRenderer(component: any, row: Row, editRowCommand: Command<void>, editSession: EditSession<Row>): void;
|
|
40
40
|
initialiseHeader(component: any): void;
|
|
41
|
-
initialiseEditor(component: any, editSession:
|
|
41
|
+
initialiseEditor(component: any, editSession: EditSession<Row>): void;
|
|
42
42
|
}
|
|
43
43
|
export declare namespace ColumnModel {
|
|
44
|
-
|
|
44
|
+
interface Defaults {
|
|
45
|
+
getColumnTextProperties(columnModel: ColumnModel<any>): ColumnTextProperties;
|
|
46
|
+
}
|
|
45
47
|
}
|
|
46
48
|
export interface CellEditorOptions<V, E extends CellEditorComponent<V>> {
|
|
47
49
|
validators?: Validator<V>[];
|
|
@@ -66,7 +68,7 @@ export declare class EditorControlColumnModel<Row> extends ColumnModel<Row> {
|
|
|
66
68
|
constructor(columnId: string, saveCommand: UnaryCommand<Form<Row>, boolean>, defaults: ColumnModel.Defaults);
|
|
67
69
|
cellRenderer(componentType: ComponentType<{
|
|
68
70
|
row: Row;
|
|
69
|
-
editSession:
|
|
71
|
+
editSession: EditSession<Row>;
|
|
70
72
|
editRowCommand: Command<void>;
|
|
71
73
|
}>): void;
|
|
72
74
|
protected getDefaultHeaderText(): string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { Command, Form } from '@coolon/pectin';
|
|
3
3
|
import { DisposableComponent } from '../../disposable-component';
|
|
4
|
-
import {
|
|
4
|
+
import { EditSession } from '../edit-session';
|
|
5
5
|
export declare class EditRowControls<Row> extends DisposableComponent implements OnInit {
|
|
6
6
|
row: Row;
|
|
7
7
|
editRowCommand: Command<void>;
|
|
8
|
-
editSession:
|
|
8
|
+
editSession: EditSession<Row>;
|
|
9
9
|
readonly saveCommand: Command<void>;
|
|
10
10
|
readonly cancelCommand: Command<void>;
|
|
11
11
|
constructor();
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Form, GarbageCollector, UnaryCommand } from '@coolon/pectin';
|
|
2
|
+
export declare class EditSession<Row> extends GarbageCollector {
|
|
3
|
+
readonly rowId: any;
|
|
4
|
+
readonly saveCommand: UnaryCommand<Form<Row>, boolean>;
|
|
5
|
+
readonly form: Form<Row>;
|
|
6
|
+
private _editorValue;
|
|
7
|
+
readonly rowValueModel: import("@coolon/pectin").ValueModel<Row>;
|
|
8
|
+
constructor(rowId: any, row: Row, saveCommand: UnaryCommand<Form<Row>, boolean>);
|
|
9
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ColumnModel } from '../column-model';
|
|
3
|
+
import { EditSession } from '../edit-session';
|
|
3
4
|
import { TableModel } from '../table-model';
|
|
4
5
|
export declare class TableCellRendererComponent<Row> implements OnChanges {
|
|
5
6
|
row: Row;
|
|
6
7
|
column: ColumnModel<Row>;
|
|
7
|
-
editSession:
|
|
8
|
+
editSession: EditSession<Row>;
|
|
8
9
|
tableModel: TableModel<Row>;
|
|
9
10
|
private renderer;
|
|
10
11
|
private editor;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { BooleanValueModelChain, CanIdentify, Form,
|
|
1
|
+
import { BooleanValueModelChain, CanIdentify, Form, ListModel, ListModelChain, SelectionModel, Types, UnaryCommand } from '@coolon/pectin';
|
|
2
2
|
import { ColumnModel, CustomValueColumnModel, EditorControlColumnModel, PropertyColumnModel, SelectionColumnModel } from './column-model';
|
|
3
3
|
import { ColumnTextProperties } from './column-text-properties';
|
|
4
|
+
import { EditSession } from './edit-session';
|
|
4
5
|
/**
|
|
5
6
|
* Example:
|
|
6
7
|
* @example
|
|
@@ -98,17 +99,7 @@ export declare class TableModel<Row> {
|
|
|
98
99
|
[columnName: string]: () => ColumnTextProperties;
|
|
99
100
|
}): void;
|
|
100
101
|
getColumnTextProperties(column: ColumnModel<Row>): ColumnTextProperties;
|
|
101
|
-
startEditSession(row: Row):
|
|
102
|
-
getEditSessionFor(row: Row):
|
|
102
|
+
startEditSession(row: Row): EditSession<Row>;
|
|
103
|
+
getEditSessionFor(row: Row): EditSession<Row>;
|
|
103
104
|
cancelAllEditorSessions(): void;
|
|
104
105
|
}
|
|
105
|
-
export declare namespace TableModel {
|
|
106
|
-
class EditSession<Row> extends GarbageCollector {
|
|
107
|
-
readonly rowId: any;
|
|
108
|
-
readonly saveCommand: UnaryCommand<Form<Row>, boolean>;
|
|
109
|
-
readonly form: Form<Row>;
|
|
110
|
-
private _editorValue;
|
|
111
|
-
readonly rowValueModel: import("@coolon/pectin").ValueModel<Row>;
|
|
112
|
-
constructor(rowId: any, row: Row, saveCommand: UnaryCommand<Form<Row>, boolean>);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { Command } from '@coolon/pectin';
|
|
3
|
-
import { DisposableComponent } from '../../../components';
|
|
3
|
+
import { DisposableComponent } from '../../../components/disposable-component';
|
|
4
4
|
export declare class ActivityActionsComponent extends DisposableComponent implements OnInit {
|
|
5
5
|
confirmCommand: Command<any>;
|
|
6
6
|
confirmText: string;
|
|
@@ -2,8 +2,9 @@ import { ConnectedPosition, Overlay } from '@angular/cdk/overlay';
|
|
|
2
2
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
3
3
|
import { ElementRef, OnInit } from '@angular/core';
|
|
4
4
|
import { Constructable } from '@coolon/pectin';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { DisposableComponent } from '../../../components/disposable-component';
|
|
6
|
+
import { Activity } from '../../activity';
|
|
7
|
+
import { InPlaceInteractionContextComponent } from '../inplace-interaction-context/in-place-interaction-context.component';
|
|
7
8
|
export declare class PopupInteractionContextComponent extends DisposableComponent implements OnInit {
|
|
8
9
|
private _element;
|
|
9
10
|
private _overlay;
|