@sumaris-net/ngx-components 18.2.35-alpha1 → 18.2.35-alpha3
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 +8 -6
- package/esm2022/src/app/core/form/entity/entity-editor.class.mjs +11 -5
- package/esm2022/src/app/core/form/entity/tab-editor.class.mjs +11 -17
- package/fesm2022/sumaris-net.ngx-components.mjs +26 -24
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/entity/editor.class.d.ts +3 -2
- package/src/app/core/form/entity/entity-editor.class.d.ts +1 -1
- package/src/app/core/form/entity/tab-editor.class.d.ts +1 -5
package/package.json
CHANGED
|
@@ -32,7 +32,8 @@ export declare abstract class AppEditor<T = any, ID = number, O = any> extends A
|
|
|
32
32
|
formButtonsBar: FormButtonsBarToken | null;
|
|
33
33
|
content: IonContent;
|
|
34
34
|
abstract get isNewData(): boolean;
|
|
35
|
-
protected constructor(route: ActivatedRoute,
|
|
35
|
+
protected constructor(route: ActivatedRoute, // Modal editor give 'null'
|
|
36
|
+
router: Router, navController: NavController, alertCtrl: AlertController, translate: TranslateService);
|
|
36
37
|
ngOnInit(): void;
|
|
37
38
|
ngAfterViewInit(): void;
|
|
38
39
|
ngOnDestroy(): void;
|
|
@@ -78,6 +79,6 @@ export declare abstract class AppEditor<T = any, ID = number, O = any> extends A
|
|
|
78
79
|
}): Promise<boolean>;
|
|
79
80
|
protected saveDirtyChildren(): Promise<boolean>;
|
|
80
81
|
protected showToast(opts: ShowToastOptions): Promise<void>;
|
|
81
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppEditor<any, any, any>,
|
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppEditor<any, any, any>, [{ optional: true; }, null, null, null, null]>;
|
|
82
83
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AppEditor<any, any, any>, never, never, {}, {}, never, never, false, never>;
|
|
83
84
|
}
|
|
@@ -186,7 +186,7 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
|
|
|
186
186
|
* @param queryParams
|
|
187
187
|
* @protected
|
|
188
188
|
*/
|
|
189
|
-
protected updateRoute(data
|
|
189
|
+
protected updateRoute(data?: T, queryParams?: any): Promise<boolean>;
|
|
190
190
|
/**
|
|
191
191
|
* Open the first tab that is invalid
|
|
192
192
|
*/
|
|
@@ -32,11 +32,6 @@ export declare class AppTabEditorOptions {
|
|
|
32
32
|
enableSwipe?: boolean;
|
|
33
33
|
}
|
|
34
34
|
export declare abstract class AppTabEditor<T = any, ID = number, O = any> extends AppEditor<T, ID, O> implements IAppTabEditor<T>, OnInit, OnDestroy {
|
|
35
|
-
protected route: ActivatedRoute;
|
|
36
|
-
protected router: Router;
|
|
37
|
-
protected navController: NavController;
|
|
38
|
-
protected alertCtrl: AlertController;
|
|
39
|
-
protected translate: TranslateService;
|
|
40
35
|
protected _selectedTabIndex: number;
|
|
41
36
|
protected tabCount: number;
|
|
42
37
|
protected enableSwipe: boolean;
|
|
@@ -65,6 +60,7 @@ export declare abstract class AppTabEditor<T = any, ID = number, O = any> extend
|
|
|
65
60
|
emitEvent?: boolean;
|
|
66
61
|
}): Promise<void>;
|
|
67
62
|
protected abstract getFirstInvalidTabIndex(): number;
|
|
63
|
+
protected updateRoute(): Promise<boolean>;
|
|
68
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppTabEditor<any, any, any>, [{ optional: true; }, null, null, null, null, { optional: true; }]>;
|
|
69
65
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AppTabEditor<any, any, any>, never, never, { "queryTabIndexParamName": { "alias": "queryTabIndexParamName"; "required": false; }; "selectedTabIndex": { "alias": "selectedTabIndex"; "required": false; }; }, { "selectedTabIndexChange": "selectedTabIndexChange"; }, never, never, false, never>;
|
|
70
66
|
}
|