@messaia/cdk 13.3.5-rc12 → 13.3.5-rc15
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/esm2020/lib/base/components/base.component.mjs +40 -3
- package/esm2020/lib/base/components/generic-form-base.component.mjs +10 -8
- package/esm2020/lib/base/components/generic-list.component.mjs +10 -3
- package/esm2020/lib/forms/models/form-field-definition.mjs +1 -1
- package/esm2020/lib/layout/list-toolbar/list-toolbar.component.mjs +16 -6
- package/esm2020/lib/table/components/dynamic-table/dynamic-table.component.mjs +5 -7
- package/esm2020/lib/table/models/table-definition.mjs +1 -1
- package/esm2020/lib/table/table.data-source.mjs +2 -2
- package/fesm2015/messaia-cdk.mjs +76 -20
- package/fesm2015/messaia-cdk.mjs.map +1 -1
- package/fesm2020/messaia-cdk.mjs +73 -20
- package/fesm2020/messaia-cdk.mjs.map +1 -1
- package/lib/base/components/base.component.d.ts +13 -0
- package/lib/base/components/generic-form-base.component.d.ts +5 -4
- package/lib/base/components/generic-list.component.d.ts +4 -0
- package/lib/forms/models/form-field-definition.d.ts +1 -1
- package/lib/layout/list-toolbar/list-toolbar.component.d.ts +10 -1
- package/lib/table/components/dynamic-table/dynamic-table.component.d.ts +5 -1
- package/lib/table/models/table-definition.d.ts +1 -0
- package/lib/table/table.data-source.d.ts +2 -2
- package/package.json +1 -1
|
@@ -105,6 +105,10 @@ export declare abstract class BaseComponent implements OnInit, AfterViewInit {
|
|
|
105
105
|
* Current route
|
|
106
106
|
*/
|
|
107
107
|
currentRoute: string;
|
|
108
|
+
/**
|
|
109
|
+
* A url to return to after save
|
|
110
|
+
*/
|
|
111
|
+
returnUrl: string;
|
|
108
112
|
/**
|
|
109
113
|
* Current user object
|
|
110
114
|
*/
|
|
@@ -154,6 +158,15 @@ export declare abstract class BaseComponent implements OnInit, AfterViewInit {
|
|
|
154
158
|
* Refreshs this page/component
|
|
155
159
|
*/
|
|
156
160
|
reloadPage(): void;
|
|
161
|
+
/**
|
|
162
|
+
* Navigates back to return url
|
|
163
|
+
*/
|
|
164
|
+
navigateToReturnUrl(): void;
|
|
165
|
+
/**
|
|
166
|
+
* Sets return url
|
|
167
|
+
* @param returnUrl
|
|
168
|
+
*/
|
|
169
|
+
protected setReturnUrl(returnUrl: string): void;
|
|
157
170
|
/**
|
|
158
171
|
* Listen for expansion panel changes
|
|
159
172
|
*/
|
|
@@ -22,10 +22,6 @@ export declare abstract class GenericFormBaseComponent<TEntity extends IEntity,
|
|
|
22
22
|
* The action of the form (add | edit)
|
|
23
23
|
*/
|
|
24
24
|
action: string;
|
|
25
|
-
/**
|
|
26
|
-
* A url to return to after save
|
|
27
|
-
*/
|
|
28
|
-
returnUrl: string;
|
|
29
25
|
/**
|
|
30
26
|
* Action = edit?
|
|
31
27
|
*/
|
|
@@ -231,6 +227,11 @@ export declare abstract class GenericFormBaseComponent<TEntity extends IEntity,
|
|
|
231
227
|
* @param action
|
|
232
228
|
*/
|
|
233
229
|
back(action?: SaveAction): void;
|
|
230
|
+
/**
|
|
231
|
+
* Sets return url
|
|
232
|
+
* @param returnUrl
|
|
233
|
+
*/
|
|
234
|
+
protected setReturnUrl(returnUrl: string): void;
|
|
234
235
|
/**
|
|
235
236
|
* Creates a new instance of the TEntity
|
|
236
237
|
*/
|
|
@@ -41,6 +41,10 @@ export declare abstract class GenericListComponent<TEntity extends IEntity | any
|
|
|
41
41
|
* The navigations to includes
|
|
42
42
|
*/
|
|
43
43
|
includes: Array<string>;
|
|
44
|
+
/**
|
|
45
|
+
* projection: string | string[]
|
|
46
|
+
*/
|
|
47
|
+
projection: string | string[];
|
|
44
48
|
/**
|
|
45
49
|
* The navigations to includes
|
|
46
50
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DataSource } from '@angular/cdk/table';
|
|
2
|
+
import { EventEmitter } from '@angular/core';
|
|
2
3
|
import { ActionMenuItem } from '../../common/models/action-menu-item';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class VdListToolbarComponent {
|
|
@@ -10,10 +11,18 @@ export declare class VdListToolbarComponent {
|
|
|
10
11
|
* Toolbar title
|
|
11
12
|
*/
|
|
12
13
|
subtitle: string;
|
|
14
|
+
/**
|
|
15
|
+
* backButton: boolean
|
|
16
|
+
*/
|
|
17
|
+
backButton: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* back: EventEmitter<any>
|
|
20
|
+
*/
|
|
21
|
+
back: EventEmitter<any>;
|
|
13
22
|
/**
|
|
14
23
|
* A list of menu items
|
|
15
24
|
*/
|
|
16
25
|
menuItems: ActionMenuItem[];
|
|
17
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<VdListToolbarComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VdListToolbarComponent, "vd-list-toolbar", never, { "dataSource": "dataSource"; "subtitle": "subtitle"; "menuItems": "menuItems"; }, {}, never, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VdListToolbarComponent, "vd-list-toolbar", never, { "dataSource": "dataSource"; "subtitle": "subtitle"; "backButton": "backButton"; "menuItems": "menuItems"; }, { "back": "back"; }, never, never>;
|
|
19
28
|
}
|
|
@@ -31,6 +31,10 @@ export declare class VdDynamicTableComponent implements OnInit {
|
|
|
31
31
|
* Class type
|
|
32
32
|
*/
|
|
33
33
|
classType: any;
|
|
34
|
+
/**
|
|
35
|
+
* Current context
|
|
36
|
+
*/
|
|
37
|
+
context: any;
|
|
34
38
|
/**
|
|
35
39
|
* dataSourceFilter: any
|
|
36
40
|
*/
|
|
@@ -198,5 +202,5 @@ export declare class VdDynamicTableComponent implements OnInit {
|
|
|
198
202
|
*/
|
|
199
203
|
handleContextMenuEvent(event: PointerEvent): void;
|
|
200
204
|
static ɵfac: i0.ɵɵFactoryDeclaration<VdDynamicTableComponent, never>;
|
|
201
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VdDynamicTableComponent, "vd-dynamic-table", never, { "dataSource": "dataSource"; "data": "data"; "classType": "classType"; "dataSourceFilter": "dataSourceFilter"; "filterable": "filterable"; "paginable": "paginable"; "selectable": "selectable"; "sortActive": "sortActive"; "sortDirection": "sortDirection"; "stickyHeader": "stickyHeader"; "stickyFilter": "stickyFilter"; "rowNgClass": "rowNgClass"; "detailsTemplate": "detailsTemplate"; "readonly": "readonly"; "selectAllFilter": "selectAllFilter"; "columns": "columns"; "rowMenuItems": "rowMenuItems"; "excludedColumns": "excludedColumns"; }, { "rowClick": "rowClick"; }, never, never>;
|
|
205
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VdDynamicTableComponent, "vd-dynamic-table", never, { "dataSource": "dataSource"; "data": "data"; "classType": "classType"; "context": "context"; "dataSourceFilter": "dataSourceFilter"; "filterable": "filterable"; "paginable": "paginable"; "selectable": "selectable"; "sortActive": "sortActive"; "sortDirection": "sortDirection"; "stickyHeader": "stickyHeader"; "stickyFilter": "stickyFilter"; "rowNgClass": "rowNgClass"; "detailsTemplate": "detailsTemplate"; "readonly": "readonly"; "selectAllFilter": "selectAllFilter"; "columns": "columns"; "rowMenuItems": "rowMenuItems"; "excludedColumns": "excludedColumns"; }, { "rowClick": "rowClick"; }, never, never>;
|
|
202
206
|
}
|
|
@@ -49,9 +49,9 @@ export declare class TableDataSource<TEntity, TService extends GenericService<TE
|
|
|
49
49
|
*/
|
|
50
50
|
includes: Array<string>;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* projection: string | string[]
|
|
53
53
|
*/
|
|
54
|
-
projection: string;
|
|
54
|
+
projection: string | string[];
|
|
55
55
|
/**
|
|
56
56
|
* The list of items
|
|
57
57
|
*/
|