iptdevs-design-system 3.1.356 → 3.1.358

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.
@@ -286,9 +286,9 @@ class InputComponent {
286
286
  this.thousands = '.';
287
287
  this.decimal = ',';
288
288
  this.dateSelected = new EventEmitter();
289
+ this.typingStopped = new EventEmitter();
289
290
  this.disabledSel = false;
290
291
  this.doneTypingInterval = 500; // Milisegundos
291
- this.typingStopped = new EventEmitter();
292
292
  }
293
293
  set control(value) {
294
294
  if (this.formControl !== value) {
@@ -308,12 +308,13 @@ class InputComponent {
308
308
  onKeyUp(event) {
309
309
  clearTimeout(this.typingTimer);
310
310
  this.typingTimer = setTimeout(() => {
311
- this.typingStopped.emit();
311
+ this.typingStopped.emit(event.target.value); // Cambio aquí: pasando el valor del input
312
312
  }, this.doneTypingInterval);
313
313
  }
314
314
  onBlur() {
315
315
  clearTimeout(this.typingTimer);
316
- this.typingStopped.emit(); // Emitir evento cuando el usuario deja el input sin haber finalizado el tiempo de escritura
316
+ // También puedes emitir el valor cuando el usuario deja el input
317
+ this.typingStopped.emit(this.formControl.value.value); // Cambio aquí: pasando el valor del input
317
318
  }
318
319
  }
319
320
  InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -437,10 +438,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImpor
437
438
  type: Input
438
439
  }], dateSelected: [{
439
440
  type: Output
440
- }], disabledSel: [{
441
- type: Input
442
441
  }], typingStopped: [{
443
442
  type: Output
443
+ }], disabledSel: [{
444
+ type: Input
444
445
  }] } });
445
446
 
446
447
  class LevelButtonComponent {