@sumaris-net/ngx-components 2.8.11 → 2.8.13
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/services/model/person.model.mjs +1 -1
- package/esm2022/src/app/core/services/model/referential.model.mjs +5 -5
- package/esm2022/src/app/core/services/pipes/person-to-string.pipe.mjs +1 -1
- package/esm2022/src/app/core/services/pipes/referential-to-string.pipe.mjs +4 -4
- package/esm2022/src/app/core/table/async-table.class.mjs +6 -13
- package/fesm2022/sumaris-net.ngx-components.mjs +12 -19
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/model/person.model.d.ts +4 -11
- package/src/app/core/services/model/referential.model.d.ts +2 -2
- package/src/app/core/services/pipes/person-to-string.pipe.d.ts +2 -2
- package/src/app/core/services/pipes/referential-to-string.pipe.d.ts +1 -0
- package/src/app/core/table/async-table.class.d.ts +2 -3
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
import { Moment } from 'moment';
|
|
2
2
|
import { ReferentialAsObjectOptions } from './referential.model';
|
|
3
|
-
import { Entity
|
|
3
|
+
import { Entity } from './entity.model';
|
|
4
4
|
import { Department } from './department.model';
|
|
5
5
|
export type UserProfileLabel = 'ADMIN' | 'USER' | 'SUPERVISOR' | 'GUEST';
|
|
6
6
|
export declare const PRIORITIZED_AUTHORITIES: Readonly<UserProfileLabel[]>;
|
|
7
|
-
export
|
|
8
|
-
firstName: string;
|
|
9
|
-
lastName: string;
|
|
10
|
-
email?: string;
|
|
11
|
-
department?: Department;
|
|
12
|
-
avatar?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare class Person<T extends Person<any> = Person<any>> extends Entity<T, number, ReferentialAsObjectOptions> implements IPerson {
|
|
7
|
+
export declare class Person<T extends Person<any> = Person<any>> extends Entity<T, number, ReferentialAsObjectOptions> {
|
|
15
8
|
static fromObject: (source: any, opts?: any) => Person;
|
|
16
9
|
firstName: string;
|
|
17
10
|
lastName: string;
|
|
@@ -34,10 +27,10 @@ export declare class PersonUtils {
|
|
|
34
27
|
static getMainProfile(profiles?: string[]): UserProfileLabel;
|
|
35
28
|
static getMainProfileIndex(profiles?: string[]): number;
|
|
36
29
|
static hasUpperOrEqualsProfile(actualProfiles: string[], expectedProfile: UserProfileLabel): boolean;
|
|
37
|
-
static personToString(obj: Person
|
|
30
|
+
static personToString(obj: Person, opts?: {
|
|
38
31
|
withDepartment?: boolean;
|
|
39
32
|
}): string;
|
|
40
|
-
static personsToString(data:
|
|
33
|
+
static personsToString(data: Person[], separator?: string, opts?: {
|
|
41
34
|
withDepartment?: boolean;
|
|
42
35
|
}): string;
|
|
43
36
|
static roleToProfile(role: string, defaultProfile?: UserProfileLabel): UserProfileLabel;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Moment } from 'moment';
|
|
2
2
|
import { Entity, EntityAsObjectOptions, IEntity } from './entity.model';
|
|
3
3
|
import { IconRef } from '../../../shared/types';
|
|
4
|
-
export declare function referentialToString(obj: Referential | any, properties?: string[]): string | undefined;
|
|
5
|
-
export declare function referentialsToString(values: Referential[], properties?: string[],
|
|
4
|
+
export declare function referentialToString(obj: Referential | any, properties?: string[], separator?: string): string | undefined;
|
|
5
|
+
export declare function referentialsToString(values: Referential[], properties?: string[], valueSeparator?: string, propertySeparator?: string): string;
|
|
6
6
|
export declare interface IStatus {
|
|
7
7
|
id: number;
|
|
8
8
|
icon?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { Person } from '../model/person.model';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class PersonToStringPipe implements PipeTransform {
|
|
5
|
-
transform(value: Person |
|
|
5
|
+
transform(value: Person | Person[], separator?: string, opts?: {
|
|
6
6
|
withDepartment?: boolean;
|
|
7
7
|
}): string;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<PersonToStringPipe, never>;
|
|
@@ -6,6 +6,7 @@ export declare class ReferentialToStringPipe implements PipeTransform {
|
|
|
6
6
|
transform(value: Referential | ReferentialRef | IReferentialRef | any, opts?: string[] | {
|
|
7
7
|
properties?: string[];
|
|
8
8
|
separator?: string;
|
|
9
|
+
propertySeparator?: string;
|
|
9
10
|
}): string;
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReferentialToStringPipe, never>;
|
|
11
12
|
static ɵpipe: i0.ɵɵPipeDeclaration<ReferentialToStringPipe, "referentialToString", false>;
|
|
@@ -92,7 +92,6 @@ export declare abstract class AppAsyncTable<T extends IEntity<T, ID>, F = any, I
|
|
|
92
92
|
get lastUserColumn(): string;
|
|
93
93
|
set dataSource(value: EntitiesAsyncTableDataSource<T, F, ID>);
|
|
94
94
|
get dataSource(): EntitiesAsyncTableDataSource<T, F, ID>;
|
|
95
|
-
set filter(value: F);
|
|
96
95
|
get filter(): F;
|
|
97
96
|
get empty(): boolean;
|
|
98
97
|
get selectedEntities(): T[];
|
|
@@ -204,7 +203,7 @@ export declare abstract class AppAsyncTable<T extends IEntity<T, ID>, F = any, I
|
|
|
204
203
|
setFilter(filter: F, opts?: {
|
|
205
204
|
emitEvent?: boolean;
|
|
206
205
|
permanentSelectionChangedPrevented?: boolean;
|
|
207
|
-
}): void
|
|
206
|
+
}): Promise<void>;
|
|
208
207
|
confirmAndAdd(event?: Event, row?: AsyncTableElement<T>): Promise<boolean>;
|
|
209
208
|
confirmAndBackward(event?: Event, row?: AsyncTableElement<T>): Promise<boolean>;
|
|
210
209
|
confirmAndForward(event?: Event, row?: AsyncTableElement<T>): Promise<boolean>;
|
|
@@ -383,5 +382,5 @@ export declare abstract class AppAsyncTable<T extends IEntity<T, ID>, F = any, I
|
|
|
383
382
|
private startCellValueChanges;
|
|
384
383
|
private stopCellValueChanges;
|
|
385
384
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppAsyncTable<any, any, any>, never>;
|
|
386
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AppAsyncTable<any, any, any>, never, never, { "settingsId": { "alias": "settingsId"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "i18nColumnPrefix": { "alias": "i18nColumnPrefix"; "required": false; }; "i18nColumnSuffix": { "alias": "i18nColumnSuffix"; "required": false; }; "autoLoad": { "alias": "autoLoad"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "inlineEdition": { "alias": "inlineEdition"; "required": false; }; "focusFirstColumn": { "alias": "focusFirstColumn"; "required": false; }; "confirmBeforeDelete": { "alias": "confirmBeforeDelete"; "required": false; }; "confirmBeforeCancel": { "alias": "confirmBeforeCancel"; "required": false; }; "undoableDeletion": { "alias": "undoableDeletion"; "required": false; }; "saveBeforeDelete": { "alias": "saveBeforeDelete"; "required": false; }; "keepEditedRowOnSave": { "alias": "keepEditedRowOnSave"; "required": false; }; "saveBeforeSort": { "alias": "saveBeforeSort"; "required": false; }; "saveBeforeFilter": { "alias": "saveBeforeFilter"; "required": false; }; "propagateRowError": { "alias": "propagateRowError"; "required": false; }; "permanentSelectionAllowed": { "alias": "permanentSelectionAllowed"; "required": false; }; "defaultSortBy": { "alias": "defaultSortBy"; "required": false; }; "defaultSortDirection": { "alias": "defaultSortDirection"; "required": false; }; "defaultPageSize": { "alias": "defaultPageSize"; "required": false; }; "defaultPageSizeOptions": { "alias": "defaultPageSizeOptions"; "required": false; }; "focusColumn": { "alias": "focusColumn"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "
|
|
385
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AppAsyncTable<any, any, any>, never, never, { "settingsId": { "alias": "settingsId"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "i18nColumnPrefix": { "alias": "i18nColumnPrefix"; "required": false; }; "i18nColumnSuffix": { "alias": "i18nColumnSuffix"; "required": false; }; "autoLoad": { "alias": "autoLoad"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "inlineEdition": { "alias": "inlineEdition"; "required": false; }; "focusFirstColumn": { "alias": "focusFirstColumn"; "required": false; }; "confirmBeforeDelete": { "alias": "confirmBeforeDelete"; "required": false; }; "confirmBeforeCancel": { "alias": "confirmBeforeCancel"; "required": false; }; "undoableDeletion": { "alias": "undoableDeletion"; "required": false; }; "saveBeforeDelete": { "alias": "saveBeforeDelete"; "required": false; }; "keepEditedRowOnSave": { "alias": "keepEditedRowOnSave"; "required": false; }; "saveBeforeSort": { "alias": "saveBeforeSort"; "required": false; }; "saveBeforeFilter": { "alias": "saveBeforeFilter"; "required": false; }; "propagateRowError": { "alias": "propagateRowError"; "required": false; }; "permanentSelectionAllowed": { "alias": "permanentSelectionAllowed"; "required": false; }; "defaultSortBy": { "alias": "defaultSortBy"; "required": false; }; "defaultSortDirection": { "alias": "defaultSortDirection"; "required": false; }; "defaultPageSize": { "alias": "defaultPageSize"; "required": false; }; "defaultPageSizeOptions": { "alias": "defaultPageSizeOptions"; "required": false; }; "focusColumn": { "alias": "focusColumn"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; }, { "onRefresh": "onRefresh"; "onOpenRow": "onOpenRow"; "onNewRow": "onNewRow"; "onStartEditingRow": "onStartEditingRow"; "onConfirmEditCreateRow": "onConfirmEditCreateRow"; "onCancelOrDeleteRow": "onCancelOrDeleteRow"; "onBeforeDeleteRows": "onBeforeDeleteRows"; "onBeforeCancelRows": "onBeforeCancelRows"; "onBeforeSave": "onBeforeSave"; "onAfterDeletedRows": "onAfterDeletedRows"; "onSort": "onSort"; "onDirty": "onDirty"; "onError": "onError"; }, never, never, false, never>;
|
|
387
386
|
}
|
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": "2.8.
|
|
5
|
+
"version": "2.8.13",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|