easy-forms-core 1.2.13 → 1.2.14
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 +8 -0
- package/dist/easy-form.js +186 -30
- package/dist/easy-form.js.map +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +186 -30
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -358,6 +358,10 @@ interface OTPField extends BaseField {
|
|
|
358
358
|
* Unión de todos los tipos de campos
|
|
359
359
|
*/
|
|
360
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;
|
|
361
|
+
/**
|
|
362
|
+
* Estilos visuales del stepper
|
|
363
|
+
*/
|
|
364
|
+
type StepStyle = 'default' | 'tabs' | 'buttons' | 'timeline' | 'none';
|
|
361
365
|
/**
|
|
362
366
|
* Step para formularios wizard
|
|
363
367
|
*/
|
|
@@ -365,6 +369,8 @@ interface Step {
|
|
|
365
369
|
title: string;
|
|
366
370
|
description?: string;
|
|
367
371
|
fields: Field[];
|
|
372
|
+
/** Estilo visual del stepper para este step */
|
|
373
|
+
stepStyle?: StepStyle;
|
|
368
374
|
}
|
|
369
375
|
/**
|
|
370
376
|
* Tipos de temas disponibles
|
|
@@ -423,6 +429,8 @@ interface FormSchema {
|
|
|
423
429
|
direction?: 'vertical' | 'horizontal';
|
|
424
430
|
/** Configuración de persistencia/autosave del formulario */
|
|
425
431
|
persistence?: PersistenceConfig;
|
|
432
|
+
/** Estilo visual del stepper (aplica a todos los steps): 'default' | 'tabs' | 'buttons' | 'timeline' | 'none' */
|
|
433
|
+
stepStyle?: StepStyle;
|
|
426
434
|
}
|
|
427
435
|
/**
|
|
428
436
|
* Configuración de persistencia del formulario
|
|
@@ -1348,4 +1356,4 @@ declare function getAvailableTemplates(): TemplateName[];
|
|
|
1348
1356
|
*/
|
|
1349
1357
|
declare function extendTemplate(templateName: string, additionalFields: Field[]): FormSchema;
|
|
1350
1358
|
|
|
1351
|
-
export { type AccordionSelectField, type ArrayField, AttemptsLock, type AttemptsLockOptions, type BaseField, type BaseValidation, type ChangeEventDetail, type CheckboxField, type ColorpickerField, type ComponentRegistry, ConditionEngine, type ConditionOperator, type CustomComponent, type CustomField, type CustomMask, type CustomValidation, type DateField, EasyForm, 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 ImageGridSelectField, type LabelPosition, type MapField, 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 SubmitButtonConfig, type SubmitEventDetail, type SwitchField, type TemplateName, type TextField, type TextareaField, type Validation, ValidationEngine, type ValidationType, type WizardState, attributeValue, containsInjection, createInput, extendTemplate, generateId, getAvailableTemplates, getColors, getCustomComponent, getNestedValue, getPredefinedMask, getTemplate, getThemeStyles, isSafeFromInjection, isValidEmail, parseAttributeValue, registerComponent, registerComponents, sanitizeId, setNestedValue, templates };
|
|
1359
|
+
export { type AccordionSelectField, type ArrayField, AttemptsLock, type AttemptsLockOptions, type BaseField, type BaseValidation, type ChangeEventDetail, type CheckboxField, type ColorpickerField, type ComponentRegistry, ConditionEngine, type ConditionOperator, type CustomComponent, type CustomField, type CustomMask, type CustomValidation, type DateField, EasyForm, 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 ImageGridSelectField, type LabelPosition, type MapField, 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 Validation, ValidationEngine, type ValidationType, type WizardState, attributeValue, containsInjection, createInput, extendTemplate, generateId, getAvailableTemplates, getColors, getCustomComponent, getNestedValue, getPredefinedMask, getTemplate, getThemeStyles, isSafeFromInjection, isValidEmail, parseAttributeValue, registerComponent, registerComponents, sanitizeId, setNestedValue, templates };
|