@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/esm2022/src/app/core/form/entity/editor.class.mjs +4 -2
- package/esm2022/src/app/core/form/entity/entity-editor-modal.class.mjs +2 -1
- package/esm2022/src/app/core/form/entity/entity-editor.class.mjs +3 -2
- package/esm2022/src/app/core/form/form-container.class.mjs +5 -2
- package/esm2022/src/app/core/form/form.utils.mjs +4 -1
- package/fesm2022/sumaris-net.ngx-components.mjs +12 -3
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/form-container.class.d.ts +4 -2
- package/src/app/core/form/form.utils.d.ts +4 -0
- package/src/app/shared/inputs.d.ts +1 -1
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -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:
|
|
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():
|
|
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):
|
|
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;
|
package/src/assets/manifest.json
CHANGED
|
@@ -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-
|
|
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": [{
|