@esfaenza/forms-and-validations 18.2.2 → 19.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/esfaenza-forms-and-validations.mjs +153 -153
- package/fesm2022/esfaenza-forms-and-validations.mjs.map +1 -1
- package/lib/forms/base-form-control.d.ts +1 -1
- package/lib/forms/form-adaptive/form-adaptive.component.d.ts +2 -2
- package/lib/forms/form-time/form-time.component.d.ts +2 -2
- package/lib/validations/base-validation.d.ts +1 -1
- package/package.json +13 -15
- package/esm2022/esfaenza-forms-and-validations.mjs +0 -5
- package/esm2022/lib/forms/base-form-control.mjs +0 -558
- package/esm2022/lib/forms/form-adaptive/form-adaptive.component.loc.mjs +0 -22
- package/esm2022/lib/forms/form-adaptive/form-adaptive.component.mjs +0 -420
- package/esm2022/lib/forms/form-autocomplete/form-autocomplete.component.loc.mjs +0 -21
- package/esm2022/lib/forms/form-autocomplete/form-autocomplete.component.mjs +0 -289
- package/esm2022/lib/forms/form-checkbox/form-checkbox.component.mjs +0 -74
- package/esm2022/lib/forms/form-date/form-date.component.mjs +0 -69
- package/esm2022/lib/forms/form-datetime/form-datetime.component.mjs +0 -67
- package/esm2022/lib/forms/form-empty/form-empty.component.mjs +0 -30
- package/esm2022/lib/forms/form-error/form-error.component.mjs +0 -42
- package/esm2022/lib/forms/form-file/form-file.component.loc.mjs +0 -22
- package/esm2022/lib/forms/form-file/form-file.component.mjs +0 -175
- package/esm2022/lib/forms/form-info/form-info.component.mjs +0 -42
- package/esm2022/lib/forms/form-input/form-input.component.mjs +0 -83
- package/esm2022/lib/forms/form-multiselect/form-multiselect.component.loc.mjs +0 -23
- package/esm2022/lib/forms/form-multiselect/form-multiselect.component.mjs +0 -163
- package/esm2022/lib/forms/form-select/form-select.component.loc.mjs +0 -21
- package/esm2022/lib/forms/form-select/form-select.component.mjs +0 -165
- package/esm2022/lib/forms/form-template/form-template.component.mjs +0 -77
- package/esm2022/lib/forms/form-textarea/form-textarea.component.mjs +0 -57
- package/esm2022/lib/forms/form-time/form-time.component.mjs +0 -115
- package/esm2022/lib/forms-and-validations.module.mjs +0 -213
- package/esm2022/lib/models/AppFile.mjs +0 -14
- package/esm2022/lib/models/ChangeEvent.mjs +0 -7
- package/esm2022/lib/models/FormsAndValidationsModuleConfig.mjs +0 -6
- package/esm2022/lib/models/dayjs-adapter/dayjs-date-adapter.mjs +0 -89
- package/esm2022/lib/tokens.mjs +0 -8
- package/esm2022/lib/validations/base-validation.loc.mjs +0 -23
- package/esm2022/lib/validations/base-validation.mjs +0 -328
- package/esm2022/lib/validations/customValidators/CustomRequiredDirective.mjs +0 -41
- package/esm2022/lib/validations/validation-autocomplete/validation-autocomplete.component.mjs +0 -147
- package/esm2022/lib/validations/validation-autocomplete-multi/validation-autocomplete-multi.component.mjs +0 -240
- package/esm2022/lib/validations/validation-currency/validation-currency.component.mjs +0 -75
- package/esm2022/lib/validations/validation-date/validation-date.component.mjs +0 -183
- package/esm2022/lib/validations/validation-datetime/validation-datetime.component.mjs +0 -212
- package/esm2022/lib/validations/validation-input/validation-input.component.mjs +0 -222
- package/esm2022/lib/validations/validation-select/validation-select.component.mjs +0 -183
- package/esm2022/lib/validations/validation-text-area/validation-text-area.component.mjs +0 -78
- package/esm2022/public-api.mjs +0 -40
|
@@ -272,5 +272,5 @@ export declare abstract class BaseFormControl implements ControlValueAccessor {
|
|
|
272
272
|
/** @ignore */
|
|
273
273
|
abstract onNotNullValueSet(): void;
|
|
274
274
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormControl, never>;
|
|
275
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseFormControl, never, never, { "FocusSubject": { "alias": "FocusSubject"; "required": false; }; "SetValidationSubject": { "alias": "SetValidationSubject"; "required": false; }; "FieldAppearence": { "alias": "FieldAppearence"; "required": false; }; "FormLayout": { "alias": "FormLayout"; "required": false; }; "EmitPendingChanges": { "alias": "EmitPendingChanges"; "required": false; }; "Validation": { "alias": "Validation"; "required": false; }; "Frozen": { "alias": "Frozen"; "required": false; }; "Placeholder": { "alias": "Placeholder"; "required": false; }; "FormGroupClass": { "alias": "FormGroupClass"; "required": false; }; "FailedValidationMessage": { "alias": "FailedValidationMessage"; "required": false; }; "ForcedError": { "alias": "ForcedError"; "required": false; }; "Label": { "alias": "Label"; "required": false; }; "LabelColWidth": { "alias": "LabelColWidth"; "required": false; }; "InputColWidth": { "alias": "InputColWidth"; "required": false; }; "Last": { "alias": "Last"; "required": false; }; "Form": { "alias": "Form"; "required": false; }; "Source": { "alias": "Source"; "required": false; }; "IdField": { "alias": "IdField"; "required": false; }; "FloatingLabel": { "alias": "FloatingLabel"; "required": false; }; "DisplayMode": { "alias": "DisplayMode"; "required": false; }; "DisplayCondition": { "alias": "DisplayCondition"; "required": false; }; "DisplayModeTemplate": { "alias": "DisplayModeTemplate"; "required": false; }; "DisplayLayout": { "alias": "DisplayLayout"; "required": false; }; "InlineSeparator": { "alias": "InlineSeparator"; "required": false; }; "Type": { "alias": "Type"; "required": false; }; "Display": { "alias": "Display"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "Readonly": { "alias": "Readonly"; "required": false; }; "LabelInputRatio": { "alias": "LabelInputRatio"; "required": false; }; }, { "inputChange": "inputChange"; "inputFocus": "inputFocus"; "inputFinalized": "inputFinalized"; }, never, never,
|
|
275
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseFormControl, never, never, { "FocusSubject": { "alias": "FocusSubject"; "required": false; }; "SetValidationSubject": { "alias": "SetValidationSubject"; "required": false; }; "FieldAppearence": { "alias": "FieldAppearence"; "required": false; }; "FormLayout": { "alias": "FormLayout"; "required": false; }; "EmitPendingChanges": { "alias": "EmitPendingChanges"; "required": false; }; "Validation": { "alias": "Validation"; "required": false; }; "Frozen": { "alias": "Frozen"; "required": false; }; "Placeholder": { "alias": "Placeholder"; "required": false; }; "FormGroupClass": { "alias": "FormGroupClass"; "required": false; }; "FailedValidationMessage": { "alias": "FailedValidationMessage"; "required": false; }; "ForcedError": { "alias": "ForcedError"; "required": false; }; "Label": { "alias": "Label"; "required": false; }; "LabelColWidth": { "alias": "LabelColWidth"; "required": false; }; "InputColWidth": { "alias": "InputColWidth"; "required": false; }; "Last": { "alias": "Last"; "required": false; }; "Form": { "alias": "Form"; "required": false; }; "Source": { "alias": "Source"; "required": false; }; "IdField": { "alias": "IdField"; "required": false; }; "FloatingLabel": { "alias": "FloatingLabel"; "required": false; }; "DisplayMode": { "alias": "DisplayMode"; "required": false; }; "DisplayCondition": { "alias": "DisplayCondition"; "required": false; }; "DisplayModeTemplate": { "alias": "DisplayModeTemplate"; "required": false; }; "DisplayLayout": { "alias": "DisplayLayout"; "required": false; }; "InlineSeparator": { "alias": "InlineSeparator"; "required": false; }; "Type": { "alias": "Type"; "required": false; }; "Display": { "alias": "Display"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "Readonly": { "alias": "Readonly"; "required": false; }; "LabelInputRatio": { "alias": "LabelInputRatio"; "required": false; }; }, { "inputChange": "inputChange"; "inputFocus": "inputFocus"; "inputFinalized": "inputFinalized"; }, never, never, true, never>;
|
|
276
276
|
}
|
|
@@ -3,11 +3,11 @@ import { ControlValueAccessor, NgControl, ValidatorFn } from "@angular/forms";
|
|
|
3
3
|
import { LocalizationService } from "@esfaenza/localizations";
|
|
4
4
|
import { DateService, UtilityService } from "@esfaenza/extensions";
|
|
5
5
|
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
6
|
-
import { NgxMatDateAdapter } from "@ngxmc/datetime-picker";
|
|
7
6
|
import { BaseFormControl } from "../base-form-control";
|
|
8
7
|
import { AppFile } from "../../models/AppFile";
|
|
9
8
|
import { Observable } from "rxjs";
|
|
10
9
|
import { ChangeEvent } from "../../models/ChangeEvent";
|
|
10
|
+
import { DateAdapter } from "@angular/material/core";
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
/** Opzioni generiche disponibili */
|
|
13
13
|
export type AvailableOptions = 'JsDates' | 'CaseSensitive' | 'MinChars' | 'SearchFunction' | 'Alignment' | 'Precision' | 'AllowDownload' | 'AdjustNumber' | 'Pattern';
|
|
@@ -65,7 +65,7 @@ export declare class FormAdaptiveComponent extends BaseFormControl implements Co
|
|
|
65
65
|
/** Variabile interna che salva il valore degli input float prima dell'aggiustamento */
|
|
66
66
|
private floatValuePreAdjustmente;
|
|
67
67
|
/** @ignore Costruttore */
|
|
68
|
-
constructor(cdr: ChangeDetectorRef, utiExts: UtilityService, datesExts: DateService, dateAdapter:
|
|
68
|
+
constructor(cdr: ChangeDetectorRef, utiExts: UtilityService, datesExts: DateService, dateAdapter: DateAdapter<any>, lc: LocalizationService, ngControl: NgControl, _validators: Array<any>, ac: AccessControlService, AppContext: ComponentContext, ACO_CUSTOMKEY: string, FAV_DEBUG_MODE: boolean);
|
|
69
69
|
IntPattern: string;
|
|
70
70
|
FloatPattern: string;
|
|
71
71
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ControlValueAccessor, NgControl } from "@angular/forms";
|
|
2
2
|
import { ChangeDetectorRef } from "@angular/core";
|
|
3
|
-
import { NgxMatDateAdapter } from "@ngxmc/datetime-picker";
|
|
4
3
|
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
5
4
|
import { BaseFormControl } from "../base-form-control";
|
|
5
|
+
import { DateAdapter } from "@angular/material/core";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/** Componente che identifica la selezione di un orario */
|
|
8
8
|
export declare class FormTimeComponent extends BaseFormControl implements ControlValueAccessor {
|
|
@@ -28,7 +28,7 @@ export declare class FormTimeComponent extends BaseFormControl implements Contro
|
|
|
28
28
|
*/
|
|
29
29
|
InOutFormat: 'date' | 'timestring' | 'dayjs';
|
|
30
30
|
/** @ignore */
|
|
31
|
-
constructor(cdr: ChangeDetectorRef, dateAdapter:
|
|
31
|
+
constructor(cdr: ChangeDetectorRef, dateAdapter: DateAdapter<any>, ngControl: NgControl, _validators: Array<any>, ac: AccessControlService, AppContext: ComponentContext, ACO_CUSTOMKEY: string);
|
|
32
32
|
/** @ignore Override per gestire input in ingresso */
|
|
33
33
|
writeValue(obj: any): void;
|
|
34
34
|
/** @ignore Override per gestire input in uscita */
|
|
@@ -215,5 +215,5 @@ export declare abstract class BaseValidation {
|
|
|
215
215
|
*/
|
|
216
216
|
deregisterFocusRequest(): void;
|
|
217
217
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseValidation, never>;
|
|
218
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseValidation, never, never, { "FocusSubject": { "alias": "FocusSubject"; "required": false; }; "SetValidationSubject": { "alias": "SetValidationSubject"; "required": false; }; "InferErrorMessages": { "alias": "InferErrorMessages"; "required": false; }; "FieldAppearence": { "alias": "FieldAppearence"; "required": false; }; "FloatingLabel": { "alias": "FloatingLabel"; "required": false; }; "validationFailed": { "alias": "validationFailed"; "required": false; }; "Readonly": { "alias": "Readonly"; "required": false; }; "widthPx": { "alias": "widthPx"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "class": { "alias": "class"; "required": false; }; "style": { "alias": "style"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "noValidate": { "alias": "noValidate"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "id": { "alias": "id"; "required": false; }; "submitted": { "alias": "submitted"; "required": false; }; "forceInvalid": { "alias": "forceInvalid"; "required": false; }; }, { "inputChange": "inputChange"; "inputFocus": "inputFocus"; "inputFinalized": "inputFinalized"; }, never, never,
|
|
218
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseValidation, never, never, { "FocusSubject": { "alias": "FocusSubject"; "required": false; }; "SetValidationSubject": { "alias": "SetValidationSubject"; "required": false; }; "InferErrorMessages": { "alias": "InferErrorMessages"; "required": false; }; "FieldAppearence": { "alias": "FieldAppearence"; "required": false; }; "FloatingLabel": { "alias": "FloatingLabel"; "required": false; }; "validationFailed": { "alias": "validationFailed"; "required": false; }; "Readonly": { "alias": "Readonly"; "required": false; }; "widthPx": { "alias": "widthPx"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "class": { "alias": "class"; "required": false; }; "style": { "alias": "style"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "noValidate": { "alias": "noValidate"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "id": { "alias": "id"; "required": false; }; "submitted": { "alias": "submitted"; "required": false; }; "forceInvalid": { "alias": "forceInvalid"; "required": false; }; }, { "inputChange": "inputChange"; "inputFocus": "inputFocus"; "inputFinalized": "inputFinalized"; }, never, never, true, never>;
|
|
219
219
|
}
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esfaenza/forms-and-validations",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "19.2.1",
|
|
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/access-control": "^
|
|
14
|
-
"@esfaenza/extensions": "^
|
|
15
|
-
"@esfaenza/localizations": "^
|
|
16
|
-
"@esfaenza/material-dayjs-adapter": "^
|
|
17
|
-
"@esfaenza/ngx-currency-mask": "^
|
|
9
|
+
"@angular/common": "^19.2.14",
|
|
10
|
+
"@angular/core": "^19.2.14",
|
|
11
|
+
"@angular/forms": "^19.2.14",
|
|
12
|
+
"@angular/material": "^19.2.18",
|
|
13
|
+
"@esfaenza/access-control": "^19.2.1",
|
|
14
|
+
"@esfaenza/extensions": "^19.2.1",
|
|
15
|
+
"@esfaenza/localizations": "^19.2.1",
|
|
16
|
+
"@esfaenza/material-dayjs-adapter": "^19.2.1",
|
|
17
|
+
"@esfaenza/ngx-currency-mask": "^19.2.1",
|
|
18
18
|
"angular2-multiselect-dropdown": "10.0.0",
|
|
19
|
-
"@ngxmc/datetime-picker": "
|
|
20
|
-
"ngx-toastr": "
|
|
21
|
-
"ngx-bootstrap": "
|
|
19
|
+
"@ngxmc/datetime-picker": "19.3.1",
|
|
20
|
+
"ngx-toastr": "19.0.0",
|
|
21
|
+
"ngx-bootstrap": "19.0.2",
|
|
22
22
|
"dayjs": "1.11.13",
|
|
23
23
|
"sweetalert2": "11.17.2"
|
|
24
24
|
},
|
|
@@ -30,8 +30,6 @@
|
|
|
30
30
|
},
|
|
31
31
|
".": {
|
|
32
32
|
"types": "./index.d.ts",
|
|
33
|
-
"esm2022": "./esm2022/esfaenza-forms-and-validations.mjs",
|
|
34
|
-
"esm": "./esm2022/esfaenza-forms-and-validations.mjs",
|
|
35
33
|
"default": "./fesm2022/esfaenza-forms-and-validations.mjs"
|
|
36
34
|
}
|
|
37
35
|
},
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXNmYWVuemEtZm9ybXMtYW5kLXZhbGlkYXRpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvZm9ybXMtYW5kLXZhbGlkYXRpb25zL3NyYy9lc2ZhZW56YS1mb3Jtcy1hbmQtdmFsaWRhdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|