@sumaris-net/ngx-components 18.19.2 → 18.19.4
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/esm2022/src/app/core/peer/select-peer.modal.mjs +8 -3
- package/esm2022/src/app/core/services/model/peer.model.mjs +1 -1
- package/esm2022/src/app/core/services/network.service.mjs +3 -1
- package/esm2022/src/app/core/services/pipes/pipes.module.mjs +8 -4
- package/esm2022/src/app/core/services/pipes/referential-to-string.pipe.mjs +16 -1
- package/fesm2022/sumaris-net.ngx-components.mjs +31 -5
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/peer/select-peer.modal.d.ts +8 -1
- package/src/app/core/services/pipes/pipes.module.d.ts +1 -1
- package/src/app/core/services/pipes/referential-to-string.pipe.d.ts +12 -2
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -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;
|
|
@@ -6,6 +6,6 @@ import * as i4 from "./department-to-string.pipe";
|
|
|
6
6
|
import * as i5 from "./referential-to-string.pipe";
|
|
7
7
|
export declare class CorePipesModule {
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<CorePipesModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CorePipesModule, [typeof i1.IsOnFieldPipe, typeof i1.IsOnDeskPipe, typeof i2.PersonToStringPipe, typeof i3.IsLoginAccountPipe, typeof i3.AccountToStringPipe, typeof i4.DepartmentToStringPipe, typeof i5.ReferentialToStringPipe], never, [typeof i1.IsOnFieldPipe, typeof i1.IsOnDeskPipe, typeof i2.PersonToStringPipe, typeof i3.IsLoginAccountPipe, typeof i3.AccountToStringPipe, typeof i4.DepartmentToStringPipe, typeof i5.ReferentialToStringPipe]>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CorePipesModule, [typeof i1.IsOnFieldPipe, typeof i1.IsOnDeskPipe, typeof i2.PersonToStringPipe, typeof i3.IsLoginAccountPipe, typeof i3.AccountToStringPipe, typeof i4.DepartmentToStringPipe, typeof i5.ReferentialToStringPipe, typeof i5.ReferentialsToStringPipe], never, [typeof i1.IsOnFieldPipe, typeof i1.IsOnDeskPipe, typeof i2.PersonToStringPipe, typeof i3.IsLoginAccountPipe, typeof i3.AccountToStringPipe, typeof i4.DepartmentToStringPipe, typeof i5.ReferentialToStringPipe, typeof i5.ReferentialsToStringPipe]>;
|
|
10
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<CorePipesModule>;
|
|
11
11
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { IReferentialRef
|
|
2
|
+
import { IReferentialRef } from '../model/referential.model';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ReferentialToStringPipe implements PipeTransform {
|
|
5
5
|
constructor();
|
|
6
|
-
transform(value:
|
|
6
|
+
transform(value: IReferentialRef | IReferentialRef[] | any, opts?: string[] | {
|
|
7
7
|
properties?: string[];
|
|
8
8
|
separator?: string;
|
|
9
9
|
propertySeparator?: string;
|
|
@@ -11,3 +11,13 @@ export declare class ReferentialToStringPipe implements PipeTransform {
|
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReferentialToStringPipe, never>;
|
|
12
12
|
static ɵpipe: i0.ɵɵPipeDeclaration<ReferentialToStringPipe, "referentialToString", false>;
|
|
13
13
|
}
|
|
14
|
+
export declare class ReferentialsToStringPipe implements PipeTransform {
|
|
15
|
+
constructor();
|
|
16
|
+
transform(value: IReferentialRef[] | any, opts?: string[] | {
|
|
17
|
+
properties?: string[];
|
|
18
|
+
separator?: string;
|
|
19
|
+
propertySeparator?: string;
|
|
20
|
+
}): string;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReferentialsToStringPipe, never>;
|
|
22
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ReferentialsToStringPipe, "referentialsToString", false>;
|
|
23
|
+
}
|
package/src/assets/manifest.json
CHANGED
|
@@ -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.
|
|
5
|
+
"version": "18.19.4",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|