@ts-core/angular 13.0.55 → 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.
- package/bottomSheet/BottomSheetService.d.ts +2 -0
- package/esm2020/bottomSheet/BottomSheetService.mjs +7 -1
- package/esm2020/window/WindowService.mjs +9 -6
- package/esm2020/window/component/WindowDragable.mjs +3 -1
- package/esm2020/window/component/WindowResizeable.mjs +3 -1
- package/fesm2015/ts-core-angular.mjs +17 -5
- package/fesm2015/ts-core-angular.mjs.map +1 -1
- package/fesm2020/ts-core-angular.mjs +17 -5
- package/fesm2020/ts-core-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/window/WindowService.d.ts +3 -1
|
@@ -4370,6 +4370,7 @@ WindowImpl.BLINK_DELAY = 500;
|
|
|
4370
4370
|
WindowImpl.SHAKE_DELAY = 500;
|
|
4371
4371
|
WindowImpl.RESIZE_DELAY = 200;
|
|
4372
4372
|
|
|
4373
|
+
// import { ResizableOptions } from '@interactjs/types';
|
|
4373
4374
|
class WindowResizeable extends WindowImpl {
|
|
4374
4375
|
// --------------------------------------------------------------------------
|
|
4375
4376
|
//
|
|
@@ -4390,6 +4391,7 @@ class WindowResizeable extends WindowImpl {
|
|
|
4390
4391
|
edges.left = true;
|
|
4391
4392
|
edges.right = true;
|
|
4392
4393
|
edges.bottom = true;
|
|
4394
|
+
// let param = {} as ResizableOptions;
|
|
4393
4395
|
let param = {};
|
|
4394
4396
|
param.edges = edges;
|
|
4395
4397
|
this.interactable.resizable(param);
|
|
@@ -4454,6 +4456,7 @@ class WindowResizeable extends WindowImpl {
|
|
|
4454
4456
|
}
|
|
4455
4457
|
}
|
|
4456
4458
|
|
|
4459
|
+
// import { DraggableOptions } from '@interactjs/types';
|
|
4457
4460
|
class WindowDragable extends WindowResizeable {
|
|
4458
4461
|
constructor() {
|
|
4459
4462
|
// --------------------------------------------------------------------------
|
|
@@ -4480,6 +4483,7 @@ class WindowDragable extends WindowResizeable {
|
|
|
4480
4483
|
}
|
|
4481
4484
|
this.dragMoveHandlerProxy = this.dragMoveHandler.bind(this);
|
|
4482
4485
|
this.dragStartHandlerProxy = this.dragStartHandler.bind(this);
|
|
4486
|
+
// let param = {} as DraggableOptions;
|
|
4483
4487
|
let param = {};
|
|
4484
4488
|
this.interactable.draggable(param);
|
|
4485
4489
|
this.interactable.on('dragmove', this.dragMoveHandlerProxy);
|
|
@@ -4594,8 +4598,9 @@ class WindowService extends Destroyable {
|
|
|
4594
4598
|
// Constructor
|
|
4595
4599
|
//
|
|
4596
4600
|
// --------------------------------------------------------------------------
|
|
4597
|
-
constructor(dialog, language, cookies) {
|
|
4601
|
+
constructor(dialog, language, cookies, sheet) {
|
|
4598
4602
|
super();
|
|
4603
|
+
this.sheet = sheet;
|
|
4599
4604
|
this.isNeedCheckPositionAfterOpen = true;
|
|
4600
4605
|
this.gapX = 25;
|
|
4601
4606
|
this.gapY = 25;
|
|
@@ -4629,8 +4634,9 @@ class WindowService extends Destroyable {
|
|
|
4629
4634
|
updateTop() {
|
|
4630
4635
|
let zIndex = 0;
|
|
4631
4636
|
let topWindow = null;
|
|
4632
|
-
|
|
4633
|
-
|
|
4637
|
+
let windows = [this.sheet.window, ...this.windowsArray];
|
|
4638
|
+
for (let window of windows) {
|
|
4639
|
+
if (_.isNil(window) || _.isNil(window.container)) {
|
|
4634
4640
|
continue;
|
|
4635
4641
|
}
|
|
4636
4642
|
let index = parseInt(ViewUtil.getStyle(window.container.parentElement, 'zIndex'), 10);
|
|
@@ -4861,12 +4867,12 @@ class WindowService extends Destroyable {
|
|
|
4861
4867
|
return this._windows;
|
|
4862
4868
|
}
|
|
4863
4869
|
}
|
|
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 });
|
|
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 });
|
|
4865
4871
|
WindowService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowService, providedIn: 'root' });
|
|
4866
4872
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WindowService, decorators: [{
|
|
4867
4873
|
type: Injectable,
|
|
4868
4874
|
args: [{ providedIn: 'root' }]
|
|
4869
|
-
}], 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 }]; } });
|
|
4870
4876
|
class PropertiesManager extends Destroyable {
|
|
4871
4877
|
// --------------------------------------------------------------------------
|
|
4872
4878
|
//
|
|
@@ -5261,11 +5267,13 @@ class BottomSheetService extends Destroyable {
|
|
|
5261
5267
|
let subscription = window.events.subscribe(event => {
|
|
5262
5268
|
switch (event) {
|
|
5263
5269
|
case WindowServiceEvent.OPENED:
|
|
5270
|
+
this._window = window;
|
|
5264
5271
|
this.observer.next(new ObservableData(WindowServiceEvent.OPENED, window));
|
|
5265
5272
|
this.observer.next(new ObservableData(WindowServiceEvent.OPEN_FINISHED, window));
|
|
5266
5273
|
break;
|
|
5267
5274
|
case WindowServiceEvent.CLOSED:
|
|
5268
5275
|
subscription.unsubscribe();
|
|
5276
|
+
this._window = null;
|
|
5269
5277
|
this.observer.next(new ObservableData(WindowServiceEvent.CLOSED, window));
|
|
5270
5278
|
break;
|
|
5271
5279
|
}
|
|
@@ -5283,6 +5291,7 @@ class BottomSheetService extends Destroyable {
|
|
|
5283
5291
|
this.observer.complete();
|
|
5284
5292
|
this.observer = null;
|
|
5285
5293
|
}
|
|
5294
|
+
this._window = null;
|
|
5286
5295
|
this.factory = null;
|
|
5287
5296
|
this.questionComponent = null;
|
|
5288
5297
|
this.dialog = null;
|
|
@@ -5310,6 +5319,9 @@ class BottomSheetService extends Destroyable {
|
|
|
5310
5319
|
// Public Properties
|
|
5311
5320
|
//
|
|
5312
5321
|
// --------------------------------------------------------------------------
|
|
5322
|
+
get window() {
|
|
5323
|
+
return this._window;
|
|
5324
|
+
}
|
|
5313
5325
|
get events() {
|
|
5314
5326
|
return this.observer.asObservable();
|
|
5315
5327
|
}
|