matcha-components 20.135.0 → 20.136.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, Output, HostBinding, Input, Component, ContentChildren, ElementRef, Renderer2, Inject, ViewEncapsulation, ChangeDetectionStrategy, HostListener, ContentChild, Directive, forwardRef, ViewChild, InjectionToken, inject, Injectable, TemplateRef, Optional, NgModule, createComponent, PLATFORM_ID, Pipe } from '@angular/core';
|
|
3
3
|
import { animation, style, animate, trigger, transition, useAnimation, state, query, stagger, animateChild, sequence, group } from '@angular/animations';
|
|
4
|
-
import { Subscription, Subject, fromEvent,
|
|
4
|
+
import { Subscription, Subject, fromEvent, BehaviorSubject, of } from 'rxjs';
|
|
5
5
|
import { debounceTime, takeUntil, filter, startWith, map, distinctUntilChanged } from 'rxjs/operators';
|
|
6
6
|
import * as i1 from '@angular/common';
|
|
7
7
|
import { DOCUMENT, CommonModule, isPlatformBrowser } from '@angular/common';
|
|
@@ -1914,7 +1914,7 @@ class MatchaMasonryComponent {
|
|
|
1914
1914
|
}, 50);
|
|
1915
1915
|
// Observar mudanças de tamanho da janela
|
|
1916
1916
|
fromEvent(window, 'resize')
|
|
1917
|
-
.pipe(debounceTime
|
|
1917
|
+
.pipe(debounceTime(200), takeUntil(this.destroy$))
|
|
1918
1918
|
.subscribe(() => this.distributeItems());
|
|
1919
1919
|
}
|
|
1920
1920
|
ngOnDestroy() {
|