@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/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-beta3",
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-rc.4",
13
+ "@rx-angular/cdk": "^1.0.0",
14
14
  "@rx-angular/state": "^1.7.0",
15
- "@rx-angular/template": "^1.0.0-rc.5",
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
- protected updateRoute(data: T, queryParams: any): Promise<boolean>;
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<void>;
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<void>;
55
+ goBack(): Promise<boolean>;
56
56
  tapClose(event: HammerTapEvent): void;
57
57
  tapValidate(event: HammerTapEvent): void;
58
58
  protected ionSearchBarChanged(event: Event): void;