@sumaris-net/ngx-components 2.9.0-alpha2 → 2.9.0-alpha3
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/doc/changelog.md +3 -0
- package/esm2022/src/app/core/account/account.page.mjs +2 -1
- package/esm2022/src/app/core/auth/auth.form.mjs +2 -1
- package/esm2022/src/app/core/form/entity/entity-editor-modal.class.mjs +2 -1
- package/esm2022/src/app/core/form/entity/entity-editor.class.mjs +2 -1
- package/esm2022/src/app/core/form/entity/tab-editor.class.mjs +2 -1
- package/esm2022/src/app/core/form/form.class.mjs +4 -4
- package/esm2022/src/app/core/form/text-popover/text-popover.component.mjs +2 -1
- package/esm2022/src/app/core/home/home.mjs +2 -1
- package/esm2022/src/app/core/menu/menu.component.mjs +2 -1
- package/esm2022/src/app/core/menu/menu.service.mjs +2 -1
- package/esm2022/src/app/core/register/register.form.mjs +3 -3
- package/esm2022/src/app/core/services/config.service.mjs +2 -1
- package/esm2022/src/app/core/services/network.service.mjs +2 -1
- package/esm2022/src/app/core/services/platform.service.mjs +4 -3
- package/esm2022/src/app/core/settings/settings.page.mjs +2 -1
- package/esm2022/src/app/core/table/async-table.class.mjs +4 -3
- package/esm2022/src/app/core/table/entities-table-datasource.class.mjs +2 -1
- package/esm2022/src/app/core/table/table.class.mjs +4 -3
- package/esm2022/src/app/shared/form/field.component.mjs +2 -1
- package/esm2022/src/app/shared/functions.mjs +2 -1
- package/esm2022/src/app/shared/image/gallery/image-gallery.component.mjs +2 -1
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +2 -1
- package/esm2022/src/app/shared/material/boolean/material.boolean.mjs +2 -1
- package/esm2022/src/app/shared/material/datetime/material.date.mjs +2 -1
- package/esm2022/src/app/shared/material/datetime/material.dateshort.mjs +2 -1
- package/esm2022/src/app/shared/material/datetime/material.datetime.mjs +9 -8
- package/esm2022/src/app/shared/material/duration/material.duration.mjs +2 -1
- package/esm2022/src/app/shared/material/latlong/material.latlong.mjs +2 -1
- package/esm2022/src/app/shared/material/latlong/testing/latlong.test.mjs +2 -1
- package/esm2022/src/app/shared/material/swipe/material.swipe.mjs +2 -1
- package/esm2022/src/app/shared/pipes/form.pipes.mjs +39 -14
- package/esm2022/src/app/shared/pipes/pipes.module.mjs +6 -3
- package/esm2022/src/app/shared/toolbar/toolbar.mjs +2 -1
- package/esm2022/src/app/shared/upload-file/testing/upload-file.testing.mjs +2 -1
- package/esm2022/src/app/shared/validator/form-error-adapter.class.mjs +6 -6
- package/esm2022/src/app/shared/validator/validators.mjs +6 -8
- package/esm2022/src/app/social/job/progression/job-progression.icon.mjs +2 -1
- package/esm2022/src/app/social/message/message.modal.mjs +2 -1
- package/fesm2022/sumaris-net.ngx-components.mjs +126 -100
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +4 -4
- package/src/app/core/form/form.class.d.ts +3 -3
- package/src/app/core/table/async-table.class.d.ts +3 -3
- package/src/app/core/table/table.class.d.ts +3 -3
- package/src/app/shared/pipes/form.pipes.d.ts +15 -5
- package/src/app/shared/pipes/pipes.module.d.ts +1 -1
- package/src/app/shared/validator/form-error-adapter.class.d.ts +5 -5
- package/src/app/shared/validator/validators.d.ts +1 -5
- 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-
|
|
4
|
+
"version": "2.9.0-alpha3",
|
|
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
|
|
23
|
-
"@rx-angular/state": "~17.0
|
|
24
|
-
"@rx-angular/template": "~17.1
|
|
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,
|
|
7
|
+
import { FormErrorTranslator, FormErrorTranslatorOptions, 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,
|
|
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;
|
|
@@ -131,7 +131,7 @@ export declare class AppForm<T> implements IAppForm<T>, OnInit, OnDestroy, IForm
|
|
|
131
131
|
onlySelf?: boolean;
|
|
132
132
|
emitEvent?: boolean;
|
|
133
133
|
}): void;
|
|
134
|
-
|
|
134
|
+
translateFormPath(path: string): any;
|
|
135
135
|
protected getFormError(form: UntypedFormGroup, opts?: FormErrorTranslatorOptions): string;
|
|
136
136
|
protected getI18nFieldName(path: string): string;
|
|
137
137
|
protected registerSubscription(sub: Subscription): 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,
|
|
21
|
+
import { FormErrorTranslator, FormErrorTranslatorOptions, 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,
|
|
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?;
|
|
@@ -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
|
-
|
|
278
|
+
translateFormPath(path: string): string;
|
|
279
279
|
protected editRow(event: Event | undefined, row: AsyncTableElement<T>, opts?: {
|
|
280
280
|
focusColumn?: string;
|
|
281
281
|
}): Promise<boolean>;
|
|
@@ -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,
|
|
21
|
+
import { FormErrorTranslator, FormErrorTranslatorOptions, 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,
|
|
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?;
|
|
@@ -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
|
-
|
|
284
|
+
translateFormPath(path: string): string;
|
|
285
285
|
protected editRow(event: Event | undefined, row: TableElement<T>, opts?: {
|
|
286
286
|
focusColumn?: string;
|
|
287
287
|
}): boolean;
|
|
@@ -2,14 +2,14 @@ import { ChangeDetectorRef, OnDestroy, PipeTransform } from '@angular/core';
|
|
|
2
2
|
import { AbstractControl, UntypedFormArray, UntypedFormControl, UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { FormErrorTranslator, FormErrorTranslatorOptions } from '../validator/form-error-adapter.class';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
6
|
-
private
|
|
5
|
+
export declare class FormErrorPipe implements PipeTransform, OnDestroy {
|
|
6
|
+
private service;
|
|
7
7
|
private _ref;
|
|
8
|
-
|
|
8
|
+
private _value;
|
|
9
9
|
private _lastForm;
|
|
10
10
|
private _lastOptions;
|
|
11
11
|
private _onFormStatusChanges;
|
|
12
|
-
constructor(
|
|
12
|
+
constructor(service: FormErrorTranslator, _ref: ChangeDetectorRef);
|
|
13
13
|
transform(form: UntypedFormGroup, opts?: FormErrorTranslatorOptions): string;
|
|
14
14
|
ngOnDestroy(): void;
|
|
15
15
|
private _updateValue;
|
|
@@ -17,6 +17,16 @@ export declare class FormErrorTranslatePipe implements PipeTransform, OnDestroy
|
|
|
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
|
|
26
|
+
*/
|
|
27
|
+
export declare class FormErrorTranslatePipe extends FormErrorPipe {
|
|
28
|
+
constructor(service: FormErrorTranslator, _ref: ChangeDetectorRef);
|
|
29
|
+
transform(form: UntypedFormGroup, opts?: 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):
|
|
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,22 @@ 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
|
|
9
|
-
|
|
8
|
+
export interface IFormPathTranslator {
|
|
9
|
+
translateFormPath: (path: string) => string;
|
|
10
10
|
}
|
|
11
11
|
export interface FormErrorTranslatorOptions {
|
|
12
12
|
i18nPrefix?: string;
|
|
13
|
-
|
|
13
|
+
pathTranslator?: IFormPathTranslator;
|
|
14
14
|
separator?: string;
|
|
15
15
|
recursive?: boolean;
|
|
16
16
|
}
|
|
17
|
-
export declare class FormErrorTranslator implements
|
|
17
|
+
export declare class FormErrorTranslator implements IFormPathTranslator {
|
|
18
18
|
private translate;
|
|
19
19
|
private readonly errorI18nKeys;
|
|
20
20
|
constructor(translate: TranslateService, errorI18nKeys: ObjectMap<string>);
|
|
21
21
|
translateFormErrors(control: AbstractControl, opts?: FormErrorTranslatorOptions): string;
|
|
22
22
|
translateErrors(errors: FormErrors, opts?: FormErrorTranslatorOptions): string;
|
|
23
|
-
|
|
23
|
+
translateFormPath(path: string, opts?: FormErrorTranslatorOptions): string;
|
|
24
24
|
translateError(errorKey: string, errorContent?: any): any;
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorTranslator, [null, { optional: true; }]>;
|
|
26
26
|
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
|
-
|
|
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;
|
package/src/assets/manifest.json
CHANGED
|
@@ -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-
|
|
5
|
+
"version": "2.9.0-alpha3",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|