easy-forms-core 1.3.2 → 1.3.4
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 +21 -4
- package/dist/easy-form.js +295 -60
- package/dist/easy-form.js.map +1 -1
- package/dist/index.d.ts +22 -5
- package/dist/index.js +267 -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';
|
|
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';
|
|
5
5
|
/**
|
|
6
6
|
* Tipos de validaciones soportadas
|
|
7
7
|
*/
|
|
@@ -274,13 +274,30 @@ interface ColorpickerField extends BaseField {
|
|
|
274
274
|
*/
|
|
275
275
|
interface MarkdownField extends BaseField {
|
|
276
276
|
type: 'markdown';
|
|
277
|
-
/**
|
|
278
|
-
|
|
277
|
+
/** Modo de visualización: 'split' (editor + preview lado a lado), 'tabs' (cambiar entre editor/preview), 'preview' (solo preview editable) */
|
|
278
|
+
mode?: 'split' | 'tabs' | 'preview';
|
|
279
279
|
/** Mostrar toolbar con botones de formato (default: true) */
|
|
280
280
|
toolbar?: boolean;
|
|
281
281
|
/** Altura del editor (default: '300px') */
|
|
282
282
|
height?: string;
|
|
283
283
|
}
|
|
284
|
+
/**
|
|
285
|
+
* Campo autocomplete con tags
|
|
286
|
+
*/
|
|
287
|
+
interface AutocompleteTagsField extends BaseField {
|
|
288
|
+
type: 'autocomplete-tags';
|
|
289
|
+
/** Opciones disponibles para autocompletar */
|
|
290
|
+
options: Array<{
|
|
291
|
+
label: string;
|
|
292
|
+
value: any;
|
|
293
|
+
} | string>;
|
|
294
|
+
/** Texto placeholder del input */
|
|
295
|
+
placeholder?: string;
|
|
296
|
+
/** Máximo número de tags (opcional) */
|
|
297
|
+
maxTags?: number;
|
|
298
|
+
/** Mínimo de caracteres para mostrar sugerencias (default: 0) */
|
|
299
|
+
minChars?: number;
|
|
300
|
+
}
|
|
284
301
|
/**
|
|
285
302
|
* Campo array
|
|
286
303
|
*/
|
|
@@ -369,7 +386,7 @@ interface OTPField extends BaseField {
|
|
|
369
386
|
/**
|
|
370
387
|
* Unión de todos los tipos de campos
|
|
371
388
|
*/
|
|
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;
|
|
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;
|
|
373
390
|
/**
|
|
374
391
|
* Estilos visuales del stepper
|
|
375
392
|
*/
|