@sumaris-net/ngx-components 2.8.11-rc1 → 2.8.11

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.8.11-rc1",
4
+ "version": "2.8.11",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -1,10 +1,17 @@
1
1
  import { Moment } from 'moment';
2
2
  import { ReferentialAsObjectOptions } from './referential.model';
3
- import { Entity } from './entity.model';
3
+ import { Entity, IEntity } 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 declare class Person<T extends Person<any> = Person<any>> extends Entity<T, number, ReferentialAsObjectOptions> {
7
+ export interface IPerson extends IEntity<Person> {
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 {
8
15
  static fromObject: (source: any, opts?: any) => Person;
9
16
  firstName: string;
10
17
  lastName: string;
@@ -27,10 +34,10 @@ export declare class PersonUtils {
27
34
  static getMainProfile(profiles?: string[]): UserProfileLabel;
28
35
  static getMainProfileIndex(profiles?: string[]): number;
29
36
  static hasUpperOrEqualsProfile(actualProfiles: string[], expectedProfile: UserProfileLabel): boolean;
30
- static personToString(obj: Person, opts?: {
37
+ static personToString(obj: Person | IPerson, opts?: {
31
38
  withDepartment?: boolean;
32
39
  }): string;
33
- static personsToString(data: Person[], separator?: string, opts?: {
40
+ static personsToString(data: (Person | IPerson)[], separator?: string, opts?: {
34
41
  withDepartment?: boolean;
35
42
  }): string;
36
43
  static roleToProfile(role: string, defaultProfile?: UserProfileLabel): UserProfileLabel;
@@ -1,8 +1,8 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { Person } from '../model/person.model';
2
+ import { IPerson, 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 | Person[], separator?: string, opts?: {
5
+ transform(value: Person | IPerson | (Person | IPerson)[], separator?: string, opts?: {
6
6
  withDepartment?: boolean;
7
7
  }): string;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<PersonToStringPipe, never>;
@@ -92,6 +92,7 @@ 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);
95
96
  get filter(): F;
96
97
  get empty(): boolean;
97
98
  get selectedEntities(): T[];
@@ -203,7 +204,7 @@ export declare abstract class AppAsyncTable<T extends IEntity<T, ID>, F = any, I
203
204
  setFilter(filter: F, opts?: {
204
205
  emitEvent?: boolean;
205
206
  permanentSelectionChangedPrevented?: boolean;
206
- }): Promise<void>;
207
+ }): void;
207
208
  confirmAndAdd(event?: Event, row?: AsyncTableElement<T>): Promise<boolean>;
208
209
  confirmAndBackward(event?: Event, row?: AsyncTableElement<T>): Promise<boolean>;
209
210
  confirmAndForward(event?: Event, row?: AsyncTableElement<T>): Promise<boolean>;
@@ -382,5 +383,5 @@ export declare abstract class AppAsyncTable<T extends IEntity<T, ID>, F = any, I
382
383
  private startCellValueChanges;
383
384
  private stopCellValueChanges;
384
385
  static ɵfac: i0.ɵɵFactoryDeclaration<AppAsyncTable<any, any, any>, never>;
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>;
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; }; "filter": { "alias": "filter"; "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>;
386
387
  }
@@ -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.10",
5
+ "version": "2.8.11",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{