easy-forms-core 1.3.4 → 1.3.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 +15 -2
- package/dist/easy-form.js +70 -32
- package/dist/easy-form.js.map +1 -1
- package/dist/index.d.ts +16 -3
- package/dist/index.js +70 -32
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/easy-form.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Tipos de campos soportados
|
|
3
3
|
*/
|
|
4
|
-
type FieldType = 'text' | 'email' | 'number' | 'password' | 'textarea' | 'select' | 'checkbox' | 'radio' | 'switch' | 'date' | 'file' | 'array' | 'group' | 'row' | 'custom' | 'quantity' | 'accordion-select' | 'image-grid-select' | 'otp' | 'file-drop' | 'map' | 'rating' | 'slider' | 'colorpicker' | 'markdown' | 'autocomplete-tags';
|
|
4
|
+
type FieldType = 'text' | 'email' | 'number' | 'password' | 'textarea' | 'select' | 'checkbox' | 'radio' | 'switch' | 'date' | 'file' | 'array' | 'group' | 'row' | 'custom' | 'quantity' | 'accordion-select' | 'image-grid-select' | 'otp' | 'file-drop' | 'map' | 'rating' | 'slider' | 'colorpicker' | 'markdown' | 'autocomplete-tags' | 'chip-select';
|
|
5
5
|
/**
|
|
6
6
|
* Tipos de validaciones soportadas
|
|
7
7
|
*/
|
|
@@ -298,6 +298,19 @@ interface AutocompleteTagsField extends BaseField {
|
|
|
298
298
|
/** Mínimo de caracteres para mostrar sugerencias (default: 0) */
|
|
299
299
|
minChars?: number;
|
|
300
300
|
}
|
|
301
|
+
/**
|
|
302
|
+
* Campo chip select (selección múltiple en chips/badges)
|
|
303
|
+
*/
|
|
304
|
+
interface ChipSelectField extends BaseField {
|
|
305
|
+
type: 'chip-select';
|
|
306
|
+
/** Opciones disponibles */
|
|
307
|
+
options: Array<{
|
|
308
|
+
label: string;
|
|
309
|
+
value: any;
|
|
310
|
+
} | string>;
|
|
311
|
+
/** Máximo número de selecciones (opcional, sin límite por defecto) */
|
|
312
|
+
max?: number;
|
|
313
|
+
}
|
|
301
314
|
/**
|
|
302
315
|
* Campo array
|
|
303
316
|
*/
|
|
@@ -386,7 +399,7 @@ interface OTPField extends BaseField {
|
|
|
386
399
|
/**
|
|
387
400
|
* Unión de todos los tipos de campos
|
|
388
401
|
*/
|
|
389
|
-
type Field = TextField | PasswordField | NumberField | TextareaField | SelectField | CheckboxField | RadioField | SwitchField | DateField | FileField | FileDropField | MapField | RatingField | SliderField | ColorpickerField | ArrayField | GroupField | RowField | CustomField | QuantityField | AccordionSelectField | ImageGridSelectField | OTPField | MarkdownField | AutocompleteTagsField;
|
|
402
|
+
type Field = TextField | PasswordField | NumberField | TextareaField | SelectField | CheckboxField | RadioField | SwitchField | DateField | FileField | FileDropField | MapField | RatingField | SliderField | ColorpickerField | ArrayField | GroupField | RowField | CustomField | QuantityField | AccordionSelectField | ImageGridSelectField | OTPField | MarkdownField | AutocompleteTagsField | ChipSelectField;
|
|
390
403
|
/**
|
|
391
404
|
* Estilos visuales del stepper
|
|
392
405
|
*/
|