easy-forms-core 1.2.13 → 1.2.15

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.
@@ -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
@@ -480,6 +488,10 @@ declare class EasyForm extends BrowserHTMLElement {
480
488
  private persistenceDebounceTimer;
481
489
  private pendingRestoreValues;
482
490
  private isRestoringValues;
491
+ private completeTimeInterval;
492
+ private timeRemaining;
493
+ private timerStarted;
494
+ private timerExpired;
483
495
  static get observedAttributes(): string[];
484
496
  constructor();
485
497
  /**
@@ -767,6 +779,14 @@ declare class EasyForm extends BrowserHTMLElement {
767
779
  * Establece el estado de disabled
768
780
  */
769
781
  set disabled(value: boolean);
782
+ /**
783
+ * Obtiene el tiempo límite en segundos
784
+ */
785
+ get completeTime(): number | null;
786
+ /**
787
+ * Establece el tiempo límite en segundos
788
+ */
789
+ set completeTime(value: number | null);
770
790
  /**
771
791
  * Configura estilos básicos
772
792
  */
@@ -799,6 +819,34 @@ declare class EasyForm extends BrowserHTMLElement {
799
819
  * Limpia los datos de persistencia
800
820
  */
801
821
  private clearPersistence;
822
+ /**
823
+ * Resetea el timer de complete-time
824
+ */
825
+ private resetTimer;
826
+ /**
827
+ * Inicia el timer de complete-time
828
+ */
829
+ private startTimer;
830
+ /**
831
+ * Actualiza la visualización del timer
832
+ */
833
+ private updateTimerDisplay;
834
+ /**
835
+ * Maneja cuando el timer expira
836
+ */
837
+ private handleTimerExpired;
838
+ /**
839
+ * Deshabilita todos los campos del formulario
840
+ */
841
+ private disableAllFields;
842
+ /**
843
+ * Configura el event listener para iniciar el timer en el primer input
844
+ */
845
+ private setupTimerInputListener;
846
+ /**
847
+ * Renderiza el display del timer
848
+ */
849
+ private renderTimerDisplay;
802
850
  }
803
851
 
804
852
  export { EasyForm };