easy-forms-core 1.2.3 → 1.2.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/index.d.ts CHANGED
@@ -98,6 +98,15 @@ interface MaskConfig {
98
98
  showMaskOnFocus?: boolean;
99
99
  showMaskOnHover?: boolean;
100
100
  }
101
+ /**
102
+ * Contenido para slots leading/trailing en inputs (iconos o imágenes)
103
+ */
104
+ interface SlotContent {
105
+ type: 'image' | 'html';
106
+ src?: string;
107
+ html?: string;
108
+ alt?: string;
109
+ }
101
110
  /**
102
111
  * Campo base
103
112
  */
@@ -124,6 +133,10 @@ interface BaseField {
124
133
  validations: Validation[];
125
134
  }>;
126
135
  mask?: MaskConfig;
136
+ /** Icono o imagen a la izquierda del input */
137
+ leadingIcon?: SlotContent;
138
+ /** Icono o imagen a la derecha del input */
139
+ trailingIcon?: SlotContent;
127
140
  }
128
141
  /**
129
142
  * Campo de texto
@@ -1023,6 +1036,10 @@ declare class SchemaParser {
1023
1036
  * Valida el tipo de campo
1024
1037
  */
1025
1038
  private validateFieldType;
1039
+ /**
1040
+ * Valida que SlotContent tenga las propiedades requeridas según type
1041
+ */
1042
+ private validateSlotContent;
1026
1043
  /**
1027
1044
  * Aplica valores por defecto a un campo
1028
1045
  */
@@ -1276,4 +1293,4 @@ declare function getAvailableTemplates(): TemplateName[];
1276
1293
  */
1277
1294
  declare function extendTemplate(templateName: string, additionalFields: Field[]): FormSchema;
1278
1295
 
1279
- 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 PredefinedMask, type QuantityField, type RadioField, type RatingField, type RequiredValidation, type RowField, SchemaParser, type SelectField, type SliderField, 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 };
1296
+ 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 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 };