easy-forms-core 1.2.3 → 1.2.5
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/dist/easy-form.d.ts +13 -0
- package/dist/easy-form.js +75 -7
- package/dist/easy-form.js.map +1 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +75 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/easy-form.d.ts
CHANGED
|
@@ -98,6 +98,15 @@ interface MaskConfig {
|
|
|
98
98
|
showMaskOnFocus?: boolean;
|
|
99
99
|
showMaskOnHover?: boolean;
|
|
100
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* Contenido para slots leading/trailing en inputs (iconos o imágenes)
|
|
103
|
+
*/
|
|
104
|
+
interface SlotContent {
|
|
105
|
+
type: 'image' | 'html';
|
|
106
|
+
src?: string;
|
|
107
|
+
html?: string;
|
|
108
|
+
alt?: string;
|
|
109
|
+
}
|
|
101
110
|
/**
|
|
102
111
|
* Campo base
|
|
103
112
|
*/
|
|
@@ -124,6 +133,10 @@ interface BaseField {
|
|
|
124
133
|
validations: Validation[];
|
|
125
134
|
}>;
|
|
126
135
|
mask?: MaskConfig;
|
|
136
|
+
/** Icono o imagen a la izquierda del input */
|
|
137
|
+
leadingIcon?: SlotContent;
|
|
138
|
+
/** Icono o imagen a la derecha del input */
|
|
139
|
+
trailingIcon?: SlotContent;
|
|
127
140
|
}
|
|
128
141
|
/**
|
|
129
142
|
* Campo de texto
|