@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.
@@ -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
  */
@@ -15,7 +15,7 @@ export declare class FormFieldDefinition {
15
15
  mapper?: Function;
16
16
  compareWith?: Function;
17
17
  searchField?: string;
18
- projection?: string;
18
+ projection?: string | string[];
19
19
  params?: Function;
20
20
  multiple?: boolean;
21
21
  optionValue?: string;
@@ -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
  }
@@ -2,6 +2,7 @@ import { TableColumn } from "./table-column";
2
2
  import { TableMenuItem } from "./table-menu-item";
3
3
  export declare class TableDefinition {
4
4
  endpoint: string;
5
+ projection?: string | string[];
5
6
  includes?: string[];
6
7
  showAction?: boolean;
7
8
  selectable?: boolean;
@@ -49,9 +49,9 @@ export declare class TableDataSource<TEntity, TService extends GenericService<TE
49
49
  */
50
50
  includes: Array<string>;
51
51
  /**
52
- * The columns to be projected
52
+ * projection: string | string[]
53
53
  */
54
- projection: string;
54
+ projection: string | string[];
55
55
  /**
56
56
  * The list of items
57
57
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@messaia/cdk",
3
- "version": "13.3.5-rc12",
3
+ "version": "13.3.5-rc15",
4
4
  "peerDependencies": {},
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org"