matcha-components 19.9.0 → 19.10.0

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.
@@ -522,11 +522,14 @@ class MatchaInfiniteScrollDataComponent {
522
522
  * Detecta mudanças no resetKey e, se for o caso, reseta a lista e a página atual.
523
523
  */
524
524
  ngOnChanges(changes) {
525
- console.log('changes', changes);
526
525
  if (changes['resetKey'] && !changes['resetKey'].firstChange) {
527
- console.log('entrou no if changes', changes);
528
526
  this.reset();
529
527
  }
528
+ if (changes['searchTerm'] && !changes['searchTerm'].firstChange) {
529
+ // Reset e dispara imediatamente a carga para o autocomplete
530
+ this.reset();
531
+ this.loadNextPage();
532
+ }
530
533
  }
531
534
  /**
532
535
  * Inicializa ou reinicializa a lista agregada e o contador de página.
@@ -568,7 +571,7 @@ class MatchaInfiniteScrollDataComponent {
568
571
  this.subscription.unsubscribe();
569
572
  }
570
573
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaInfiniteScrollDataComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
571
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: MatchaInfiniteScrollDataComponent, isStandalone: false, selector: "matcha-infinite-scroll-data", inputs: { loadData: "loadData", initialList: "initialList", threshold: "threshold", resetKey: "resetKey" }, outputs: { aggregatedData: "aggregatedData" }, usesOnChanges: true, ngImport: i0, template: "", styles: ["", ":host{height:1px;opacity:0}\n"] }); }
574
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: MatchaInfiniteScrollDataComponent, isStandalone: false, selector: "matcha-infinite-scroll-data", inputs: { loadData: "loadData", initialList: "initialList", threshold: "threshold", resetKey: "resetKey", searchTerm: "searchTerm" }, outputs: { aggregatedData: "aggregatedData" }, usesOnChanges: true, ngImport: i0, template: "", styles: ["", ":host{height:1px;opacity:0}\n"] }); }
572
575
  }
573
576
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaInfiniteScrollDataComponent, decorators: [{
574
577
  type: Component,
@@ -581,6 +584,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
581
584
  type: Input
582
585
  }], resetKey: [{
583
586
  type: Input
587
+ }], searchTerm: [{
588
+ type: Input
584
589
  }], aggregatedData: [{
585
590
  type: Output
586
591
  }] } });