@sumaris-net/ngx-components 2.5.0-beta3 → 2.5.0
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/doc/changelog.md +6 -0
- package/esm2020/src/app/core/account/account.page.mjs +19 -14
- package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +54 -38
- package/esm2020/src/app/core/table/entities-table-datasource.class.mjs +1 -1
- package/esm2020/src/app/shared/dates.mjs +7 -1
- package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.mjs +11 -7
- package/esm2020/src/app/shared/material/datetime/material.datetime.mjs +3 -3
- package/esm2020/src/app/shared/shared-routing.module.mjs +14 -7
- package/esm2020/src/app/shared/toolbar/toolbar.mjs +7 -6
- package/fesm2015/sumaris-net.ngx-components.mjs +99 -68
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +105 -68
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +3 -3
- package/src/app/core/form/entity/entity-editor.class.d.ts +9 -1
- package/src/app/shared/dates.d.ts +1 -0
- package/src/app/shared/toolbar/toolbar.d.ts +2 -2
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.5.0
|
|
4
|
+
"version": "2.5.0",
|
|
5
5
|
"author": "contact@e-is.pro",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
7
7
|
"readmeFilename": "README.md",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@noble/ed25519": "^1.7.1",
|
|
13
|
-
"@rx-angular/cdk": "^1.0.0
|
|
13
|
+
"@rx-angular/cdk": "^1.0.0",
|
|
14
14
|
"@rx-angular/state": "^1.7.0",
|
|
15
|
-
"@rx-angular/template": "^1.0.0
|
|
15
|
+
"@rx-angular/template": "^1.0.0",
|
|
16
16
|
"clone": "~2.1.2",
|
|
17
17
|
"tslib": "~2.3.1"
|
|
18
18
|
},
|
|
@@ -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,7 +187,13 @@ 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;
|
|
188
|
-
|
|
190
|
+
/**
|
|
191
|
+
* Update the route, without reloading the component
|
|
192
|
+
* @param data
|
|
193
|
+
* @param queryParams
|
|
194
|
+
* @protected
|
|
195
|
+
*/
|
|
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>;
|
|
191
199
|
}
|
|
@@ -22,6 +22,7 @@ export declare class DateUtils {
|
|
|
22
22
|
*/
|
|
23
23
|
static resetTime(value: Moment | string, timezone?: string, keepLocalTime?: boolean): Moment | undefined;
|
|
24
24
|
static markNoTime(value: Moment): Moment | undefined;
|
|
25
|
+
static markTime(value: Moment): Moment | undefined;
|
|
25
26
|
static isNoTime(value: Moment): boolean;
|
|
26
27
|
/**
|
|
27
28
|
* Test if a date is on the given day of week
|
|
@@ -11,7 +11,7 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
export declare abstract class ToolbarToken {
|
|
12
12
|
abstract onBackClick: Observable<Event>;
|
|
13
13
|
abstract doBackClick(event: Event): any;
|
|
14
|
-
abstract goBack(): Promise<
|
|
14
|
+
abstract goBack(): Promise<boolean>;
|
|
15
15
|
abstract canGoBack: boolean;
|
|
16
16
|
}
|
|
17
17
|
export declare class ToolbarComponent implements ToolbarToken, OnInit, OnDestroy {
|
|
@@ -52,7 +52,7 @@ export declare class ToolbarComponent implements ToolbarToken, OnInit, OnDestroy
|
|
|
52
52
|
ngOnDestroy(): void;
|
|
53
53
|
toggleSearchBar(): Promise<void>;
|
|
54
54
|
doBackClick(event: Event): void;
|
|
55
|
-
goBack(): Promise<
|
|
55
|
+
goBack(): Promise<boolean>;
|
|
56
56
|
tapClose(event: HammerTapEvent): void;
|
|
57
57
|
tapValidate(event: HammerTapEvent): void;
|
|
58
58
|
protected ionSearchBarChanged(event: Event): void;
|