easy-forms-core 1.3.0 → 1.3.2
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 +14 -2
- package/dist/easy-form.js +220 -27
- package/dist/easy-form.js.map +1 -1
- package/dist/index.d.ts +15 -3
- package/dist/index.js +220 -27
- package/dist/index.js.map +1 -1
- package/package.json +5 -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';
|
|
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';
|
|
5
5
|
/**
|
|
6
6
|
* Tipos de validaciones soportadas
|
|
7
7
|
*/
|
|
@@ -269,6 +269,18 @@ interface ColorpickerField extends BaseField {
|
|
|
269
269
|
/** Valor por defecto en hex (ej. #6366f1). Default: #000000 */
|
|
270
270
|
defaultValue?: string;
|
|
271
271
|
}
|
|
272
|
+
/**
|
|
273
|
+
* Campo markdown editor
|
|
274
|
+
*/
|
|
275
|
+
interface MarkdownField extends BaseField {
|
|
276
|
+
type: 'markdown';
|
|
277
|
+
/** Mostrar vista previa (default: true) */
|
|
278
|
+
preview?: boolean;
|
|
279
|
+
/** Mostrar toolbar con botones de formato (default: true) */
|
|
280
|
+
toolbar?: boolean;
|
|
281
|
+
/** Altura del editor (default: '300px') */
|
|
282
|
+
height?: string;
|
|
283
|
+
}
|
|
272
284
|
/**
|
|
273
285
|
* Campo array
|
|
274
286
|
*/
|
|
@@ -357,7 +369,7 @@ interface OTPField extends BaseField {
|
|
|
357
369
|
/**
|
|
358
370
|
* Unión de todos los tipos de campos
|
|
359
371
|
*/
|
|
360
|
-
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;
|
|
372
|
+
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;
|
|
361
373
|
/**
|
|
362
374
|
* Estilos visuales del stepper
|
|
363
375
|
*/
|