@sumaris-net/ngx-components 2.4.36 → 2.4.38
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/esm2020/src/app/shared/form/field.component.mjs +51 -25
- package/fesm2015/sumaris-net.ngx-components.mjs +50 -24
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +50 -24
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/form/field.component.d.ts +13 -3
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ import { filterNumberInput, selectInputContent } from '../inputs';
|
|
|
7
7
|
import { Property } from '../types';
|
|
8
8
|
import { ThemePalette } from '@angular/material/core';
|
|
9
9
|
import { PredefinedColors } from '@ionic/core';
|
|
10
|
+
import { MatAutocompleteField } from '../material/autocomplete/material.autocomplete';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
12
13
|
protected translate: TranslateService;
|
|
@@ -17,8 +18,8 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
|
17
18
|
private _onTouchedCallback;
|
|
18
19
|
private _definition;
|
|
19
20
|
protected _values: Property[];
|
|
20
|
-
type: FormFieldType;
|
|
21
|
-
numberInputStep: string;
|
|
21
|
+
protected type: FormFieldType;
|
|
22
|
+
protected numberInputStep: string;
|
|
22
23
|
set definition(value: FormFieldDefinition);
|
|
23
24
|
get definition(): FormFieldDefinition;
|
|
24
25
|
required: boolean;
|
|
@@ -37,6 +38,7 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
|
37
38
|
onKeyupEnter: EventEmitter<any>;
|
|
38
39
|
get value(): any;
|
|
39
40
|
matInput: ElementRef;
|
|
41
|
+
autocompleteField: MatAutocompleteField;
|
|
40
42
|
constructor(translate: TranslateService, cd: ChangeDetectorRef, injector: Injector, formGroupDir: FormGroupDirective);
|
|
41
43
|
ngOnInit(): void;
|
|
42
44
|
writeValue(obj: any): void;
|
|
@@ -50,11 +52,19 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
|
50
52
|
selectInputContent: typeof selectInputContent;
|
|
51
53
|
getDisplayValueFn(definition: FormFieldDefinition): DisplayFn;
|
|
52
54
|
getColorContrast(color: string): string | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Allow to reload values, if not detected
|
|
57
|
+
* @param value
|
|
58
|
+
*/
|
|
59
|
+
reloadItems(value?: any): void;
|
|
53
60
|
protected computeNumberInputStep(definition: FormFieldDefinition): string;
|
|
54
61
|
protected computeValuesFromToken(token: InjectionToken<(string | Property)[]>): any[];
|
|
55
62
|
protected computeValues(values: (string | Property)[]): Property[];
|
|
56
63
|
protected checkAndResolveFormControl(): void;
|
|
57
|
-
protected
|
|
64
|
+
protected _onDefinitionChanged(definition: FormFieldDefinition, opts?: {
|
|
65
|
+
emitEvent?: boolean;
|
|
66
|
+
}): void;
|
|
67
|
+
protected updateTabIndex(timeout?: number): void;
|
|
58
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppFormField, [null, null, null, { optional: true; }]>;
|
|
59
69
|
static ɵcmp: i0.ɵɵComponentDeclaration<AppFormField, "app-form-field", never, { "definition": "definition"; "required": "required"; "readonly": "readonly"; "disabled": "disabled"; "formControl": "formControl"; "formControlName": "formControlName"; "placeholder": "placeholder"; "compact": "compact"; "floatLabel": "floatLabel"; "tabindex": "tabindex"; "autofocus": "autofocus"; "chipColor": "chipColor"; "debug": "debug"; "classList": "class"; }, { "onKeyupEnter": "keyup.enter"; }, never, ["[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matSuffix]"], false>;
|
|
60
70
|
}
|