@sumaris-net/ngx-components 18.8.23 → 18.8.25

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.8.23",
4
+ "version": "18.8.25",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -38,6 +38,7 @@ export declare class LocalSettingsService extends StartableService<LocalSettings
38
38
  get locale(): string;
39
39
  get latLongFormat(): LatLongPattern;
40
40
  get usageMode(): UsageMode;
41
+ set usageMode(value: UsageMode);
41
42
  get mobile(): boolean;
42
43
  set mobile(value: boolean);
43
44
  get pageHistory(): HistoryPageReference[];
@@ -56,8 +56,8 @@ export declare abstract class EntityUtils {
56
56
  static getPropertyArrayAsObject: typeof AppPropertiesUtils.arrayAsObject;
57
57
  static copyIdAndUpdateDate<T extends Entity<any, any, any>>(source: T, target: T): void;
58
58
  static fillLocalIds<T extends IEntity<T, any>>(items: T[], sequenceFactory: (firstEntity: T, incrementSize: number) => Promise<number>): Promise<void>;
59
- static cleanIdAndUpdateDate<T extends IEntity<T, any>>(source: T): void;
60
- static cleanIdsAndUpdateDates<T extends IEntity<T, any>>(items: T[]): void;
59
+ static cleanIdAndUpdateDate<T extends IEntity<T, any>>(source: T, defaultValue?: any): void;
60
+ static cleanIdsAndUpdateDates<T extends IEntity<T, any>>(items: T[], defaultValue?: any): void;
61
61
  static sort<T extends IEntity<T, any> | any>(data: T[], sortBy?: keyof T | string, sortDirection?: SortDirection): T[];
62
62
  static sortComparator<T extends IEntity<T, any> | any>(sortBy?: keyof T | string, sortDirection?: SortDirection): (a: T, b: T) => number;
63
63
  static compare<T extends IEntity<T, any>>(value1: T, value2: T, direction: 1 | -1, checkAttribute?: keyof T): number;
@@ -235,7 +235,8 @@ export declare abstract class AppAsyncTable<T extends IEntity<T, ID>, F = any, I
235
235
  interactive?: boolean;
236
236
  }): Promise<void>;
237
237
  duplicateRow(event?: Event, row?: AsyncTableElement<T>, opts?: {
238
- skipProperties?: string[];
238
+ includedProperties?: string[];
239
+ excludedProperties?: string[];
239
240
  }): Promise<boolean>;
240
241
  /** Whether the number of selected elements matches the total number of rows. */
241
242
  isAllSelected(): boolean;
@@ -240,7 +240,8 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
240
240
  interactive?: boolean;
241
241
  }): void;
242
242
  duplicateRow(event?: Event, row?: TableElement<T>, opts?: {
243
- skipProperties?: string[];
243
+ includedProperties?: string[];
244
+ excludedProperties?: string[];
244
245
  }): Promise<boolean>;
245
246
  /** Whether the number of selected elements matches the total number of rows. */
246
247
  isAllSelected(): boolean;
@@ -1,12 +1,18 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { FileEvent } from '../upload-file/upload-file.model';
3
3
  import { TranslateService } from '@ngx-translate/core';
4
+ import { DisplayFn } from '../form/field.model';
4
5
  export declare class CsvUtils {
5
6
  static DEFAULT_SEPARATOR: string;
6
7
  static DEFAULT_ENCODING: string;
7
8
  static exportToFile(rows: object[], opts?: {
8
9
  filename?: string;
9
10
  headers?: string[];
11
+ includedProperties?: string[];
12
+ excludedProperties?: string[];
13
+ formatters?: {
14
+ [key: string]: DisplayFn;
15
+ };
10
16
  separator?: string;
11
17
  encoding?: string;
12
18
  type?: string;
@@ -54,6 +54,7 @@ export declare class AppImageGalleryComponent<T extends Image> implements OnInit
54
54
  showToolbar: boolean;
55
55
  showFabButton: boolean;
56
56
  showTitle: boolean;
57
+ showAddToolbarButton: boolean;
57
58
  showAddTextButton: boolean;
58
59
  showAddCardButton: boolean;
59
60
  showCardToolbar: boolean;
@@ -113,7 +114,7 @@ export declare class AppImageGalleryComponent<T extends Image> implements OnInit
113
114
  };
114
115
  protected markForCheck(): void;
115
116
  static ɵfac: i0.ɵɵFactoryDeclaration<AppImageGalleryComponent<any>, [null, null, null, null, null, { optional: true; }]>;
116
- static ɵcmp: i0.ɵɵComponentDeclaration<AppImageGalleryComponent<any>, "app-image-gallery", never, { "cardColor": { "alias": "cardColor"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "confirmBeforeDelete": { "alias": "confirmBeforeDelete"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; "showFabButton": { "alias": "showFabButton"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "showAddTextButton": { "alias": "showAddTextButton"; "required": false; }; "showAddCardButton": { "alias": "showAddCardButton"; "required": false; }; "showCardToolbar": { "alias": "showCardToolbar"; "required": false; }; "addButtonColor": { "alias": "addButtonColor"; "required": false; }; "addButtonText": { "alias": "addButtonText"; "required": false; }; "cardTemplate": { "alias": "cardTemplate"; "required": false; }; "imageSizes": { "alias": "imageSizes"; "required": false; }; "imageSizeQueryParam": { "alias": "imageSizeQueryParam"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; }, { "onBeforeDeleteRows": "onBeforeDeleteRows"; "onAfterAddRows": "onAfterAddRows"; "onAfterEditRow": "onAfterEditRow"; "click": "click"; }, never, never, false, never>;
117
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppImageGalleryComponent<any>, "app-image-gallery", never, { "cardColor": { "alias": "cardColor"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "confirmBeforeDelete": { "alias": "confirmBeforeDelete"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; "showFabButton": { "alias": "showFabButton"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "showAddToolbarButton": { "alias": "showAddToolbarButton"; "required": false; }; "showAddTextButton": { "alias": "showAddTextButton"; "required": false; }; "showAddCardButton": { "alias": "showAddCardButton"; "required": false; }; "showCardToolbar": { "alias": "showCardToolbar"; "required": false; }; "addButtonColor": { "alias": "addButtonColor"; "required": false; }; "addButtonText": { "alias": "addButtonText"; "required": false; }; "cardTemplate": { "alias": "cardTemplate"; "required": false; }; "imageSizes": { "alias": "imageSizes"; "required": false; }; "imageSizeQueryParam": { "alias": "imageSizeQueryParam"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; }, { "onBeforeDeleteRows": "onBeforeDeleteRows"; "onAfterAddRows": "onAfterAddRows"; "onAfterEditRow": "onAfterEditRow"; "click": "click"; }, never, never, false, never>;
117
118
  static ngAcceptInputType_debug: unknown;
118
119
  static ngAcceptInputType_disabled: unknown;
119
120
  static ngAcceptInputType_readOnly: unknown;
@@ -121,6 +122,7 @@ export declare class AppImageGalleryComponent<T extends Image> implements OnInit
121
122
  static ngAcceptInputType_showToolbar: unknown;
122
123
  static ngAcceptInputType_showFabButton: unknown;
123
124
  static ngAcceptInputType_showTitle: unknown;
125
+ static ngAcceptInputType_showAddToolbarButton: unknown;
124
126
  static ngAcceptInputType_showAddTextButton: unknown;
125
127
  static ngAcceptInputType_showAddCardButton: unknown;
126
128
  static ngAcceptInputType_showCardToolbar: 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.8.23",
5
+ "version": "18.8.25",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{