matcha-components 19.8.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,10 +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
526
  this.reset();
528
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
+ }
529
533
  }
530
534
  /**
531
535
  * Inicializa ou reinicializa a lista agregada e o contador de página.
@@ -567,7 +571,7 @@ class MatchaInfiniteScrollDataComponent {
567
571
  this.subscription.unsubscribe();
568
572
  }
569
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 }); }
570
- 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"] }); }
571
575
  }
572
576
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: MatchaInfiniteScrollDataComponent, decorators: [{
573
577
  type: Component,
@@ -580,6 +584,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
580
584
  type: Input
581
585
  }], resetKey: [{
582
586
  type: Input
587
+ }], searchTerm: [{
588
+ type: Input
583
589
  }], aggregatedData: [{
584
590
  type: Output
585
591
  }] } });