@esfaenza/forms-and-validations 16.2.31 → 17.3.16
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/esm2022/esfaenza-forms-and-validations.mjs +4 -4
- package/esm2022/lib/forms/base-form-control.mjs +558 -558
- package/esm2022/lib/forms/form-adaptive/form-adaptive.component.loc.mjs +21 -21
- package/esm2022/lib/forms/form-adaptive/form-adaptive.component.mjs +420 -420
- package/esm2022/lib/forms/form-autocomplete/form-autocomplete.component.loc.mjs +20 -20
- package/esm2022/lib/forms/form-autocomplete/form-autocomplete.component.mjs +289 -289
- package/esm2022/lib/forms/form-checkbox/form-checkbox.component.mjs +74 -74
- package/esm2022/lib/forms/form-date/form-date.component.mjs +69 -69
- package/esm2022/lib/forms/form-datetime/form-datetime.component.mjs +67 -67
- package/esm2022/lib/forms/form-empty/form-empty.component.mjs +29 -29
- package/esm2022/lib/forms/form-error/form-error.component.mjs +41 -41
- package/esm2022/lib/forms/form-file/form-file.component.loc.mjs +21 -21
- package/esm2022/lib/forms/form-file/form-file.component.mjs +175 -175
- package/esm2022/lib/forms/form-info/form-info.component.mjs +41 -41
- package/esm2022/lib/forms/form-input/form-input.component.mjs +83 -83
- package/esm2022/lib/forms/form-multiselect/form-multiselect.component.loc.mjs +22 -22
- package/esm2022/lib/forms/form-multiselect/form-multiselect.component.mjs +163 -163
- package/esm2022/lib/forms/form-select/form-select.component.loc.mjs +20 -20
- package/esm2022/lib/forms/form-select/form-select.component.mjs +165 -165
- package/esm2022/lib/forms/form-template/form-template.component.mjs +76 -76
- package/esm2022/lib/forms/form-textarea/form-textarea.component.mjs +57 -57
- package/esm2022/lib/forms/form-time/form-time.component.mjs +115 -115
- package/esm2022/lib/forms-and-validations.module.mjs +200 -200
- package/esm2022/lib/models/AppFile.mjs +13 -13
- package/esm2022/lib/models/ChangeEvent.mjs +6 -6
- package/esm2022/lib/models/FormsAndValidationsModuleConfig.mjs +5 -5
- package/esm2022/lib/models/dayjs-adapter/dayjs-date-adapter.mjs +89 -89
- package/esm2022/lib/tokens.mjs +7 -7
- package/esm2022/lib/validations/base-validation.loc.mjs +22 -22
- package/esm2022/lib/validations/base-validation.mjs +328 -328
- package/esm2022/lib/validations/customValidators/CustomRequiredDirective.mjs +40 -40
- package/esm2022/lib/validations/validation-autocomplete/validation-autocomplete.component.mjs +147 -147
- package/esm2022/lib/validations/validation-autocomplete-multi/validation-autocomplete-multi.component.mjs +240 -240
- package/esm2022/lib/validations/validation-currency/validation-currency.component.mjs +75 -75
- package/esm2022/lib/validations/validation-date/validation-date.component.mjs +183 -183
- package/esm2022/lib/validations/validation-datetime/validation-datetime.component.mjs +212 -212
- package/esm2022/lib/validations/validation-input/validation-input.component.mjs +222 -222
- package/esm2022/lib/validations/validation-select/validation-select.component.mjs +183 -183
- package/esm2022/lib/validations/validation-text-area/validation-text-area.component.mjs +78 -78
- package/esm2022/public-api.mjs +39 -39
- package/fesm2022/esfaenza-forms-and-validations.mjs +4162 -4162
- package/fesm2022/esfaenza-forms-and-validations.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/forms/base-form-control.d.ts +276 -276
- package/lib/forms/form-adaptive/form-adaptive.component.d.ts +126 -126
- package/lib/forms/form-adaptive/form-adaptive.component.loc.d.ts +14 -14
- package/lib/forms/form-autocomplete/form-autocomplete.component.d.ts +84 -84
- package/lib/forms/form-autocomplete/form-autocomplete.component.loc.d.ts +14 -14
- package/lib/forms/form-checkbox/form-checkbox.component.d.ts +23 -23
- package/lib/forms/form-date/form-date.component.d.ts +21 -21
- package/lib/forms/form-datetime/form-datetime.component.d.ts +23 -23
- package/lib/forms/form-empty/form-empty.component.d.ts +15 -15
- package/lib/forms/form-error/form-error.component.d.ts +19 -19
- package/lib/forms/form-file/form-file.component.d.ts +46 -46
- package/lib/forms/form-file/form-file.component.loc.d.ts +14 -14
- package/lib/forms/form-info/form-info.component.d.ts +19 -19
- package/lib/forms/form-input/form-input.component.d.ts +33 -33
- package/lib/forms/form-multiselect/form-multiselect.component.d.ts +67 -67
- package/lib/forms/form-multiselect/form-multiselect.component.loc.d.ts +14 -14
- package/lib/forms/form-select/form-select.component.d.ts +43 -43
- package/lib/forms/form-select/form-select.component.loc.d.ts +14 -14
- package/lib/forms/form-template/form-template.component.d.ts +38 -38
- package/lib/forms/form-textarea/form-textarea.component.d.ts +18 -18
- package/lib/forms/form-time/form-time.component.d.ts +40 -40
- package/lib/forms-and-validations.module.d.ts +47 -47
- package/lib/models/AppFile.d.ts +21 -21
- package/lib/models/ChangeEvent.d.ts +5 -5
- package/lib/models/FormsAndValidationsModuleConfig.d.ts +11 -11
- package/lib/models/dayjs-adapter/dayjs-date-adapter.d.ts +49 -49
- package/lib/tokens.d.ts +7 -7
- package/lib/validations/base-validation.d.ts +219 -219
- package/lib/validations/base-validation.loc.d.ts +14 -14
- package/lib/validations/customValidators/CustomRequiredDirective.d.ts +24 -24
- package/lib/validations/validation-autocomplete/validation-autocomplete.component.d.ts +58 -58
- package/lib/validations/validation-autocomplete-multi/validation-autocomplete-multi.component.d.ts +88 -88
- package/lib/validations/validation-currency/validation-currency.component.d.ts +28 -28
- package/lib/validations/validation-date/validation-date.component.d.ts +79 -79
- package/lib/validations/validation-datetime/validation-datetime.component.d.ts +109 -109
- package/lib/validations/validation-input/validation-input.component.d.ts +134 -134
- package/lib/validations/validation-select/validation-select.component.d.ts +95 -95
- package/lib/validations/validation-text-area/validation-text-area.component.d.ts +28 -28
- package/package.json +13 -13
- package/public-api.d.ts +31 -31
|
@@ -1,126 +1,126 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, SimpleChanges } from "@angular/core";
|
|
2
|
-
import { ControlValueAccessor, NgControl, ValidatorFn } from "@angular/forms";
|
|
3
|
-
import { LocalizationService } from "@esfaenza/localizations";
|
|
4
|
-
import { DateService, UtilityService } from "@esfaenza/extensions";
|
|
5
|
-
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
6
|
-
import { NgxMatDateAdapter } from "@angular-material-components/datetime-picker";
|
|
7
|
-
import { BaseFormControl } from "../base-form-control";
|
|
8
|
-
import { AppFile } from "../../models/AppFile";
|
|
9
|
-
import { Observable } from "rxjs";
|
|
10
|
-
import { ChangeEvent } from "../../models/ChangeEvent";
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
/** Opzioni generiche disponibili */
|
|
13
|
-
export type AvailableOptions = 'JsDates' | 'CaseSensitive' | 'MinChars' | 'SearchFunction' | 'Alignment' | 'Precision' | 'AllowDownload' | 'AdjustNumber' | 'Pattern';
|
|
14
|
-
/** Componente in grado di assumere la forma di un qualsiasi altro componente form in base al tipo specificato. Utile per la creazione di form dinamici */
|
|
15
|
-
export declare class FormAdaptiveComponent extends BaseFormControl implements ControlValueAccessor {
|
|
16
|
-
private utiExts;
|
|
17
|
-
private datesExts;
|
|
18
|
-
private dateAdapter;
|
|
19
|
-
lc: LocalizationService;
|
|
20
|
-
/** Tipologia che decide che componente mostrare */
|
|
21
|
-
Type: 'string' | 'float' | 'date' | 'number' | 'int' | 'boolean' | 'enum' | 'autocomplete' | 'datetime' | 'time' | 'file' | 'currency';
|
|
22
|
-
/** Messaggio per quando si binda un form-adaptive senza tipo */
|
|
23
|
-
TypeMissingMessage: string;
|
|
24
|
-
/** Pattern di validazione */
|
|
25
|
-
Pattern: string;
|
|
26
|
-
/** Indica di aggiustare in uscita i number in modo che siano parsabili dal javascript */
|
|
27
|
-
AdjustNumber: boolean;
|
|
28
|
-
/** Riferimento all'elemento input di tipo file qualora il **Type** di questo componente fosse **file** */
|
|
29
|
-
inputEl: ElementRef;
|
|
30
|
-
/** Permette di scaricare l'eventuale file presente qualora il **Type** di questo componente fosse **file** */
|
|
31
|
-
AllowDownload: boolean;
|
|
32
|
-
/** Modello typescript di bind dei file */
|
|
33
|
-
ModelFile: AppFile;
|
|
34
|
-
/** Utilizzata nel form-adapter per specificare la precisione degli input currencymap (Type: currency) */
|
|
35
|
-
Precision: number;
|
|
36
|
-
/** Allineamento della currency mask */
|
|
37
|
-
Alignment: 'left' | 'right';
|
|
38
|
-
/** Funzione di ricerca che verrà chiamata dal componente */
|
|
39
|
-
SearchFunction: (search: string, byid: boolean) => Observable<{
|
|
40
|
-
id: string;
|
|
41
|
-
description: string;
|
|
42
|
-
}[]>;
|
|
43
|
-
/** Numero minimo di caratteri con cui cercare */
|
|
44
|
-
MinChars: number;
|
|
45
|
-
/** Indica se i controlli devono essere effettuati tenendo conto del Case o meno. Vale solo qualora la **Source** fosse fornita */
|
|
46
|
-
CaseSensitive: boolean;
|
|
47
|
-
/** Opzioni specifiche per il componente che si va a visualizzare. Es. per i tipi date: { JsDates: true } */
|
|
48
|
-
Options: {
|
|
49
|
-
[id in AvailableOptions]?: any;
|
|
50
|
-
};
|
|
51
|
-
/** Variabile interna che gestisce se effettuare il riallineamento dei dati o meno */
|
|
52
|
-
private alignValues;
|
|
53
|
-
/**
|
|
54
|
-
* Indica se ignorare il prossimo evento writeValue che normalmente dovrebbe richiedere la nuova source. Serve per quando l'utente seleziona un elemento:
|
|
55
|
-
* Subito dopo partirebbe un altro evento modelChange che ricaricherebbe nuovamente la source
|
|
56
|
-
*/
|
|
57
|
-
private ignoreNextWriteValue;
|
|
58
|
-
/** Cache della sorgente originale POST binding, in modo da poter fare filtri in locale qualora la **SearchFunction** non fosse definita e la **Source** fosse assegnata */
|
|
59
|
-
FilteredBoundSource: {
|
|
60
|
-
id: string;
|
|
61
|
-
description: string;
|
|
62
|
-
}[];
|
|
63
|
-
/** Solo per gli input di tipo "date". Capisce che modalità usare per il validation-date sottostante */
|
|
64
|
-
useJsDates: boolean;
|
|
65
|
-
/** Variabile interna che salva il valore degli input float prima dell'aggiustamento */
|
|
66
|
-
private floatValuePreAdjustmente;
|
|
67
|
-
/** @ignore Costruttore */
|
|
68
|
-
constructor(cdr: ChangeDetectorRef, utiExts: UtilityService, datesExts: DateService, dateAdapter: NgxMatDateAdapter<any>, lc: LocalizationService, ngControl: NgControl, _validators: Array<any>, ac: AccessControlService, AppContext: ComponentContext, ACO_CUSTOMKEY: string, FAV_DEBUG_MODE: boolean);
|
|
69
|
-
IntPattern: string;
|
|
70
|
-
FloatPattern: string;
|
|
71
|
-
/**
|
|
72
|
-
* Nvl con un minimo di senso
|
|
73
|
-
* @param value Valore base
|
|
74
|
-
* @param ifnod Valore da usare se **value** è nullo o undefined
|
|
75
|
-
* @returns Il valore preso fra i due disponibili
|
|
76
|
-
*/
|
|
77
|
-
private nvl;
|
|
78
|
-
ngOnInit(): void;
|
|
79
|
-
/**
|
|
80
|
-
* Validator that requires the control's value to match a regex pattern.
|
|
81
|
-
* See `Validators.pattern` for additional information.
|
|
82
|
-
*/
|
|
83
|
-
customPatternValidator(pattern: string | RegExp): ValidatorFn;
|
|
84
|
-
/** @ignore */
|
|
85
|
-
ngOnChanges(changes: SimpleChanges): Promise<void>;
|
|
86
|
-
/** @ignore */
|
|
87
|
-
writeValue(obj: any): void;
|
|
88
|
-
/**
|
|
89
|
-
* Dato un valore verifica se può restituire le informazioni trovate in **Source** con id uguale a **value** o se deve restituire il valore in se
|
|
90
|
-
*
|
|
91
|
-
* @param {any} value Valore scritto nell'input di testo
|
|
92
|
-
*/
|
|
93
|
-
private finalizeValue;
|
|
94
|
-
/**
|
|
95
|
-
* Evento di filtro della sorgente dati in base all'input utente
|
|
96
|
-
*
|
|
97
|
-
* @param {string} event Input utente
|
|
98
|
-
*/
|
|
99
|
-
filterSource(event?: ChangeEvent): void;
|
|
100
|
-
/** @ignore */
|
|
101
|
-
private removeFilteredSourceOnDescriptionSelection;
|
|
102
|
-
/** Metodo richiamato quando viene modificato il modello del campo di input */
|
|
103
|
-
changed(event?: ChangeEvent): void;
|
|
104
|
-
/** @ignore */
|
|
105
|
-
finalized(): void;
|
|
106
|
-
/** Metodo richiamato quando viene selezionato il campo col mouse */
|
|
107
|
-
focused(event: any): void;
|
|
108
|
-
/** Effettua gli aggiustamenti dati del caso ed emette il modello corretto */
|
|
109
|
-
private getModelToEmit;
|
|
110
|
-
/**
|
|
111
|
-
* Helper per gestire la modifica del file attualmente bindato. Ovviamente funziona solo qualora il **Type** fosse **file**
|
|
112
|
-
*
|
|
113
|
-
* @param {boolean} clear Indica se bisogna svuotare l'input o meno
|
|
114
|
-
*/
|
|
115
|
-
fileChange(clear?: boolean): void;
|
|
116
|
-
/** Permette di scaricare il file collegato all'evetnuale file input rappresentato da questo componente */
|
|
117
|
-
downloadAttachment(): void;
|
|
118
|
-
/** @ignore */
|
|
119
|
-
onNotNullValueSet(): void;
|
|
120
|
-
/** @ignore */
|
|
121
|
-
private executionTimers;
|
|
122
|
-
/** @ignore */
|
|
123
|
-
private throttla;
|
|
124
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormAdaptiveComponent, [null, null, null, null, null, { optional: true; self: true; }, { optional: true; }, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
125
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormAdaptiveComponent, "form-adaptive", never, { "Type": { "alias": "Type"; "required": false; }; "TypeMissingMessage": { "alias": "TypeMissingMessage"; "required": false; }; "Pattern": { "alias": "Pattern"; "required": false; }; "AdjustNumber": { "alias": "AdjustNumber"; "required": false; }; "AllowDownload": { "alias": "AllowDownload"; "required": false; }; "Precision": { "alias": "Precision"; "required": false; }; "Alignment": { "alias": "Alignment"; "required": false; }; "SearchFunction": { "alias": "SearchFunction"; "required": false; }; "MinChars": { "alias": "MinChars"; "required": false; }; "CaseSensitive": { "alias": "CaseSensitive"; "required": false; }; "Options": { "alias": "Options"; "required": false; }; }, {}, never, never, false, never>;
|
|
126
|
-
}
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, SimpleChanges } from "@angular/core";
|
|
2
|
+
import { ControlValueAccessor, NgControl, ValidatorFn } from "@angular/forms";
|
|
3
|
+
import { LocalizationService } from "@esfaenza/localizations";
|
|
4
|
+
import { DateService, UtilityService } from "@esfaenza/extensions";
|
|
5
|
+
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
6
|
+
import { NgxMatDateAdapter } from "@angular-material-components/datetime-picker";
|
|
7
|
+
import { BaseFormControl } from "../base-form-control";
|
|
8
|
+
import { AppFile } from "../../models/AppFile";
|
|
9
|
+
import { Observable } from "rxjs";
|
|
10
|
+
import { ChangeEvent } from "../../models/ChangeEvent";
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
/** Opzioni generiche disponibili */
|
|
13
|
+
export type AvailableOptions = 'JsDates' | 'CaseSensitive' | 'MinChars' | 'SearchFunction' | 'Alignment' | 'Precision' | 'AllowDownload' | 'AdjustNumber' | 'Pattern';
|
|
14
|
+
/** Componente in grado di assumere la forma di un qualsiasi altro componente form in base al tipo specificato. Utile per la creazione di form dinamici */
|
|
15
|
+
export declare class FormAdaptiveComponent extends BaseFormControl implements ControlValueAccessor {
|
|
16
|
+
private utiExts;
|
|
17
|
+
private datesExts;
|
|
18
|
+
private dateAdapter;
|
|
19
|
+
lc: LocalizationService;
|
|
20
|
+
/** Tipologia che decide che componente mostrare */
|
|
21
|
+
Type: 'string' | 'float' | 'date' | 'number' | 'int' | 'boolean' | 'enum' | 'autocomplete' | 'datetime' | 'time' | 'file' | 'currency';
|
|
22
|
+
/** Messaggio per quando si binda un form-adaptive senza tipo */
|
|
23
|
+
TypeMissingMessage: string;
|
|
24
|
+
/** Pattern di validazione */
|
|
25
|
+
Pattern: string;
|
|
26
|
+
/** Indica di aggiustare in uscita i number in modo che siano parsabili dal javascript */
|
|
27
|
+
AdjustNumber: boolean;
|
|
28
|
+
/** Riferimento all'elemento input di tipo file qualora il **Type** di questo componente fosse **file** */
|
|
29
|
+
inputEl: ElementRef;
|
|
30
|
+
/** Permette di scaricare l'eventuale file presente qualora il **Type** di questo componente fosse **file** */
|
|
31
|
+
AllowDownload: boolean;
|
|
32
|
+
/** Modello typescript di bind dei file */
|
|
33
|
+
ModelFile: AppFile;
|
|
34
|
+
/** Utilizzata nel form-adapter per specificare la precisione degli input currencymap (Type: currency) */
|
|
35
|
+
Precision: number;
|
|
36
|
+
/** Allineamento della currency mask */
|
|
37
|
+
Alignment: 'left' | 'right';
|
|
38
|
+
/** Funzione di ricerca che verrà chiamata dal componente */
|
|
39
|
+
SearchFunction: (search: string, byid: boolean) => Observable<{
|
|
40
|
+
id: string;
|
|
41
|
+
description: string;
|
|
42
|
+
}[]>;
|
|
43
|
+
/** Numero minimo di caratteri con cui cercare */
|
|
44
|
+
MinChars: number;
|
|
45
|
+
/** Indica se i controlli devono essere effettuati tenendo conto del Case o meno. Vale solo qualora la **Source** fosse fornita */
|
|
46
|
+
CaseSensitive: boolean;
|
|
47
|
+
/** Opzioni specifiche per il componente che si va a visualizzare. Es. per i tipi date: { JsDates: true } */
|
|
48
|
+
Options: {
|
|
49
|
+
[id in AvailableOptions]?: any;
|
|
50
|
+
};
|
|
51
|
+
/** Variabile interna che gestisce se effettuare il riallineamento dei dati o meno */
|
|
52
|
+
private alignValues;
|
|
53
|
+
/**
|
|
54
|
+
* Indica se ignorare il prossimo evento writeValue che normalmente dovrebbe richiedere la nuova source. Serve per quando l'utente seleziona un elemento:
|
|
55
|
+
* Subito dopo partirebbe un altro evento modelChange che ricaricherebbe nuovamente la source
|
|
56
|
+
*/
|
|
57
|
+
private ignoreNextWriteValue;
|
|
58
|
+
/** Cache della sorgente originale POST binding, in modo da poter fare filtri in locale qualora la **SearchFunction** non fosse definita e la **Source** fosse assegnata */
|
|
59
|
+
FilteredBoundSource: {
|
|
60
|
+
id: string;
|
|
61
|
+
description: string;
|
|
62
|
+
}[];
|
|
63
|
+
/** Solo per gli input di tipo "date". Capisce che modalità usare per il validation-date sottostante */
|
|
64
|
+
useJsDates: boolean;
|
|
65
|
+
/** Variabile interna che salva il valore degli input float prima dell'aggiustamento */
|
|
66
|
+
private floatValuePreAdjustmente;
|
|
67
|
+
/** @ignore Costruttore */
|
|
68
|
+
constructor(cdr: ChangeDetectorRef, utiExts: UtilityService, datesExts: DateService, dateAdapter: NgxMatDateAdapter<any>, lc: LocalizationService, ngControl: NgControl, _validators: Array<any>, ac: AccessControlService, AppContext: ComponentContext, ACO_CUSTOMKEY: string, FAV_DEBUG_MODE: boolean);
|
|
69
|
+
IntPattern: string;
|
|
70
|
+
FloatPattern: string;
|
|
71
|
+
/**
|
|
72
|
+
* Nvl con un minimo di senso
|
|
73
|
+
* @param value Valore base
|
|
74
|
+
* @param ifnod Valore da usare se **value** è nullo o undefined
|
|
75
|
+
* @returns Il valore preso fra i due disponibili
|
|
76
|
+
*/
|
|
77
|
+
private nvl;
|
|
78
|
+
ngOnInit(): void;
|
|
79
|
+
/**
|
|
80
|
+
* Validator that requires the control's value to match a regex pattern.
|
|
81
|
+
* See `Validators.pattern` for additional information.
|
|
82
|
+
*/
|
|
83
|
+
customPatternValidator(pattern: string | RegExp): ValidatorFn;
|
|
84
|
+
/** @ignore */
|
|
85
|
+
ngOnChanges(changes: SimpleChanges): Promise<void>;
|
|
86
|
+
/** @ignore */
|
|
87
|
+
writeValue(obj: any): void;
|
|
88
|
+
/**
|
|
89
|
+
* Dato un valore verifica se può restituire le informazioni trovate in **Source** con id uguale a **value** o se deve restituire il valore in se
|
|
90
|
+
*
|
|
91
|
+
* @param {any} value Valore scritto nell'input di testo
|
|
92
|
+
*/
|
|
93
|
+
private finalizeValue;
|
|
94
|
+
/**
|
|
95
|
+
* Evento di filtro della sorgente dati in base all'input utente
|
|
96
|
+
*
|
|
97
|
+
* @param {string} event Input utente
|
|
98
|
+
*/
|
|
99
|
+
filterSource(event?: ChangeEvent): void;
|
|
100
|
+
/** @ignore */
|
|
101
|
+
private removeFilteredSourceOnDescriptionSelection;
|
|
102
|
+
/** Metodo richiamato quando viene modificato il modello del campo di input */
|
|
103
|
+
changed(event?: ChangeEvent): void;
|
|
104
|
+
/** @ignore */
|
|
105
|
+
finalized(): void;
|
|
106
|
+
/** Metodo richiamato quando viene selezionato il campo col mouse */
|
|
107
|
+
focused(event: any): void;
|
|
108
|
+
/** Effettua gli aggiustamenti dati del caso ed emette il modello corretto */
|
|
109
|
+
private getModelToEmit;
|
|
110
|
+
/**
|
|
111
|
+
* Helper per gestire la modifica del file attualmente bindato. Ovviamente funziona solo qualora il **Type** fosse **file**
|
|
112
|
+
*
|
|
113
|
+
* @param {boolean} clear Indica se bisogna svuotare l'input o meno
|
|
114
|
+
*/
|
|
115
|
+
fileChange(clear?: boolean): void;
|
|
116
|
+
/** Permette di scaricare il file collegato all'evetnuale file input rappresentato da questo componente */
|
|
117
|
+
downloadAttachment(): void;
|
|
118
|
+
/** @ignore */
|
|
119
|
+
onNotNullValueSet(): void;
|
|
120
|
+
/** @ignore */
|
|
121
|
+
private executionTimers;
|
|
122
|
+
/** @ignore */
|
|
123
|
+
private throttla;
|
|
124
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormAdaptiveComponent, [null, null, null, null, null, { optional: true; self: true; }, { optional: true; }, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
125
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormAdaptiveComponent, "form-adaptive", never, { "Type": { "alias": "Type"; "required": false; }; "TypeMissingMessage": { "alias": "TypeMissingMessage"; "required": false; }; "Pattern": { "alias": "Pattern"; "required": false; }; "AdjustNumber": { "alias": "AdjustNumber"; "required": false; }; "AllowDownload": { "alias": "AllowDownload"; "required": false; }; "Precision": { "alias": "Precision"; "required": false; }; "Alignment": { "alias": "Alignment"; "required": false; }; "SearchFunction": { "alias": "SearchFunction"; "required": false; }; "MinChars": { "alias": "MinChars"; "required": false; }; "CaseSensitive": { "alias": "CaseSensitive"; "required": false; }; "Options": { "alias": "Options"; "required": false; }; }, {}, never, never, false, never>;
|
|
126
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
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 **FormAdaptiveComponent**
|
|
6
|
-
*/
|
|
7
|
-
export declare class FormAdaptiveComponentLoc extends LocalizationService {
|
|
8
|
-
/**
|
|
9
|
-
* @ignore
|
|
10
|
-
*/
|
|
11
|
-
constructor(injector: Injector);
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormAdaptiveComponentLoc, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FormAdaptiveComponentLoc>;
|
|
14
|
-
}
|
|
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 **FormAdaptiveComponent**
|
|
6
|
+
*/
|
|
7
|
+
export declare class FormAdaptiveComponentLoc extends LocalizationService {
|
|
8
|
+
/**
|
|
9
|
+
* @ignore
|
|
10
|
+
*/
|
|
11
|
+
constructor(injector: Injector);
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormAdaptiveComponentLoc, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormAdaptiveComponentLoc>;
|
|
14
|
+
}
|
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import { ChangeDetectorRef, SimpleChanges } 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 { LocalizationService } from "@esfaenza/localizations";
|
|
6
|
-
import { Observable } from "rxjs";
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/** Componente di input che si auto-completa in base al valore attuale */
|
|
9
|
-
export declare class FormAutocompleteComponent extends BaseFormControl implements ControlValueAccessor {
|
|
10
|
-
lc: LocalizationService;
|
|
11
|
-
/** Permette di specificare il testo della Label flottante material-style */
|
|
12
|
-
SelectLabel: string;
|
|
13
|
-
/** Contesto per la funzione di ricerca */
|
|
14
|
-
SearchFunctionContext: any;
|
|
15
|
-
/** Funzione di ricerca che verrà chiamata dal componente */
|
|
16
|
-
SearchFunction: (search: string, byid: boolean, context?: any) => Observable<{
|
|
17
|
-
id: string;
|
|
18
|
-
description: string;
|
|
19
|
-
}[]>;
|
|
20
|
-
/** Numero minimo di caratteri con cui cercare */
|
|
21
|
-
MinChars: number;
|
|
22
|
-
/** Definisce che ad ogni selezione deve chiudere la tendina */
|
|
23
|
-
HideChoicesOnSelection: boolean;
|
|
24
|
-
/** Override del placeholder per select requried */
|
|
25
|
-
RequiredPlaceholder: string;
|
|
26
|
-
/** Indica se i controlli devono essere effettuati tenendo conto del Case o meno. Vale solo qualora la **Source** fosse fornita */
|
|
27
|
-
CaseSensitive: boolean;
|
|
28
|
-
/** Indica se usare la modalità multiselezione o no */
|
|
29
|
-
Multi: boolean;
|
|
30
|
-
/** Indica se usare la modalità multiselezione o no */
|
|
31
|
-
MultiElementsThreshold: number;
|
|
32
|
-
/** Indica il fatto che non c'è una Source da cui scegliere */
|
|
33
|
-
UnboundMode: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Indica se ignorare il prossimo evento writeValue che normalmente dovrebbe richiedere la nuova source. Serve per quando l'utente seleziona un elemento:
|
|
36
|
-
* Subito dopo partirebbe un altro evento modelChange che ricaricherebbe nuovamente la source
|
|
37
|
-
*/
|
|
38
|
-
private ignoreNextWriteValue;
|
|
39
|
-
/** Sorgente Bindata Filtrata in base al contenuto della casella di testo */
|
|
40
|
-
FilteredBoundSource: {
|
|
41
|
-
id: string;
|
|
42
|
-
description: string;
|
|
43
|
-
}[];
|
|
44
|
-
/** @ignore Costruttore */
|
|
45
|
-
constructor(cdr: ChangeDetectorRef, lc: LocalizationService, ngControl: NgControl, _validators: Array<any>, ac: AccessControlService, AppContext: ComponentContext, ACO_CUSTOMKEY: string, FAV_DEBUG_MODE: boolean);
|
|
46
|
-
/** @ignore */
|
|
47
|
-
writeValue(value: any): void;
|
|
48
|
-
/**
|
|
49
|
-
* Dato un valore verifica se può restituire le informazioni trovate in **Source** con id uguale a **value** o se deve restituire il valore in se
|
|
50
|
-
*
|
|
51
|
-
* @param {any} value Valore scritto nell'input di testo
|
|
52
|
-
*/
|
|
53
|
-
private finalizeValue;
|
|
54
|
-
/**
|
|
55
|
-
* Quando viene scritto un nuovo valore bisogna controllare se per botta di culo fosse un id, in tal caso dev'essere rieffettuato il bind
|
|
56
|
-
* per mostrare solo la descrizione nell'autocomplete
|
|
57
|
-
*/
|
|
58
|
-
evaluateIdResearch(onFailure: Function): void;
|
|
59
|
-
/**
|
|
60
|
-
* Evento di filtro della sorgente dati in base all'input utente
|
|
61
|
-
*
|
|
62
|
-
* @param {string} event Input utente
|
|
63
|
-
*/
|
|
64
|
-
filterSource(event: string): void;
|
|
65
|
-
doFilterSource(event: string): void;
|
|
66
|
-
timer: any;
|
|
67
|
-
maxCallsPerSecond: number;
|
|
68
|
-
callsDoneThisThreeSeconds: number;
|
|
69
|
-
private doSearchProtected;
|
|
70
|
-
/** @ignore */
|
|
71
|
-
private removeFilteredSourceOnDescriptionSelection;
|
|
72
|
-
/** @ignore */
|
|
73
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
74
|
-
/** @ignore Override che marca anche il prossimo evento di filterSource da ignorare */
|
|
75
|
-
changed(forcedValue?: any, markForCheck?: boolean): void;
|
|
76
|
-
/** @ignore */
|
|
77
|
-
onNotNullValueSet(): void;
|
|
78
|
-
/** @ignore */
|
|
79
|
-
private executionTimers;
|
|
80
|
-
/** @ignore */
|
|
81
|
-
private throttla;
|
|
82
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormAutocompleteComponent, [null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
83
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormAutocompleteComponent, "form-autocomplete", never, { "SelectLabel": { "alias": "SelectLabel"; "required": false; }; "SearchFunctionContext": { "alias": "SearchFunctionContext"; "required": false; }; "SearchFunction": { "alias": "SearchFunction"; "required": false; }; "MinChars": { "alias": "MinChars"; "required": false; }; "HideChoicesOnSelection": { "alias": "HideChoicesOnSelection"; "required": false; }; "RequiredPlaceholder": { "alias": "RequiredPlaceholder"; "required": false; }; "CaseSensitive": { "alias": "CaseSensitive"; "required": false; }; "Multi": { "alias": "Multi"; "required": false; }; "MultiElementsThreshold": { "alias": "MultiElementsThreshold"; "required": false; }; "UnboundMode": { "alias": "UnboundMode"; "required": false; }; }, {}, never, never, false, never>;
|
|
84
|
-
}
|
|
1
|
+
import { ChangeDetectorRef, SimpleChanges } 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 { LocalizationService } from "@esfaenza/localizations";
|
|
6
|
+
import { Observable } from "rxjs";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/** Componente di input che si auto-completa in base al valore attuale */
|
|
9
|
+
export declare class FormAutocompleteComponent extends BaseFormControl implements ControlValueAccessor {
|
|
10
|
+
lc: LocalizationService;
|
|
11
|
+
/** Permette di specificare il testo della Label flottante material-style */
|
|
12
|
+
SelectLabel: string;
|
|
13
|
+
/** Contesto per la funzione di ricerca */
|
|
14
|
+
SearchFunctionContext: any;
|
|
15
|
+
/** Funzione di ricerca che verrà chiamata dal componente */
|
|
16
|
+
SearchFunction: (search: string, byid: boolean, context?: any) => Observable<{
|
|
17
|
+
id: string;
|
|
18
|
+
description: string;
|
|
19
|
+
}[]>;
|
|
20
|
+
/** Numero minimo di caratteri con cui cercare */
|
|
21
|
+
MinChars: number;
|
|
22
|
+
/** Definisce che ad ogni selezione deve chiudere la tendina */
|
|
23
|
+
HideChoicesOnSelection: boolean;
|
|
24
|
+
/** Override del placeholder per select requried */
|
|
25
|
+
RequiredPlaceholder: string;
|
|
26
|
+
/** Indica se i controlli devono essere effettuati tenendo conto del Case o meno. Vale solo qualora la **Source** fosse fornita */
|
|
27
|
+
CaseSensitive: boolean;
|
|
28
|
+
/** Indica se usare la modalità multiselezione o no */
|
|
29
|
+
Multi: boolean;
|
|
30
|
+
/** Indica se usare la modalità multiselezione o no */
|
|
31
|
+
MultiElementsThreshold: number;
|
|
32
|
+
/** Indica il fatto che non c'è una Source da cui scegliere */
|
|
33
|
+
UnboundMode: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Indica se ignorare il prossimo evento writeValue che normalmente dovrebbe richiedere la nuova source. Serve per quando l'utente seleziona un elemento:
|
|
36
|
+
* Subito dopo partirebbe un altro evento modelChange che ricaricherebbe nuovamente la source
|
|
37
|
+
*/
|
|
38
|
+
private ignoreNextWriteValue;
|
|
39
|
+
/** Sorgente Bindata Filtrata in base al contenuto della casella di testo */
|
|
40
|
+
FilteredBoundSource: {
|
|
41
|
+
id: string;
|
|
42
|
+
description: string;
|
|
43
|
+
}[];
|
|
44
|
+
/** @ignore Costruttore */
|
|
45
|
+
constructor(cdr: ChangeDetectorRef, lc: LocalizationService, ngControl: NgControl, _validators: Array<any>, ac: AccessControlService, AppContext: ComponentContext, ACO_CUSTOMKEY: string, FAV_DEBUG_MODE: boolean);
|
|
46
|
+
/** @ignore */
|
|
47
|
+
writeValue(value: any): void;
|
|
48
|
+
/**
|
|
49
|
+
* Dato un valore verifica se può restituire le informazioni trovate in **Source** con id uguale a **value** o se deve restituire il valore in se
|
|
50
|
+
*
|
|
51
|
+
* @param {any} value Valore scritto nell'input di testo
|
|
52
|
+
*/
|
|
53
|
+
private finalizeValue;
|
|
54
|
+
/**
|
|
55
|
+
* Quando viene scritto un nuovo valore bisogna controllare se per botta di culo fosse un id, in tal caso dev'essere rieffettuato il bind
|
|
56
|
+
* per mostrare solo la descrizione nell'autocomplete
|
|
57
|
+
*/
|
|
58
|
+
evaluateIdResearch(onFailure: Function): void;
|
|
59
|
+
/**
|
|
60
|
+
* Evento di filtro della sorgente dati in base all'input utente
|
|
61
|
+
*
|
|
62
|
+
* @param {string} event Input utente
|
|
63
|
+
*/
|
|
64
|
+
filterSource(event: string): void;
|
|
65
|
+
doFilterSource(event: string): void;
|
|
66
|
+
timer: any;
|
|
67
|
+
maxCallsPerSecond: number;
|
|
68
|
+
callsDoneThisThreeSeconds: number;
|
|
69
|
+
private doSearchProtected;
|
|
70
|
+
/** @ignore */
|
|
71
|
+
private removeFilteredSourceOnDescriptionSelection;
|
|
72
|
+
/** @ignore */
|
|
73
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
74
|
+
/** @ignore Override che marca anche il prossimo evento di filterSource da ignorare */
|
|
75
|
+
changed(forcedValue?: any, markForCheck?: boolean): void;
|
|
76
|
+
/** @ignore */
|
|
77
|
+
onNotNullValueSet(): void;
|
|
78
|
+
/** @ignore */
|
|
79
|
+
private executionTimers;
|
|
80
|
+
/** @ignore */
|
|
81
|
+
private throttla;
|
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormAutocompleteComponent, [null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
83
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormAutocompleteComponent, "form-autocomplete", never, { "SelectLabel": { "alias": "SelectLabel"; "required": false; }; "SearchFunctionContext": { "alias": "SearchFunctionContext"; "required": false; }; "SearchFunction": { "alias": "SearchFunction"; "required": false; }; "MinChars": { "alias": "MinChars"; "required": false; }; "HideChoicesOnSelection": { "alias": "HideChoicesOnSelection"; "required": false; }; "RequiredPlaceholder": { "alias": "RequiredPlaceholder"; "required": false; }; "CaseSensitive": { "alias": "CaseSensitive"; "required": false; }; "Multi": { "alias": "Multi"; "required": false; }; "MultiElementsThreshold": { "alias": "MultiElementsThreshold"; "required": false; }; "UnboundMode": { "alias": "UnboundMode"; "required": false; }; }, {}, never, never, false, never>;
|
|
84
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
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 **FormAutocompleteComponent**
|
|
6
|
-
*/
|
|
7
|
-
export declare class FormAutocompleteComponentLoc extends LocalizationService {
|
|
8
|
-
/**
|
|
9
|
-
* @ignore
|
|
10
|
-
*/
|
|
11
|
-
constructor(injector: Injector);
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormAutocompleteComponentLoc, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FormAutocompleteComponentLoc>;
|
|
14
|
-
}
|
|
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 **FormAutocompleteComponent**
|
|
6
|
+
*/
|
|
7
|
+
export declare class FormAutocompleteComponentLoc extends LocalizationService {
|
|
8
|
+
/**
|
|
9
|
+
* @ignore
|
|
10
|
+
*/
|
|
11
|
+
constructor(injector: Injector);
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormAutocompleteComponentLoc, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormAutocompleteComponentLoc>;
|
|
14
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ControlValueAccessor, NgControl } from "@angular/forms";
|
|
2
|
-
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
3
|
-
import { BaseFormControl } from "../base-form-control";
|
|
4
|
-
import { ChangeDetectorRef } from "@angular/core";
|
|
5
|
-
import { LocalizationService } from "@esfaenza/localizations";
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/** Componente rappresentante una checkbox */
|
|
8
|
-
export declare class FormCheckboxComponent extends BaseFormControl implements ControlValueAccessor {
|
|
9
|
-
private lc;
|
|
10
|
-
private FAV_SLIDER_MODE;
|
|
11
|
-
/** Mostra l'input checkbox con lo stile di uno slider */
|
|
12
|
-
SliderMode: boolean;
|
|
13
|
-
/** @ignore Costruttore */
|
|
14
|
-
constructor(lc: LocalizationService, cdr: ChangeDetectorRef, ngControl: NgControl, _validators: Array<any>, ac: AccessControlService, AppContext: ComponentContext, ACO_CUSTOMKEY: string, FAV_SLIDER_MODE: boolean, FAV_DEBUG_MODE: boolean);
|
|
15
|
-
ngOnInit(): void;
|
|
16
|
-
/** @ignore */
|
|
17
|
-
writeValue(obj: any): void;
|
|
18
|
-
changed(): void;
|
|
19
|
-
/** @ignore */
|
|
20
|
-
onNotNullValueSet(): void;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormCheckboxComponent, [null, null, { optional: true; self: true; }, { optional: true; }, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormCheckboxComponent, "form-checkbox", never, { "SliderMode": { "alias": "SliderMode"; "required": false; }; }, {}, never, never, false, never>;
|
|
23
|
-
}
|
|
1
|
+
import { ControlValueAccessor, NgControl } from "@angular/forms";
|
|
2
|
+
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
3
|
+
import { BaseFormControl } from "../base-form-control";
|
|
4
|
+
import { ChangeDetectorRef } from "@angular/core";
|
|
5
|
+
import { LocalizationService } from "@esfaenza/localizations";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/** Componente rappresentante una checkbox */
|
|
8
|
+
export declare class FormCheckboxComponent extends BaseFormControl implements ControlValueAccessor {
|
|
9
|
+
private lc;
|
|
10
|
+
private FAV_SLIDER_MODE;
|
|
11
|
+
/** Mostra l'input checkbox con lo stile di uno slider */
|
|
12
|
+
SliderMode: boolean;
|
|
13
|
+
/** @ignore Costruttore */
|
|
14
|
+
constructor(lc: LocalizationService, cdr: ChangeDetectorRef, ngControl: NgControl, _validators: Array<any>, ac: AccessControlService, AppContext: ComponentContext, ACO_CUSTOMKEY: string, FAV_SLIDER_MODE: boolean, FAV_DEBUG_MODE: boolean);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
/** @ignore */
|
|
17
|
+
writeValue(obj: any): void;
|
|
18
|
+
changed(): void;
|
|
19
|
+
/** @ignore */
|
|
20
|
+
onNotNullValueSet(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormCheckboxComponent, [null, null, { optional: true; self: true; }, { optional: true; }, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormCheckboxComponent, "form-checkbox", never, { "SliderMode": { "alias": "SliderMode"; "required": false; }; }, {}, never, never, false, never>;
|
|
23
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
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
|
-
/** Componente che dà all'utente la possibilità di selezionare una data */
|
|
8
|
-
export declare class FormDateComponent extends BaseFormControl implements ControlValueAccessor {
|
|
9
|
-
private datesExts;
|
|
10
|
-
/** Utilizza il Date di Javascript come modello in uscita. Il modello in entrata verrà comunque ricondotto a un DayJs */
|
|
11
|
-
JsDates: boolean;
|
|
12
|
-
/** @ignore Costruttore */
|
|
13
|
-
constructor(datesExts: DateService, cdr: ChangeDetectorRef, ngControl: NgControl, _validators: Array<any>, ac: AccessControlService, AppContext: ComponentContext, ACO_CUSTOMKEY: string, FAV_DEBUG_MODE: boolean);
|
|
14
|
-
/** @ignore */
|
|
15
|
-
writeValue(obj: any): void;
|
|
16
|
-
changed(): void;
|
|
17
|
-
/** @ignore */
|
|
18
|
-
onNotNullValueSet(): void;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormDateComponent, [null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormDateComponent, "form-date", never, { "JsDates": { "alias": "JsDates"; "required": false; }; }, {}, never, never, false, never>;
|
|
21
|
-
}
|
|
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
|
+
/** Componente che dà all'utente la possibilità di selezionare una data */
|
|
8
|
+
export declare class FormDateComponent extends BaseFormControl implements ControlValueAccessor {
|
|
9
|
+
private datesExts;
|
|
10
|
+
/** Utilizza il Date di Javascript come modello in uscita. Il modello in entrata verrà comunque ricondotto a un DayJs */
|
|
11
|
+
JsDates: boolean;
|
|
12
|
+
/** @ignore Costruttore */
|
|
13
|
+
constructor(datesExts: DateService, cdr: ChangeDetectorRef, ngControl: NgControl, _validators: Array<any>, ac: AccessControlService, AppContext: ComponentContext, ACO_CUSTOMKEY: string, FAV_DEBUG_MODE: boolean);
|
|
14
|
+
/** @ignore */
|
|
15
|
+
writeValue(obj: any): void;
|
|
16
|
+
changed(): void;
|
|
17
|
+
/** @ignore */
|
|
18
|
+
onNotNullValueSet(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormDateComponent, [null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormDateComponent, "form-date", never, { "JsDates": { "alias": "JsDates"; "required": false; }; }, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
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
|
+
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
|
+
}
|