@sumaris-net/ngx-components 2.9.0-alpha2 → 2.9.0-alpha4

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.
Files changed (50) hide show
  1. package/doc/changelog.md +3 -0
  2. package/esm2022/src/app/core/account/account.page.mjs +2 -1
  3. package/esm2022/src/app/core/auth/auth.form.mjs +2 -1
  4. package/esm2022/src/app/core/form/entity/entity-editor-modal.class.mjs +2 -1
  5. package/esm2022/src/app/core/form/entity/entity-editor.class.mjs +2 -1
  6. package/esm2022/src/app/core/form/entity/tab-editor.class.mjs +2 -1
  7. package/esm2022/src/app/core/form/form.class.mjs +8 -8
  8. package/esm2022/src/app/core/form/text-popover/text-popover.component.mjs +2 -1
  9. package/esm2022/src/app/core/home/home.mjs +2 -1
  10. package/esm2022/src/app/core/menu/menu.component.mjs +2 -1
  11. package/esm2022/src/app/core/menu/menu.service.mjs +2 -1
  12. package/esm2022/src/app/core/register/register.form.mjs +3 -3
  13. package/esm2022/src/app/core/services/config.service.mjs +2 -1
  14. package/esm2022/src/app/core/services/network.service.mjs +2 -1
  15. package/esm2022/src/app/core/services/platform.service.mjs +4 -3
  16. package/esm2022/src/app/core/settings/settings.page.mjs +2 -1
  17. package/esm2022/src/app/core/table/async-table.class.mjs +4 -3
  18. package/esm2022/src/app/core/table/entities-table-datasource.class.mjs +2 -1
  19. package/esm2022/src/app/core/table/table.class.mjs +6 -5
  20. package/esm2022/src/app/shared/form/field.component.mjs +2 -1
  21. package/esm2022/src/app/shared/functions.mjs +2 -1
  22. package/esm2022/src/app/shared/image/gallery/image-gallery.component.mjs +2 -1
  23. package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +2 -1
  24. package/esm2022/src/app/shared/material/boolean/material.boolean.mjs +2 -1
  25. package/esm2022/src/app/shared/material/datetime/material.date.mjs +2 -1
  26. package/esm2022/src/app/shared/material/datetime/material.dateshort.mjs +2 -1
  27. package/esm2022/src/app/shared/material/datetime/material.datetime.mjs +9 -8
  28. package/esm2022/src/app/shared/material/duration/material.duration.mjs +2 -1
  29. package/esm2022/src/app/shared/material/latlong/material.latlong.mjs +2 -1
  30. package/esm2022/src/app/shared/material/latlong/testing/latlong.test.mjs +2 -1
  31. package/esm2022/src/app/shared/material/swipe/material.swipe.mjs +2 -1
  32. package/esm2022/src/app/shared/pipes/form.pipes.mjs +39 -14
  33. package/esm2022/src/app/shared/pipes/pipes.module.mjs +6 -3
  34. package/esm2022/src/app/shared/toolbar/toolbar.mjs +2 -1
  35. package/esm2022/src/app/shared/upload-file/testing/upload-file.testing.mjs +2 -1
  36. package/esm2022/src/app/shared/validator/form-error-adapter.class.mjs +10 -6
  37. package/esm2022/src/app/shared/validator/validators.mjs +6 -8
  38. package/esm2022/src/app/social/job/progression/job-progression.icon.mjs +2 -1
  39. package/esm2022/src/app/social/message/message.modal.mjs +2 -1
  40. package/fesm2022/sumaris-net.ngx-components.mjs +136 -106
  41. package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
  42. package/package.json +4 -4
  43. package/src/app/core/form/form.class.d.ts +6 -6
  44. package/src/app/core/table/async-table.class.d.ts +5 -5
  45. package/src/app/core/table/table.class.d.ts +5 -5
  46. package/src/app/shared/pipes/form.pipes.d.ts +17 -7
  47. package/src/app/shared/pipes/pipes.module.d.ts +1 -1
  48. package/src/app/shared/validator/form-error-adapter.class.d.ts +26 -8
  49. package/src/app/shared/validator/validators.d.ts +1 -5
  50. package/src/assets/manifest.json +1 -1
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.9.0-alpha2",
4
+ "version": "2.9.0-alpha4",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -19,9 +19,9 @@
19
19
  "@noble/ed25519": "^1.7.3",
20
20
  "@polkadot/util": "~12.6.2",
21
21
  "@polkadot/util-crypto": "~12.6.2",
22
- "@rx-angular/cdk": "~17.0.1",
23
- "@rx-angular/state": "~17.0.1",
24
- "@rx-angular/template": "~17.1.0",
22
+ "@rx-angular/cdk": "~17.1.0",
23
+ "@rx-angular/state": "~17.2.0",
24
+ "@rx-angular/template": "~17.3.1",
25
25
  "clone": "~2.1.2",
26
26
  "@maskito/angular": "~2.0.2",
27
27
  "@maskito/core": "~2.0.2",
@@ -4,11 +4,11 @@ import { BehaviorSubject, Subject, Subscription } from 'rxjs';
4
4
  import { IAppForm } from './form.utils';
5
5
  import { LocalSettingsService } from '../services/local-settings.service';
6
6
  import { WaitForOptions } from '../../shared/observables';
7
- import { FormErrorTranslator, FormErrorTranslatorOptions, IFormControlPathTranslator } from '../../shared/validator/form-error-adapter.class';
7
+ import { FormErrorTranslateOptions, FormErrorTranslator, IFormPathTranslator } from '../../shared/validator/form-error-adapter.class';
8
8
  import { TranslateService } from '@ngx-translate/core';
9
9
  import { MatAutocompleteConfigHolder, MatAutocompleteFieldAddOptions, MatAutocompleteFieldConfig } from '../../shared/material/autocomplete/material.autocomplete.config';
10
10
  import * as i0 from "@angular/core";
11
- export declare class AppForm<T> implements IAppForm<T>, OnInit, OnDestroy, IFormControlPathTranslator {
11
+ export declare class AppForm<T> implements IAppForm<T>, OnInit, OnDestroy, IFormPathTranslator {
12
12
  private _subscription;
13
13
  protected _form: UntypedFormGroup;
14
14
  protected _enabled: boolean;
@@ -55,7 +55,7 @@ export declare class AppForm<T> implements IAppForm<T>, OnInit, OnDestroy, IForm
55
55
  get destroyed(): boolean;
56
56
  debug: boolean;
57
57
  tabindex: number;
58
- errorTranslatorOptions: FormErrorTranslatorOptions;
58
+ formErrorTranslateOptions: FormErrorTranslateOptions;
59
59
  set form(value: UntypedFormGroup);
60
60
  get form(): UntypedFormGroup;
61
61
  onCancel: EventEmitter<any>;
@@ -131,8 +131,8 @@ export declare class AppForm<T> implements IAppForm<T>, OnInit, OnDestroy, IForm
131
131
  onlySelf?: boolean;
132
132
  emitEvent?: boolean;
133
133
  }): void;
134
- translateControlPath(path: string): any;
135
- protected getFormError(form: UntypedFormGroup, opts?: FormErrorTranslatorOptions): string;
134
+ translateFormPath(path: string): any;
135
+ protected getFormError(form: UntypedFormGroup, opts?: FormErrorTranslateOptions): string;
136
136
  protected getI18nFieldName(path: string): string;
137
137
  protected registerSubscription(sub: Subscription): void;
138
138
  protected unregisterSubscription(sub: Subscription): void;
@@ -143,5 +143,5 @@ export declare class AppForm<T> implements IAppForm<T>, OnInit, OnDestroy, IForm
143
143
  protected markForCheck(): void;
144
144
  private setLoading;
145
145
  static ɵfac: i0.ɵɵFactoryDeclaration<AppForm<any>, never>;
146
- static ɵdir: i0.ɵɵDirectiveDeclaration<AppForm<any>, never, never, { "debug": { "alias": "debug"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "errorTranslatorOptions": { "alias": "errorTranslatorOptions"; "required": false; }; "form": { "alias": "form"; "required": false; }; }, { "onCancel": "onCancel"; "onSubmit": "onSubmit"; }, never, never, false, never>;
146
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AppForm<any>, never, never, { "debug": { "alias": "debug"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "formErrorTranslateOptions": { "alias": "formErrorTranslateOptions"; "required": false; }; "form": { "alias": "form"; "required": false; }; }, { "onCancel": "onCancel"; "onSubmit": "onSubmit"; }, never, never, false, never>;
147
147
  }
@@ -18,12 +18,12 @@ import { WaitForOptions } from '../../shared/observables';
18
18
  import { ShowToastOptions } from '../../shared/toast/toasts';
19
19
  import { CdkColumnDef } from '@angular/cdk/table';
20
20
  import { LoadResult } from '../../shared/services/entity-service.class';
21
- import { FormErrorTranslator, FormErrorTranslatorOptions, IFormControlPathTranslator } from '../../shared/validator/form-error-adapter.class';
21
+ import { FormErrorTranslateOptions, FormErrorTranslator, IFormPathTranslator } from '../../shared/validator/form-error-adapter.class';
22
22
  import { SaveActionType } from './table.model';
23
23
  import { AsyncTableElement } from '@e-is/ngx-material-table';
24
24
  import { EntitiesAsyncTableDataSource } from './entities-async-table-datasource.class';
25
25
  import * as i0 from "@angular/core";
26
- export declare abstract class AppAsyncTable<T extends IEntity<T, ID>, F = any, ID = number> implements OnInit, OnDestroy, AfterViewInit, IAppForm, CanSave, IFormControlPathTranslator {
26
+ export declare abstract class AppAsyncTable<T extends IEntity<T, ID>, F = any, ID = number> implements OnInit, OnDestroy, AfterViewInit, IAppForm, CanSave, IFormPathTranslator {
27
27
  protected columns: string[];
28
28
  protected _dataSource?: EntitiesAsyncTableDataSource<T, F, ID>;
29
29
  private _filter?;
@@ -50,7 +50,7 @@ export declare abstract class AppAsyncTable<T extends IEntity<T, ID>, F = any, I
50
50
  displayedColumns: string[];
51
51
  totalRowCount: number | null;
52
52
  visibleRowCount: number;
53
- errorTranslatorOptions: FormErrorTranslatorOptions;
53
+ errorTranslatorOptions: FormErrorTranslateOptions;
54
54
  readonly readySubject: BehaviorSubject<boolean>;
55
55
  readonly loadingSubject: BehaviorSubject<boolean>;
56
56
  readonly savingSubject: BehaviorSubject<boolean>;
@@ -275,7 +275,7 @@ export declare abstract class AppAsyncTable<T extends IEntity<T, ID>, F = any, I
275
275
  doRefresh(event?: CompletableEvent): void;
276
276
  getCurrentColumns(): ColumnItem[];
277
277
  escapeEditingRow(event?: Event, row?: AsyncTableElement<T>): Promise<void>;
278
- translateControlPath(path: string): string;
278
+ translateFormPath(path: string): string;
279
279
  protected editRow(event: Event | undefined, row: AsyncTableElement<T>, opts?: {
280
280
  focusColumn?: string;
281
281
  }): Promise<boolean>;
@@ -343,7 +343,7 @@ export declare abstract class AppAsyncTable<T extends IEntity<T, ID>, F = any, I
343
343
  protected resetError(opts?: {
344
344
  emitEvent?: boolean;
345
345
  }): void;
346
- protected getRowError(row?: AsyncTableElement<T>, opts?: FormErrorTranslatorOptions): string;
346
+ protected getRowError(row?: AsyncTableElement<T>, opts?: FormErrorTranslateOptions): string;
347
347
  protected setError(value: string, opts?: {
348
348
  emitEvent?: boolean;
349
349
  }): void;
@@ -18,12 +18,12 @@ import { WaitForOptions } from '../../shared/observables';
18
18
  import { ShowToastOptions } from '../../shared/toast/toasts';
19
19
  import { CdkColumnDef } from '@angular/cdk/table';
20
20
  import { LoadResult } from '../../shared/services/entity-service.class';
21
- import { FormErrorTranslator, FormErrorTranslatorOptions, IFormControlPathTranslator } from '../../shared/validator/form-error-adapter.class';
21
+ import { FormErrorTranslateOptions, FormErrorTranslator, IFormPathTranslator } from '../../shared/validator/form-error-adapter.class';
22
22
  import { SaveActionType } from './table.model';
23
23
  import { MatPaginator } from '@angular/material/paginator';
24
24
  import { MatTable } from '@angular/material/table';
25
25
  import * as i0 from "@angular/core";
26
- export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = number> implements OnInit, OnDestroy, AfterViewInit, IAppForm, CanSave, IFormControlPathTranslator {
26
+ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = number> implements OnInit, OnDestroy, AfterViewInit, IAppForm, CanSave, IFormPathTranslator {
27
27
  protected columns: string[];
28
28
  protected _dataSource?: EntitiesTableDataSource<T, F, ID>;
29
29
  private _filter?;
@@ -50,7 +50,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
50
50
  displayedColumns: string[];
51
51
  totalRowCount: number | null;
52
52
  visibleRowCount: number;
53
- errorTranslatorOptions: FormErrorTranslatorOptions;
53
+ errorTranslateOptions: FormErrorTranslateOptions;
54
54
  readonly readySubject: BehaviorSubject<boolean>;
55
55
  readonly loadingSubject: BehaviorSubject<boolean>;
56
56
  readonly savingSubject: BehaviorSubject<boolean>;
@@ -281,7 +281,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
281
281
  doRefresh(event?: CompletableEvent): void;
282
282
  getCurrentColumns(): ColumnItem[];
283
283
  escapeEditingRow(event?: Event, row?: TableElement<T>): void;
284
- translateControlPath(path: string): string;
284
+ translateFormPath(path: string): string;
285
285
  protected editRow(event: Event | undefined, row: TableElement<T>, opts?: {
286
286
  focusColumn?: string;
287
287
  }): boolean;
@@ -349,7 +349,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
349
349
  protected resetError(opts?: {
350
350
  emitEvent?: boolean;
351
351
  }): void;
352
- protected getRowError(row?: TableElement<T>, opts?: FormErrorTranslatorOptions): string;
352
+ protected getRowError(row?: TableElement<T>, opts?: FormErrorTranslateOptions): string;
353
353
  protected setError(value: string, opts?: {
354
354
  emitEvent?: boolean;
355
355
  }): void;
@@ -1,22 +1,32 @@
1
1
  import { ChangeDetectorRef, OnDestroy, PipeTransform } from '@angular/core';
2
2
  import { AbstractControl, UntypedFormArray, UntypedFormControl, UntypedFormGroup } from '@angular/forms';
3
- import { FormErrorTranslator, FormErrorTranslatorOptions } from '../validator/form-error-adapter.class';
3
+ import { FormErrorTranslateOptions, FormErrorTranslator, FormErrorTranslatorOptions } from '../validator/form-error-adapter.class';
4
4
  import * as i0 from "@angular/core";
5
- export declare class FormErrorTranslatePipe implements PipeTransform, OnDestroy {
6
- private adapter;
5
+ export declare class FormErrorPipe implements PipeTransform, OnDestroy {
6
+ private service;
7
7
  private _ref;
8
- value: string;
8
+ private _value;
9
9
  private _lastForm;
10
10
  private _lastOptions;
11
11
  private _onFormStatusChanges;
12
- constructor(adapter: FormErrorTranslator, _ref: ChangeDetectorRef);
13
- transform(form: UntypedFormGroup, opts?: FormErrorTranslatorOptions): string;
12
+ constructor(service: FormErrorTranslator, _ref: ChangeDetectorRef);
13
+ transform(form: UntypedFormGroup, opts?: FormErrorTranslateOptions): string;
14
14
  ngOnDestroy(): void;
15
15
  private _updateValue;
16
16
  /**
17
17
  * Clean any existing subscription to change events
18
18
  */
19
19
  private _dispose;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorPipe, never>;
21
+ static ɵpipe: i0.ɵɵPipeDeclaration<FormErrorPipe, "formError", false>;
22
+ }
23
+ /**
24
+ * Same a FormErrorPipe
25
+ * @deprecated use `formError` instead
26
+ */
27
+ export declare class FormErrorTranslatePipe extends FormErrorPipe {
28
+ constructor(service: FormErrorTranslator, _ref: ChangeDetectorRef);
29
+ transform(form: UntypedFormGroup, opts?: FormErrorTranslateOptions | FormErrorTranslatorOptions): string;
20
30
  static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorTranslatePipe, never>;
21
31
  static ɵpipe: i0.ɵɵPipeDeclaration<FormErrorTranslatePipe, "translateFormError", false>;
22
32
  }
@@ -48,7 +58,7 @@ export declare class FormGetValuePipe implements PipeTransform, OnDestroy {
48
58
  private _onControlValueChanges;
49
59
  private _onControlStatusChanges;
50
60
  constructor(_ref: ChangeDetectorRef);
51
- transform(form: AbstractControl, path?: Array<string | number> | string, listenStatusChanges?: boolean): any;
61
+ transform<T = any>(form: AbstractControl, path?: Array<string | number> | string, listenStatusChanges?: boolean): T;
52
62
  ngOnDestroy(): void;
53
63
  /**
54
64
  * Clean any existing subscription to change events
@@ -25,6 +25,6 @@ import * as i23 from "@ionic/angular";
25
25
  import * as i24 from "@ngx-translate/core";
26
26
  export declare class SharedPipesModule {
27
27
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedPipesModule, never>;
28
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedPipesModule, [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, typeof i2.DateFormatPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i5.DateFromNowPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayLastPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i1.BooleanFormatPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i17.MatColorPipe, typeof i18.AsAnyPipe, typeof i18.AsArrayPipe, typeof i18.AsObservablePipe, typeof i18.AsFloatLabelTypePipe, typeof i19.MaskitoPlaceholderPipe, typeof i20.IsSelectedPipe, typeof i20.IsNotEmptySelectionPipe, typeof i20.IsEmptySelectionPipe, typeof i20.SelectionLengthPipe, typeof i20.IsMultipleSelectionPipe, typeof i20.IsSingleSelectionPipe, typeof i21.BadgeNumberPipe], [typeof i22.CommonModule, typeof i23.IonicModule, typeof i24.TranslateModule], [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, typeof i2.DateFormatPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i5.DateFromNowPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayLastPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i1.BooleanFormatPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i17.MatColorPipe, typeof i18.AsAnyPipe, typeof i18.AsArrayPipe, typeof i18.AsObservablePipe, typeof i18.AsFloatLabelTypePipe, typeof i19.MaskitoPlaceholderPipe, typeof i20.IsSelectedPipe, typeof i20.IsNotEmptySelectionPipe, typeof i20.IsEmptySelectionPipe, typeof i20.SelectionLengthPipe, typeof i20.IsMultipleSelectionPipe, typeof i20.IsSingleSelectionPipe, typeof i21.BadgeNumberPipe]>;
28
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedPipesModule, [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, typeof i2.DateFormatPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i5.DateFromNowPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayLastPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i1.BooleanFormatPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorPipe, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i17.MatColorPipe, typeof i18.AsAnyPipe, typeof i18.AsArrayPipe, typeof i18.AsObservablePipe, typeof i18.AsFloatLabelTypePipe, typeof i19.MaskitoPlaceholderPipe, typeof i20.IsSelectedPipe, typeof i20.IsNotEmptySelectionPipe, typeof i20.IsEmptySelectionPipe, typeof i20.SelectionLengthPipe, typeof i20.IsMultipleSelectionPipe, typeof i20.IsSingleSelectionPipe, typeof i21.BadgeNumberPipe], [typeof i22.CommonModule, typeof i23.IonicModule, typeof i24.TranslateModule], [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, typeof i2.DateFormatPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i5.DateFromNowPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayLastPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i1.BooleanFormatPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorPipe, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i17.MatColorPipe, typeof i18.AsAnyPipe, typeof i18.AsArrayPipe, typeof i18.AsObservablePipe, typeof i18.AsFloatLabelTypePipe, typeof i19.MaskitoPlaceholderPipe, typeof i20.IsSelectedPipe, typeof i20.IsNotEmptySelectionPipe, typeof i20.IsEmptySelectionPipe, typeof i20.SelectionLengthPipe, typeof i20.IsMultipleSelectionPipe, typeof i20.IsSingleSelectionPipe, typeof i21.BadgeNumberPipe]>;
29
29
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedPipesModule>;
30
30
  }
@@ -5,22 +5,40 @@ import { ObjectMap } from '../types';
5
5
  import { FormErrors } from '../forms';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare const APP_FORM_ERROR_I18N_KEYS: InjectionToken<ObjectMap<string>>;
8
- export interface IFormControlPathTranslator {
9
- translateControlPath: (controlPath: string) => string;
8
+ export interface IFormPathTranslator {
9
+ translateFormPath: (path: string) => string;
10
10
  }
11
- export interface FormErrorTranslatorOptions {
11
+ export interface FormErrorTranslateOptions {
12
12
  i18nPrefix?: string;
13
- controlPathTranslator?: IFormControlPathTranslator;
13
+ pathTranslator?: IFormPathTranslator;
14
14
  separator?: string;
15
15
  recursive?: boolean;
16
16
  }
17
- export declare class FormErrorTranslator implements IFormControlPathTranslator {
17
+ /**
18
+ * @deprecated use IFormPathTranslator instead
19
+ */
20
+ export interface IFormControlPathTranslator {
21
+ /**
22
+ * @Deprecated use 'translateControlPath' from IFormPathTranslator interface
23
+ */
24
+ translateControlPath: (path: string) => string;
25
+ }
26
+ /**
27
+ * @Deprecated use 'FormErrorTranslateOptions' instead
28
+ */
29
+ export interface FormErrorTranslatorOptions extends FormErrorTranslateOptions {
30
+ /**
31
+ * @Deprecated use 'pathTranslator' instead
32
+ */
33
+ controlPathTranslator?: IFormControlPathTranslator;
34
+ }
35
+ export declare class FormErrorTranslator implements IFormPathTranslator {
18
36
  private translate;
19
37
  private readonly errorI18nKeys;
20
38
  constructor(translate: TranslateService, errorI18nKeys: ObjectMap<string>);
21
- translateFormErrors(control: AbstractControl, opts?: FormErrorTranslatorOptions): string;
22
- translateErrors(errors: FormErrors, opts?: FormErrorTranslatorOptions): string;
23
- translateControlPath(path: string, opts?: FormErrorTranslatorOptions): string;
39
+ translateFormErrors(control: AbstractControl, opts?: FormErrorTranslateOptions | FormErrorTranslatorOptions): string;
40
+ translateErrors(errors: FormErrors, opts?: FormErrorTranslateOptions): string;
41
+ translateFormPath(path: string, opts?: FormErrorTranslateOptions | FormErrorTranslatorOptions): string;
24
42
  translateError(errorKey: string, errorContent?: any): any;
25
43
  static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorTranslator, [null, { optional: true; }]>;
26
44
  static ɵprov: i0.ɵɵInjectableDeclaration<FormErrorTranslator>;
@@ -18,7 +18,7 @@ export declare class SharedValidators {
18
18
  dateMinDuration: string;
19
19
  dateMaxDuration: string;
20
20
  maxDecimals: string;
21
- double: string;
21
+ decimal: string;
22
22
  integer: string;
23
23
  precision: string;
24
24
  email: string;
@@ -35,10 +35,6 @@ export declare class SharedValidators {
35
35
  static empty(control: UntypedFormControl): ValidationErrors | null;
36
36
  static pubkey(control: UntypedFormControl): ValidationErrors | null;
37
37
  static integer(control: UntypedFormControl): ValidationErrors | null;
38
- /**
39
- * @deprecated use decimal
40
- */
41
- static double: typeof SharedValidators.decimal;
42
38
  static decimal(opts?: {
43
39
  maxDecimals?: number;
44
40
  }): ValidatorFn;
@@ -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.9.0-alpha2",
5
+ "version": "2.9.0-alpha4",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{