@ts-core/angular 13.0.60 → 13.0.63

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.
@@ -1862,7 +1862,16 @@ class ResizeManager {
1862
1862
  // Event Handlers
1863
1863
  //
1864
1864
  // --------------------------------------------------------------------------
1865
- this.handler = (item) => this.subject.next(item);
1865
+ this.handler = (item) => {
1866
+ if (_.isNil(item) || _.isNaN(item.width) || _.isNaN(item.height) || item.width <= 0 || item.height <= 0) {
1867
+ return;
1868
+ }
1869
+ if (!_.isNil(this.size) && item.width === this.size.width && item.height === this.size.height) {
1870
+ return;
1871
+ }
1872
+ this.size = item;
1873
+ this.subject.next(item);
1874
+ };
1866
1875
  this.element = ViewUtil.parseElement(element);
1867
1876
  this.subject = new BehaviorSubject({ width: ViewUtil.getWidth(this.element), height: ViewUtil.getHeight(this.element) });
1868
1877
  this.sensor = new ResizeSensor(this.element, this.handler);
@@ -4142,8 +4151,7 @@ class WindowImpl extends WindowBase {
4142
4151
  return this.properties.reference;
4143
4152
  }
4144
4153
  isNeedClickStopPropagation(event) {
4145
- // return !this.isWasOnTop;
4146
- if (!this.isWasOnTop && !this.isOnTop) {
4154
+ if (!this.isWasOnTop) {
4147
4155
  return true;
4148
4156
  }
4149
4157
  let element = _.find(this.elements, item => item.location.nativeElement === event.target);
@@ -4674,14 +4682,14 @@ class WindowService extends Destroyable {
4674
4682
  let currentIndex = this.topZIndex - 2;
4675
4683
  let windows = [...this.windowsArray, this.sheet.window];
4676
4684
  for (let window of windows) {
4677
- if (_.isNil(window.container)) {
4685
+ if (_.isNil(window) || _.isNil(window.container)) {
4678
4686
  continue;
4679
4687
  }
4680
4688
  window.isOnTop = window === topWindow;
4681
4689
  let zIndex = window.isOnTop ? this.topZIndex : currentIndex--;
4682
4690
  WindowService.setZIndex(window, zIndex);
4683
4691
  }
4684
- windows.sort(this.sortFunction);
4692
+ this.windowsArray.sort(this.sortFunction);
4685
4693
  this.observer.next(new ObservableData(WindowServiceEvent.SETTED_ON_TOP, topWindow));
4686
4694
  }
4687
4695
  checkPosition(item) {