@ts-core/angular 13.0.55 → 13.0.58

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.
@@ -4481,6 +4481,7 @@ class WindowDragable extends WindowResizeable {
4481
4481
  this.dragMoveHandlerProxy = this.dragMoveHandler.bind(this);
4482
4482
  this.dragStartHandlerProxy = this.dragStartHandler.bind(this);
4483
4483
  let param = {};
4484
+ // let param = {} as any;
4484
4485
  this.interactable.draggable(param);
4485
4486
  this.interactable.on('dragmove', this.dragMoveHandlerProxy);
4486
4487
  this.interactable.on('dragstart', this.dragStartHandlerProxy);
@@ -4594,8 +4595,9 @@ class WindowService extends Destroyable {
4594
4595
  // Constructor
4595
4596
  //
4596
4597
  // --------------------------------------------------------------------------
4597
- constructor(dialog, language, cookies) {
4598
+ constructor(dialog, language, cookies, sheet) {
4598
4599
  super();
4600
+ this.sheet = sheet;
4599
4601
  this.isNeedCheckPositionAfterOpen = true;
4600
4602
  this.gapX = 25;
4601
4603
  this.gapY = 25;
@@ -4629,8 +4631,9 @@ class WindowService extends Destroyable {
4629
4631
  updateTop() {
4630
4632
  let zIndex = 0;
4631
4633
  let topWindow = null;
4632
- for (let window of this.windowsArray) {
4633
- 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)) {
4634
4637
  continue;
4635
4638
  }
4636
4639
  let index = parseInt(ViewUtil.getStyle(window.container.parentElement, 'zIndex'), 10);
@@ -4861,12 +4864,12 @@ class WindowService extends Destroyable {
4861
4864
  return this._windows;
4862
4865
  }
4863
4866
  }
4864
- 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 });
4865
4868
  WindowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowService, providedIn: 'root' });
4866
4869
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowService, decorators: [{
4867
4870
  type: Injectable,
4868
4871
  args: [{ providedIn: 'root' }]
4869
- }], 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 }]; } });
4870
4873
  class PropertiesManager extends Destroyable {
4871
4874
  // --------------------------------------------------------------------------
4872
4875
  //
@@ -5261,11 +5264,13 @@ class BottomSheetService extends Destroyable {
5261
5264
  let subscription = window.events.subscribe(event => {
5262
5265
  switch (event) {
5263
5266
  case WindowServiceEvent.OPENED:
5267
+ this._window = window;
5264
5268
  this.observer.next(new ObservableData(WindowServiceEvent.OPENED, window));
5265
5269
  this.observer.next(new ObservableData(WindowServiceEvent.OPEN_FINISHED, window));
5266
5270
  break;
5267
5271
  case WindowServiceEvent.CLOSED:
5268
5272
  subscription.unsubscribe();
5273
+ this._window = null;
5269
5274
  this.observer.next(new ObservableData(WindowServiceEvent.CLOSED, window));
5270
5275
  break;
5271
5276
  }
@@ -5283,6 +5288,7 @@ class BottomSheetService extends Destroyable {
5283
5288
  this.observer.complete();
5284
5289
  this.observer = null;
5285
5290
  }
5291
+ this._window = null;
5286
5292
  this.factory = null;
5287
5293
  this.questionComponent = null;
5288
5294
  this.dialog = null;
@@ -5310,6 +5316,9 @@ class BottomSheetService extends Destroyable {
5310
5316
  // Public Properties
5311
5317
  //
5312
5318
  // --------------------------------------------------------------------------
5319
+ get window() {
5320
+ return this._window;
5321
+ }
5313
5322
  get events() {
5314
5323
  return this.observer.asObservable();
5315
5324
  }