valtech-components 4.0.99 → 4.0.100
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/molecules/form-field/form-field.component.mjs +54 -0
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/valtech-components.mjs +53 -2
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/molecules/form-field/form-field.component.d.ts +31 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Primitivo de campo de formulario: label (estilo val-form) + contenido proyectado.
|
|
4
|
+
*
|
|
5
|
+
* Usar cuando necesitás un campo fuera de val-form pero con el mismo estilo:
|
|
6
|
+
* ion-input, ion-textarea, image-picker, date-picker, selectores custom, etc.
|
|
7
|
+
*
|
|
8
|
+
* ```html
|
|
9
|
+
* <val-form-field label="Nombre del premio">
|
|
10
|
+
* <ion-input fill="outline" ... />
|
|
11
|
+
* </val-form-field>
|
|
12
|
+
*
|
|
13
|
+
* <val-form-field label="Imagen">
|
|
14
|
+
* <app-image-picker ... />
|
|
15
|
+
* </val-form-field>
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* El label usa el mismo val-title que val-form (size=small, color=dark, bold=false).
|
|
19
|
+
* El spacing entre campos se controla con --val-form-field-gap (default 0.5rem).
|
|
20
|
+
*/
|
|
21
|
+
export declare class FormFieldComponent {
|
|
22
|
+
label: import("@angular/core").InputSignal<string>;
|
|
23
|
+
readonly titleProps: import("@angular/core").Signal<{
|
|
24
|
+
content: string;
|
|
25
|
+
size: "small";
|
|
26
|
+
color: "dark";
|
|
27
|
+
bold: boolean;
|
|
28
|
+
}>;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "val-form-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
31
|
+
}
|
package/lib/version.d.ts
CHANGED
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -449,3 +449,4 @@ export * from './lib/components/molecules/ticket-card/ticket-card.component';
|
|
|
449
449
|
export * from './lib/components/molecules/ticket-card/types';
|
|
450
450
|
export * from './lib/components/organisms/qr-scanner/qr-scanner.component';
|
|
451
451
|
export * from './lib/components/organisms/qr-scanner/types';
|
|
452
|
+
export * from './lib/components/molecules/form-field/form-field.component';
|