@sumaris-net/ngx-components 0.27.8 → 0.27.12
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 +18 -7
- 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 +11 -4
- package/esm2015/src/app/core/table/table.class.js +6 -4
- package/esm2015/src/app/shared/validator/validators.js +1 -2
- package/fesm2015/sumaris-net.ngx-components.js +19 -12
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/form.class.d.ts +5 -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;
|
|
@@ -23,6 +25,7 @@ export declare abstract class AppForm<T> implements IAppForm, OnInit, OnDestroy,
|
|
|
23
25
|
debug: boolean;
|
|
24
26
|
tabindex: number;
|
|
25
27
|
errorTranslatorOptions: FormErrorTranslatorOptions;
|
|
28
|
+
protected get _ready(): boolean;
|
|
26
29
|
get value(): any;
|
|
27
30
|
set value(data: any);
|
|
28
31
|
get dirty(): boolean;
|
|
@@ -108,9 +111,9 @@ export declare abstract class AppForm<T> implements IAppForm, OnInit, OnDestroy,
|
|
|
108
111
|
onlySelf?: boolean;
|
|
109
112
|
emitEvent?: boolean;
|
|
110
113
|
}): void;
|
|
111
|
-
translateControlPath(path: string):
|
|
114
|
+
translateControlPath(path: string): any;
|
|
112
115
|
protected getFormError(form: FormGroup, opts?: FormErrorTranslatorOptions): string;
|
|
113
|
-
protected
|
|
116
|
+
protected getI18nFieldName(path: string): string;
|
|
114
117
|
protected registerSubscription(sub: Subscription): Subscription;
|
|
115
118
|
protected registerAutocompleteField<T = any, F = any>(fieldName: string, opts?: MatAutocompleteFieldAddOptions<T, F>): MatAutocompleteFieldConfig<T, F>;
|
|
116
119
|
protected markForCheck(): void;
|