@ts-core/angular 13.0.44 → 13.0.45

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.
@@ -3189,7 +3189,7 @@ class LanguageHasDirective extends Destroyable {
3189
3189
  this.template = template;
3190
3190
  this.container = container;
3191
3191
  this.language = language;
3192
- this._isOnlyIfNotEmpty = false;
3192
+ this._isOnlyIfNotEmpty = true;
3193
3193
  language.completed.pipe(takeUntil(this.destroyed)).subscribe(() => this.check());
3194
3194
  }
3195
3195
  // --------------------------------------------------------------------------
@@ -3232,6 +3232,7 @@ class LanguageHasDirective extends Destroyable {
3232
3232
  return;
3233
3233
  }
3234
3234
  super.destroy();
3235
+ this.view = null;
3235
3236
  this.language = null;
3236
3237
  this._viTranslateHas = null;
3237
3238
  }
@@ -4423,6 +4424,7 @@ class WindowService extends Destroyable {
4423
4424
  // dialog._getOverlayState = config.isModal ? dialog.getOverlayStateModal : dialog.getOverlayStateNonModal;
4424
4425
  let reference = this.dialog.open(component, config);
4425
4426
  window = this.factory.create({ config, reference, overlay: reference._overlayRef });
4427
+ this.observer.next(new ObservableData(WindowServiceEvent.OPEN_STARTED, window));
4426
4428
  let subscription = window.events.subscribe(event => {
4427
4429
  switch (event) {
4428
4430
  case WindowEvent.OPENED:
@@ -4431,6 +4433,7 @@ class WindowService extends Destroyable {
4431
4433
  if (this.isNeedCheckPositionAfterOpen) {
4432
4434
  this.checkPosition(window);
4433
4435
  }
4436
+ this.observer.next(new ObservableData(WindowServiceEvent.OPEN_FINISHED, window));
4434
4437
  break;
4435
4438
  case WindowEvent.CLOSED:
4436
4439
  subscription.unsubscribe();
@@ -4586,7 +4589,9 @@ class PropertiesManager extends Destroyable {
4586
4589
  }
4587
4590
  var WindowServiceEvent;
4588
4591
  (function (WindowServiceEvent) {
4592
+ WindowServiceEvent["OPEN_STARTED"] = "OPEN_STARTED";
4589
4593
  WindowServiceEvent["OPENED"] = "OPENED";
4594
+ WindowServiceEvent["OPEN_FINISHED"] = "OPEN_FINISHED";
4590
4595
  WindowServiceEvent["CLOSED"] = "CLOSED";
4591
4596
  WindowServiceEvent["SETTED_ON_TOP"] = "SETTED_ON_TOP";
4592
4597
  })(WindowServiceEvent || (WindowServiceEvent = {}));