@sumaris-net/ngx-components 2.4.23-rc2 → 2.4.23-rc4
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/esm2020/src/app/core/form/entity/entity-editor.class.mjs +54 -20
- package/esm2020/src/app/shared/shared-routing.module.mjs +11 -4
- package/fesm2015/sumaris-net.ngx-components.mjs +59 -23
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +61 -21
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/entity/entity-editor.class.d.ts +8 -0
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, EventEmitter, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { IonRouterOutlet } from '@ionic/angular';
|
|
2
3
|
import { Observable, Subject } from 'rxjs';
|
|
3
4
|
import { AddToPageHistoryOptions, LocalSettingsService } from '../../services/local-settings.service';
|
|
4
5
|
import { Entity } from '../../services/model/entity.model';
|
|
@@ -58,6 +59,7 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
|
|
|
58
59
|
protected readonly cd: ChangeDetectorRef;
|
|
59
60
|
protected readonly settings: LocalSettingsService;
|
|
60
61
|
protected readonly environment: Environment;
|
|
62
|
+
protected readonly routerOutlet: IonRouterOutlet;
|
|
61
63
|
protected errorTranslator: FormErrorTranslator;
|
|
62
64
|
data: T;
|
|
63
65
|
defaultBackHref: string;
|
|
@@ -185,6 +187,12 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
|
|
|
185
187
|
* Open the first tab that is invalid
|
|
186
188
|
*/
|
|
187
189
|
private openFirstInvalidTab;
|
|
190
|
+
/**
|
|
191
|
+
* Update the route, without reloading the component
|
|
192
|
+
* @param data
|
|
193
|
+
* @param queryParams
|
|
194
|
+
* @protected
|
|
195
|
+
*/
|
|
188
196
|
protected updateRoute(data: T, queryParams?: any): Promise<boolean>;
|
|
189
197
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppEntityEditor<any, any, any>, never>;
|
|
190
198
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AppEntityEditor<any, any, any>, never, never, {}, {}, never, never, false>;
|