@sumaris-net/ngx-components 1.0.8 → 1.0.9
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/bundles/sumaris-net.ngx-components.umd.js +63 -31
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/services/account.service.js +2 -2
- package/esm2015/src/app/core/services/local-settings.service.js +5 -3
- package/esm2015/src/app/shared/pipes/form.pipes.js +56 -5
- package/esm2015/src/app/shared/pipes/translate-context.pipe.js +7 -28
- package/fesm2015/sumaris-net.ngx-components.js +62 -31
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/pipes/form.pipes.d.ts +14 -3
- package/src/app/shared/pipes/translate-context.pipe.d.ts +2 -7
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, PipeTransform } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { FormErrorTranslator, FormErrorTranslatorOptions } from '../validator/form-error-adapter.class';
|
|
4
|
-
export declare class FormErrorTranslatePipe implements PipeTransform {
|
|
4
|
+
export declare class FormErrorTranslatePipe implements PipeTransform, OnDestroy {
|
|
5
5
|
private adapter;
|
|
6
|
-
|
|
6
|
+
private _ref;
|
|
7
|
+
value: string;
|
|
8
|
+
private _lastForm;
|
|
9
|
+
private _lastOptions;
|
|
10
|
+
private _onFormStatusChange;
|
|
11
|
+
constructor(adapter: FormErrorTranslator, _ref: ChangeDetectorRef);
|
|
7
12
|
transform(form: FormGroup, opts?: FormErrorTranslatorOptions): string;
|
|
13
|
+
ngOnDestroy(): void;
|
|
14
|
+
private _updateValue;
|
|
15
|
+
/**
|
|
16
|
+
* Clean any existing subscription to change events
|
|
17
|
+
*/
|
|
18
|
+
private _dispose;
|
|
8
19
|
}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { TranslateContextService } from '../services/translate-context.service';
|
|
3
3
|
export declare class TranslateContextPipe implements PipeTransform {
|
|
4
4
|
private translate;
|
|
5
|
-
|
|
6
|
-
value: string;
|
|
7
|
-
lastKey: string | null;
|
|
8
|
-
lastSuffix: string | null;
|
|
9
|
-
lastParams: any[];
|
|
10
|
-
constructor(translate: TranslateContextService, _ref: ChangeDetectorRef);
|
|
5
|
+
constructor(translate: TranslateContextService);
|
|
11
6
|
transform(query: string, ...params: any[]): string;
|
|
12
7
|
}
|
|
13
8
|
export declare class TranslatablePipe implements PipeTransform {
|