@sumaris-net/ngx-components 0.27.8 → 0.27.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 +6 -4
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/doc/changelog.md +8 -0
- package/esm2015/src/app/core/form/entity-editor.class.js +6 -6
- package/esm2015/src/app/core/form/form.class.js +8 -4
- package/esm2015/src/app/shared/validator/validators.js +1 -2
- package/fesm2015/sumaris-net.ngx-components.js +11 -9
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/form.class.d.ts +4 -2
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -6,12 +6,14 @@ import { LocalSettingsService } from '../services/local-settings.service';
|
|
|
6
6
|
import { MatAutocompleteConfigHolder, MatAutocompleteFieldAddOptions, MatAutocompleteFieldConfig } from '../../shared/material/autocomplete/material.autocomplete';
|
|
7
7
|
import { WaitForOptions } from '../../shared/observables';
|
|
8
8
|
import { FormErrorTranslator, FormErrorTranslatorOptions, IFormControlPathTranslator } from '../../shared/validator/form-error-adapter.class';
|
|
9
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
9
10
|
export declare abstract class AppForm<T> implements IAppForm, OnInit, OnDestroy, IFormControlPathTranslator {
|
|
10
11
|
autocompleteHelper: MatAutocompleteConfigHolder;
|
|
11
12
|
autocompleteFields: {
|
|
12
13
|
[key: string]: MatAutocompleteFieldConfig;
|
|
13
14
|
};
|
|
14
15
|
error: string;
|
|
16
|
+
protected translate: TranslateService;
|
|
15
17
|
protected settings: LocalSettingsService;
|
|
16
18
|
protected errorTranslator: FormErrorTranslator;
|
|
17
19
|
protected _enable: boolean;
|
|
@@ -108,9 +110,9 @@ export declare abstract class AppForm<T> implements IAppForm, OnInit, OnDestroy,
|
|
|
108
110
|
onlySelf?: boolean;
|
|
109
111
|
emitEvent?: boolean;
|
|
110
112
|
}): void;
|
|
111
|
-
translateControlPath(path: string):
|
|
113
|
+
translateControlPath(path: string): any;
|
|
112
114
|
protected getFormError(form: FormGroup, opts?: FormErrorTranslatorOptions): string;
|
|
113
|
-
protected
|
|
115
|
+
protected getI18nFieldName(path: string): string;
|
|
114
116
|
protected registerSubscription(sub: Subscription): Subscription;
|
|
115
117
|
protected registerAutocompleteField<T = any, F = any>(fieldName: string, opts?: MatAutocompleteFieldAddOptions<T, F>): MatAutocompleteFieldConfig<T, F>;
|
|
116
118
|
protected markForCheck(): void;
|