@esfaenza/forms-and-validations 19.2.19 → 19.2.21
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/fesm2022/esfaenza-forms-and-validations.mjs +100 -29
- package/fesm2022/esfaenza-forms-and-validations.mjs.map +1 -1
- package/lib/forms/adaptive/form-adaptive.component.d.ts +12 -2
- package/lib/forms/base/base-form-control.d.ts +3 -1
- package/lib/forms/multiselect/form-multiselect.component.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Injector, WritableSignal } from "@angular/core";
|
|
2
|
-
import { ControlValueAccessor } from "@angular/forms";
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator, ValidatorFn } from "@angular/forms";
|
|
3
3
|
import { Observable } from "rxjs";
|
|
4
4
|
import { BaseFormControl } from "../base/base-form-control";
|
|
5
5
|
import { BaseFormConfiguration } from "../../models/BaseFormConfiguration";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class EsFormAdaptiveComponent extends BaseFormControl implements ControlValueAccessor {
|
|
7
|
+
export declare class EsFormAdaptiveComponent extends BaseFormControl implements ControlValueAccessor, Validator {
|
|
8
8
|
/** Tipologia che decide che componente mostrare */
|
|
9
9
|
Type: 'string' | 'float' | 'date' | 'number' | 'int' | 'boolean' | 'enum' | 'autocomplete' | 'datetime' | 'time' | 'file' | 'currency';
|
|
10
10
|
/** Messaggio per quando si binda un form-adaptive senza tipo */
|
|
@@ -18,7 +18,17 @@ export declare class EsFormAdaptiveComponent extends BaseFormControl implements
|
|
|
18
18
|
FloatPattern: WritableSignal<string>;
|
|
19
19
|
config: WritableSignal<BaseFormConfiguration>;
|
|
20
20
|
constructor(inj: Injector);
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
protected getValueIn(value: any): Promise<any>;
|
|
23
|
+
protected getValueOut(value: any): Promise<any>;
|
|
21
24
|
ngAfterViewInit(): void;
|
|
25
|
+
/** Variabile interna che salva il valore degli input float prima dell'aggiustamento */
|
|
26
|
+
private floatValuePreAdjustmente;
|
|
27
|
+
registerOnValidatorChange?(_: () => void): void;
|
|
28
|
+
handleFloatPatternSeparately(): void;
|
|
29
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
30
|
+
/** Validatore originale angular, copiaincollato. Cambiata solo la riga dove c'è `this.floatValuePreAdjustmente` */
|
|
31
|
+
customPatternValidator(pattern: string | RegExp): ValidatorFn;
|
|
22
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsFormAdaptiveComponent, never>;
|
|
23
33
|
static ɵcmp: i0.ɵɵComponentDeclaration<EsFormAdaptiveComponent, "form-adaptive", never, { "Type": { "alias": "Type"; "required": false; }; "TypeMissingMessage": { "alias": "TypeMissingMessage"; "required": false; }; "SearchFunction": { "alias": "SearchFunction"; "required": false; }; "Precision": { "alias": "Precision"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
34
|
}
|
|
@@ -98,11 +98,13 @@ export declare abstract class BaseFormControl implements ControlValueAccessor {
|
|
|
98
98
|
ngOnInit(): void;
|
|
99
99
|
ngAfterViewInit(): void;
|
|
100
100
|
private showTooltip;
|
|
101
|
+
protected getTooltipText(error?: string): string;
|
|
101
102
|
private hideTooltip;
|
|
102
103
|
log(message: string): void;
|
|
103
104
|
writeValue(obj: any): Promise<void>;
|
|
104
105
|
changed(value: any): Promise<void>;
|
|
105
|
-
|
|
106
|
+
private finalizedDebounceInterval;
|
|
107
|
+
finalized(debounceTime?: number): void;
|
|
106
108
|
focused(event: any): void;
|
|
107
109
|
/** Valuta il contenuto della variabile BindCheckingGroups */
|
|
108
110
|
private evaluateBindCheckingGroups;
|
|
@@ -6,6 +6,7 @@ export declare class EsFormMultiselectComponent extends BaseFormControl implemen
|
|
|
6
6
|
InOutFormat: 'KeyValues' | 'CommaSeparatedList' | 'JsonList' | 'List';
|
|
7
7
|
/** Nel caso dei componenti data il Placeholder è il formato, mentre la label floattante, se esistente, dev'essere specificata */
|
|
8
8
|
FloatingLabel: boolean;
|
|
9
|
+
MaxShownElements: number;
|
|
9
10
|
ngOnInit(): void;
|
|
10
11
|
protected setDisplayMode(): void;
|
|
11
12
|
ngAfterViewInit(): void;
|
|
@@ -16,5 +17,5 @@ export declare class EsFormMultiselectComponent extends BaseFormControl implemen
|
|
|
16
17
|
description: string;
|
|
17
18
|
}[]): Promise<string>;
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsFormMultiselectComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EsFormMultiselectComponent, "form-multiselect", never, { "display": { "alias": "display"; "required": false; }; "InOutFormat": { "alias": "InOutFormat"; "required": false; }; "FloatingLabel": { "alias": "FloatingLabel"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EsFormMultiselectComponent, "form-multiselect", never, { "display": { "alias": "display"; "required": false; }; "InOutFormat": { "alias": "InOutFormat"; "required": false; }; "FloatingLabel": { "alias": "FloatingLabel"; "required": false; }; "MaxShownElements": { "alias": "MaxShownElements"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
21
|
}
|