@esfaenza/forms-and-validations 11.2.139 → 11.2.141
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/bundles/esfaenza-forms-and-validations.umd.js +37 -6
- package/bundles/esfaenza-forms-and-validations.umd.js.map +1 -1
- package/esfaenza-forms-and-validations.metadata.json +1 -1
- package/esm2015/lib/forms/form-adaptive/form-adaptive.component.js +31 -3
- package/esm2015/lib/forms/form-select/form-select.component.js +6 -3
- package/fesm2015/esfaenza-forms-and-validations.js +35 -4
- package/fesm2015/esfaenza-forms-and-validations.js.map +1 -1
- package/lib/forms/form-adaptive/form-adaptive.component.d.ts +13 -0
- package/lib/forms/form-select/form-select.component.d.ts +3 -1
- package/package.json +1 -1
|
@@ -8,6 +8,8 @@ import { BaseFormControl } from "../base-form-control";
|
|
|
8
8
|
import { AppFile } from "../../models/AppFile";
|
|
9
9
|
import { Observable } from "rxjs";
|
|
10
10
|
import { ChangeEvent } from "../../models/ChangeEvent";
|
|
11
|
+
/** Opzioni generiche disponibili */
|
|
12
|
+
export declare type AvailableOptions = 'JsDates' | 'CaseSensitive' | 'MinChars' | 'SearchFunction' | 'Alignment' | 'Precision' | 'AllowDownload' | 'AdjustNumber' | 'Pattern';
|
|
11
13
|
/** 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
14
|
export declare class FormAdaptiveComponent extends BaseFormControl implements ControlValueAccessor {
|
|
13
15
|
private utiExts;
|
|
@@ -41,6 +43,10 @@ export declare class FormAdaptiveComponent extends BaseFormControl implements Co
|
|
|
41
43
|
MinChars: number;
|
|
42
44
|
/** Indica se i controlli devono essere effettuati tenendo conto del Case o meno. Vale solo qualora la **Source** fosse fornita */
|
|
43
45
|
CaseSensitive: boolean;
|
|
46
|
+
/** Opzioni specifiche per il componente che si va a visualizzare. Es. per i tipi date: { JsDates: true } */
|
|
47
|
+
Options: {
|
|
48
|
+
[id in AvailableOptions]?: any;
|
|
49
|
+
};
|
|
44
50
|
/** Variabile interna che gestisce se effettuare il riallineamento dei dati o meno */
|
|
45
51
|
private alignValues;
|
|
46
52
|
/**
|
|
@@ -59,6 +65,13 @@ export declare class FormAdaptiveComponent extends BaseFormControl implements Co
|
|
|
59
65
|
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);
|
|
60
66
|
IntPattern: string;
|
|
61
67
|
FloatPattern: string;
|
|
68
|
+
/**
|
|
69
|
+
* Nvl con un minimo di senso
|
|
70
|
+
* @param value Valore base
|
|
71
|
+
* @param ifnod Valore da usare se **value** è nullo o undefined
|
|
72
|
+
* @returns Il valore preso fra i due disponibili
|
|
73
|
+
*/
|
|
74
|
+
private nvl;
|
|
62
75
|
ngOnInit(): void;
|
|
63
76
|
/** @ignore */
|
|
64
77
|
ngOnChanges(changes: SimpleChanges): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SimpleChanges, ChangeDetectorRef } from "@angular/core";
|
|
1
|
+
import { SimpleChanges, ChangeDetectorRef, TemplateRef } from "@angular/core";
|
|
2
2
|
import { ControlValueAccessor, NgControl } from "@angular/forms";
|
|
3
3
|
import { LocalizationService } from "@esfaenza/localizations";
|
|
4
4
|
import { AccessControlService, ComponentContext } from '@esfaenza/access-control';
|
|
@@ -24,6 +24,8 @@ export declare class FormSelectComponent extends BaseFormControl implements Cont
|
|
|
24
24
|
EmptyFieldValue: string;
|
|
25
25
|
/** Se **true** rimuove il simbolino di validazione (croce rossa o tick verde) */
|
|
26
26
|
ShowValidationSymbol: boolean;
|
|
27
|
+
/** Template per la visualizzazione delle opzioni */
|
|
28
|
+
OptionTemplate: TemplateRef<any>;
|
|
27
29
|
/** @ignore Costruttore */
|
|
28
30
|
constructor(cdr: ChangeDetectorRef, lc: LocalizationService, ngControl: NgControl, _validators: Array<any>, ac: AccessControlService, AppContext: ComponentContext, ACO_CUSTOMKEY: string, FAV_DEBUG_MODE: boolean);
|
|
29
31
|
/** @ignore */
|