@messaia/cdk 13.3.5-rc14 → 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
  */
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@messaia/cdk",
3
- "version": "13.3.5-rc14",
3
+ "version": "13.3.5-rc15",
4
4
  "peerDependencies": {},
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org"