@sumaris-net/ngx-components 0.25.14 → 0.25.15

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": "0.25.14",
4
+ "version": "0.25.15",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -20,7 +20,7 @@ import { CompletableEvent } from '../../shared/events';
20
20
  import { ShowToastOptions } from '../../shared/toasts';
21
21
  import { CdkColumnDef } from '@angular/cdk/table';
22
22
  import { LoadResult } from '../../shared/services/entity-service.class';
23
- import { FormErrorAdapter, IFormControlPathTranslateService } from '../../shared/validator/form-error-adapter.class';
23
+ import { FormErrorAdapter, FormErrorTranslateOptions, IFormControlPathTranslateService } from '../../shared/validator/form-error-adapter.class';
24
24
  export declare const SETTINGS_DISPLAY_COLUMNS = "displayColumns";
25
25
  export declare const SETTINGS_SORTED_COLUMN = "sortedColumn";
26
26
  export declare const SETTINGS_FILTER = "filter";
@@ -70,6 +70,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
70
70
  displayedColumns: string[];
71
71
  totalRowCount: number | null;
72
72
  visibleRowCount: number;
73
+ translateErrorOptions: FormErrorTranslateOptions;
73
74
  loadingSubject: BehaviorSubject<boolean>;
74
75
  savingSubject: BehaviorSubject<boolean>;
75
76
  dirtySubject: BehaviorSubject<boolean>;
@@ -1,8 +1,8 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
- import { FormErrorAdapter, FormErrorAdapterOptions } from '../validator/form-error-adapter.class';
3
+ import { FormErrorAdapter, FormErrorTranslateOptions } from '../validator/form-error-adapter.class';
4
4
  export declare class FormErrorTranslatePipe implements PipeTransform {
5
5
  private adapter;
6
6
  constructor(adapter: FormErrorAdapter);
7
- transform(form: FormGroup, opts?: FormErrorAdapterOptions): string;
7
+ transform(form: FormGroup, opts?: FormErrorTranslateOptions): string;
8
8
  }
@@ -6,7 +6,7 @@ export declare const APP_FORM_ERROR_I18N_KEYS: InjectionToken<ObjectMap<string>>
6
6
  export interface IFormControlPathTranslateService {
7
7
  translateControlPath: (controlPath: string) => string;
8
8
  }
9
- export interface FormErrorAdapterOptions {
9
+ export interface FormErrorTranslateOptions {
10
10
  i18nPrefix?: string;
11
11
  pathTranslateService?: IFormControlPathTranslateService;
12
12
  separator?: string;
@@ -16,7 +16,7 @@ export declare class FormErrorAdapter implements IFormControlPathTranslateServic
16
16
  private translate;
17
17
  private readonly errorI18nKeys;
18
18
  constructor(translate: TranslateService, errorI18nKeys: ObjectMap<string>);
19
- translateErrors(control: AbstractControl, opts?: FormErrorAdapterOptions): string;
20
- translateControlPath(path: string, opts?: FormErrorAdapterOptions): string;
19
+ translateErrors(control: AbstractControl, opts?: FormErrorTranslateOptions): string;
20
+ translateControlPath(path: string, opts?: FormErrorTranslateOptions): string;
21
21
  translateError(errorKey: string, errorContent?: any): any;
22
22
  }