@sumaris-net/ngx-components 18.6.58 → 18.6.60

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": "18.6.58",
4
+ "version": "18.6.60",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -102,4 +102,5 @@ export declare abstract class EntityUtils {
102
102
  */
103
103
  static collectById<T extends IEntity<T, ID>, ID = any>(entities: T[]): ID[];
104
104
  static arrayDistinctFilterFn<E extends IEntity<any, any>>(item: E, index: number, values: E[]): boolean;
105
+ static findById<E extends IEntity<any, ID> = IEntity<any, any>, ID = number>(items: E[], id: ID): E | undefined;
105
106
  }
@@ -3,7 +3,7 @@ import { ShowToastOptions } from './toasts';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ToastTestingPage {
5
5
  private injector;
6
- readonly defaultOptions: ShowToastOptions;
6
+ protected options: ShowToastOptions;
7
7
  constructor(injector: Injector);
8
8
  showToast(opts?: ShowToastOptions): Promise<import("@ionic/core").OverlayEventDetail<any>>;
9
9
  showInfo(opts?: ShowToastOptions): Promise<import("@ionic/core").OverlayEventDetail<any>>;
@@ -1,6 +1,6 @@
1
- import { AnimationController, ToastController } from '@ionic/angular';
1
+ import { ToastController } from '@ionic/angular';
2
2
  import { TranslateService } from '@ngx-translate/core';
3
- import { AnimationBuilder, OverlayEventDetail, ToastOptions } from '@ionic/core';
3
+ import { OverlayEventDetail, ToastOptions } from '@ionic/core';
4
4
  import { Injector } from '@angular/core';
5
5
  export declare interface ShowToastOptions extends ToastOptions {
6
6
  type?: 'error' | 'warning' | 'info';
@@ -13,5 +13,4 @@ export declare class Toasts {
13
13
  static stackSize: number;
14
14
  static showSimple<T = any>(injector: Injector, opts: ShowToastOptions): Promise<OverlayEventDetail<T>>;
15
15
  static show<T = any>(toastController: ToastController, translate: TranslateService, opts: ShowToastOptions): Promise<OverlayEventDetail<T>>;
16
- static createEnterAnimation(animationCtrl: AnimationController, currentOffset: number, opts: ShowToastOptions): AnimationBuilder;
17
16
  }
@@ -14,6 +14,7 @@ export declare abstract class ToolbarToken {
14
14
  abstract goBack(): Promise<boolean>;
15
15
  abstract canGoBack: boolean;
16
16
  }
17
+ export declare const TOOLBAR_HEADER_ID = "app-toolbar-header";
17
18
  export declare class ToolbarComponent implements ToolbarToken, OnInit, OnDestroy {
18
19
  private route;
19
20
  private router;
@@ -32,6 +33,7 @@ export declare class ToolbarComponent implements ToolbarToken, OnInit, OnDestroy
32
33
  title: string;
33
34
  color: AppColors;
34
35
  class: string;
36
+ id: string;
35
37
  set backHref(value: string);
36
38
  get backHref(): string;
37
39
  set defaultBackHref(value: string);
@@ -59,7 +61,7 @@ export declare class ToolbarComponent implements ToolbarToken, OnInit, OnDestroy
59
61
  protected ionSearchBarChanged(event: Event): void;
60
62
  protected markForCheck(): void;
61
63
  static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarComponent, [null, null, null, null, null, { optional: true; }]>;
62
- static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "app-toolbar", never, { "progressBarMode": { "alias": "progressBarMode"; "required": false; }; "title": { "alias": "title"; "required": false; }; "color": { "alias": "color"; "required": false; }; "class": { "alias": "class"; "required": false; }; "backHref": { "alias": "backHref"; "required": false; }; "defaultBackHref": { "alias": "defaultBackHref"; "required": false; }; "hasValidate": { "alias": "hasValidate"; "required": false; }; "hasClose": { "alias": "hasClose"; "required": false; }; "hasSearch": { "alias": "hasSearch"; "required": false; }; "canGoBack": { "alias": "canGoBack"; "required": false; }; "canShowMenu": { "alias": "canShowMenu"; "required": false; }; }, { "onValidate": "onValidate"; "onClose": "onClose"; "onValidateAndClose": "onValidateAndClose"; "onBackClick": "onBackClick"; "onSearch": "onSearch"; }, never, ["[slot=start]", "ion-title, ion-segment", "ion-buttons[slot=end]", "[slot=end]"], false, never>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "app-toolbar", never, { "progressBarMode": { "alias": "progressBarMode"; "required": false; }; "title": { "alias": "title"; "required": false; }; "color": { "alias": "color"; "required": false; }; "class": { "alias": "class"; "required": false; }; "id": { "alias": "id"; "required": false; }; "backHref": { "alias": "backHref"; "required": false; }; "defaultBackHref": { "alias": "defaultBackHref"; "required": false; }; "hasValidate": { "alias": "hasValidate"; "required": false; }; "hasClose": { "alias": "hasClose"; "required": false; }; "hasSearch": { "alias": "hasSearch"; "required": false; }; "canGoBack": { "alias": "canGoBack"; "required": false; }; "canShowMenu": { "alias": "canShowMenu"; "required": false; }; }, { "onValidate": "onValidate"; "onClose": "onClose"; "onValidateAndClose": "onValidateAndClose"; "onBackClick": "onBackClick"; "onSearch": "onSearch"; }, never, ["[slot=start]", "ion-title, ion-segment", "ion-buttons[slot=end]", "[slot=end]"], false, never>;
63
65
  static ngAcceptInputType_hasValidate: unknown;
64
66
  static ngAcceptInputType_hasClose: unknown;
65
67
  static ngAcceptInputType_hasSearch: unknown;
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "18.6.58",
5
+ "version": "18.6.60",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -944,11 +944,11 @@ ion-toast {
944
944
  }
945
945
 
946
946
  &.toast-stacked-top {
947
- --toast-top: calc(var(--toast-stack-offset, 0) * var(--toast-max-height, 0));
947
+ --toast-top: calc(var(--toast-stack-offset, 0) * var(--toast-max-height, 0px));
948
948
  transform: translateY(var(--toast-top));
949
949
  }
950
950
  &.toast-stacked-bottom {
951
- --toast-bottom: calc(-1 * var(--toast-stack-offset, 0) * var(--toast-max-height, 0)) !important;
951
+ --toast-bottom: calc((var(--toast-stack-offset, 0) + 1) * var(--toast-max-height, 0px));
952
952
  transform: translateY(var(--toast-bottom));
953
953
  }
954
954
  }