@sumaris-net/ngx-components 1.20.4 → 1.20.7

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": "1.20.4",
4
+ "version": "1.20.7",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -6,6 +6,7 @@ export declare class CsvUtils {
6
6
  headers?: string[];
7
7
  separator?: string;
8
8
  encoding?: string;
9
+ type?: string;
9
10
  }): void;
10
11
  static parseFile(file: File, opts?: {
11
12
  separator?: string;
@@ -10,4 +10,9 @@ export declare class FilesUtils {
10
10
  static UTF8_BOM_CHAR: Uint8Array;
11
11
  static showUploadPopover<T>(popoverController: PopoverController, event: UIEvent, opts: UploadFilePopoverOptions<T>): Promise<OverlayEventDetail<UploadFile<T>[]>>;
12
12
  static readAsText(file: File, encoding?: string): Observable<FileEvent<string>>;
13
+ static writeTextToFile(content: string, opts?: {
14
+ filename?: string;
15
+ encoding?: string;
16
+ type?: string;
17
+ }): void;
13
18
  }
@@ -29,7 +29,7 @@ export declare class FormGetArrayPipe implements PipeTransform {
29
29
  export declare class FormGetGroupPipe implements PipeTransform {
30
30
  transform(form: AbstractControl, path?: Array<string | number> | string): FormGroup;
31
31
  }
32
- export declare class FormGetValuePipe implements PipeTransform {
32
+ export declare class FormGetValuePipe implements PipeTransform, OnDestroy {
33
33
  private adapter;
34
34
  private _ref;
35
35
  value: any;
@@ -1,14 +1,22 @@
1
- import { PipeTransform } from '@angular/core';
1
+ import { OnDestroy, PipeTransform } from '@angular/core';
2
2
  import { DateFormatPipe } from './date-format.pipe';
3
3
  import { FormFieldDefinition } from '../form/field.model';
4
+ import { TranslateService } from '@ngx-translate/core';
4
5
  export declare class PropertyGetPipe implements PipeTransform {
5
6
  transform(obj: any, args: string | {
6
7
  key: string;
7
8
  defaultValue?: any;
8
9
  }): any;
9
10
  }
10
- export declare class PropertyFormatPipe implements PipeTransform {
11
+ export declare class PropertyFormatPipe implements PipeTransform, OnDestroy {
11
12
  private dateFormat;
12
- constructor(dateFormat: DateFormatPipe);
13
+ private translate;
14
+ private _subscription;
15
+ private _i18nYes;
16
+ private _i18nNo;
17
+ constructor(dateFormat: DateFormatPipe, translate: TranslateService);
18
+ ngOnDestroy(): void;
13
19
  transform(obj: any, keyOrDefinition: string | FormFieldDefinition): string | Promise<string>;
20
+ get i18nYes(): string;
21
+ get i18nNo(): string;
14
22
  }