@ts-core/angular 13.0.53 → 13.0.56

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)) {
@@ -4367,6 +4370,7 @@ WindowImpl.BLINK_DELAY = 500;
4367
4370
  WindowImpl.SHAKE_DELAY = 500;
4368
4371
  WindowImpl.RESIZE_DELAY = 200;
4369
4372
 
4373
+ // import { ResizableOptions } from '@interactjs/types';
4370
4374
  class WindowResizeable extends WindowImpl {
4371
4375
  // --------------------------------------------------------------------------
4372
4376
  //
@@ -4387,6 +4391,7 @@ class WindowResizeable extends WindowImpl {
4387
4391
  edges.left = true;
4388
4392
  edges.right = true;
4389
4393
  edges.bottom = true;
4394
+ // let param = {} as ResizableOptions;
4390
4395
  let param = {};
4391
4396
  param.edges = edges;
4392
4397
  this.interactable.resizable(param);
@@ -4451,6 +4456,7 @@ class WindowResizeable extends WindowImpl {
4451
4456
  }
4452
4457
  }
4453
4458
 
4459
+ // import { DraggableOptions } from '@interactjs/types';
4454
4460
  class WindowDragable extends WindowResizeable {
4455
4461
  constructor() {
4456
4462
  // --------------------------------------------------------------------------
@@ -4477,6 +4483,7 @@ class WindowDragable extends WindowResizeable {
4477
4483
  }
4478
4484
  this.dragMoveHandlerProxy = this.dragMoveHandler.bind(this);
4479
4485
  this.dragStartHandlerProxy = this.dragStartHandler.bind(this);
4486
+ // let param = {} as DraggableOptions;
4480
4487
  let param = {};
4481
4488
  this.interactable.draggable(param);
4482
4489
  this.interactable.on('dragmove', this.dragMoveHandlerProxy);
@@ -4591,8 +4598,9 @@ class WindowService extends Destroyable {
4591
4598
  // Constructor
4592
4599
  //
4593
4600
  // --------------------------------------------------------------------------
4594
- constructor(dialog, language, cookies) {
4601
+ constructor(dialog, language, cookies, sheet) {
4595
4602
  super();
4603
+ this.sheet = sheet;
4596
4604
  this.isNeedCheckPositionAfterOpen = true;
4597
4605
  this.gapX = 25;
4598
4606
  this.gapY = 25;
@@ -4626,8 +4634,9 @@ class WindowService extends Destroyable {
4626
4634
  updateTop() {
4627
4635
  let zIndex = 0;
4628
4636
  let topWindow = null;
4629
- for (let window of this.windowsArray) {
4630
- if (_.isNil(window.container)) {
4637
+ let windows = [this.sheet.window, ...this.windowsArray];
4638
+ for (let window of windows) {
4639
+ if (_.isNil(window) || _.isNil(window.container)) {
4631
4640
  continue;
4632
4641
  }
4633
4642
  let index = parseInt(ViewUtil.getStyle(window.container.parentElement, 'zIndex'), 10);
@@ -4858,12 +4867,12 @@ class WindowService extends Destroyable {
4858
4867
  return this._windows;
4859
4868
  }
4860
4869
  }
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 });
4870
+ 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
4871
  WindowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowService, providedIn: 'root' });
4863
4872
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowService, decorators: [{
4864
4873
  type: Injectable,
4865
4874
  args: [{ providedIn: 'root' }]
4866
- }], ctorParameters: function () { return [{ type: i1.MatDialog }, { type: i1$1.LanguageService }, { type: CookieService }]; } });
4875
+ }], ctorParameters: function () { return [{ type: i1.MatDialog }, { type: i1$1.LanguageService }, { type: CookieService }, { type: BottomSheetService }]; } });
4867
4876
  class PropertiesManager extends Destroyable {
4868
4877
  // --------------------------------------------------------------------------
4869
4878
  //
@@ -5258,11 +5267,13 @@ class BottomSheetService extends Destroyable {
5258
5267
  let subscription = window.events.subscribe(event => {
5259
5268
  switch (event) {
5260
5269
  case WindowServiceEvent.OPENED:
5270
+ this._window = window;
5261
5271
  this.observer.next(new ObservableData(WindowServiceEvent.OPENED, window));
5262
5272
  this.observer.next(new ObservableData(WindowServiceEvent.OPEN_FINISHED, window));
5263
5273
  break;
5264
5274
  case WindowServiceEvent.CLOSED:
5265
5275
  subscription.unsubscribe();
5276
+ this._window = null;
5266
5277
  this.observer.next(new ObservableData(WindowServiceEvent.CLOSED, window));
5267
5278
  break;
5268
5279
  }
@@ -5280,6 +5291,7 @@ class BottomSheetService extends Destroyable {
5280
5291
  this.observer.complete();
5281
5292
  this.observer = null;
5282
5293
  }
5294
+ this._window = null;
5283
5295
  this.factory = null;
5284
5296
  this.questionComponent = null;
5285
5297
  this.dialog = null;
@@ -5307,6 +5319,9 @@ class BottomSheetService extends Destroyable {
5307
5319
  // Public Properties
5308
5320
  //
5309
5321
  // --------------------------------------------------------------------------
5322
+ get window() {
5323
+ return this._window;
5324
+ }
5310
5325
  get events() {
5311
5326
  return this.observer.asObservable();
5312
5327
  }