valtech-components 2.0.794 → 2.0.796
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/lib/components/organisms/form/form.component.mjs +20 -3
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +20 -3
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/form/form.component.d.ts +9 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -21,6 +21,7 @@ export declare class FormComponent implements OnInit, OnChanges, DoCheck {
|
|
|
21
21
|
private fieldPropMemo;
|
|
22
22
|
private usernamePropMemo;
|
|
23
23
|
private textareaPropMemo;
|
|
24
|
+
private selectPropMemo;
|
|
24
25
|
private previousState;
|
|
25
26
|
constructor(fb: FormBuilder, elementRef: ElementRef);
|
|
26
27
|
ngOnInit(): void;
|
|
@@ -39,6 +40,14 @@ export declare class FormComponent implements OnInit, OnChanges, DoCheck {
|
|
|
39
40
|
submitHandler(token?: string): Promise<void>;
|
|
40
41
|
getControl(field: string): FormControl;
|
|
41
42
|
getFieldProp(field: InputMetadata): InputMetadata;
|
|
43
|
+
/**
|
|
44
|
+
* Adapter para SELECT — igual que `getFieldProp` pero limpia `label`.
|
|
45
|
+
* val-form ya renderiza el título del campo con `<val-title>` arriba del input;
|
|
46
|
+
* si además pasáramos `label` al `<ion-select>`, este lo pinta DENTRO del pill
|
|
47
|
+
* → redundancia visual ("Tipo" dos veces). Reusa el mismo memo (con la entrada
|
|
48
|
+
* ya label-stripped) para no romper la identidad de referencia.
|
|
49
|
+
*/
|
|
50
|
+
getSelectProp(field: InputMetadata): InputMetadata;
|
|
42
51
|
/**
|
|
43
52
|
* Adapter — convierte un `InputMetadata` (con type=HANDLE) a `UsernameInputMetadata`.
|
|
44
53
|
* El check de disponibilidad se resuelve dentro del component (AuthService inyectado);
|
package/lib/version.d.ts
CHANGED