@sumaris-net/ngx-components 1.21.5 → 1.21.8

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "1.21.5",
4
+ "version": "1.21.8",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -17,6 +17,7 @@ import { WaitForOptions } from '../../shared/observables';
17
17
  export interface IAppEditor extends CanLeave, IAppForm {
18
18
  save(event?: Event, options?: any): Promise<boolean>;
19
19
  cancel(event?: Event): Promise<void>;
20
+ addChildForm(form: IAppForm | IAppFormGetter): void;
20
21
  }
21
22
  export interface IAppTabEditor extends IAppEditor {
22
23
  selectedTabIndex: number;
@@ -87,6 +88,7 @@ export declare abstract class AppEditor<T = any, ID = number, O = any> implement
87
88
  content: IonContent;
88
89
  get tables(): AppTable<any>[];
89
90
  get forms(): AppForm<any>[];
91
+ get editors(): AppEditor<any>[];
90
92
  get dirty(): boolean;
91
93
  /**
92
94
  * Is valid (tables and forms)
@@ -104,8 +106,9 @@ export declare abstract class AppEditor<T = any, ID = number, O = any> implement
104
106
  ngOnInit(): void;
105
107
  ngAfterViewInit(): void;
106
108
  ngOnDestroy(): void;
107
- addChildForm(form: IAppForm | IAppFormGetter): AppEditor<T, ID, O>;
108
- addChildForms(forms: (IAppForm | IAppFormGetter)[]): AppEditor<T, ID, O>;
109
+ addChildForm(form: IAppForm | IAppFormGetter): this;
110
+ addChildForms(forms: (IAppForm | IAppFormGetter)[]): void;
111
+ removeChildForm(form: IAppForm | IAppFormGetter): IAppForm | IAppFormGetter;
109
112
  disable(opts?: {
110
113
  onlySelf?: boolean;
111
114
  emitEvent?: boolean;