@esfaenza/forms-and-validations 12.2.31 → 13.1.2
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/esfaenza-forms-and-validations.d.ts +1 -12
- package/esm2020/esfaenza-forms-and-validations.mjs +5 -0
- package/esm2020/lib/forms/base-form-control.mjs +482 -0
- package/esm2020/lib/forms/form-adaptive/form-adaptive.component.loc.mjs +28 -0
- package/esm2020/lib/forms/form-adaptive/form-adaptive.component.mjs +294 -0
- package/esm2020/lib/forms/form-autocomplete/form-autocomplete.component.loc.mjs +26 -0
- package/esm2020/lib/forms/form-autocomplete/form-autocomplete.component.mjs +200 -0
- package/esm2020/lib/forms/form-checkbox/form-checkbox.component.mjs +52 -0
- package/esm2020/lib/forms/form-date/form-date.component.mjs +59 -0
- package/esm2020/lib/forms/form-datetime/form-datetime.component.mjs +59 -0
- package/esm2020/lib/forms/form-empty/form-empty.component.mjs +36 -0
- package/esm2020/lib/forms/form-error/form-error.component.mjs +52 -0
- package/esm2020/lib/forms/form-file/form-file.component.loc.mjs +28 -0
- package/esm2020/lib/forms/form-file/form-file.component.mjs +119 -0
- package/esm2020/lib/forms/form-info/form-info.component.mjs +52 -0
- package/esm2020/lib/forms/form-input/form-input.component.mjs +93 -0
- package/esm2020/lib/forms/form-multiselect/form-multiselect.component.loc.mjs +29 -0
- package/esm2020/lib/forms/form-multiselect/form-multiselect.component.mjs +159 -0
- package/esm2020/lib/forms/form-select/form-select.component.loc.mjs +26 -0
- package/esm2020/lib/forms/form-select/form-select.component.mjs +129 -0
- package/esm2020/lib/forms/form-template/form-template.component.mjs +71 -0
- package/esm2020/lib/forms/form-textarea/form-textarea.component.mjs +54 -0
- package/esm2020/lib/forms/form-time/form-time.component.mjs +131 -0
- package/esm2020/lib/forms-and-validations.module.mjs +203 -0
- package/{esm2015/lib/models/AppFile.js → esm2020/lib/models/AppFile.mjs} +0 -0
- package/{esm2015/lib/models/FormsAndValidationsModuleConfig.js → esm2020/lib/models/FormsAndValidationsModuleConfig.mjs} +0 -0
- package/esm2020/lib/models/dayjs-adapter/dayjs-date-adapter.mjs +89 -0
- package/{esm2015/lib/tokens.js → esm2020/lib/tokens.mjs} +0 -0
- package/esm2020/lib/validations/base-validation.loc.mjs +28 -0
- package/esm2020/lib/validations/base-validation.mjs +232 -0
- package/esm2020/lib/validations/customValidators/CustomRequiredDirective.mjs +41 -0
- package/esm2020/lib/validations/validation-autocomplete/validation-autocomplete.component.mjs +168 -0
- package/esm2020/lib/validations/validation-currency/validation-currency.component.mjs +61 -0
- package/esm2020/lib/validations/validation-date/validation-date.component.mjs +177 -0
- package/esm2020/lib/validations/validation-datetime/validation-datetime.component.mjs +206 -0
- package/esm2020/lib/validations/validation-input/validation-input.component.mjs +207 -0
- package/esm2020/lib/validations/validation-select/validation-select.component.mjs +184 -0
- package/esm2020/lib/validations/validation-text-area/validation-text-area.component.mjs +64 -0
- package/esm2020/public-api.mjs +35 -0
- package/fesm2015/esfaenza-forms-and-validations.mjs +3620 -0
- package/fesm2015/esfaenza-forms-and-validations.mjs.map +1 -0
- package/fesm2020/esfaenza-forms-and-validations.mjs +3562 -0
- package/fesm2020/esfaenza-forms-and-validations.mjs.map +1 -0
- package/lib/forms/base-form-control.d.ts +3 -0
- package/lib/forms/form-adaptive/form-adaptive.component.d.ts +3 -0
- package/lib/forms/form-adaptive/form-adaptive.component.loc.d.ts +3 -0
- package/lib/forms/form-autocomplete/form-autocomplete.component.d.ts +3 -0
- package/lib/forms/form-autocomplete/form-autocomplete.component.loc.d.ts +3 -0
- package/lib/forms/form-checkbox/form-checkbox.component.d.ts +3 -0
- package/lib/forms/form-date/form-date.component.d.ts +3 -0
- package/lib/forms/form-datetime/form-datetime.component.d.ts +3 -0
- package/lib/forms/form-empty/form-empty.component.d.ts +3 -0
- package/lib/forms/form-error/form-error.component.d.ts +3 -0
- package/lib/forms/form-file/form-file.component.d.ts +3 -0
- package/lib/forms/form-file/form-file.component.loc.d.ts +3 -0
- package/lib/forms/form-info/form-info.component.d.ts +3 -0
- package/lib/forms/form-input/form-input.component.d.ts +3 -0
- package/lib/forms/form-multiselect/form-multiselect.component.d.ts +3 -0
- package/lib/forms/form-multiselect/form-multiselect.component.loc.d.ts +3 -0
- package/lib/forms/form-select/form-select.component.d.ts +3 -0
- package/lib/forms/form-select/form-select.component.loc.d.ts +3 -0
- package/lib/forms/form-template/form-template.component.d.ts +3 -0
- package/lib/forms/form-textarea/form-textarea.component.d.ts +3 -0
- package/lib/forms/form-time/form-time.component.d.ts +3 -0
- package/lib/forms-and-validations.module.d.ts +38 -0
- package/lib/models/dayjs-adapter/dayjs-date-adapter.d.ts +3 -0
- package/lib/validations/base-validation.d.ts +3 -0
- package/lib/validations/base-validation.loc.d.ts +3 -0
- package/lib/validations/customValidators/CustomRequiredDirective.d.ts +3 -0
- package/lib/validations/validation-autocomplete/validation-autocomplete.component.d.ts +3 -0
- package/lib/validations/validation-currency/validation-currency.component.d.ts +3 -0
- package/lib/validations/validation-date/validation-date.component.d.ts +3 -0
- package/lib/validations/validation-datetime/validation-datetime.component.d.ts +3 -0
- package/lib/validations/validation-input/validation-input.component.d.ts +3 -0
- package/lib/validations/validation-select/validation-select.component.d.ts +3 -0
- package/lib/validations/validation-text-area/validation-text-area.component.d.ts +3 -0
- package/package.json +30 -18
- package/public-api.d.ts +2 -0
- package/bundles/esfaenza-forms-and-validations.umd.js +0 -3754
- package/bundles/esfaenza-forms-and-validations.umd.js.map +0 -1
- package/esfaenza-forms-and-validations.metadata.json +0 -1
- package/esm2015/esfaenza-forms-and-validations.js +0 -17
- package/esm2015/lib/forms/base-form-control.js +0 -460
- package/esm2015/lib/forms/form-adaptive/form-adaptive.component.js +0 -277
- package/esm2015/lib/forms/form-adaptive/form-adaptive.component.loc.js +0 -23
- package/esm2015/lib/forms/form-autocomplete/form-autocomplete.component.js +0 -187
- package/esm2015/lib/forms/form-autocomplete/form-autocomplete.component.loc.js +0 -21
- package/esm2015/lib/forms/form-checkbox/form-checkbox.component.js +0 -41
- package/esm2015/lib/forms/form-date/form-date.component.js +0 -49
- package/esm2015/lib/forms/form-datetime/form-datetime.component.js +0 -49
- package/esm2015/lib/forms/form-empty/form-empty.component.js +0 -34
- package/esm2015/lib/forms/form-error/form-error.component.js +0 -49
- package/esm2015/lib/forms/form-file/form-file.component.js +0 -109
- package/esm2015/lib/forms/form-file/form-file.component.loc.js +0 -23
- package/esm2015/lib/forms/form-info/form-info.component.js +0 -49
- package/esm2015/lib/forms/form-input/form-input.component.js +0 -76
- package/esm2015/lib/forms/form-multiselect/form-multiselect.component.js +0 -154
- package/esm2015/lib/forms/form-multiselect/form-multiselect.component.loc.js +0 -24
- package/esm2015/lib/forms/form-select/form-select.component.js +0 -114
- package/esm2015/lib/forms/form-select/form-select.component.loc.js +0 -21
- package/esm2015/lib/forms/form-template/form-template.component.js +0 -64
- package/esm2015/lib/forms/form-textarea/form-textarea.component.js +0 -44
- package/esm2015/lib/forms/form-time/form-time.component.js +0 -117
- package/esm2015/lib/forms-and-validations.module.js +0 -144
- package/esm2015/lib/models/dayjs-adapter/dayjs-date-adapter.js +0 -86
- package/esm2015/lib/validations/base-validation.js +0 -208
- package/esm2015/lib/validations/base-validation.loc.js +0 -23
- package/esm2015/lib/validations/customValidators/CustomRequiredDirective.js +0 -35
- package/esm2015/lib/validations/validation-autocomplete/validation-autocomplete.component.js +0 -151
- package/esm2015/lib/validations/validation-currency/validation-currency.component.js +0 -48
- package/esm2015/lib/validations/validation-date/validation-date.component.js +0 -165
- package/esm2015/lib/validations/validation-datetime/validation-datetime.component.js +0 -193
- package/esm2015/lib/validations/validation-input/validation-input.component.js +0 -186
- package/esm2015/lib/validations/validation-select/validation-select.component.js +0 -166
- package/esm2015/lib/validations/validation-text-area/validation-text-area.component.js +0 -52
- package/esm2015/public-api.js +0 -32
- package/fesm2015/esfaenza-forms-and-validations.js +0 -3262
- package/fesm2015/esfaenza-forms-and-validations.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ControlValueAccessor, NgControl, NgForm, NgModel } from "@angular/forms";
|
|
2
2
|
import { EventEmitter, ChangeDetectorRef } from "@angular/core";
|
|
3
3
|
import { AccessControlService, ComponentContext } from "@esfaenza/access-control";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* Componente base da cui tutti i componenti Form implementano
|
|
6
7
|
*/
|
|
@@ -261,4 +262,6 @@ export declare abstract class BaseFormControl implements ControlValueAccessor {
|
|
|
261
262
|
* @ignore
|
|
262
263
|
*/
|
|
263
264
|
abstract onNotNullValueSet(): void;
|
|
265
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormControl, never>;
|
|
266
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseFormControl, never, never, { "FormLayout": "FormLayout"; "Validation": "Validation"; "Placeholder": "Placeholder"; "FormGroupClass": "FormGroupClass"; "FailedValidationMessage": "FailedValidationMessage"; "ForcedError": "ForcedError"; "Label": "Label"; "LabelColWidth": "LabelColWidth"; "InputColWidth": "InputColWidth"; "Last": "Last"; "Form": "Form"; "Source": "Source"; "IdField": "IdField"; "Display": "Display"; "Readonly": "Readonly"; "LabelInputRatio": "LabelInputRatio"; }, { "inputChange": "inputChange"; }, never>;
|
|
264
267
|
}
|
|
@@ -7,6 +7,7 @@ import { NgxMatDateAdapter } from "@angular-material-components/datetime-picker"
|
|
|
7
7
|
import { BaseFormControl } from "../base-form-control";
|
|
8
8
|
import { AppFile } from "../../models/AppFile";
|
|
9
9
|
import { Observable } from "rxjs";
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
10
11
|
/**
|
|
11
12
|
* 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
|
|
12
13
|
*/
|
|
@@ -125,4 +126,6 @@ export declare class FormAdaptiveComponent extends BaseFormControl implements Co
|
|
|
125
126
|
private executionTimers;
|
|
126
127
|
/** @ignore */
|
|
127
128
|
private throttla;
|
|
129
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormAdaptiveComponent, [null, null, null, null, { optional: true; self: true; }, { optional: true; }, null, { optional: true; }, { optional: true; }]>;
|
|
130
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormAdaptiveComponent, "form-adaptive", never, { "Type": "Type"; "TypeMissingMessage": "TypeMissingMessage"; "Pattern": "Pattern"; "AllowDownload": "AllowDownload"; "Precision": "Precision"; "Alignment": "Alignment"; "SearchFunction": "SearchFunction"; "MinChars": "MinChars"; "CaseSensitive": "CaseSensitive"; }, {}, never, never>;
|
|
128
131
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LocalizationService } from "@esfaenza/localizations";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* Classe di localizzazione per il componente **FormAdaptiveComponent**
|
|
4
5
|
*/
|
|
@@ -7,4 +8,6 @@ export declare class FormAdaptiveComponentLoc extends LocalizationService {
|
|
|
7
8
|
* @ignore
|
|
8
9
|
*/
|
|
9
10
|
constructor(LOC_LOCALE: string);
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormAdaptiveComponentLoc, [{ optional: true; }]>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormAdaptiveComponentLoc>;
|
|
10
13
|
}
|
|
@@ -4,6 +4,7 @@ import { BaseFormControl } from "../base-form-control";
|
|
|
4
4
|
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
5
5
|
import { LocalizationService } from "@esfaenza/localizations";
|
|
6
6
|
import { Observable } from "rxjs";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* Componente di input che si auto-completa in base al valore attuale
|
|
9
10
|
*/
|
|
@@ -84,4 +85,6 @@ export declare class FormAutocompleteComponent extends BaseFormControl implement
|
|
|
84
85
|
private executionTimers;
|
|
85
86
|
/** @ignore */
|
|
86
87
|
private throttla;
|
|
88
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormAutocompleteComponent, [null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormAutocompleteComponent, "form-autocomplete", never, { "SelectLabel": "SelectLabel"; "SearchFunction": "SearchFunction"; "MinChars": "MinChars"; "RequiredPlaceholder": "RequiredPlaceholder"; "CaseSensitive": "CaseSensitive"; }, {}, never, never>;
|
|
87
90
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LocalizationService } from "@esfaenza/localizations";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* Classe di localizzazione per il componente **FormAutocompleteComponent**
|
|
4
5
|
*/
|
|
@@ -7,4 +8,6 @@ export declare class FormAutocompleteComponentLoc extends LocalizationService {
|
|
|
7
8
|
* @ignore
|
|
8
9
|
*/
|
|
9
10
|
constructor(LOC_LOCALE: string);
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormAutocompleteComponentLoc, [{ optional: true; }]>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormAutocompleteComponentLoc>;
|
|
10
13
|
}
|
|
@@ -2,6 +2,7 @@ import { ControlValueAccessor, NgControl } from "@angular/forms";
|
|
|
2
2
|
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
3
3
|
import { BaseFormControl } from "../base-form-control";
|
|
4
4
|
import { ChangeDetectorRef } from "@angular/core";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* Componente rappresentante una checkbox
|
|
7
8
|
*/
|
|
@@ -16,4 +17,6 @@ export declare class FormCheckboxComponent extends BaseFormControl implements Co
|
|
|
16
17
|
* @ignore
|
|
17
18
|
*/
|
|
18
19
|
onNotNullValueSet(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormCheckboxComponent, [null, { optional: true; self: true; }, { optional: true; host: true; }, null, { optional: true; }, { optional: true; }]>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormCheckboxComponent, "form-checkbox", never, {}, {}, never, never>;
|
|
19
22
|
}
|
|
@@ -2,6 +2,7 @@ import { ControlValueAccessor, NgControl } from "@angular/forms";
|
|
|
2
2
|
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
3
3
|
import { BaseFormControl } from "../base-form-control";
|
|
4
4
|
import { ChangeDetectorRef } from "@angular/core";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* Componente che dà all'utente la possibilità di selezionare una data
|
|
7
8
|
*/
|
|
@@ -20,4 +21,6 @@ export declare class FormDateComponent extends BaseFormControl implements Contro
|
|
|
20
21
|
* @ignore
|
|
21
22
|
*/
|
|
22
23
|
onNotNullValueSet(): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormDateComponent, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormDateComponent, "form-date", never, { "JsDates": "JsDates"; }, {}, never, never>;
|
|
23
26
|
}
|
|
@@ -2,6 +2,7 @@ import { ControlValueAccessor, NgControl } from "@angular/forms";
|
|
|
2
2
|
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
3
3
|
import { BaseFormControl } from "../base-form-control";
|
|
4
4
|
import { ChangeDetectorRef } from "@angular/core";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* Componente che dà all'utente la possibilità di selezionare una data insieme ad un orario
|
|
7
8
|
*/
|
|
@@ -20,4 +21,6 @@ export declare class FormDateTimeComponent extends BaseFormControl implements Co
|
|
|
20
21
|
* @ignore
|
|
21
22
|
*/
|
|
22
23
|
onNotNullValueSet(): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormDateTimeComponent, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormDateTimeComponent, "form-datetime", never, { "JsDates": "JsDates"; }, {}, never, never>;
|
|
23
26
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
/**
|
|
2
3
|
* Componente placeholder per la creazione dei form che rappresenta un blocchetto vuoto,
|
|
3
4
|
* al posto del quale possono poi comparire dei componenti form senza incasinare la grafica
|
|
@@ -15,4 +16,6 @@ export declare class FormEmptyComponent {
|
|
|
15
16
|
* Valore placeholder da mostrare
|
|
16
17
|
*/
|
|
17
18
|
PlaceholderModel: string;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormEmptyComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormEmptyComponent, "form-empty", never, { "Last": "Last"; "FormGroupClass": "FormGroupClass"; }, {}, never, never>;
|
|
18
21
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
/**
|
|
2
3
|
* Componente placeholder per la creazione dei form che rappresenta un blocchetto di erorre,
|
|
3
4
|
* al posto del quale possono poi comparire dei componenti form senza incasinare la grafica
|
|
@@ -23,4 +24,6 @@ export declare class FormErrorComponent {
|
|
|
23
24
|
* Permette di settare in una volta solo gli input LabelColWidth e InputColWidth, basta scriverlo con la sintassi "X Y"
|
|
24
25
|
*/
|
|
25
26
|
set LabelInputRatio(input: string);
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormErrorComponent, "form-error", never, { "LabelColWidth": "LabelColWidth"; "InputColWidth": "InputColWidth"; "Last": "Last"; "FormGroupClass": "FormGroupClass"; "LabelInputRatio": "LabelInputRatio"; }, {}, never, ["*"]>;
|
|
26
29
|
}
|
|
@@ -5,6 +5,7 @@ import { LocalizationService } from "@esfaenza/localizations";
|
|
|
5
5
|
import { UtilityService } from "@esfaenza/extensions";
|
|
6
6
|
import { BaseFormControl } from "../base-form-control";
|
|
7
7
|
import { AppFile } from "../../models/AppFile";
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
9
10
|
* Componente che permette all'utente di caricare/scaricare un file all'interno di un campo Input
|
|
10
11
|
*/
|
|
@@ -47,4 +48,6 @@ export declare class FormFileComponent extends BaseFormControl implements Contro
|
|
|
47
48
|
* @ignore
|
|
48
49
|
*/
|
|
49
50
|
onNotNullValueSet(): void;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFileComponent, [null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, null]>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFileComponent, "form-file", never, { "Multiple": "Multiple"; "AllowDownload": "AllowDownload"; }, {}, never, never>;
|
|
50
53
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LocalizationService } from "@esfaenza/localizations";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* Classe di localizzazione per il componente **FormFileComponent**
|
|
4
5
|
*/
|
|
@@ -7,4 +8,6 @@ export declare class FormFileComponentLoc extends LocalizationService {
|
|
|
7
8
|
* @ignore
|
|
8
9
|
*/
|
|
9
10
|
constructor(LOC_LOCALE: string);
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFileComponentLoc, [{ optional: true; }]>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormFileComponentLoc>;
|
|
10
13
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
/**
|
|
2
3
|
* Componente placeholder per la creazione dei form che rappresenta un blocchetto di informazioni,
|
|
3
4
|
* al posto del quale possono poi comparire dei componenti form senza incasinare la grafica
|
|
@@ -23,4 +24,6 @@ export declare class FormInfoComponent {
|
|
|
23
24
|
* Permette di settare in una volta solo gli input LabelColWidth e InputColWidth, basta scriverlo con la sintassi "X Y"
|
|
24
25
|
*/
|
|
25
26
|
set LabelInputRatio(input: string);
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormInfoComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormInfoComponent, "form-info", never, { "LabelColWidth": "LabelColWidth"; "InputColWidth": "InputColWidth"; "Last": "Last"; "FormGroupClass": "FormGroupClass"; "LabelInputRatio": "LabelInputRatio"; }, {}, never, ["*"]>;
|
|
26
29
|
}
|
|
@@ -3,6 +3,7 @@ import { ControlValueAccessor, NgControl } from "@angular/forms";
|
|
|
3
3
|
import { BaseFormControl } from "../base-form-control";
|
|
4
4
|
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
5
5
|
import { ChangeDetectorRef } from "@angular/core";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Semplice componente di Input testuale, con eventuale prefisso/suffisso
|
|
8
9
|
*/
|
|
@@ -49,4 +50,6 @@ export declare class FormInputComponent extends BaseFormControl implements Contr
|
|
|
49
50
|
* @ignore
|
|
50
51
|
*/
|
|
51
52
|
onNotNullValueSet(): void;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormInputComponent, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormInputComponent, "form-input", never, { "Password": "Password"; }, { "onSuffixAction": "onSuffixAction"; "onPrefixAction": "onPrefixAction"; }, ["suffix", "prefix"], never>;
|
|
52
55
|
}
|
|
@@ -4,6 +4,7 @@ import { LocalizationService } from "@esfaenza/localizations";
|
|
|
4
4
|
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
5
5
|
import { BaseFormControl } from "../base-form-control";
|
|
6
6
|
import { ChangeDetectorRef } from "@angular/core";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* Componente che permette di effettuare una selezione multipla fra gli oggetti passati nell'Input **Source**
|
|
9
10
|
*
|
|
@@ -77,4 +78,6 @@ export declare class FormMultiSelectComponent extends BaseFormControl implements
|
|
|
77
78
|
* @ignore Override per gestire input in uscita
|
|
78
79
|
*/
|
|
79
80
|
changed(): void;
|
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormMultiSelectComponent, [null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
82
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormMultiSelectComponent, "form-multiselect", never, { "SelectLabel": "SelectLabel"; "UseKeyValues": "UseKeyValues"; }, {}, never, never>;
|
|
80
83
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LocalizationService } from "@esfaenza/localizations";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* Classe di localizzazione per il componente **FormMultiSelectComponent**
|
|
4
5
|
*/
|
|
@@ -7,4 +8,6 @@ export declare class FormMultiSelectComponentLoc extends LocalizationService {
|
|
|
7
8
|
* @ignore
|
|
8
9
|
*/
|
|
9
10
|
constructor(LOC_LOCALE: string);
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormMultiSelectComponentLoc, [{ optional: true; }]>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormMultiSelectComponentLoc>;
|
|
10
13
|
}
|
|
@@ -3,6 +3,7 @@ import { ControlValueAccessor, NgControl } from "@angular/forms";
|
|
|
3
3
|
import { LocalizationService } from "@esfaenza/localizations";
|
|
4
4
|
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
5
5
|
import { BaseFormControl } from "../base-form-control";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Componente che permette di selezionare un valore da una lista di valori disponibili
|
|
8
9
|
*/
|
|
@@ -46,4 +47,6 @@ export declare class FormSelectComponent extends BaseFormControl implements Cont
|
|
|
46
47
|
* @ignore
|
|
47
48
|
*/
|
|
48
49
|
onNotNullValueSet(): void;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormSelectComponent, [null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormSelectComponent, "form-select", never, { "SelectLabel": "SelectLabel"; "PlaceholderValue": "PlaceholderValue"; "RequiredPlaceholder": "RequiredPlaceholder"; "EmptyFieldValue": "EmptyFieldValue"; "ShowValidationSymbol": "ShowValidationSymbol"; }, {}, never, never>;
|
|
49
52
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LocalizationService } from "@esfaenza/localizations";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* Classe di localizzazione per il componente **FormSelectComponent**
|
|
4
5
|
*/
|
|
@@ -7,4 +8,6 @@ export declare class FormSelectComponentLoc extends LocalizationService {
|
|
|
7
8
|
* @ignore
|
|
8
9
|
*/
|
|
9
10
|
constructor(LOC_LOCALE: string);
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormSelectComponentLoc, [{ optional: true; }]>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormSelectComponentLoc>;
|
|
10
13
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
/**
|
|
2
3
|
* Componente da utilizzare quando l'implementazione dell'input non è disponibile nella libreria,
|
|
3
4
|
* fornisce la struttura standard di un form-component ma l'input vero e proprio viene proiettato dall'esterno
|
|
@@ -35,4 +36,6 @@ export declare class FormTemplateComponent {
|
|
|
35
36
|
* Permette di settare in una volta solo gli input LabelColWidth e InputColWidth, basta scriverlo con la sintassi "X Y"
|
|
36
37
|
*/
|
|
37
38
|
set LabelInputRatio(input: string);
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormTemplateComponent, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormTemplateComponent, "form-template", never, { "Required": "Required"; "Label": "Label"; "FormLayout": "FormLayout"; "LabelColWidth": "LabelColWidth"; "InputColWidth": "InputColWidth"; "Last": "Last"; "FormGroupClass": "FormGroupClass"; "LabelInputRatio": "LabelInputRatio"; }, {}, never, ["*", "*"]>;
|
|
38
41
|
}
|
|
@@ -2,6 +2,7 @@ import { ControlValueAccessor, NgControl } from "@angular/forms";
|
|
|
2
2
|
import { ChangeDetectorRef } from "@angular/core";
|
|
3
3
|
import { BaseFormControl } from "../base-form-control";
|
|
4
4
|
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* Componente che presenta una casella di testo tipicamente utilizzata per scrivere delle note o del log breve
|
|
7
8
|
*/
|
|
@@ -20,4 +21,6 @@ export declare class FormTextareaComponent extends BaseFormControl implements Co
|
|
|
20
21
|
* @ignore
|
|
21
22
|
*/
|
|
22
23
|
onNotNullValueSet(): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormTextareaComponent, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormTextareaComponent, "form-textarea", never, { "Rows": "Rows"; }, {}, never, never>;
|
|
23
26
|
}
|
|
@@ -3,6 +3,7 @@ import { ChangeDetectorRef } from "@angular/core";
|
|
|
3
3
|
import { NgxMatDateAdapter } from "@angular-material-components/datetime-picker";
|
|
4
4
|
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
5
5
|
import { BaseFormControl } from "../base-form-control";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Componente che identifica la selezione di un orario
|
|
8
9
|
*/
|
|
@@ -54,4 +55,6 @@ export declare class FormTimeComponent extends BaseFormControl implements Contro
|
|
|
54
55
|
* @ignore
|
|
55
56
|
*/
|
|
56
57
|
onNotNullValueSet(): void;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormTimeComponent, [null, null, { optional: true; self: true; }, { optional: true; host: true; }, null, { optional: true; }, { optional: true; }]>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormTimeComponent, "form-time", never, { "ShowSpinners": "ShowSpinners"; "StepHour": "StepHour"; "StepMinute": "StepMinute"; "StepSecond": "StepSecond"; "ShowSeconds": "ShowSeconds"; "InOutFormat": "InOutFormat"; }, {}, never, never>;
|
|
57
60
|
}
|
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
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 "./forms/form-autocomplete/form-autocomplete.component";
|
|
24
|
+
import * as i21 from "./forms/form-datetime/form-datetime.component";
|
|
25
|
+
import * as i22 from "./validations/validation-datetime/validation-datetime.component";
|
|
26
|
+
import * as i23 from "./forms/form-time/form-time.component";
|
|
27
|
+
import * as i24 from "@angular/common";
|
|
28
|
+
import * as i25 from "@angular/forms";
|
|
29
|
+
import * as i26 from "@esfaenza/localizations";
|
|
30
|
+
import * as i27 from "@angular/material/input";
|
|
31
|
+
import * as i28 from "@angular/material/datepicker";
|
|
32
|
+
import * as i29 from "@esfaenza/material-dayjs-adapter";
|
|
33
|
+
import * as i30 from "ngx-bootstrap/tooltip";
|
|
34
|
+
import * as i31 from "@esfaenza/ngx-currency-mask";
|
|
35
|
+
import * as i32 from "@angular/material/autocomplete";
|
|
36
|
+
import * as i33 from "@angular-material-components/datetime-picker";
|
|
37
|
+
import * as i34 from "angular2-multiselect-dropdown";
|
|
3
38
|
export declare class FormsAndValidationsModule {
|
|
4
39
|
static forRoot(config?: FormsAndValidationsModuleConfig): ModuleWithProviders<FormsAndValidationsModule>;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormsAndValidationsModule, never>;
|
|
41
|
+
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.FormAutocompleteComponent, typeof i21.FormDateTimeComponent, typeof i22.ValidationDateTimeComponent, typeof i23.FormTimeComponent], [typeof i24.CommonModule, typeof i25.FormsModule, typeof i26.LocalizationModule, typeof i27.MatInputModule, typeof i28.MatDatepickerModule, typeof i29.MatDayjsDateModule, typeof i30.TooltipModule, typeof i31.CurrencyMaskModule, typeof i32.MatAutocompleteModule, typeof i33.NgxMatDatetimePickerModule, typeof i33.NgxMatTimepickerModule, typeof i34.AngularMultiSelectModule], [typeof i34.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.FormAutocompleteComponent, typeof i21.FormDateTimeComponent, typeof i22.ValidationDateTimeComponent, typeof i23.FormTimeComponent]>;
|
|
42
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormsAndValidationsModule>;
|
|
5
43
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DayJsDateAdapter } from "@esfaenza/material-dayjs-adapter";
|
|
2
2
|
import { Dayjs } from "dayjs";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
/**
|
|
4
5
|
* Espansione dell'adapter di default di DayJs già utilizzato per i bind base su Material.
|
|
5
6
|
*
|
|
@@ -43,4 +44,6 @@ export declare class NgxExpandedDayJsDateAdapter extends DayJsDateAdapter {
|
|
|
43
44
|
* @param {number[]} defaultTime Valori di default per ore, minuti e secondi, considerati 0 se non presenti
|
|
44
45
|
*/
|
|
45
46
|
setTimeByDefaultValues(date: Dayjs, defaultTime: number[]): void;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxExpandedDayJsDateAdapter, never>;
|
|
48
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NgxExpandedDayJsDateAdapter>;
|
|
46
49
|
}
|
|
@@ -2,6 +2,7 @@ import { EventEmitter } from "@angular/core";
|
|
|
2
2
|
import { NgModel } from "@angular/forms";
|
|
3
3
|
import { LocalizationService } from "@esfaenza/localizations";
|
|
4
4
|
import { TooltipDirective } from "ngx-bootstrap/tooltip";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* Classe astratta base che contiene le logiche / proprietà in comune a tutti i validatori
|
|
7
8
|
*
|
|
@@ -142,4 +143,6 @@ export declare abstract class BaseValidation {
|
|
|
142
143
|
* @ignore
|
|
143
144
|
*/
|
|
144
145
|
protected propagateChange: (_: any) => void;
|
|
146
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseValidation, never>;
|
|
147
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseValidation, never, never, { "InferErrorMessages": "InferErrorMessages"; "validationFailed": "validationFailed"; "readonly": "readonly"; "widthPx": "widthPx"; "disabled": "disabled"; "placeholder": "placeholder"; "class": "class"; "style": "style"; "pattern": "pattern"; "noValidate": "noValidate"; "autocomplete": "autocomplete"; "submitted": "submitted"; "forceInvalid": "forceInvalid"; }, { "inputChange": "inputChange"; }, never>;
|
|
145
148
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LocalizationService } from "@esfaenza/localizations";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* Classe di localizzazione in comune con tutti i Componenti di validazione
|
|
4
5
|
*/
|
|
@@ -7,4 +8,6 @@ export declare class BaseValidationLoc extends LocalizationService {
|
|
|
7
8
|
* @ignore
|
|
8
9
|
*/
|
|
9
10
|
constructor(LOC_LOCALE: string);
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseValidationLoc, [{ optional: true; }]>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BaseValidationLoc>;
|
|
10
13
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AbstractControl, Validator } from "@angular/forms";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* Direttiva utilizzata per validazioni "required" custom, in modo da poter dire che anche se c'è un valore selezionato, ma quel valore lo considero null
|
|
4
5
|
* allora la validazione fallisce. Attualmente usato nell'unico punto sensato: validation-select
|
|
@@ -18,4 +19,6 @@ export declare class CustomRequiredDirective implements Validator {
|
|
|
18
19
|
validate(c: AbstractControl): {
|
|
19
20
|
[key: string]: any;
|
|
20
21
|
};
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomRequiredDirective, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CustomRequiredDirective, "[customRequired]", never, { "NullValues": "CustomNullValues"; "customRequired": "customRequired"; }, {}, never>;
|
|
21
24
|
}
|
|
@@ -2,6 +2,7 @@ import { ControlValueAccessor } from "@angular/forms";
|
|
|
2
2
|
import { ChangeDetectorRef, EventEmitter, Injector } from "@angular/core";
|
|
3
3
|
import { LocalizationService } from "@esfaenza/localizations";
|
|
4
4
|
import { BaseValidation } from "../base-validation";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* Componente di validaizone per gli input di Autocompletamento
|
|
7
8
|
*/
|
|
@@ -81,4 +82,6 @@ export declare class ValidationAutocompleteComponent extends BaseValidation impl
|
|
|
81
82
|
* @ignore
|
|
82
83
|
*/
|
|
83
84
|
registerOnTouched(fn: any): void;
|
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationAutocompleteComponent, [{ optional: true; }, { optional: true; }, null, null, null]>;
|
|
86
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ValidationAutocompleteComponent, "val-autocomplete", never, { "FilteredSource": "FilteredSource"; "value": "value"; "label": "label"; }, { "optionChange": "optionChange"; }, never, never>;
|
|
84
87
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectorRef, Injector } from "@angular/core";
|
|
2
2
|
import { LocalizationService } from "@esfaenza/localizations";
|
|
3
3
|
import { ValidationInputComponent } from '../validation-input/validation-input.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* Componente di validaizone per gli input con maschera di inserimento numerica
|
|
6
7
|
*/
|
|
@@ -14,4 +15,6 @@ export declare class ValidationCurrencyComponent extends ValidationInputComponen
|
|
|
14
15
|
* @ignore
|
|
15
16
|
*/
|
|
16
17
|
constructor(cdr: ChangeDetectorRef, validators: Array<any>, asyncValidators: Array<any>, injector: Injector, lc: LocalizationService);
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationCurrencyComponent, [null, { optional: true; }, { optional: true; }, null, null]>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ValidationCurrencyComponent, "val-currency", never, { "CurrencyOptions": "CurrencyOptions"; }, {}, never, never>;
|
|
17
20
|
}
|
|
@@ -3,6 +3,7 @@ import { ChangeDetectorRef, Injector } from "@angular/core";
|
|
|
3
3
|
import { LocalizationService } from "@esfaenza/localizations";
|
|
4
4
|
import { BaseValidation } from "../base-validation";
|
|
5
5
|
import { DateService } from '@esfaenza/extensions';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Componente di validaizone per gli input di tipo data
|
|
8
9
|
*/
|
|
@@ -70,4 +71,6 @@ export declare class ValidationDateComponent extends BaseValidation implements C
|
|
|
70
71
|
* @ignore
|
|
71
72
|
*/
|
|
72
73
|
registerOnTouched(fn: any): void;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationDateComponent, [null, { optional: true; }, { optional: true; }, null, null, null]>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ValidationDateComponent, "val-date", never, { "useJsDates": "useJsDates"; }, {}, never, never>;
|
|
73
76
|
}
|
|
@@ -3,6 +3,7 @@ import { ChangeDetectorRef, Injector } from "@angular/core";
|
|
|
3
3
|
import { LocalizationService } from "@esfaenza/localizations";
|
|
4
4
|
import { BaseValidation } from "../base-validation";
|
|
5
5
|
import { DateService } from '@esfaenza/extensions';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* Componente di validaizone per gli input di tipo data-ora
|
|
8
9
|
*/
|
|
@@ -100,4 +101,6 @@ export declare class ValidationDateTimeComponent extends BaseValidation implemen
|
|
|
100
101
|
* @ignore
|
|
101
102
|
*/
|
|
102
103
|
registerOnTouched(fn: any): void;
|
|
104
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationDateTimeComponent, [null, { optional: true; }, { optional: true; }, null, null, null]>;
|
|
105
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ValidationDateTimeComponent, "val-datetime", never, { "useJsDates": "useJsDates"; }, {}, never, never>;
|
|
103
106
|
}
|
|
@@ -2,6 +2,7 @@ import { ControlValueAccessor } from "@angular/forms";
|
|
|
2
2
|
import { ChangeDetectorRef, Injector, SimpleChanges } from "@angular/core";
|
|
3
3
|
import { LocalizationService } from "@esfaenza/localizations";
|
|
4
4
|
import { BaseValidation } from "../base-validation";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* Componente di validaizone per gli input a semplice casella di testo
|
|
7
8
|
*/
|
|
@@ -116,4 +117,6 @@ export declare class ValidationInputComponent extends BaseValidation implements
|
|
|
116
117
|
* @ignore
|
|
117
118
|
*/
|
|
118
119
|
registerOnTouched(fn: any): void;
|
|
120
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationInputComponent, [null, { optional: true; }, { optional: true; }, null, null]>;
|
|
121
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ValidationInputComponent, "val-input", never, { "Password": "Password"; "showWarning": "showWarning"; "warningTitle": "warningTitle"; "warningClass": "warningClass"; "value": "value"; }, {}, ["suffix_internal", "prefix_internal"], never>;
|
|
119
122
|
}
|
|
@@ -2,6 +2,7 @@ import { ChangeDetectorRef, EventEmitter, Injector } from "@angular/core";
|
|
|
2
2
|
import { ControlValueAccessor, FormControl } from "@angular/forms";
|
|
3
3
|
import { LocalizationService } from "@esfaenza/localizations";
|
|
4
4
|
import { BaseValidation } from '../base-validation';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* Componente di validaizone per gli input a selezione singola
|
|
7
8
|
*/
|
|
@@ -90,4 +91,6 @@ export declare class ValidationSelectComponent extends BaseValidation implements
|
|
|
90
91
|
* @ignore
|
|
91
92
|
*/
|
|
92
93
|
registerOnTouched(fn: any): void;
|
|
94
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationSelectComponent, [{ optional: true; }, { optional: true; }, null, null, null]>;
|
|
95
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ValidationSelectComponent, "val-select", never, { "emptyFieldValue": "emptyFieldValue"; "placeHolderValue": "placeHolderValue"; "emptyValue": "emptyValue"; "showValidationSymbol": "showValidationSymbol"; "label": "label"; }, { "onBlur": "onBlur"; }, never, ["*"]>;
|
|
93
96
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectorRef, Injector } from "@angular/core";
|
|
2
2
|
import { LocalizationService } from "@esfaenza/localizations";
|
|
3
3
|
import { ValidationInputComponent } from "../validation-input/validation-input.component";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* Componente di validaizone per gli input ad area di testo
|
|
6
7
|
*/
|
|
@@ -14,4 +15,6 @@ export declare class ValidationTextAreaComponent extends ValidationInputComponen
|
|
|
14
15
|
* @ignore
|
|
15
16
|
*/
|
|
16
17
|
constructor(cdr: ChangeDetectorRef, validators: Array<any>, asyncValidators: Array<any>, injector: Injector, lc: LocalizationService);
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationTextAreaComponent, [null, { optional: true; }, { optional: true; }, null, null]>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ValidationTextAreaComponent, "val-textarea", never, { "rows": "rows"; }, {}, never, never>;
|
|
17
20
|
}
|
package/package.json
CHANGED
|
@@ -1,34 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esfaenza/forms-and-validations",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"tslib": "^2.0.0"
|
|
7
7
|
},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@angular/common": "~
|
|
10
|
-
"@angular/core": "~
|
|
11
|
-
"@angular/forms": "~
|
|
12
|
-
"@angular/material": "
|
|
13
|
-
"@esfaenza/localizations": "^
|
|
14
|
-
"@esfaenza/access-control": "^
|
|
15
|
-
"@esfaenza/extensions": "^
|
|
16
|
-
"@esfaenza/material-dayjs-adapter": "^
|
|
17
|
-
"@esfaenza/ngx-currency-mask": "^
|
|
9
|
+
"@angular/common": "~13.1.1",
|
|
10
|
+
"@angular/core": "~13.1.1",
|
|
11
|
+
"@angular/forms": "~13.1.1",
|
|
12
|
+
"@angular/material": "13.1.1",
|
|
13
|
+
"@esfaenza/localizations": "^13.1.2",
|
|
14
|
+
"@esfaenza/access-control": "^13.1.2",
|
|
15
|
+
"@esfaenza/extensions": "^13.1.2",
|
|
16
|
+
"@esfaenza/material-dayjs-adapter": "^13.1.2",
|
|
17
|
+
"@esfaenza/ngx-currency-mask": "^13.1.2",
|
|
18
18
|
"angular2-multiselect-dropdown": "5.0.4",
|
|
19
|
-
"@angular-material-components/datetime-picker": "
|
|
19
|
+
"@angular-material-components/datetime-picker": "7.0.1",
|
|
20
20
|
"ngx-toastr": "14.2.1",
|
|
21
21
|
"ngx-bootstrap": "7.0.0",
|
|
22
22
|
"dayjs": "1.10.7",
|
|
23
23
|
"cerialize": "0.1.18",
|
|
24
|
-
"sweetalert2": "11.3.
|
|
24
|
+
"sweetalert2": "11.3.3"
|
|
25
25
|
},
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"fesm2015": "fesm2015/esfaenza-forms-and-validations.
|
|
26
|
+
"module": "fesm2015/esfaenza-forms-and-validations.mjs",
|
|
27
|
+
"es2020": "fesm2020/esfaenza-forms-and-validations.mjs",
|
|
28
|
+
"esm2020": "esm2020/esfaenza-forms-and-validations.mjs",
|
|
29
|
+
"fesm2020": "fesm2020/esfaenza-forms-and-validations.mjs",
|
|
30
|
+
"fesm2015": "fesm2015/esfaenza-forms-and-validations.mjs",
|
|
31
31
|
"typings": "esfaenza-forms-and-validations.d.ts",
|
|
32
|
-
"
|
|
32
|
+
"exports": {
|
|
33
|
+
"./package.json": {
|
|
34
|
+
"default": "./package.json"
|
|
35
|
+
},
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./esfaenza-forms-and-validations.d.ts",
|
|
38
|
+
"esm2020": "./esm2020/esfaenza-forms-and-validations.mjs",
|
|
39
|
+
"es2020": "./fesm2020/esfaenza-forms-and-validations.mjs",
|
|
40
|
+
"es2015": "./fesm2015/esfaenza-forms-and-validations.mjs",
|
|
41
|
+
"node": "./fesm2015/esfaenza-forms-and-validations.mjs",
|
|
42
|
+
"default": "./fesm2020/esfaenza-forms-and-validations.mjs"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
33
45
|
"sideEffects": false
|
|
34
46
|
}
|
package/public-api.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './lib/validations/validation-select/validation-select.component';
|
|
|
8
8
|
export * from './lib/validations/validation-text-area/validation-text-area.component';
|
|
9
9
|
export * from './lib/validations/validation-currency/validation-currency.component';
|
|
10
10
|
export * from './lib/validations/validation-autocomplete/validation-autocomplete.component';
|
|
11
|
+
export * from './lib/validations/customValidators/CustomRequiredDirective';
|
|
11
12
|
export * from './lib/forms/form-datetime/form-datetime.component';
|
|
12
13
|
export * from './lib/forms/form-adaptive/form-adaptive.component';
|
|
13
14
|
export * from './lib/forms/form-empty/form-empty.component';
|
|
@@ -22,3 +23,4 @@ export * from './lib/forms/form-textarea/form-textarea.component';
|
|
|
22
23
|
export * from './lib/forms/form-autocomplete/form-autocomplete.component';
|
|
23
24
|
export * from './lib/forms/form-file/form-file.component';
|
|
24
25
|
export * from './lib/forms/form-time/form-time.component';
|
|
26
|
+
export * from './lib/forms/form-multiselect/form-multiselect.component';
|