@ts-core/angular 13.0.54 → 13.0.57

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.
@@ -1886,7 +1886,10 @@ class ResizeManager {
1886
1886
  destroy() {
1887
1887
  if (!_.isNil(this.sensor)) {
1888
1888
  this.sensor.detach(this.handler);
1889
- this.sensor.reset();
1889
+ try {
1890
+ this.sensor.reset();
1891
+ }
1892
+ catch (error) { }
1890
1893
  this.sensor = null;
1891
1894
  }
1892
1895
  if (!_.isNil(this.subject)) {
@@ -4478,6 +4481,7 @@ class WindowDragable extends WindowResizeable {
4478
4481
  this.dragMoveHandlerProxy = this.dragMoveHandler.bind(this);
4479
4482
  this.dragStartHandlerProxy = this.dragStartHandler.bind(this);
4480
4483
  let param = {};
4484
+ // let param = {} as any;
4481
4485
  this.interactable.draggable(param);
4482
4486
  this.interactable.on('dragmove', this.dragMoveHandlerProxy);
4483
4487
  this.interactable.on('dragstart', this.dragStartHandlerProxy);
@@ -4591,8 +4595,9 @@ class WindowService extends Destroyable {
4591
4595
  // Constructor
4592
4596
  //
4593
4597
  // --------------------------------------------------------------------------
4594
- constructor(dialog, language, cookies) {
4598
+ constructor(dialog, language, cookies, sheet) {
4595
4599
  super();
4600
+ this.sheet = sheet;
4596
4601
  this.isNeedCheckPositionAfterOpen = true;
4597
4602
  this.gapX = 25;
4598
4603
  this.gapY = 25;
@@ -4626,8 +4631,9 @@ class WindowService extends Destroyable {
4626
4631
  updateTop() {
4627
4632
  let zIndex = 0;
4628
4633
  let topWindow = null;
4629
- for (let window of this.windowsArray) {
4630
- if (_.isNil(window.container)) {
4634
+ let windows = [this.sheet.window, ...this.windowsArray];
4635
+ for (let window of windows) {
4636
+ if (_.isNil(window) || _.isNil(window.container)) {
4631
4637
  continue;
4632
4638
  }
4633
4639
  let index = parseInt(ViewUtil.getStyle(window.container.parentElement, 'zIndex'), 10);
@@ -4858,12 +4864,12 @@ class WindowService extends Destroyable {
4858
4864
  return this._windows;
4859
4865
  }
4860
4866
  }
4861
- WindowService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowService, deps: [{ token: i1.MatDialog }, { token: i1$1.LanguageService }, { token: CookieService }], target: i0.ɵɵFactoryTarget.Injectable });
4867
+ WindowService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowService, deps: [{ token: i1.MatDialog }, { token: i1$1.LanguageService }, { token: CookieService }, { token: BottomSheetService }], target: i0.ɵɵFactoryTarget.Injectable });
4862
4868
  WindowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowService, providedIn: 'root' });
4863
4869
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowService, decorators: [{
4864
4870
  type: Injectable,
4865
4871
  args: [{ providedIn: 'root' }]
4866
- }], ctorParameters: function () { return [{ type: i1.MatDialog }, { type: i1$1.LanguageService }, { type: CookieService }]; } });
4872
+ }], ctorParameters: function () { return [{ type: i1.MatDialog }, { type: i1$1.LanguageService }, { type: CookieService }, { type: BottomSheetService }]; } });
4867
4873
  class PropertiesManager extends Destroyable {
4868
4874
  // --------------------------------------------------------------------------
4869
4875
  //
@@ -5258,11 +5264,13 @@ class BottomSheetService extends Destroyable {
5258
5264
  let subscription = window.events.subscribe(event => {
5259
5265
  switch (event) {
5260
5266
  case WindowServiceEvent.OPENED:
5267
+ this._window = window;
5261
5268
  this.observer.next(new ObservableData(WindowServiceEvent.OPENED, window));
5262
5269
  this.observer.next(new ObservableData(WindowServiceEvent.OPEN_FINISHED, window));
5263
5270
  break;
5264
5271
  case WindowServiceEvent.CLOSED:
5265
5272
  subscription.unsubscribe();
5273
+ this._window = null;
5266
5274
  this.observer.next(new ObservableData(WindowServiceEvent.CLOSED, window));
5267
5275
  break;
5268
5276
  }
@@ -5280,6 +5288,7 @@ class BottomSheetService extends Destroyable {
5280
5288
  this.observer.complete();
5281
5289
  this.observer = null;
5282
5290
  }
5291
+ this._window = null;
5283
5292
  this.factory = null;
5284
5293
  this.questionComponent = null;
5285
5294
  this.dialog = null;
@@ -5307,6 +5316,9 @@ class BottomSheetService extends Destroyable {
5307
5316
  // Public Properties
5308
5317
  //
5309
5318
  // --------------------------------------------------------------------------
5319
+ get window() {
5320
+ return this._window;
5321
+ }
5310
5322
  get events() {
5311
5323
  return this.observer.asObservable();
5312
5324
  }