@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,23 +0,0 @@
|
|
|
1
|
-
import { ControlValueAccessor, NgControl } from "@angular/forms";
|
|
2
|
-
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
3
|
-
import { DateService } from "@esfaenza/extensions";
|
|
4
|
-
import { BaseFormControl } from "../base-form-control";
|
|
5
|
-
import { ChangeDetectorRef } from "@angular/core";
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Componente che dà all'utente la possibilità di selezionare una data insieme ad un orario
|
|
9
|
-
*/
|
|
10
|
-
export declare class FormDateTimeComponent extends BaseFormControl implements ControlValueAccessor {
|
|
11
|
-
private datesExts;
|
|
12
|
-
/** Utilizza il Date di Javascript come modello in uscita. Il modello in entrata verrà comunque ricondotto a un DayJs */
|
|
13
|
-
JsDates: boolean;
|
|
14
|
-
/** @ignore Costruttore */
|
|
15
|
-
constructor(datesExts: DateService, cdr: ChangeDetectorRef, ngControl: NgControl, _validators: Array<any>, ac: AccessControlService, AppContext: ComponentContext, ACO_CUSTOMKEY: string, FAV_DEBUG_MODE: boolean);
|
|
16
|
-
/** @ignore */
|
|
17
|
-
writeValue(obj: any): void;
|
|
18
|
-
changed(): void;
|
|
19
|
-
/** @ignore */
|
|
20
|
-
onNotNullValueSet(): void;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormDateTimeComponent, [null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormDateTimeComponent, "form-datetime", never, { "JsDates": { "alias": "JsDates"; "required": false; }; }, {}, never, never, false, never>;
|
|
23
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
/**
|
|
3
|
-
* Componente placeholder per la creazione dei form che rappresenta un blocchetto vuoto,
|
|
4
|
-
* al posto del quale possono poi comparire dei componenti form senza incasinare la grafica
|
|
5
|
-
*/
|
|
6
|
-
export declare class FormEmptyComponent {
|
|
7
|
-
/** Indica se è l'ultimo componente di un form (serve per rimuovere il margine finale) */
|
|
8
|
-
Last: boolean;
|
|
9
|
-
/** Classe extra per il form-group in cui viene wrappato l'input finto */
|
|
10
|
-
FormGroupClass: string;
|
|
11
|
-
/** Valore placeholder da mostrare */
|
|
12
|
-
PlaceholderModel: string;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormEmptyComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormEmptyComponent, "form-empty", never, { "Last": { "alias": "Last"; "required": false; }; "FormGroupClass": { "alias": "FormGroupClass"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef } from "@angular/core";
|
|
2
|
-
import { ControlValueAccessor, NgControl, Validator, AbstractControl, ValidationErrors } from "@angular/forms";
|
|
3
|
-
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
4
|
-
import { LocalizationService } from "@esfaenza/localizations";
|
|
5
|
-
import { MessageService, UtilityService } from "@esfaenza/extensions";
|
|
6
|
-
import { BaseFormControl } from "../base-form-control";
|
|
7
|
-
import { AppFile } from "../../models/AppFile";
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/** Componente che permette all'utente di caricare/scaricare un file all'interno di un campo Input */
|
|
10
|
-
export declare class FormFileComponent extends BaseFormControl implements ControlValueAccessor, Validator {
|
|
11
|
-
private msgs;
|
|
12
|
-
private utiExts;
|
|
13
|
-
lc: LocalizationService;
|
|
14
|
-
/** Permette di caricare file multipli */
|
|
15
|
-
Multiple: boolean;
|
|
16
|
-
/** Permette di scaricare l'eventuale file selezionato */
|
|
17
|
-
AllowDownload: boolean;
|
|
18
|
-
/** Controllo sulla dimensione di ogni singolo file in Byte. 0 -> nessun limite */
|
|
19
|
-
MaxSize: number;
|
|
20
|
-
/** Sportivo */
|
|
21
|
-
FancyMode: boolean;
|
|
22
|
-
/** Legge sempre il contenuto del file e ne estrapola il base64 */
|
|
23
|
-
ReadFile: boolean;
|
|
24
|
-
/** Riferimento all'elemento input di tipo file */
|
|
25
|
-
inputEl: ElementRef;
|
|
26
|
-
/** @ignore Costruttore */
|
|
27
|
-
constructor(msgs: MessageService, cdr: ChangeDetectorRef, utiExts: UtilityService, ngControl: NgControl, _validators: Array<any>, ac: AccessControlService, AppContext: ComponentContext, ACO_CUSTOMKEY: string, lc: LocalizationService, FAV_DEBUG_MODE: boolean);
|
|
28
|
-
ngOnInit(): void;
|
|
29
|
-
validate(control: AbstractControl): ValidationErrors;
|
|
30
|
-
/** @ignore */
|
|
31
|
-
writeValue(obj: AppFile): void;
|
|
32
|
-
/**
|
|
33
|
-
* Helper per gestire la modifica del file attualmente bindato
|
|
34
|
-
*
|
|
35
|
-
* @param {boolean} clear Indica se bisogna svuotare l'input o meno
|
|
36
|
-
*/
|
|
37
|
-
fileChange(clear?: boolean): void;
|
|
38
|
-
/** Permette di scaricare l'eventuale file selezionato */
|
|
39
|
-
onDownloadFile(): void;
|
|
40
|
-
/** @ignore */
|
|
41
|
-
onNotNullValueSet(): void;
|
|
42
|
-
onFileDragOver(event: DragEvent): void;
|
|
43
|
-
onFileDropped(event: DragEvent): void;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormFileComponent, [null, null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, null, { optional: true; }]>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormFileComponent, "form-file", never, { "Multiple": { "alias": "Multiple"; "required": false; }; "AllowDownload": { "alias": "AllowDownload"; "required": false; }; "MaxSize": { "alias": "MaxSize"; "required": false; }; "FancyMode": { "alias": "FancyMode"; "required": false; }; "ReadFile": { "alias": "ReadFile"; "required": false; }; }, {}, never, never, false, never>;
|
|
46
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Injector } from "@angular/core";
|
|
2
|
-
import { LocalizationService } from "@esfaenza/localizations";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Classe di localizzazione per il componente **FormFileComponent**
|
|
6
|
-
*/
|
|
7
|
-
export declare class FormFileComponentLoc extends LocalizationService {
|
|
8
|
-
/**
|
|
9
|
-
* @ignore
|
|
10
|
-
*/
|
|
11
|
-
constructor(injector: Injector);
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormFileComponentLoc, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FormFileComponentLoc>;
|
|
14
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from "@angular/core";
|
|
2
|
-
import { ControlValueAccessor, NgControl } from "@angular/forms";
|
|
3
|
-
import { BaseFormControl } from "../base-form-control";
|
|
4
|
-
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
5
|
-
import { ChangeDetectorRef } from "@angular/core";
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/** Semplice componente di Input testuale, con eventuale prefisso/suffisso */
|
|
8
|
-
export declare class FormInputComponent extends BaseFormControl implements ControlValueAccessor {
|
|
9
|
-
/** Indica se l'input relativo è di tipo Password */
|
|
10
|
-
Password: boolean;
|
|
11
|
-
/** Delegato per l'esecuzione di un'operazione al click del suffisso */
|
|
12
|
-
onSuffixAction: EventEmitter<void>;
|
|
13
|
-
/** Delegato per l'esecuzione di un'operazione al click del prefisso */
|
|
14
|
-
onPrefixAction: EventEmitter<void>;
|
|
15
|
-
/** Elemento che contiene la proiezione dell'HTML del suffisso */
|
|
16
|
-
suffix: any;
|
|
17
|
-
/** Elemento che contiene la proiezione dell'HTML del prefisso */
|
|
18
|
-
prefix: any;
|
|
19
|
-
/** Indica la presenza o meno di un suffisso, si basa sulla "truthiness" della proiezione **suffix** */
|
|
20
|
-
HasSuffix: boolean;
|
|
21
|
-
/** Indica la presenza o meno di un prefisso, si basa sulla "truthiness" della proiezione **prefix** */
|
|
22
|
-
HasPrefix: boolean;
|
|
23
|
-
/** @ignore Costruttore */
|
|
24
|
-
constructor(cdr: ChangeDetectorRef, ngControl: NgControl, _validators: Array<any>, ac: AccessControlService, AppContext: ComponentContext, ACO_CUSTOMKEY: string, FAV_DEBUG_MODE: boolean);
|
|
25
|
-
/** @ignore */
|
|
26
|
-
writeValue(obj: any): void;
|
|
27
|
-
/** @ignore */
|
|
28
|
-
ngAfterContentInit(): void;
|
|
29
|
-
/** @ignore */
|
|
30
|
-
onNotNullValueSet(): void;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormInputComponent, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormInputComponent, "form-input", never, { "Password": { "alias": "Password"; "required": false; }; }, { "onSuffixAction": "onSuffixAction"; "onPrefixAction": "onPrefixAction"; }, ["suffix", "prefix"], never, false, never>;
|
|
33
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { SimpleChanges } from "@angular/core";
|
|
2
|
-
import { ControlValueAccessor, NgControl } from "@angular/forms";
|
|
3
|
-
import { LocalizationService } from "@esfaenza/localizations";
|
|
4
|
-
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
5
|
-
import { BaseFormControl } from "../base-form-control";
|
|
6
|
-
import { ChangeDetectorRef } from "@angular/core";
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* Componente che permette di effettuare una selezione multipla fra gli oggetti passati nell'Input **Source**
|
|
10
|
-
*
|
|
11
|
-
* N.B: Al contrario degli altri componenti form-* questo viene tenuto con **changeDetection: ChangeDetectionStrategy.Default** in quanto il componente
|
|
12
|
-
* utilizzato internamente (angular2-multiselect) non è stato assolutamente pensato per essere usato con **ChangeDetectionStrategy.OnPush**
|
|
13
|
-
*/
|
|
14
|
-
export declare class FormMultiSelectComponent extends BaseFormControl implements ControlValueAccessor {
|
|
15
|
-
lc: LocalizationService;
|
|
16
|
-
/**
|
|
17
|
-
* Modello temporaneo **NON** compatibile in maniera diretta con il componente **angular2-multiselect** usato internamente
|
|
18
|
-
*
|
|
19
|
-
* Serve da appoggio per effettuare un re-bind qualora la sorgente cambiasse e qualora **RebindModelAfterSource** fosse true
|
|
20
|
-
*/
|
|
21
|
-
private TmpModel;
|
|
22
|
-
/** Indica se la prossima modifica alla Source deve anche effettuare un re-bind del modello. Serve se la **BoundSource** passa da non avere oggetti ad averne */
|
|
23
|
-
private RebindModelAfterSource;
|
|
24
|
-
/** Permette di specificare il testo della Label flottante material-style */
|
|
25
|
-
SelectLabel: string;
|
|
26
|
-
/** Permette al componente di gestire come modello non una lista di chiavi, ma una lista di KeyValue */
|
|
27
|
-
UseKeyValues: boolean;
|
|
28
|
-
/** Indica al componente di emettere una lista di chiavi separate da virgola piuttosto che una lista vera e propria di chiavi/KeyValue */
|
|
29
|
-
UseCommaSeparatedList: boolean;
|
|
30
|
-
/** Indica se effettuare l'emit come lista di valori in un Json */
|
|
31
|
-
UseJsonList: boolean;
|
|
32
|
-
/** Impostazioni del componente interno **angular2-multiselect** */
|
|
33
|
-
Settings: {
|
|
34
|
-
selectAllText: string;
|
|
35
|
-
unSelectAllText: string;
|
|
36
|
-
text: string;
|
|
37
|
-
enableCheckAll: boolean;
|
|
38
|
-
disabled: boolean;
|
|
39
|
-
labelKey: string;
|
|
40
|
-
tagToBody: boolean;
|
|
41
|
-
};
|
|
42
|
-
/** @ignore Costruttore */
|
|
43
|
-
constructor(cdr: ChangeDetectorRef, lc: LocalizationService, ngControl: NgControl, _validators: Array<any>, ac: AccessControlService, AppContext: ComponentContext, ACO_CUSTOMKEY: string, FAV_DEBUG_MODE: boolean);
|
|
44
|
-
/** @ignore */
|
|
45
|
-
ngOnChanges(changes: SimpleChanges): Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
* Scrive i nuovi settings per il componente
|
|
48
|
-
*
|
|
49
|
-
* @param {boolean} disabled Indica se il componente dev'essere disabilitato o meno
|
|
50
|
-
*/
|
|
51
|
-
private evaluateSettings;
|
|
52
|
-
/** @ignore */
|
|
53
|
-
onNotNullValueSet(): void;
|
|
54
|
-
/**
|
|
55
|
-
* Indica se il comopnente in questione è in grado di gestire ngControl nulli.
|
|
56
|
-
* In questo componente è normale che sia così quindi restituisce semplicemente **true**
|
|
57
|
-
*
|
|
58
|
-
* @returns {boolean} **true** se gestisco ngControl nulli, **false** altrimenti
|
|
59
|
-
*/
|
|
60
|
-
handleNullNgControl(): boolean;
|
|
61
|
-
/** @ignore Override per gestire input in ingresso */
|
|
62
|
-
writeValue(obj: any[] | string): void;
|
|
63
|
-
/** @ignore Override per gestire input in uscita */
|
|
64
|
-
changed(): void;
|
|
65
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormMultiSelectComponent, [null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
66
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormMultiSelectComponent, "form-multiselect", never, { "SelectLabel": { "alias": "SelectLabel"; "required": false; }; "UseKeyValues": { "alias": "UseKeyValues"; "required": false; }; "UseCommaSeparatedList": { "alias": "UseCommaSeparatedList"; "required": false; }; "UseJsonList": { "alias": "UseJsonList"; "required": false; }; }, {}, never, never, false, never>;
|
|
67
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Injector } from "@angular/core";
|
|
2
|
-
import { LocalizationService } from "@esfaenza/localizations";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Classe di localizzazione per il componente **FormMultiSelectComponent**
|
|
6
|
-
*/
|
|
7
|
-
export declare class FormMultiSelectComponentLoc extends LocalizationService {
|
|
8
|
-
/**
|
|
9
|
-
* @ignore
|
|
10
|
-
*/
|
|
11
|
-
constructor(injector: Injector);
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormMultiSelectComponentLoc, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FormMultiSelectComponentLoc>;
|
|
14
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { SimpleChanges, ChangeDetectorRef, TemplateRef } from "@angular/core";
|
|
2
|
-
import { ControlValueAccessor, NgControl } from "@angular/forms";
|
|
3
|
-
import { LocalizationService } from "@esfaenza/localizations";
|
|
4
|
-
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
5
|
-
import { BaseFormControl } from "../base-form-control";
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/** Componente che permette di selezionare un valore da una lista di valori disponibili */
|
|
8
|
-
export declare class FormSelectComponent extends BaseFormControl implements ControlValueAccessor {
|
|
9
|
-
lc: LocalizationService;
|
|
10
|
-
/** Permette di specificare il testo della Label flottante material-style */
|
|
11
|
-
SelectLabel: string;
|
|
12
|
-
/**
|
|
13
|
-
* Permette al componente di considerare questo valore come "valore placeholder"
|
|
14
|
-
*
|
|
15
|
-
* Si consiglia di mantenere il default
|
|
16
|
-
*/
|
|
17
|
-
PlaceholderValue: string;
|
|
18
|
-
/** Override del placeholder per select requried */
|
|
19
|
-
RequiredPlaceholder: string;
|
|
20
|
-
/**
|
|
21
|
-
* Permette al componente di considerare questo valore come "valore vuoto"
|
|
22
|
-
*
|
|
23
|
-
* Si consiglia di mantenere il default
|
|
24
|
-
*/
|
|
25
|
-
EmptyFieldValue: string;
|
|
26
|
-
/** Se **true** rimuove il simbolino di validazione (croce rossa o tick verde) */
|
|
27
|
-
ShowValidationSymbol: boolean;
|
|
28
|
-
/** Template per la visualizzazione delle opzioni */
|
|
29
|
-
OptionTemplate: TemplateRef<any>;
|
|
30
|
-
/** @ignore Costruttore */
|
|
31
|
-
constructor(cdr: ChangeDetectorRef, lc: LocalizationService, ngControl: NgControl, _validators: Array<any>, ac: AccessControlService, AppContext: ComponentContext, ACO_CUSTOMKEY: string, FAV_DEBUG_MODE: boolean);
|
|
32
|
-
/** @ignore */
|
|
33
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
34
|
-
/** @ignore */
|
|
35
|
-
private detatchPreviousAndRetatchNext;
|
|
36
|
-
/** @ignore */
|
|
37
|
-
writeValue(obj: any): void;
|
|
38
|
-
changed(): void;
|
|
39
|
-
/** @ignore */
|
|
40
|
-
onNotNullValueSet(): void;
|
|
41
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormSelectComponent, [null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormSelectComponent, "form-select", never, { "SelectLabel": { "alias": "SelectLabel"; "required": false; }; "PlaceholderValue": { "alias": "PlaceholderValue"; "required": false; }; "RequiredPlaceholder": { "alias": "RequiredPlaceholder"; "required": false; }; "EmptyFieldValue": { "alias": "EmptyFieldValue"; "required": false; }; "ShowValidationSymbol": { "alias": "ShowValidationSymbol"; "required": false; }; "OptionTemplate": { "alias": "OptionTemplate"; "required": false; }; }, {}, never, never, false, never>;
|
|
43
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Injector } from "@angular/core";
|
|
2
|
-
import { LocalizationService } from "@esfaenza/localizations";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Classe di localizzazione per il componente **FormSelectComponent**
|
|
6
|
-
*/
|
|
7
|
-
export declare class FormSelectComponentLoc extends LocalizationService {
|
|
8
|
-
/**
|
|
9
|
-
* @ignore
|
|
10
|
-
*/
|
|
11
|
-
constructor(injector: Injector);
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormSelectComponentLoc, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FormSelectComponentLoc>;
|
|
14
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ControlValueAccessor, NgControl } from "@angular/forms";
|
|
2
|
-
import { ChangeDetectorRef } from "@angular/core";
|
|
3
|
-
import { BaseFormControl } from "../base-form-control";
|
|
4
|
-
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/** Componente che presenta una casella di testo tipicamente utilizzata per scrivere delle note o del log breve */
|
|
7
|
-
export declare class FormTextareaComponent extends BaseFormControl implements ControlValueAccessor {
|
|
8
|
-
/** Numero di righe da visualizzare di default */
|
|
9
|
-
Rows: number;
|
|
10
|
-
/** @ignore Costruttore */
|
|
11
|
-
constructor(cdr: ChangeDetectorRef, ngControl: NgControl, _validators: Array<any>, ac: AccessControlService, AppContext: ComponentContext, ACO_CUSTOMKEY: any, FAV_DEBUG_MODE: boolean);
|
|
12
|
-
/** @ignore */
|
|
13
|
-
writeValue(obj: any): void;
|
|
14
|
-
/** @ignore */
|
|
15
|
-
onNotNullValueSet(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormTextareaComponent, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormTextareaComponent, "form-textarea", never, { "Rows": { "alias": "Rows"; "required": false; }; }, {}, never, never, false, never>;
|
|
18
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ControlValueAccessor, NgControl } from "@angular/forms";
|
|
2
|
-
import { ChangeDetectorRef } from "@angular/core";
|
|
3
|
-
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
4
|
-
import { BaseFormControl } from "../base-form-control";
|
|
5
|
-
import { DateAdapter } from "@angular/material/core";
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/** Componente che identifica la selezione di un orario */
|
|
8
|
-
export declare class FormTimeComponent extends BaseFormControl implements ControlValueAccessor {
|
|
9
|
-
private dateAdapter;
|
|
10
|
-
/** Mostra o meno gli spinner dove cliccare per aumentare/diminuire le componenti dell'orologio (ore, minuti e secondi) */
|
|
11
|
-
ShowSpinners: boolean;
|
|
12
|
-
/** Imposta lo step (minimo avanzamento) per la cella "ore" */
|
|
13
|
-
StepHour: number;
|
|
14
|
-
/** Imposta lo step (minimo avanzamento) per la cella "minuti" */
|
|
15
|
-
StepMinute: number;
|
|
16
|
-
/** Imposta lo step (minimo avanzamento) per la cella "secondi" */
|
|
17
|
-
StepSecond: number;
|
|
18
|
-
/** Indica se mostrare i secondi o meno */
|
|
19
|
-
ShowSeconds: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Indica il formato da utilizzare sia in Input che in Output
|
|
22
|
-
*
|
|
23
|
-
* 1. Se date vengono utilizzate le Date di Javascript
|
|
24
|
-
*
|
|
25
|
-
* 2. Se timestring vengono utilizzate stringhe del tipo '00:00:00'
|
|
26
|
-
*
|
|
27
|
-
* 3. Se dayjs viene utilizzato, appunto, dayjs
|
|
28
|
-
*/
|
|
29
|
-
InOutFormat: 'date' | 'timestring' | 'dayjs';
|
|
30
|
-
/** @ignore */
|
|
31
|
-
constructor(cdr: ChangeDetectorRef, dateAdapter: DateAdapter<any>, ngControl: NgControl, _validators: Array<any>, ac: AccessControlService, AppContext: ComponentContext, ACO_CUSTOMKEY: string);
|
|
32
|
-
/** @ignore Override per gestire input in ingresso */
|
|
33
|
-
writeValue(obj: any): void;
|
|
34
|
-
/** @ignore Override per gestire input in uscita */
|
|
35
|
-
changed(): void;
|
|
36
|
-
/** @ignore */
|
|
37
|
-
onNotNullValueSet(): void;
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormTimeComponent, [null, null, { optional: true; self: true; }, { optional: true; }, null, { optional: true; }, { optional: true; }]>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormTimeComponent, "form-time", never, { "ShowSpinners": { "alias": "ShowSpinners"; "required": false; }; "StepHour": { "alias": "StepHour"; "required": false; }; "StepMinute": { "alias": "StepMinute"; "required": false; }; "StepSecond": { "alias": "StepSecond"; "required": false; }; "ShowSeconds": { "alias": "ShowSeconds"; "required": false; }; "InOutFormat": { "alias": "InOutFormat"; "required": false; }; }, {}, never, never, false, never>;
|
|
40
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { FormsAndValidationsModuleConfig } from './models/FormsAndValidationsModuleConfig';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "./validations/validation-input/validation-input.component";
|
|
5
|
-
import * as i2 from "./validations/validation-select/validation-select.component";
|
|
6
|
-
import * as i3 from "./validations/validation-date/validation-date.component";
|
|
7
|
-
import * as i4 from "./validations/customValidators/CustomRequiredDirective";
|
|
8
|
-
import * as i5 from "./validations/validation-currency/validation-currency.component";
|
|
9
|
-
import * as i6 from "./validations/validation-text-area/validation-text-area.component";
|
|
10
|
-
import * as i7 from "./forms/form-checkbox/form-checkbox.component";
|
|
11
|
-
import * as i8 from "./forms/form-date/form-date.component";
|
|
12
|
-
import * as i9 from "./forms/form-empty/form-empty.component";
|
|
13
|
-
import * as i10 from "./forms/form-input/form-input.component";
|
|
14
|
-
import * as i11 from "./forms/form-select/form-select.component";
|
|
15
|
-
import * as i12 from "./forms/form-textarea/form-textarea.component";
|
|
16
|
-
import * as i13 from "./forms/form-template/form-template.component";
|
|
17
|
-
import * as i14 from "./forms/form-error/form-error.component";
|
|
18
|
-
import * as i15 from "./forms/form-info/form-info.component";
|
|
19
|
-
import * as i16 from "./forms/form-adaptive/form-adaptive.component";
|
|
20
|
-
import * as i17 from "./forms/form-multiselect/form-multiselect.component";
|
|
21
|
-
import * as i18 from "./forms/form-file/form-file.component";
|
|
22
|
-
import * as i19 from "./validations/validation-autocomplete/validation-autocomplete.component";
|
|
23
|
-
import * as i20 from "./validations/validation-autocomplete-multi/validation-autocomplete-multi.component";
|
|
24
|
-
import * as i21 from "./forms/form-autocomplete/form-autocomplete.component";
|
|
25
|
-
import * as i22 from "./forms/form-datetime/form-datetime.component";
|
|
26
|
-
import * as i23 from "./validations/validation-datetime/validation-datetime.component";
|
|
27
|
-
import * as i24 from "./forms/form-time/form-time.component";
|
|
28
|
-
import * as i25 from "@angular/common";
|
|
29
|
-
import * as i26 from "@angular/forms";
|
|
30
|
-
import * as i27 from "@esfaenza/localizations";
|
|
31
|
-
import * as i28 from "@angular/material/input";
|
|
32
|
-
import * as i29 from "@angular/material/chips";
|
|
33
|
-
import * as i30 from "@angular/material/icon";
|
|
34
|
-
import * as i31 from "@angular/material/checkbox";
|
|
35
|
-
import * as i32 from "@angular/material/datepicker";
|
|
36
|
-
import * as i33 from "@esfaenza/material-dayjs-adapter";
|
|
37
|
-
import * as i34 from "ngx-bootstrap/tooltip";
|
|
38
|
-
import * as i35 from "@esfaenza/ngx-currency-mask";
|
|
39
|
-
import * as i36 from "@angular/material/autocomplete";
|
|
40
|
-
import * as i37 from "angular2-multiselect-dropdown";
|
|
41
|
-
import * as i38 from "@ngxmc/datetime-picker";
|
|
42
|
-
export declare class FormsAndValidationsModule {
|
|
43
|
-
static forRoot(config?: FormsAndValidationsModuleConfig): ModuleWithProviders<FormsAndValidationsModule>;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormsAndValidationsModule, never>;
|
|
45
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormsAndValidationsModule, [typeof i1.ValidationInputComponent, typeof i2.ValidationSelectComponent, typeof i3.ValidationDateComponent, typeof i4.CustomRequiredDirective, typeof i5.ValidationCurrencyComponent, typeof i6.ValidationTextAreaComponent, typeof i7.FormCheckboxComponent, typeof i8.FormDateComponent, typeof i9.FormEmptyComponent, typeof i10.FormInputComponent, typeof i11.FormSelectComponent, typeof i12.FormTextareaComponent, typeof i13.FormTemplateComponent, typeof i14.FormErrorComponent, typeof i15.FormInfoComponent, typeof i16.FormAdaptiveComponent, typeof i17.FormMultiSelectComponent, typeof i18.FormFileComponent, typeof i19.ValidationAutocompleteComponent, typeof i20.ValidationAutocompleteMultiComponent, typeof i21.FormAutocompleteComponent, typeof i22.FormDateTimeComponent, typeof i23.ValidationDateTimeComponent, typeof i24.FormTimeComponent], [typeof i25.CommonModule, typeof i26.FormsModule, typeof i27.LocalizationModule, typeof i28.MatInputModule, typeof i29.MatChipsModule, typeof i30.MatIconModule, typeof i31.MatCheckboxModule, typeof i32.MatDatepickerModule, typeof i33.MatDayjsDateModule, typeof i34.TooltipModule, typeof i35.CurrencyMaskModule, typeof i36.MatAutocompleteModule, typeof i37.AngularMultiSelectModule, typeof i38.NgxMatTimepickerComponent, typeof i38.NgxMatDatetimepicker, typeof i38.NgxMatDatepickerActions, typeof i38.NgxMatDatepickerApply, typeof i38.NgxMatDatepickerCancel, typeof i38.NgxMatDatepickerClear, typeof i38.NgxMatDatepickerInput], [typeof i37.AngularMultiSelectModule, typeof i1.ValidationInputComponent, typeof i2.ValidationSelectComponent, typeof i3.ValidationDateComponent, typeof i4.CustomRequiredDirective, typeof i5.ValidationCurrencyComponent, typeof i6.ValidationTextAreaComponent, typeof i7.FormCheckboxComponent, typeof i8.FormDateComponent, typeof i9.FormEmptyComponent, typeof i10.FormInputComponent, typeof i11.FormSelectComponent, typeof i12.FormTextareaComponent, typeof i13.FormTemplateComponent, typeof i14.FormErrorComponent, typeof i15.FormInfoComponent, typeof i16.FormAdaptiveComponent, typeof i17.FormMultiSelectComponent, typeof i18.FormFileComponent, typeof i19.ValidationAutocompleteComponent, typeof i20.ValidationAutocompleteMultiComponent, typeof i21.FormAutocompleteComponent, typeof i22.FormDateTimeComponent, typeof i23.ValidationDateTimeComponent, typeof i24.FormTimeComponent]>;
|
|
46
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormsAndValidationsModule>;
|
|
47
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Classe di configurazione del modulo
|
|
3
|
-
*/
|
|
4
|
-
export declare class FormsAndValidationsModuleConfig {
|
|
5
|
-
/** Chiave dei permessi Custom in cui ci sono le informazioni di Ownership */
|
|
6
|
-
acocustom?: string;
|
|
7
|
-
/** Abilita o meno la modalità di debug */
|
|
8
|
-
debugMode?: boolean;
|
|
9
|
-
/** Abilita o meno la modalità slider delle checkbox */
|
|
10
|
-
sliderMode?: boolean;
|
|
11
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { DayJsDateAdapter } from "@esfaenza/material-dayjs-adapter";
|
|
2
|
-
import { Dayjs } from "dayjs";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Espansione dell'adapter di default di DayJs già utilizzato per i bind base su Material.
|
|
6
|
-
*
|
|
7
|
-
* Questa versione serve unicamente per i controlli **datetime-picker**, ma dato che io l'adapter già lo avevo lato **esfaenza/material-dayjs-adapter**
|
|
8
|
-
* qui devo semplicemente aggiungere le funzioni non presenti nella mia implementazione che servono al **datetime-picker**
|
|
9
|
-
*/
|
|
10
|
-
export declare class NgxExpandedDayJsDateAdapter extends DayJsDateAdapter {
|
|
11
|
-
/**
|
|
12
|
-
* @ignore
|
|
13
|
-
*/
|
|
14
|
-
constructor(dateLocale: string);
|
|
15
|
-
/**
|
|
16
|
-
* Identifica se due date hanno lo stesso orario
|
|
17
|
-
*
|
|
18
|
-
* @param {DayJs} a Primo elemento del controllo
|
|
19
|
-
* @param {DayJs} b Secondo elemento del controllo
|
|
20
|
-
* @returns **true** se hanno lo stess orario, **false** altrimenti
|
|
21
|
-
*/
|
|
22
|
-
isSameTime(a: Dayjs, b: Dayjs): boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Copia dell'orario da una data all'altra, Modifica direttamente l'oggetto **toDate**
|
|
25
|
-
*
|
|
26
|
-
* @param {DayJs} toDate Data in cui copiare l'orario
|
|
27
|
-
* @param {DayJs} fromDate Data da cui copiare l'orario
|
|
28
|
-
*/
|
|
29
|
-
copyTime(toDate: Dayjs, fromDate: Dayjs): void;
|
|
30
|
-
/**
|
|
31
|
-
* Mette a confronto due date
|
|
32
|
-
* @param {Dayjs} first Prima data da confrontare
|
|
33
|
-
* @param {Dayjs} second Seconda data da confrontare
|
|
34
|
-
* @param {boolean} showSeconds Indica se considerare anche i secondi, di default no
|
|
35
|
-
* @returns {number} 0 se le due date sono uguali, un numero minore di 0 se la prima data è precedente alla seconda e un numero maggiore di 0 altrimenti
|
|
36
|
-
*/
|
|
37
|
-
compareDateWithTime(first: Dayjs, second: Dayjs, showSeconds?: boolean): number;
|
|
38
|
-
/**
|
|
39
|
-
* Assegna a una data i valori di ore, minuti e secondi di default.
|
|
40
|
-
*
|
|
41
|
-
* Se non specificati vengono assegnati degli '0'
|
|
42
|
-
*
|
|
43
|
-
* @param {DayJs} date Data a cui assegnare i valori di default
|
|
44
|
-
* @param {number[]} defaultTime Valori di default per ore, minuti e secondi, considerati 0 se non presenti
|
|
45
|
-
*/
|
|
46
|
-
setTimeByDefaultValues(date: Dayjs, defaultTime: number[]): void;
|
|
47
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgxExpandedDayJsDateAdapter, never>;
|
|
48
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NgxExpandedDayJsDateAdapter>;
|
|
49
|
-
}
|