easy-forms-core 1.5.0 → 1.5.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 +18 -2
- package/dist/easy-form.js +488 -50
- package/dist/easy-form.js.map +1 -1
- package/dist/index.d.ts +19 -3
- package/dist/index.js +488 -50
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.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' | 'chip-select' | 'image-file-crop';
|
|
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' | 'image-file-crop' | 'table';
|
|
5
5
|
/**
|
|
6
6
|
* Tipos de validaciones soportadas
|
|
7
7
|
*/
|
|
@@ -333,6 +333,22 @@ interface ImageFileCropField extends BaseField {
|
|
|
333
333
|
/** Ancho máximo del componente en la UI (ej: '300px', '100%') */
|
|
334
334
|
maxWidth?: string;
|
|
335
335
|
}
|
|
336
|
+
/**
|
|
337
|
+
* Campo de tabla editable
|
|
338
|
+
*/
|
|
339
|
+
interface TableField extends BaseField {
|
|
340
|
+
type: 'table';
|
|
341
|
+
/** Columnas predefinidas de la tabla */
|
|
342
|
+
columns: string[];
|
|
343
|
+
/** Máximo número de filas (default: 100) */
|
|
344
|
+
maxRows?: number;
|
|
345
|
+
/** Altura máxima del contenedor de la tabla (default: '300px') */
|
|
346
|
+
maxHeight?: string;
|
|
347
|
+
/** Permitir que el usuario añada sus propias columnas */
|
|
348
|
+
allowUserColumns?: boolean;
|
|
349
|
+
/** Permitir eliminar las columnas añadidas por el usuario (default: true) */
|
|
350
|
+
allowDeleteUserColumns?: boolean;
|
|
351
|
+
}
|
|
336
352
|
/**
|
|
337
353
|
* Campo array
|
|
338
354
|
*/
|
|
@@ -421,7 +437,7 @@ interface OTPField extends BaseField {
|
|
|
421
437
|
/**
|
|
422
438
|
* Unión de todos los tipos de campos
|
|
423
439
|
*/
|
|
424
|
-
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 | ImageFileCropField;
|
|
440
|
+
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 | ImageFileCropField | TableField;
|
|
425
441
|
/**
|
|
426
442
|
* Estilos visuales del stepper
|
|
427
443
|
*/
|
|
@@ -1518,4 +1534,4 @@ declare class EasyFormBuilder {
|
|
|
1518
1534
|
}
|
|
1519
1535
|
declare function createFormSchema(options?: EasyFormBuilderOptions): FormSchema;
|
|
1520
1536
|
|
|
1521
|
-
export { type AccordionSelectField, type ArrayField, AttemptsLock, type AttemptsLockOptions, type AutocompleteTagsField, type BaseField, type BaseValidation, type ChangeEventDetail, type CheckboxField, type ChipSelectField, type ColorpickerField, type ComponentRegistry, ConditionEngine, type ConditionOperator, type CustomComponent, type CustomField, type CustomMask, type CustomValidation, type DateField, EasyForm, EasyFormBuilder, type EmailValidation, type ErrorEventDetail, type Field, type FieldCondition, type FieldDependencies, type FieldType, type FileDropField, type FileField, type FormColors, type FormSchema, type FormState, type FormTheme, type GroupField, INJECTION_VALIDATION_MESSAGE, type ImageFileCropField, type ImageGridSelectField, type LabelPosition, type MapField, type MarkdownField, type MaskConfig, MaskEngine, type MaxLengthValidation, type MaxValidation, type MinLengthValidation, type MinValidation, type NoInjectionValidation, type NumberField, type OTPField, PREDEFINED_MASKS, type PasswordField, type PatternValidation, type PersistenceConfig, type PredefinedMask, type QuantityField, type RadioField, type RatingField, type RequiredValidation, type RowField, SchemaParser, type SelectField, type SliderField, type SlotContent, StateManager, type Step, type StepChangeEventDetail, type StepStyle, type SubmitButtonConfig, type SubmitEventDetail, type SwitchField, type TemplateName, type TextField, type TextareaField, type TimeoutEventDetail, type Validation, ValidationEngine, type ValidationType, type WizardState, attributeValue, containsInjection, createFormSchema, createInput, extendTemplate, generateId, getAvailableTemplates, getColors, getCustomComponent, getNestedValue, getPredefinedMask, getTemplate, getThemeStyles, isSafeFromInjection, isValidEmail, parseAttributeValue, registerComponent, registerComponents, sanitizeId, setNestedValue, templates };
|
|
1537
|
+
export { type AccordionSelectField, type ArrayField, AttemptsLock, type AttemptsLockOptions, type AutocompleteTagsField, type BaseField, type BaseValidation, type ChangeEventDetail, type CheckboxField, type ChipSelectField, type ColorpickerField, type ComponentRegistry, ConditionEngine, type ConditionOperator, type CustomComponent, type CustomField, type CustomMask, type CustomValidation, type DateField, EasyForm, EasyFormBuilder, type EmailValidation, type ErrorEventDetail, type Field, type FieldCondition, type FieldDependencies, type FieldType, type FileDropField, type FileField, type FormColors, type FormSchema, type FormState, type FormTheme, type GroupField, INJECTION_VALIDATION_MESSAGE, type ImageFileCropField, type ImageGridSelectField, type LabelPosition, type MapField, type MarkdownField, type MaskConfig, MaskEngine, type MaxLengthValidation, type MaxValidation, type MinLengthValidation, type MinValidation, type NoInjectionValidation, type NumberField, type OTPField, PREDEFINED_MASKS, type PasswordField, type PatternValidation, type PersistenceConfig, type PredefinedMask, type QuantityField, type RadioField, type RatingField, type RequiredValidation, type RowField, SchemaParser, type SelectField, type SliderField, type SlotContent, StateManager, type Step, type StepChangeEventDetail, type StepStyle, type SubmitButtonConfig, type SubmitEventDetail, type SwitchField, type TableField, type TemplateName, type TextField, type TextareaField, type TimeoutEventDetail, type Validation, ValidationEngine, type ValidationType, type WizardState, attributeValue, containsInjection, createFormSchema, createInput, extendTemplate, generateId, getAvailableTemplates, getColors, getCustomComponent, getNestedValue, getPredefinedMask, getTemplate, getThemeStyles, isSafeFromInjection, isValidEmail, parseAttributeValue, registerComponent, registerComponents, sanitizeId, setNestedValue, templates };
|