@sumaris-net/ngx-components 18.19.3 → 18.19.5

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.19.3",
4
+ "version": "18.19.5",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -8,6 +8,7 @@ import { TranslateService } from '@ngx-translate/core';
8
8
  import { ILoggingService } from '../../shared/logging/logger.model';
9
9
  import { RxState } from '@rx-angular/state';
10
10
  import { NodeFeature } from '../services/model/node-feature.model';
11
+ import { FilterFn } from '../../shared/types';
11
12
  import * as i0 from "@angular/core";
12
13
  export interface ISelectPeerModalOptions {
13
14
  canCancel: boolean;
@@ -17,7 +18,12 @@ export interface ISelectPeerModalOptions {
17
18
  selectedPeer?: string;
18
19
  title?: string;
19
20
  defaultPeers: Peer[];
21
+ /**
22
+ * Allow to filter some peers (e.g. to exclude the current peer)
23
+ */
24
+ peerFilter?: FilterFn<Peer>;
20
25
  showSearchBar?: boolean;
26
+ cssClass?: string | string[];
21
27
  }
22
28
  export interface ISelectPeerModalState {
23
29
  defaultPeers: Peer[];
@@ -62,6 +68,7 @@ export declare class SelectPeerModal extends RxState<ISelectPeerModalState> impl
62
68
  set selectedTabIndex(value: number);
63
69
  get selectedTabIndex(): number;
64
70
  selectedPeer: string;
71
+ peerFilter: FilterFn<Peer>;
65
72
  title: string;
66
73
  canCancel: boolean;
67
74
  allowSelectDownPeer: boolean;
@@ -92,7 +99,7 @@ export declare class SelectPeerModal extends RxState<ISelectPeerModalState> impl
92
99
  protected updateFilteredPeer(event: any): void;
93
100
  protected markForCheck(): void;
94
101
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectPeerModal, [null, null, null, null, null, null, { optional: true; }]>;
95
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectPeerModal, "select-peer-modal", never, { "selectedTabIndex": { "alias": "selectedTabIndex"; "required": false; }; "selectedPeer": { "alias": "selectedPeer"; "required": false; }; "title": { "alias": "title"; "required": false; }; "canCancel": { "alias": "canCancel"; "required": false; }; "allowSelectDownPeer": { "alias": "allowSelectDownPeer"; "required": false; }; "showSetManuallyButton": { "alias": "showSetManuallyButton"; "required": false; }; "showSearchBar": { "alias": "showSearchBar"; "required": false; }; "tabGroupAnimationDuration": { "alias": "tabGroupAnimationDuration"; "required": false; }; "onRefresh": { "alias": "onRefresh"; "required": false; }; "defaultPeers": { "alias": "defaultPeers"; "required": false; }; }, {}, never, never, false, never>;
102
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectPeerModal, "select-peer-modal", never, { "selectedTabIndex": { "alias": "selectedTabIndex"; "required": false; }; "selectedPeer": { "alias": "selectedPeer"; "required": false; }; "peerFilter": { "alias": "peerFilter"; "required": false; }; "title": { "alias": "title"; "required": false; }; "canCancel": { "alias": "canCancel"; "required": false; }; "allowSelectDownPeer": { "alias": "allowSelectDownPeer"; "required": false; }; "showSetManuallyButton": { "alias": "showSetManuallyButton"; "required": false; }; "showSearchBar": { "alias": "showSearchBar"; "required": false; }; "tabGroupAnimationDuration": { "alias": "tabGroupAnimationDuration"; "required": false; }; "onRefresh": { "alias": "onRefresh"; "required": false; }; "defaultPeers": { "alias": "defaultPeers"; "required": false; }; }, {}, never, never, false, never>;
96
103
  static ngAcceptInputType_selectedTabIndex: unknown;
97
104
  static ngAcceptInputType_canCancel: unknown;
98
105
  static ngAcceptInputType_allowSelectDownPeer: 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.19.3",
5
+ "version": "18.19.5",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{