@esfaenza/forms-and-validations 19.2.1 → 19.2.4
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/README.md +63 -1
- package/fesm2022/esfaenza-forms-and-validations.mjs +1102 -3971
- package/fesm2022/esfaenza-forms-and-validations.mjs.map +1 -1
- package/lib/forms/adaptive/form-adaptive.component.d.ts +24 -0
- package/lib/forms/autocomplete/form-autocomplete.component.d.ts +40 -0
- package/lib/forms/base/base-form-control.d.ts +132 -0
- package/lib/forms/base/skeleton/input-skeleton.component.d.ts +12 -0
- package/lib/forms/checkbox/form-checkbox.component.d.ts +11 -0
- package/lib/forms/currency/form-currency.component.d.ts +10 -0
- package/lib/forms/date/form-date.component.d.ts +36 -0
- package/lib/forms/datetime/form-datetime.component.d.ts +7 -0
- package/lib/forms/{form-info/form-info.component.d.ts → error/form-error.component.d.ts} +4 -4
- package/lib/forms/file/form-file.component.d.ts +38 -0
- package/lib/forms/{form-error/form-error.component.d.ts → info/form-info.component.d.ts} +4 -4
- package/lib/forms/input/form-input.component.d.ts +25 -0
- package/lib/forms/multiselect/form-multiselect.component.d.ts +20 -0
- package/lib/forms/select/form-select.component.d.ts +9 -0
- package/lib/forms/{form-template → template}/form-template.component.d.ts +3 -3
- package/lib/forms/textarea/form-textarea.component.d.ts +13 -0
- package/lib/forms/time/form-time.component.d.ts +7 -0
- package/lib/forms.module.d.ts +32 -0
- package/lib/models/AppFile.d.ts +5 -15
- package/lib/models/BaseFormConfiguration.d.ts +27 -0
- package/lib/models/EsFormsModuleConfig.d.ts +7 -0
- package/lib/services/helper.d.ts +15 -0
- package/lib/tokens.d.ts +1 -5
- package/package.json +4 -8
- package/public-api.d.ts +18 -28
- package/lib/forms/base-form-control.d.ts +0 -276
- package/lib/forms/form-adaptive/form-adaptive.component.d.ts +0 -126
- package/lib/forms/form-adaptive/form-adaptive.component.loc.d.ts +0 -14
- package/lib/forms/form-autocomplete/form-autocomplete.component.d.ts +0 -84
- package/lib/forms/form-autocomplete/form-autocomplete.component.loc.d.ts +0 -14
- package/lib/forms/form-checkbox/form-checkbox.component.d.ts +0 -23
- package/lib/forms/form-date/form-date.component.d.ts +0 -21
- package/lib/forms/form-datetime/form-datetime.component.d.ts +0 -23
- package/lib/forms/form-empty/form-empty.component.d.ts +0 -15
- package/lib/forms/form-file/form-file.component.d.ts +0 -46
- package/lib/forms/form-file/form-file.component.loc.d.ts +0 -14
- package/lib/forms/form-input/form-input.component.d.ts +0 -33
- package/lib/forms/form-multiselect/form-multiselect.component.d.ts +0 -67
- package/lib/forms/form-multiselect/form-multiselect.component.loc.d.ts +0 -14
- package/lib/forms/form-select/form-select.component.d.ts +0 -43
- package/lib/forms/form-select/form-select.component.loc.d.ts +0 -14
- package/lib/forms/form-textarea/form-textarea.component.d.ts +0 -18
- package/lib/forms/form-time/form-time.component.d.ts +0 -40
- package/lib/forms-and-validations.module.d.ts +0 -47
- package/lib/models/FormsAndValidationsModuleConfig.d.ts +0 -11
- package/lib/models/dayjs-adapter/dayjs-date-adapter.d.ts +0 -49
- package/lib/validations/base-validation.d.ts +0 -219
- package/lib/validations/base-validation.loc.d.ts +0 -14
- package/lib/validations/customValidators/CustomRequiredDirective.d.ts +0 -24
- package/lib/validations/validation-autocomplete/validation-autocomplete.component.d.ts +0 -58
- package/lib/validations/validation-autocomplete-multi/validation-autocomplete-multi.component.d.ts +0 -88
- package/lib/validations/validation-currency/validation-currency.component.d.ts +0 -28
- package/lib/validations/validation-date/validation-date.component.d.ts +0 -79
- package/lib/validations/validation-datetime/validation-datetime.component.d.ts +0 -109
- package/lib/validations/validation-input/validation-input.component.d.ts +0 -134
- package/lib/validations/validation-select/validation-select.component.d.ts +0 -95
- package/lib/validations/validation-text-area/validation-text-area.component.d.ts +0 -28
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { ControlValueAccessor } from "@angular/forms";
|
|
2
|
-
import { ChangeDetectorRef, Injector, SimpleChanges } from "@angular/core";
|
|
3
|
-
import { LocalizationService } from "@esfaenza/localizations";
|
|
4
|
-
import { BaseValidation } from "../base-validation";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Componente di validaizone per gli input a semplice casella di testo
|
|
8
|
-
*/
|
|
9
|
-
export declare class ValidationInputComponent extends BaseValidation implements ControlValueAccessor {
|
|
10
|
-
private _validators;
|
|
11
|
-
private _asyncValidators;
|
|
12
|
-
private injector;
|
|
13
|
-
protected lc: LocalizationService;
|
|
14
|
-
/**
|
|
15
|
-
* Permette di scrivere o meno nel campo di Input. Si differenzia dal Readonly in quanto fisicamente l'Input è scrivibile e vengono mantenuti i temi della validazione
|
|
16
|
-
* ma interagire direttamente con la casella di Input per l'utente non è possibile
|
|
17
|
-
*/
|
|
18
|
-
Frozen: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Indica se questo Comopnente deve rappresentare un oggetto di Input di tipo "Password"
|
|
21
|
-
*/
|
|
22
|
-
Password: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Indica se deve mostrare un indicazione di warning nel suffisso
|
|
25
|
-
*/
|
|
26
|
-
showWarning: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Titolo del Warning da impostare se **showWarning** è impostato a **true**
|
|
29
|
-
*/
|
|
30
|
-
warningTitle: string;
|
|
31
|
-
/**
|
|
32
|
-
* Classe del warning eventualmente modificabile.
|
|
33
|
-
*
|
|
34
|
-
* Default: "fa fa-warning"
|
|
35
|
-
*/
|
|
36
|
-
warningClass: string;
|
|
37
|
-
/**
|
|
38
|
-
* Valore del modello rappresentato da questo input
|
|
39
|
-
*/
|
|
40
|
-
value: any;
|
|
41
|
-
/**
|
|
42
|
-
* Contiene la proiezione del suffisso qualora fosse fornita
|
|
43
|
-
*/
|
|
44
|
-
suffix_internal: any;
|
|
45
|
-
/**
|
|
46
|
-
* Contiene la proiezione del prefisso qualora fosse fornita
|
|
47
|
-
*/
|
|
48
|
-
prefix_internal: any;
|
|
49
|
-
/**
|
|
50
|
-
* Subscription del tooltip da ripulire al destroy del componente
|
|
51
|
-
*/
|
|
52
|
-
private tooltipSubscription;
|
|
53
|
-
/**
|
|
54
|
-
* Controllo esposto ottenuto tramite injector
|
|
55
|
-
*/
|
|
56
|
-
private parentControl;
|
|
57
|
-
/**
|
|
58
|
-
* Identifica se il testo di un componente di tipo "password" dev'essere visualizzato o meno
|
|
59
|
-
*/
|
|
60
|
-
passShown: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Tipo del componente, può essere "text" o "password" e viene impostato automaticamente dall'Input **Password**
|
|
63
|
-
*/
|
|
64
|
-
Type: string;
|
|
65
|
-
/**
|
|
66
|
-
* Maxlength html
|
|
67
|
-
*/
|
|
68
|
-
maxlength: number;
|
|
69
|
-
/**
|
|
70
|
-
* Minlength html
|
|
71
|
-
*/
|
|
72
|
-
minlength: number;
|
|
73
|
-
/**
|
|
74
|
-
* Indicazione se il componente ha o meno un suffisso.
|
|
75
|
-
*
|
|
76
|
-
* Valorizzato a **true** solo se viene trovata una proiezione su **suffix_internal** o se l'Input **showWarning** viene impostato a **true**
|
|
77
|
-
*/
|
|
78
|
-
HasSuffix: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Indicazione se il componente ha o meno un prefisso.
|
|
81
|
-
*
|
|
82
|
-
* Valorizzato a **true** solo se viene trovata una proiezione su **prefix_internal**
|
|
83
|
-
*/
|
|
84
|
-
HasPrefix: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* @ignore
|
|
87
|
-
*/
|
|
88
|
-
constructor(cdr: ChangeDetectorRef, _validators: Array<any>, _asyncValidators: Array<any>, injector: Injector, lc: LocalizationService);
|
|
89
|
-
/**
|
|
90
|
-
* @ignore
|
|
91
|
-
*/
|
|
92
|
-
ngOnInit(): void;
|
|
93
|
-
/**
|
|
94
|
-
* @ignore
|
|
95
|
-
*/
|
|
96
|
-
ngOnDestroy(): void;
|
|
97
|
-
/**
|
|
98
|
-
* @ignore
|
|
99
|
-
*/
|
|
100
|
-
ngAfterViewInit(): void;
|
|
101
|
-
/**
|
|
102
|
-
* @ignore
|
|
103
|
-
*/
|
|
104
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
105
|
-
/**
|
|
106
|
-
* Metodo che si occupa di collegare i validatori e la funzione di reset dal **ControlValueAccessor** rappresentato
|
|
107
|
-
* da questo componente al **ControlValueAccessor** rappresentato dall'effettivo elemento di Input presente lato HTML
|
|
108
|
-
*/
|
|
109
|
-
postBinding(): void;
|
|
110
|
-
/**
|
|
111
|
-
* @ignore
|
|
112
|
-
*/
|
|
113
|
-
private onTouched;
|
|
114
|
-
/**
|
|
115
|
-
* @ignore
|
|
116
|
-
*/
|
|
117
|
-
writeValue(value: any): void;
|
|
118
|
-
/**
|
|
119
|
-
* L'emit della modifica al valore viene gestito su un evento custom (**inputChange**) come workaround al malfunzionamento dell'**ngModelChange** nativo
|
|
120
|
-
*
|
|
121
|
-
* @param {any} toEmit valore da propagare all'esterno
|
|
122
|
-
*/
|
|
123
|
-
onModelChange(toEmit: any): void;
|
|
124
|
-
/**
|
|
125
|
-
* @ignore
|
|
126
|
-
*/
|
|
127
|
-
registerOnChange(fn: any): void;
|
|
128
|
-
/**
|
|
129
|
-
* @ignore
|
|
130
|
-
*/
|
|
131
|
-
registerOnTouched(fn: any): void;
|
|
132
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationInputComponent, [null, { optional: true; }, { optional: true; }, null, null]>;
|
|
133
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ValidationInputComponent, "val-input", never, { "Frozen": { "alias": "Frozen"; "required": false; }; "Password": { "alias": "Password"; "required": false; }; "showWarning": { "alias": "showWarning"; "required": false; }; "warningTitle": { "alias": "warningTitle"; "required": false; }; "warningClass": { "alias": "warningClass"; "required": false; }; "value": { "alias": "value"; "required": false; }; "Type": { "alias": "Type"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; }, {}, ["suffix_internal", "prefix_internal"], never, false, never>;
|
|
134
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, Injector } from "@angular/core";
|
|
2
|
-
import { ControlValueAccessor, UntypedFormControl } from "@angular/forms";
|
|
3
|
-
import { LocalizationService } from "@esfaenza/localizations";
|
|
4
|
-
import { BaseValidation } from '../base-validation';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Componente di validaizone per gli input a selezione singola
|
|
8
|
-
*/
|
|
9
|
-
export declare class ValidationSelectComponent extends BaseValidation implements ControlValueAccessor {
|
|
10
|
-
private _validators;
|
|
11
|
-
private _asyncValidators;
|
|
12
|
-
private injector;
|
|
13
|
-
protected lc: LocalizationService;
|
|
14
|
-
/**
|
|
15
|
-
* valore del campo vuoto della select
|
|
16
|
-
*/
|
|
17
|
-
emptyFieldValue: string;
|
|
18
|
-
/**
|
|
19
|
-
* Valore del placeholder
|
|
20
|
-
*/
|
|
21
|
-
placeHolderValue: string;
|
|
22
|
-
/**
|
|
23
|
-
* Per i componenti non obbligatori indica se fornire un "valore vuoto"
|
|
24
|
-
*/
|
|
25
|
-
emptyValue: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Indica se mostrare o nascondere il simboletto di validazione (Tic verde o Croce rossa)
|
|
28
|
-
*/
|
|
29
|
-
showValidationSymbol: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Contenuto della label Floattante Material-Style
|
|
32
|
-
*/
|
|
33
|
-
label: string;
|
|
34
|
-
/**
|
|
35
|
-
* Evento richiamato quando si perde il focus sull'input di inserimento
|
|
36
|
-
*/
|
|
37
|
-
onBlur: EventEmitter<boolean>;
|
|
38
|
-
/**
|
|
39
|
-
* Controllo esposto ottenuto tramite injector
|
|
40
|
-
*/
|
|
41
|
-
parentControl: UntypedFormControl;
|
|
42
|
-
/**
|
|
43
|
-
* Valore del modello rappresentato dal componente
|
|
44
|
-
*/
|
|
45
|
-
value: string;
|
|
46
|
-
/**
|
|
47
|
-
* Subscription del tootltip da ripulire alla distruzione del componente
|
|
48
|
-
*/
|
|
49
|
-
private tooltipSubscription;
|
|
50
|
-
/**
|
|
51
|
-
* @ignore
|
|
52
|
-
*/
|
|
53
|
-
constructor(_validators: Array<any>, _asyncValidators: Array<any>, injector: Injector, cdr: ChangeDetectorRef, lc: LocalizationService);
|
|
54
|
-
/**
|
|
55
|
-
* @ignore
|
|
56
|
-
*/
|
|
57
|
-
ngOnInit(): void;
|
|
58
|
-
/**
|
|
59
|
-
* @ignore
|
|
60
|
-
*/
|
|
61
|
-
ngOnDestroy(): void;
|
|
62
|
-
/**
|
|
63
|
-
* @ignore
|
|
64
|
-
*/
|
|
65
|
-
ngAfterViewInit(): void;
|
|
66
|
-
/**
|
|
67
|
-
* Metodo che si occupa di collegare i validatori e la funzione di reset dal **ControlValueAccessor** rappresentato
|
|
68
|
-
* da questo componente al **ControlValueAccessor** rappresentato dall'effettivo elemento di Input presente lato HTML
|
|
69
|
-
*/
|
|
70
|
-
postBinding(): void;
|
|
71
|
-
/**
|
|
72
|
-
* @ignore
|
|
73
|
-
*/
|
|
74
|
-
private onTouched;
|
|
75
|
-
/**
|
|
76
|
-
* @ignore
|
|
77
|
-
*/
|
|
78
|
-
writeValue(value: any): void;
|
|
79
|
-
/**
|
|
80
|
-
* L'emit della modifica al valore viene gestito su un evento custom (**inputChange**) come workaround al malfunzionamento dell'**ngModelChange** nativo
|
|
81
|
-
*
|
|
82
|
-
* @param {any} toEmit valore da propagare all'esterno
|
|
83
|
-
*/
|
|
84
|
-
onModelChange(toEmit: any): void;
|
|
85
|
-
/**
|
|
86
|
-
* @ignore
|
|
87
|
-
*/
|
|
88
|
-
registerOnChange(fn: any): void;
|
|
89
|
-
/**
|
|
90
|
-
* @ignore
|
|
91
|
-
*/
|
|
92
|
-
registerOnTouched(fn: any): void;
|
|
93
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationSelectComponent, [{ optional: true; }, { optional: true; }, null, null, null]>;
|
|
94
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ValidationSelectComponent, "val-select", never, { "emptyFieldValue": { "alias": "emptyFieldValue"; "required": false; }; "placeHolderValue": { "alias": "placeHolderValue"; "required": false; }; "emptyValue": { "alias": "emptyValue"; "required": false; }; "showValidationSymbol": { "alias": "showValidationSymbol"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, { "onBlur": "onBlur"; }, never, ["*"], false, never>;
|
|
95
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, Injector } from "@angular/core";
|
|
2
|
-
import { LocalizationService } from "@esfaenza/localizations";
|
|
3
|
-
import { ValidationInputComponent } from "../validation-input/validation-input.component";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Componente di validaizone per gli input ad area di testo
|
|
7
|
-
*/
|
|
8
|
-
export declare class ValidationTextAreaComponent extends ValidationInputComponent {
|
|
9
|
-
protected lc: LocalizationService;
|
|
10
|
-
/**
|
|
11
|
-
* Righe da mostrare di default per l'area di inserimento
|
|
12
|
-
*/
|
|
13
|
-
rows: number;
|
|
14
|
-
/**
|
|
15
|
-
* @ignore
|
|
16
|
-
*/
|
|
17
|
-
constructor(cdr: ChangeDetectorRef, validators: Array<any>, asyncValidators: Array<any>, injector: Injector, lc: LocalizationService);
|
|
18
|
-
/**
|
|
19
|
-
* @ignore
|
|
20
|
-
*/
|
|
21
|
-
ngOnInit(): void;
|
|
22
|
-
/**
|
|
23
|
-
* @ignore
|
|
24
|
-
*/
|
|
25
|
-
ngOnDestroy(): void;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationTextAreaComponent, [null, { optional: true; }, { optional: true; }, null, null]>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ValidationTextAreaComponent, "val-textarea", never, { "rows": { "alias": "rows"; "required": false; }; }, {}, never, never, false, never>;
|
|
28
|
-
}
|