@sumaris-net/ngx-components 2.8.3-beta10 → 2.8.3-beta11

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": "2.8.3-beta10",
4
+ "version": "2.8.3-beta11",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -10,7 +10,8 @@ import { AppAsyncTable } from '../table/async-table.class';
10
10
  import * as i0 from "@angular/core";
11
11
  export interface IAppFormContainer<T = any> extends IAppForm<T> {
12
12
  children: IAppForm[];
13
- tables: (AppTable<any> | AppAsyncTable<any>)[];
13
+ tables: AppTable<any>[];
14
+ asyncTables: AppAsyncTable<any>[];
14
15
  forms: AppForm<any>[];
15
16
  editors: AppEditor<any>[];
16
17
  addForm(path: string, form?: IAppForm | IAppFormGetter): void;
@@ -30,7 +31,8 @@ export declare abstract class AppFormContainer<T = any> implements IAppFormConta
30
31
  readonly touchedSubject: BehaviorSubject<boolean>;
31
32
  readonly errorSubject: BehaviorSubject<string>;
32
33
  get children(): IAppForm[];
33
- get tables(): (AppTable<any> | AppAsyncTable<any>)[];
34
+ get tables(): AppTable<any>[];
35
+ get asyncTables(): AppAsyncTable<any>[];
34
36
  get forms(): AppForm<any>[];
35
37
  get editors(): AppEditor<any>[];
36
38
  get error(): string;
@@ -76,6 +76,9 @@ export interface IAppForm<T = any> {
76
76
  emitEvent?: boolean;
77
77
  }): void;
78
78
  }
79
+ export interface ICanSaveAppForm<T = any> extends IAppForm {
80
+ save(): Promise<boolean>;
81
+ }
79
82
  /**
80
83
  * A form that do nothing
81
84
  */
@@ -336,6 +339,7 @@ export declare class AppFormUtils {
336
339
  static updateValueAndValidity: typeof updateValueAndValidity;
337
340
  static getFormErrors: typeof getFormErrors;
338
341
  static isForm(object: any): object is IAppForm;
342
+ static isCanSaveForm(object: any): object is ICanSaveAppForm;
339
343
  static addValueInArray: typeof addValueInArray;
340
344
  static removeValueInArray: typeof removeValueInArray;
341
345
  static resizeArray: typeof resizeArray;
@@ -16,7 +16,7 @@ export interface InputElement extends FocusableElement {
16
16
  }
17
17
  export declare function isInputElement(object: any): object is InputElement;
18
18
  export declare function asInputElement(object: ElementRef): InputElement | undefined;
19
- export declare function tabindexComparator(a: InputElement, b: InputElement): 1 | -1 | 0;
19
+ export declare function tabindexComparator(a: InputElement, b: InputElement): 0 | 1 | -1;
20
20
  export interface CanGainFocusOptions {
21
21
  minTabindex?: number;
22
22
  maxTabindex?: number;
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "2.8.3-beta10",
5
+ "version": "2.8.3-beta11",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{