@rxap/window-system 16.0.0-dev.2 → 16.0.0-dev.4
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/CHANGELOG.md +270 -0
- package/README.md +7 -22
- package/esm2022/index.mjs +3 -1
- package/esm2022/lib/default-window/default-window.component.mjs +6 -7
- package/esm2022/lib/tokens.mjs +1 -1
- package/esm2022/lib/utilities.mjs +5 -2
- package/esm2022/lib/window-action-bar/window-action-bar.component.mjs +29 -0
- package/esm2022/lib/window-config.mjs +2 -2
- package/esm2022/lib/window-container/window-container.component.mjs +16 -17
- package/esm2022/lib/window-content/window-content.component.mjs +12 -13
- package/esm2022/lib/window-context.mjs +1 -1
- package/esm2022/lib/window-footer.directive.mjs +12 -13
- package/esm2022/lib/window-ref.mjs +19 -16
- package/esm2022/lib/window-resizer/window-resizer.component.mjs +16 -11
- package/esm2022/lib/window-system.module.mjs +51 -0
- package/esm2022/lib/window-task-bar/window-task/window-task.component.mjs +18 -9
- package/esm2022/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.mjs +16 -8
- package/esm2022/lib/window-task-bar/window-task-bar.component.mjs +6 -7
- package/esm2022/lib/window-task-bar/window-task-bar.module.mjs +20 -0
- package/esm2022/lib/window-title.directive.mjs +13 -14
- package/esm2022/lib/window-tool-bar/window-tool-bar.component.mjs +17 -9
- package/esm2022/lib/window.service.mjs +19 -20
- package/esm2022/rxap-window-system.mjs +1 -1
- package/fesm2022/rxap-window-system.mjs +204 -87
- package/fesm2022/rxap-window-system.mjs.map +1 -1
- package/index.d.ts +2 -0
- package/lib/tokens.d.ts +1 -1
- package/lib/window-action-bar/window-action-bar.component.d.ts +11 -0
- package/lib/window-config.d.ts +2 -2
- package/lib/window-container/window-container.component.d.ts +2 -2
- package/lib/window-content/window-content.component.d.ts +2 -2
- package/lib/window-context.d.ts +1 -1
- package/lib/window-footer.directive.d.ts +2 -2
- package/lib/window-ref.d.ts +8 -8
- package/lib/window-resizer/window-resizer.component.d.ts +1 -1
- package/lib/window-system.module.d.ts +13 -0
- package/lib/window-task-bar/window-task-bar.component.d.ts +1 -1
- package/lib/window-task-bar/window-task-bar.module.d.ts +9 -0
- package/lib/window-title.directive.d.ts +2 -2
- package/lib/window.service.d.ts +4 -4
- package/package.json +56 -53
- package/src/lib/window-container/_window-container.component.theme.scss +22 -0
- package/LICENSE +0 -24
- package/collection.json +0 -10
- package/migration.json +0 -4
- package/src/schematics/ng-add/index.d.ts +0 -2
- package/src/schematics/ng-add/index.js +0 -8
- package/src/schematics/ng-add/index.js.map +0 -1
- package/src/schematics/ng-add/schema.json +0 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, ComponentRef, InjectFlags, isDevMode, Component, ChangeDetectionStrategy, Inject, ViewChild, EventEmitter, ElementRef, Input, Output, ContentChild, HostBinding, Injector, ViewContainerRef, ComponentFactoryResolver, Injectable, Optional, ChangeDetectorRef, TemplateRef, Directive } from '@angular/core';
|
|
2
|
+
import { InjectionToken, ComponentRef, InjectFlags, isDevMode, Component, ChangeDetectionStrategy, Inject, ViewChild, EventEmitter, ElementRef, Input, Output, ContentChild, HostBinding, Injector, ViewContainerRef, ComponentFactoryResolver, Injectable, Optional, ChangeDetectorRef, NgModule, TemplateRef, Directive } from '@angular/core';
|
|
3
3
|
import * as i1$3 from '@angular/cdk/overlay';
|
|
4
4
|
import { OverlayConfig, Overlay } from '@angular/cdk/overlay';
|
|
5
5
|
import * as i2 from '@angular/cdk/portal';
|
|
@@ -8,10 +8,10 @@ import { Subject, BehaviorSubject, ReplaySubject, isObservable, TimeoutError, th
|
|
|
8
8
|
import { startWith, take, tap, filter, delay, timeout, catchError, switchMap, takeUntil, map, finalize } from 'rxjs/operators';
|
|
9
9
|
import * as i1 from '@rxap/services';
|
|
10
10
|
import { LoadingIndicatorService } from '@rxap/services';
|
|
11
|
-
import { isDefined } from '@rxap/
|
|
11
|
+
import { isDefined } from '@rxap/rxjs';
|
|
12
12
|
import { CdkDrag, CdkDragHandle } from '@angular/cdk/drag-drop';
|
|
13
13
|
import { __decorate, __metadata } from 'tslib';
|
|
14
|
-
import { Required } from '@rxap/utilities';
|
|
14
|
+
import { Required, GenerateRandomString } from '@rxap/utilities';
|
|
15
15
|
import { AsyncPipe, NgIf, NgStyle, NgClass, NgFor } from '@angular/common';
|
|
16
16
|
import * as i2$1 from '@angular/flex-layout/extended';
|
|
17
17
|
import { ExtendedModule } from '@angular/flex-layout/extended';
|
|
@@ -26,7 +26,6 @@ import { MatButtonModule } from '@angular/material/button';
|
|
|
26
26
|
import { IconDirective } from '@rxap/material-directives/icon';
|
|
27
27
|
import * as i1$2 from '@angular/flex-layout/flex';
|
|
28
28
|
import { FlexModule } from '@angular/flex-layout/flex';
|
|
29
|
-
import { v4 } from 'uuid';
|
|
30
29
|
import { StopPropagationDirective } from '@rxap/directives';
|
|
31
30
|
import * as i3 from '@angular/material/badge';
|
|
32
31
|
import { MatBadgeModule } from '@angular/material/badge';
|
|
@@ -39,7 +38,7 @@ const DEFAULT_WINDOW_CONFIG = {
|
|
|
39
38
|
minWidth: '384px',
|
|
40
39
|
minHeight: '192px',
|
|
41
40
|
maxWidth: '100vw',
|
|
42
|
-
maxHeight: '100vw'
|
|
41
|
+
maxHeight: '100vw',
|
|
43
42
|
};
|
|
44
43
|
|
|
45
44
|
function GetWindowStartPos() {
|
|
@@ -63,7 +62,10 @@ function GetWindowStartPos() {
|
|
|
63
62
|
}
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
|
-
return {
|
|
65
|
+
return {
|
|
66
|
+
top,
|
|
67
|
+
left,
|
|
68
|
+
};
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
const RXAP_WINDOW_CONTEXT = new InjectionToken('rxap/core/window/WINDOW_CONTEXT');
|
|
@@ -74,9 +76,6 @@ const RXAP_WINDOW_SETTINGS = new InjectionToken('rxap/window-system/window-setti
|
|
|
74
76
|
const RXAP_WINDOW_DEFAULT_SETTINGS = new InjectionToken('rxap/window-system/default-window-settings');
|
|
75
77
|
|
|
76
78
|
class WindowRef extends Subject {
|
|
77
|
-
get isMinimized() {
|
|
78
|
-
return this.overlayRef.hostElement.style.display === 'none';
|
|
79
|
-
}
|
|
80
79
|
constructor(overlayRef, overlay, settings) {
|
|
81
80
|
super();
|
|
82
81
|
this.overlayRef = overlayRef;
|
|
@@ -89,11 +88,6 @@ class WindowRef extends Subject {
|
|
|
89
88
|
*/
|
|
90
89
|
this.closed$ = new Subject();
|
|
91
90
|
this.attachedRef$ = new ReplaySubject(1);
|
|
92
|
-
/**
|
|
93
|
-
* stores the window size before fullScreen
|
|
94
|
-
* @internal
|
|
95
|
-
*/
|
|
96
|
-
this.oldSizes = null;
|
|
97
91
|
/**
|
|
98
92
|
* @internal
|
|
99
93
|
*/
|
|
@@ -103,6 +97,14 @@ class WindowRef extends Subject {
|
|
|
103
97
|
*/
|
|
104
98
|
this.titlePortal$ = new ReplaySubject(1);
|
|
105
99
|
this.settings$ = new ReplaySubject(1);
|
|
100
|
+
/**
|
|
101
|
+
* stores the window size before fullScreen
|
|
102
|
+
* @internal
|
|
103
|
+
*/
|
|
104
|
+
this.oldSizes = null;
|
|
105
|
+
}
|
|
106
|
+
get isMinimized() {
|
|
107
|
+
return this.overlayRef.hostElement.style.display === 'none';
|
|
106
108
|
}
|
|
107
109
|
/**
|
|
108
110
|
* @deprecated removed. use the complete method
|
|
@@ -135,20 +137,20 @@ class WindowRef extends Subject {
|
|
|
135
137
|
minHeight: config.minHeight,
|
|
136
138
|
minWidth: config.minWidth,
|
|
137
139
|
maxHeight: config.maxHeight,
|
|
138
|
-
maxWidth: config.maxWidth
|
|
140
|
+
maxWidth: config.maxWidth,
|
|
139
141
|
};
|
|
140
142
|
}
|
|
141
143
|
setWidth(width) {
|
|
142
144
|
this.overlayRef.updateSize({
|
|
143
145
|
...this.getSizeConfig(),
|
|
144
|
-
width
|
|
146
|
+
width,
|
|
145
147
|
});
|
|
146
148
|
this.width$.next(width);
|
|
147
149
|
}
|
|
148
150
|
setHeight(height) {
|
|
149
151
|
this.overlayRef.updateSize({
|
|
150
152
|
...this.getSizeConfig(),
|
|
151
|
-
height
|
|
153
|
+
height,
|
|
152
154
|
});
|
|
153
155
|
this.height$.next(height);
|
|
154
156
|
}
|
|
@@ -173,14 +175,17 @@ class WindowRef extends Subject {
|
|
|
173
175
|
}
|
|
174
176
|
getPos() {
|
|
175
177
|
const pos = this.overlayRef.overlayElement.getBoundingClientRect();
|
|
176
|
-
return {
|
|
178
|
+
return {
|
|
179
|
+
x: pos.left + 'px',
|
|
180
|
+
y: pos.top + 'px',
|
|
181
|
+
};
|
|
177
182
|
}
|
|
178
183
|
fullScreen() {
|
|
179
184
|
if (this.oldSizes === null) {
|
|
180
185
|
this.oldSizes = {
|
|
181
186
|
width: this.overlayRef.overlayElement.offsetWidth + 'px',
|
|
182
187
|
height: this.overlayRef.overlayElement.offsetHeight + 'px',
|
|
183
|
-
pos: this.getPos()
|
|
188
|
+
pos: this.getPos(),
|
|
184
189
|
};
|
|
185
190
|
this.setWidth('100vw');
|
|
186
191
|
this.setHeight('100vh');
|
|
@@ -278,12 +283,12 @@ class WindowContentComponent {
|
|
|
278
283
|
return throwError(error);
|
|
279
284
|
})).subscribe();
|
|
280
285
|
}
|
|
281
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
282
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
286
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowContentComponent, deps: [{ token: RXAP_WINDOW_CONTAINER_CONTEXT }, { token: RXAP_WINDOW_REF }, { token: i0.Injector }, { token: i0.ViewContainerRef }, { token: i1.LoadingIndicatorService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
287
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowContentComponent, isStandalone: true, selector: "rxap-window-content", viewQueries: [{ propertyName: "portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true }], ngImport: i0, template: "<div class=\"content\">\n <div class=\"inner\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </div>\n</div>\n", styles: [".content{cursor:initial}.content .inner{padding:15px}\n"], dependencies: [{ kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
|
|
283
288
|
}
|
|
284
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowContentComponent, decorators: [{
|
|
285
290
|
type: Component,
|
|
286
|
-
args: [{ selector: 'rxap-window-content', changeDetection: ChangeDetectionStrategy.Default, standalone: true, imports: [PortalModule], template: "<div class=\"content\">\n <div class=\"inner\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </div>\n</div>\n", styles: [".content{cursor:initial}.content .inner{padding:
|
|
291
|
+
args: [{ selector: 'rxap-window-content', changeDetection: ChangeDetectionStrategy.Default, standalone: true, imports: [PortalModule], template: "<div class=\"content\">\n <div class=\"inner\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </div>\n</div>\n", styles: [".content{cursor:initial}.content .inner{padding:15px}\n"] }]
|
|
287
292
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
288
293
|
type: Inject,
|
|
289
294
|
args: [RXAP_WINDOW_CONTAINER_CONTEXT]
|
|
@@ -297,8 +302,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
297
302
|
|
|
298
303
|
class WindowResizerComponent {
|
|
299
304
|
constructor(context) {
|
|
305
|
+
// eslint-disable-next-line @angular-eslint/no-output-rename
|
|
300
306
|
this.width$ = new EventEmitter();
|
|
307
|
+
// eslint-disable-next-line @angular-eslint/no-output-rename
|
|
301
308
|
this.height$ = new EventEmitter();
|
|
309
|
+
// eslint-disable-next-line @angular-eslint/no-output-rename
|
|
302
310
|
this.resizing$ = new EventEmitter();
|
|
303
311
|
this._subscription = new Subscription();
|
|
304
312
|
this.windowRef = context.windowRef;
|
|
@@ -323,11 +331,14 @@ class WindowResizerComponent {
|
|
|
323
331
|
.replace('px', ''));
|
|
324
332
|
}), switchMap(() => fromEvent(window, 'mousemove').pipe(takeUntil(fromEvent(window, 'mouseup')), map((event) => ({
|
|
325
333
|
width: originalWidth + (event.pageX - originalMouseX),
|
|
326
|
-
height: originalHeight + (event.pageY - originalMouseY)
|
|
334
|
+
height: originalHeight + (event.pageY - originalMouseY),
|
|
327
335
|
})), filter(size => (Number(this.windowRef.getSizeConfig().minHeight) || 0) <=
|
|
328
336
|
size.height &&
|
|
329
337
|
(Number(this.windowRef.getSizeConfig().minWidth) || 0) <=
|
|
330
|
-
size.width), map(size => ({
|
|
338
|
+
size.width), map(size => ({
|
|
339
|
+
width: size.width + 'px',
|
|
340
|
+
height: size.height + 'px',
|
|
341
|
+
})), tap(size => {
|
|
331
342
|
this.width$.emit(size.width);
|
|
332
343
|
this.height$.emit(size.height);
|
|
333
344
|
}), tap(size => {
|
|
@@ -335,14 +346,14 @@ class WindowResizerComponent {
|
|
|
335
346
|
this.windowRef.setWidth(size.width);
|
|
336
347
|
}), finalize(() => this.resizing$.emit(false))))).subscribe());
|
|
337
348
|
}
|
|
338
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
339
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
349
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowResizerComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
350
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowResizerComponent, isStandalone: true, selector: "rxap-window-resizer", inputs: { containerRef: "containerRef" }, outputs: { width$: "width", height$: "height", resizing$: "resizing" }, viewQueries: [{ propertyName: "resizerRef", first: true, predicate: ["resizer"], descendants: true, static: true }], ngImport: i0, template: "<div #resizer class=\"resizer\">\n <mat-icon [fxShow]=\"resizing$ | async\">texture</mat-icon>\n</div>\n", styles: [":host,.resizer{position:absolute;inset:auto 0 0 auto;width:24px;height:24px;cursor:nwse-resize;z-index:100}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: ExtendedModule }, { kind: "directive", type: i2$1.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
340
351
|
}
|
|
341
352
|
__decorate([
|
|
342
353
|
Required,
|
|
343
354
|
__metadata("design:type", ElementRef)
|
|
344
355
|
], WindowResizerComponent.prototype, "containerRef", void 0);
|
|
345
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
356
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowResizerComponent, decorators: [{
|
|
346
357
|
type: Component,
|
|
347
358
|
args: [{ selector: 'rxap-window-resizer', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatIconModule, ExtendedModule, AsyncPipe], template: "<div #resizer class=\"resizer\">\n <mat-icon [fxShow]=\"resizing$ | async\">texture</mat-icon>\n</div>\n", styles: [":host,.resizer{position:absolute;inset:auto 0 0 auto;width:24px;height:24px;cursor:nwse-resize;z-index:100}\n"] }]
|
|
348
359
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -368,26 +379,35 @@ class WindowToolBarComponent {
|
|
|
368
379
|
constructor(context) {
|
|
369
380
|
this.windowRef = context.windowRef;
|
|
370
381
|
}
|
|
371
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
372
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
382
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowToolBarComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
383
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowToolBarComponent, isStandalone: true, selector: "rxap-window-tool-bar", ngImport: i0, template: "<mat-toolbar class=\"header\" fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"15px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"10px\">\n <ng-template [ngIfElse]=\"titleFromSettings\" [ngIf]=\"windowRef.titlePortal$ | async\" let-titlePortal>\n <ng-template [cdkPortalOutlet]=\"titlePortal\"></ng-template>\n </ng-template>\n <ng-template #titleFromSettings>\n <ng-template [ngIf]=\"windowRef.settings$ | async\" let-settings>\n <mat-icon *ngIf=\"settings.icon\" [rxapIcon]=\"settings.icon\" fxFlex=\"40px\"></mat-icon>\n <h3 *ngIf=\"settings.title\" fxFlex=\"nogrow\">{{settings.title}}</h3>\n </ng-template>\n </ng-template>\n </div>\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <button (click)=\"windowRef.minimize()\" *ngIf=\"windowRef.settings.minimizable !== false\" fxFlex=\"40px\"\n mat-icon-button type=\"button\">\n <mat-icon>minimize</mat-icon>\n </button>\n <button (click)=\"windowRef.fullScreen()\" fxFlex=\"40px\" mat-icon-button type=\"button\">\n <mat-icon>fullscreen</mat-icon>\n </button>\n <button (click)=\"windowRef.complete()\" fxFlex=\"40px\" mat-icon-button type=\"button\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n</mat-toolbar>\n", styles: [":host{width:100%}.header{height:64px}\n"], dependencies: [{ kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i1$1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i1$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i1$2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i1$2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i1$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
|
|
373
384
|
}
|
|
374
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
385
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowToolBarComponent, decorators: [{
|
|
375
386
|
type: Component,
|
|
376
|
-
args: [{ selector: 'rxap-window-tool-bar', changeDetection: ChangeDetectionStrategy.Default, standalone: true, imports: [
|
|
387
|
+
args: [{ selector: 'rxap-window-tool-bar', changeDetection: ChangeDetectionStrategy.Default, standalone: true, imports: [
|
|
388
|
+
MatToolbarModule,
|
|
389
|
+
FlexModule,
|
|
390
|
+
NgIf,
|
|
391
|
+
PortalModule,
|
|
392
|
+
MatIconModule,
|
|
393
|
+
IconDirective,
|
|
394
|
+
MatButtonModule,
|
|
395
|
+
AsyncPipe,
|
|
396
|
+
], template: "<mat-toolbar class=\"header\" fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"15px\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"10px\">\n <ng-template [ngIfElse]=\"titleFromSettings\" [ngIf]=\"windowRef.titlePortal$ | async\" let-titlePortal>\n <ng-template [cdkPortalOutlet]=\"titlePortal\"></ng-template>\n </ng-template>\n <ng-template #titleFromSettings>\n <ng-template [ngIf]=\"windowRef.settings$ | async\" let-settings>\n <mat-icon *ngIf=\"settings.icon\" [rxapIcon]=\"settings.icon\" fxFlex=\"40px\"></mat-icon>\n <h3 *ngIf=\"settings.title\" fxFlex=\"nogrow\">{{settings.title}}</h3>\n </ng-template>\n </ng-template>\n </div>\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <button (click)=\"windowRef.minimize()\" *ngIf=\"windowRef.settings.minimizable !== false\" fxFlex=\"40px\"\n mat-icon-button type=\"button\">\n <mat-icon>minimize</mat-icon>\n </button>\n <button (click)=\"windowRef.fullScreen()\" fxFlex=\"40px\" mat-icon-button type=\"button\">\n <mat-icon>fullscreen</mat-icon>\n </button>\n <button (click)=\"windowRef.complete()\" fxFlex=\"40px\" mat-icon-button type=\"button\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n</mat-toolbar>\n", styles: [":host{width:100%}.header{height:64px}\n"] }]
|
|
377
397
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
378
398
|
type: Inject,
|
|
379
399
|
args: [RXAP_WINDOW_CONTEXT]
|
|
380
400
|
}] }]; } });
|
|
381
401
|
|
|
382
402
|
class WindowContainerComponent {
|
|
383
|
-
get id() {
|
|
384
|
-
return this.context.id;
|
|
385
|
-
}
|
|
386
403
|
constructor(context, windowRef, windowInstance) {
|
|
387
404
|
this.context = context;
|
|
388
405
|
this.windowRef = windowRef;
|
|
389
406
|
this.windowInstance = windowInstance;
|
|
390
407
|
}
|
|
408
|
+
get id() {
|
|
409
|
+
return this.context.id;
|
|
410
|
+
}
|
|
391
411
|
ngOnInit() {
|
|
392
412
|
this.width$ = merge(this.windowContainerResizer.width$, this.windowRef.width$);
|
|
393
413
|
this.height$ = merge(this.windowContainerResizer.height$, this.windowRef.height$);
|
|
@@ -415,13 +435,13 @@ class WindowContainerComponent {
|
|
|
415
435
|
}
|
|
416
436
|
return point;
|
|
417
437
|
}
|
|
418
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
419
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
438
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowContainerComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }, { token: RXAP_WINDOW_REF }, { token: LoadingIndicatorService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
439
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowContainerComponent, isStandalone: true, selector: "rxap-window-container", host: { properties: { "attr.data-id": "this.id" }, classAttribute: "rxap-window-container" }, queries: [{ propertyName: "footerContent", first: true, predicate: ["[footer]"], descendants: true, static: true }], viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["container"], descendants: true, static: true }, { propertyName: "windowContainerResizer", first: true, predicate: WindowResizerComponent, descendants: true, static: true }], ngImport: i0, template: "<div #container\n (cdkDragEnded)=\"onDragEnded($event)\"\n [cdkDragConstrainPosition]=\"dragConstrainPosition\"\n [cdkDragDisabled]=\"windowRef.settings.draggable === false\"\n [ngStyle]=\"{\n 'width': width$ | async,\n 'height': height$ | async,\n 'minWidth': windowRef.settings.minWidth,\n 'minHeight': windowRef.settings.minHeight,\n 'maxWidth': windowRef.settings.maxWidth,\n 'maxHeight': windowRef.settings.maxHeight\n }\"\n cdkDrag\n class=\"container mat-elevation-z4\"\n fxLayout=\"column\">\n\n <div cdkDragHandle class=\"tool-bar\" fxFlex=\"nogrow\">\n <rxap-window-tool-bar></rxap-window-tool-bar>\n </div>\n\n <div class=\"content\" fxFlex=\"grow\">\n <ng-content></ng-content>\n </div>\n\n <mat-toolbar *ngIf=\"windowRef.footerPortal$ | async as footerPortal\" class=\"footer mat-elevation-z1\"\n fxFlex=\"nogrow\">\n <ng-template [cdkPortalOutlet]=\"footerPortal\"></ng-template>\n </mat-toolbar>\n\n <mat-progress-bar *ngIf=\"windowInstance.isLoading$ | async\" mode=\"indeterminate\"></mat-progress-bar>\n\n <rxap-window-resizer [containerRef]=\"containerRef\"></rxap-window-resizer>\n\n</div>\n", styles: [".container{cursor:move;position:relative;z-index:1;max-height:100vh;max-width:100vw;background-color:#fff}.container:active{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.container .tool-bar{width:100%}.container .content{overflow:auto;width:100%}.container .footer{width:100%;height:64px}\n"], dependencies: [{ kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i1$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i1$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "ngmodule", type: ExtendedModule }, { kind: "directive", type: i2$1.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: WindowToolBarComponent, selector: "rxap-window-tool-bar" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i1$1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i5$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: WindowResizerComponent, selector: "rxap-window-resizer", inputs: ["containerRef"], outputs: ["width", "height", "resizing"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
|
|
420
440
|
}
|
|
421
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowContainerComponent, decorators: [{
|
|
422
442
|
type: Component,
|
|
423
443
|
args: [{ selector: 'rxap-window-container', changeDetection: ChangeDetectionStrategy.Default, host: {
|
|
424
|
-
class: 'rxap-window-container'
|
|
444
|
+
class: 'rxap-window-container',
|
|
425
445
|
}, standalone: true, imports: [
|
|
426
446
|
CdkDrag,
|
|
427
447
|
FlexModule,
|
|
@@ -434,8 +454,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
434
454
|
PortalModule,
|
|
435
455
|
MatProgressBarModule,
|
|
436
456
|
WindowResizerComponent,
|
|
437
|
-
AsyncPipe
|
|
438
|
-
], template: "<div #container\n (cdkDragEnded)=\"onDragEnded($event)\"\n [cdkDragDisabled]=\"windowRef.settings.draggable === false\"\n [ngStyle]=\"{\n 'width': width$ | async,\n 'height': height$ | async,\n 'minWidth': windowRef.settings.minWidth,\n 'minHeight': windowRef.settings.minHeight,\n 'maxWidth': windowRef.settings.maxWidth,\n 'maxHeight': windowRef.settings.maxHeight\n }\"\n cdkDrag\n
|
|
457
|
+
AsyncPipe,
|
|
458
|
+
], template: "<div #container\n (cdkDragEnded)=\"onDragEnded($event)\"\n [cdkDragConstrainPosition]=\"dragConstrainPosition\"\n [cdkDragDisabled]=\"windowRef.settings.draggable === false\"\n [ngStyle]=\"{\n 'width': width$ | async,\n 'height': height$ | async,\n 'minWidth': windowRef.settings.minWidth,\n 'minHeight': windowRef.settings.minHeight,\n 'maxWidth': windowRef.settings.maxWidth,\n 'maxHeight': windowRef.settings.maxHeight\n }\"\n cdkDrag\n class=\"container mat-elevation-z4\"\n fxLayout=\"column\">\n\n <div cdkDragHandle class=\"tool-bar\" fxFlex=\"nogrow\">\n <rxap-window-tool-bar></rxap-window-tool-bar>\n </div>\n\n <div class=\"content\" fxFlex=\"grow\">\n <ng-content></ng-content>\n </div>\n\n <mat-toolbar *ngIf=\"windowRef.footerPortal$ | async as footerPortal\" class=\"footer mat-elevation-z1\"\n fxFlex=\"nogrow\">\n <ng-template [cdkPortalOutlet]=\"footerPortal\"></ng-template>\n </mat-toolbar>\n\n <mat-progress-bar *ngIf=\"windowInstance.isLoading$ | async\" mode=\"indeterminate\"></mat-progress-bar>\n\n <rxap-window-resizer [containerRef]=\"containerRef\"></rxap-window-resizer>\n\n</div>\n", styles: [".container{cursor:move;position:relative;z-index:1;max-height:100vh;max-width:100vw;background-color:#fff}.container:active{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.container .tool-bar{width:100%}.container .content{overflow:auto;width:100%}.container .footer{width:100%;height:64px}\n"] }]
|
|
439
459
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
440
460
|
type: Inject,
|
|
441
461
|
args: [RXAP_WINDOW_CONTEXT]
|
|
@@ -460,15 +480,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
460
480
|
}] } });
|
|
461
481
|
|
|
462
482
|
class DefaultWindowComponent {
|
|
463
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
464
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
483
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DefaultWindowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
484
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: DefaultWindowComponent, isStandalone: true, selector: "rxap-default-window", ngImport: i0, template: "<rxap-window-container>\n <rxap-window-content></rxap-window-content>\n</rxap-window-container>\n", styles: [""], dependencies: [{ kind: "component", type: WindowContainerComponent, selector: "rxap-window-container" }, { kind: "component", type: WindowContentComponent, selector: "rxap-window-content" }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
|
|
465
485
|
}
|
|
466
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
486
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DefaultWindowComponent, decorators: [{
|
|
467
487
|
type: Component,
|
|
468
488
|
args: [{ selector: 'rxap-default-window', changeDetection: ChangeDetectionStrategy.Default, standalone: true, imports: [WindowContainerComponent, WindowContentComponent], template: "<rxap-window-container>\n <rxap-window-content></rxap-window-content>\n</rxap-window-container>\n" }]
|
|
469
489
|
}] });
|
|
470
490
|
|
|
471
491
|
class WindowService {
|
|
492
|
+
constructor(injector, overlay, componentFactoryResolver, defaultWindowSettings) {
|
|
493
|
+
this.injector = injector;
|
|
494
|
+
this.overlay = overlay;
|
|
495
|
+
this.componentFactoryResolver = componentFactoryResolver;
|
|
496
|
+
this.defaultWindowSettings = defaultWindowSettings;
|
|
497
|
+
this.activeCount$ = new Subject();
|
|
498
|
+
this.active = new Map();
|
|
499
|
+
}
|
|
472
500
|
get hasActiveWindows() {
|
|
473
501
|
return this.active.size !== 0;
|
|
474
502
|
}
|
|
@@ -478,14 +506,6 @@ class WindowService {
|
|
|
478
506
|
get allActiveWindows() {
|
|
479
507
|
return Array.from(this.active.values());
|
|
480
508
|
}
|
|
481
|
-
constructor(injector, overlay, componentFactoryResolver, defaultWindowSettings) {
|
|
482
|
-
this.injector = injector;
|
|
483
|
-
this.overlay = overlay;
|
|
484
|
-
this.componentFactoryResolver = componentFactoryResolver;
|
|
485
|
-
this.defaultWindowSettings = defaultWindowSettings;
|
|
486
|
-
this.activeCount$ = new Subject();
|
|
487
|
-
this.active = new Map();
|
|
488
|
-
}
|
|
489
509
|
get(id) {
|
|
490
510
|
if (!this.has(id)) {
|
|
491
511
|
throw new Error(`Active Window with id '${id}' not found`);
|
|
@@ -503,7 +523,7 @@ class WindowService {
|
|
|
503
523
|
open(config) {
|
|
504
524
|
// Override default configuration
|
|
505
525
|
const windowConfig = {
|
|
506
|
-
id:
|
|
526
|
+
id: GenerateRandomString(),
|
|
507
527
|
...DEFAULT_WINDOW_CONFIG,
|
|
508
528
|
...(this.defaultWindowSettings ?? {}),
|
|
509
529
|
...config,
|
|
@@ -595,10 +615,10 @@ class WindowService {
|
|
|
595
615
|
});
|
|
596
616
|
return this.overlay.create(overlayConfig);
|
|
597
617
|
}
|
|
598
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
599
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
618
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowService, deps: [{ token: Injector }, { token: Overlay }, { token: ComponentFactoryResolver }, { token: RXAP_WINDOW_DEFAULT_SETTINGS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
619
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowService, providedIn: 'root' }); }
|
|
600
620
|
}
|
|
601
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
621
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowService, decorators: [{
|
|
602
622
|
type: Injectable,
|
|
603
623
|
args: [{ providedIn: 'root' }]
|
|
604
624
|
}], ctorParameters: function () { return [{ type: i0.Injector, decorators: [{
|
|
@@ -624,16 +644,26 @@ class WindowTaskComponent {
|
|
|
624
644
|
reopen() {
|
|
625
645
|
this.window.reopen();
|
|
626
646
|
}
|
|
627
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
628
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
647
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowTaskComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
648
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowTaskComponent, isStandalone: true, selector: "rxap-window-task", inputs: { window: "window" }, ngImport: i0, template: "<div (click)=\"reopen()\" [ngClass]=\"{ minimized: window.isMinimized }\" class=\"container mat-elevation-z2\" fxLayout=\"row\"\n fxLayoutAlign=\"start center\"\n fxLayoutGap=\"5px\">\n <ng-template [ngIf]=\"window.settings$ | async\" let-settings>\n <mat-icon *ngIf=\"settings.icon\" [rxapIcon]=\"settings.icon\" fxFlex=\"40px\"></mat-icon>\n <h3 *ngIf=\"settings.title\" fxFlex=\"grow\">{{settings.title}}</h3>\n </ng-template>\n <button (click)=\"close()\" mat-icon-button rxapStopPropagation type=\"button\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n", styles: [".container{padding:5px;cursor:pointer}.container.minimized{opacity:.5}\n"], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i1$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i1$2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i1$2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i1$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ExtendedModule }, { kind: "directive", type: i2$1.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: StopPropagationDirective, selector: "[rxapStopPropagation]" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
629
649
|
}
|
|
630
650
|
__decorate([
|
|
631
651
|
Required,
|
|
632
652
|
__metadata("design:type", WindowRef)
|
|
633
653
|
], WindowTaskComponent.prototype, "window", void 0);
|
|
634
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
654
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowTaskComponent, decorators: [{
|
|
635
655
|
type: Component,
|
|
636
|
-
args: [{ selector: 'rxap-window-task', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
656
|
+
args: [{ selector: 'rxap-window-task', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
657
|
+
FlexModule,
|
|
658
|
+
NgClass,
|
|
659
|
+
ExtendedModule,
|
|
660
|
+
NgIf,
|
|
661
|
+
MatIconModule,
|
|
662
|
+
IconDirective,
|
|
663
|
+
MatButtonModule,
|
|
664
|
+
StopPropagationDirective,
|
|
665
|
+
AsyncPipe,
|
|
666
|
+
], template: "<div (click)=\"reopen()\" [ngClass]=\"{ minimized: window.isMinimized }\" class=\"container mat-elevation-z2\" fxLayout=\"row\"\n fxLayoutAlign=\"start center\"\n fxLayoutGap=\"5px\">\n <ng-template [ngIf]=\"window.settings$ | async\" let-settings>\n <mat-icon *ngIf=\"settings.icon\" [rxapIcon]=\"settings.icon\" fxFlex=\"40px\"></mat-icon>\n <h3 *ngIf=\"settings.title\" fxFlex=\"grow\">{{settings.title}}</h3>\n </ng-template>\n <button (click)=\"close()\" mat-icon-button rxapStopPropagation type=\"button\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n", styles: [".container{padding:5px;cursor:pointer}.container.minimized{opacity:.5}\n"] }]
|
|
637
667
|
}], propDecorators: { window: [{
|
|
638
668
|
type: Input
|
|
639
669
|
}] } });
|
|
@@ -650,10 +680,10 @@ class WindowTaskBarComponent {
|
|
|
650
680
|
ngOnDestroy() {
|
|
651
681
|
this.subscriptions.unsubscribe();
|
|
652
682
|
}
|
|
653
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
654
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
683
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowTaskBarComponent, deps: [{ token: WindowService }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
684
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowTaskBarComponent, isStandalone: true, selector: "rxap-window-task-bar", ngImport: i0, template: "<div class=\"tasks\"\n fxFlex=\"nogrow\"\n fxLayout=\"row wrap\">\n <rxap-window-task *ngFor=\"let window of windowService.allActiveWindows\"\n [window]=\"window\"\n fxFlex=\"nogrow\">\n </rxap-window-task>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i1$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i1$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: WindowTaskComponent, selector: "rxap-window-task", inputs: ["window"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
655
685
|
}
|
|
656
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
686
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowTaskBarComponent, decorators: [{
|
|
657
687
|
type: Component,
|
|
658
688
|
args: [{ selector: 'rxap-window-task-bar', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [FlexModule, NgFor, WindowTaskComponent], template: "<div class=\"tasks\"\n fxFlex=\"nogrow\"\n fxLayout=\"row wrap\">\n <rxap-window-task *ngFor=\"let window of windowService.allActiveWindows\"\n [window]=\"window\"\n fxFlex=\"nogrow\">\n </rxap-window-task>\n</div>\n" }]
|
|
659
689
|
}], ctorParameters: function () { return [{ type: WindowService, decorators: [{
|
|
@@ -675,12 +705,21 @@ class WindowTaskBarContainerComponent {
|
|
|
675
705
|
}
|
|
676
706
|
}
|
|
677
707
|
}
|
|
678
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
679
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
708
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowTaskBarContainerComponent, deps: [{ token: WindowService }, { token: RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
709
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowTaskBarContainerComponent, isStandalone: true, selector: "rxap-window-task-bar-container", ngImport: i0, template: "<div *ngIf=\"windowService.hasActiveWindows\" class=\"container\" fxLayout=\"column\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end end\">\n <button (click)=\"expand = !expand\"\n [matBadgeHidden]=\"!windowService.hasActiveWindows\"\n [matBadge]=\"windowService.activeWindowCount.toFixed(0)\"\n class=\"pin\"\n color=\"primary\"\n mat-icon-button\n matBadgePosition=\"above before\"\n type=\"button\">\n <mat-icon *ngIf=\"!expand\">keyboard_arrow_up</mat-icon>\n <mat-icon *ngIf=\"expand\">keyboard_arrow_down</mat-icon>\n </button>\n </div>\n <mat-toolbar [fxShow]=\"expand\" class=\"tasks\">\n <rxap-window-task-bar></rxap-window-task-bar>\n </mat-toolbar>\n</div>\n", styles: [".container .pin{border:none;border-radius:50% 50% 0 0;cursor:pointer}.container .tasks{height:auto;padding:16px}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i1$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i1$2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i1$2.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatBadgeModule }, { kind: "directive", type: i3.MatBadge, selector: "[matBadge]", inputs: ["matBadgeDisabled", "matBadgeColor", "matBadgeOverlap", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i1$1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: ExtendedModule }, { kind: "directive", type: i2$1.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { kind: "component", type: WindowTaskBarComponent, selector: "rxap-window-task-bar" }] }); }
|
|
680
710
|
}
|
|
681
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowTaskBarContainerComponent, decorators: [{
|
|
682
712
|
type: Component,
|
|
683
|
-
args: [{ selector: 'rxap-window-task-bar-container', standalone: true, imports: [
|
|
713
|
+
args: [{ selector: 'rxap-window-task-bar-container', standalone: true, imports: [
|
|
714
|
+
NgIf,
|
|
715
|
+
FlexModule,
|
|
716
|
+
MatButtonModule,
|
|
717
|
+
MatBadgeModule,
|
|
718
|
+
MatIconModule,
|
|
719
|
+
MatToolbarModule,
|
|
720
|
+
ExtendedModule,
|
|
721
|
+
WindowTaskBarComponent,
|
|
722
|
+
], template: "<div *ngIf=\"windowService.hasActiveWindows\" class=\"container\" fxLayout=\"column\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"end end\">\n <button (click)=\"expand = !expand\"\n [matBadgeHidden]=\"!windowService.hasActiveWindows\"\n [matBadge]=\"windowService.activeWindowCount.toFixed(0)\"\n class=\"pin\"\n color=\"primary\"\n mat-icon-button\n matBadgePosition=\"above before\"\n type=\"button\">\n <mat-icon *ngIf=\"!expand\">keyboard_arrow_up</mat-icon>\n <mat-icon *ngIf=\"expand\">keyboard_arrow_down</mat-icon>\n </button>\n </div>\n <mat-toolbar [fxShow]=\"expand\" class=\"tasks\">\n <rxap-window-task-bar></rxap-window-task-bar>\n </mat-toolbar>\n</div>\n", styles: [".container .pin{border:none;border-radius:50% 50% 0 0;cursor:pointer}.container .tasks{height:auto;padding:16px}\n"] }]
|
|
684
723
|
}], ctorParameters: function () { return [{ type: WindowService, decorators: [{
|
|
685
724
|
type: Inject,
|
|
686
725
|
args: [WindowService]
|
|
@@ -691,7 +730,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
691
730
|
args: [RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS]
|
|
692
731
|
}] }]; } });
|
|
693
732
|
|
|
733
|
+
class WindowTaskBarModule {
|
|
734
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowTaskBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
735
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: WindowTaskBarModule, imports: [WindowTaskBarComponent, WindowTaskComponent, WindowTaskBarContainerComponent], exports: [WindowTaskBarComponent, WindowTaskBarContainerComponent] }); }
|
|
736
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowTaskBarModule, imports: [WindowTaskBarComponent, WindowTaskComponent, WindowTaskBarContainerComponent] }); }
|
|
737
|
+
}
|
|
738
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowTaskBarModule, decorators: [{
|
|
739
|
+
type: NgModule,
|
|
740
|
+
args: [{
|
|
741
|
+
imports: [
|
|
742
|
+
WindowTaskBarComponent, WindowTaskComponent, WindowTaskBarContainerComponent,
|
|
743
|
+
],
|
|
744
|
+
exports: [WindowTaskBarComponent, WindowTaskBarContainerComponent],
|
|
745
|
+
}]
|
|
746
|
+
}] });
|
|
747
|
+
|
|
694
748
|
class WindowFooterDirective {
|
|
749
|
+
constructor(windowRef, template, viewContainerRef) {
|
|
750
|
+
this.windowRef = windowRef;
|
|
751
|
+
this.template = template;
|
|
752
|
+
this.viewContainerRef = viewContainerRef;
|
|
753
|
+
}
|
|
695
754
|
/**
|
|
696
755
|
* Asserts the correct type of the context for the template that `NgForOf` will render.
|
|
697
756
|
*
|
|
@@ -701,24 +760,19 @@ class WindowFooterDirective {
|
|
|
701
760
|
static ngTemplateContextGuard(dir, ctx) {
|
|
702
761
|
return true;
|
|
703
762
|
}
|
|
704
|
-
constructor(windowRef, template, viewContainerRef) {
|
|
705
|
-
this.windowRef = windowRef;
|
|
706
|
-
this.template = template;
|
|
707
|
-
this.viewContainerRef = viewContainerRef;
|
|
708
|
-
}
|
|
709
763
|
ngOnInit() {
|
|
710
764
|
this.windowRef.setFooterPortal(new TemplatePortal(this.template, this.viewContainerRef, {
|
|
711
765
|
$implicit: this.windowRef,
|
|
712
766
|
}));
|
|
713
767
|
}
|
|
714
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
715
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
768
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowFooterDirective, deps: [{ token: RXAP_WINDOW_REF }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
769
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: WindowFooterDirective, isStandalone: true, selector: "[rxapWindowFooter]", ngImport: i0 }); }
|
|
716
770
|
}
|
|
717
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
771
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowFooterDirective, decorators: [{
|
|
718
772
|
type: Directive,
|
|
719
773
|
args: [{
|
|
720
774
|
selector: '[rxapWindowFooter]',
|
|
721
|
-
standalone: true
|
|
775
|
+
standalone: true,
|
|
722
776
|
}]
|
|
723
777
|
}], ctorParameters: function () { return [{ type: WindowRef, decorators: [{
|
|
724
778
|
type: Inject,
|
|
@@ -732,6 +786,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
732
786
|
}] }]; } });
|
|
733
787
|
|
|
734
788
|
class WindowTitleDirective {
|
|
789
|
+
constructor(windowRef, template, viewContainerRef) {
|
|
790
|
+
this.windowRef = windowRef;
|
|
791
|
+
this.template = template;
|
|
792
|
+
this.viewContainerRef = viewContainerRef;
|
|
793
|
+
}
|
|
735
794
|
/**
|
|
736
795
|
* Asserts the correct type of the context for the template that `NgForOf` will render.
|
|
737
796
|
*
|
|
@@ -741,24 +800,19 @@ class WindowTitleDirective {
|
|
|
741
800
|
static ngTemplateContextGuard(dir, ctx) {
|
|
742
801
|
return true;
|
|
743
802
|
}
|
|
744
|
-
constructor(windowRef, template, viewContainerRef) {
|
|
745
|
-
this.windowRef = windowRef;
|
|
746
|
-
this.template = template;
|
|
747
|
-
this.viewContainerRef = viewContainerRef;
|
|
748
|
-
}
|
|
749
803
|
ngOnInit() {
|
|
750
804
|
this.windowRef.setTitlePortal(new TemplatePortal(this.template, this.viewContainerRef, {
|
|
751
|
-
$implicit: this.windowRef
|
|
805
|
+
$implicit: this.windowRef,
|
|
752
806
|
}));
|
|
753
807
|
}
|
|
754
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
755
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
808
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowTitleDirective, deps: [{ token: RXAP_WINDOW_REF }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
809
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: WindowTitleDirective, isStandalone: true, selector: "[rxapWindowTitle]", ngImport: i0 }); }
|
|
756
810
|
}
|
|
757
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
811
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowTitleDirective, decorators: [{
|
|
758
812
|
type: Directive,
|
|
759
813
|
args: [{
|
|
760
814
|
selector: '[rxapWindowTitle]',
|
|
761
|
-
standalone: true
|
|
815
|
+
standalone: true,
|
|
762
816
|
}]
|
|
763
817
|
}], ctorParameters: function () { return [{ type: WindowRef, decorators: [{
|
|
764
818
|
type: Inject,
|
|
@@ -771,9 +825,72 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
771
825
|
args: [ViewContainerRef]
|
|
772
826
|
}] }]; } });
|
|
773
827
|
|
|
828
|
+
class WindowActionBarComponent {
|
|
829
|
+
constructor(context, injector) {
|
|
830
|
+
this.injector = injector;
|
|
831
|
+
this.definitions = null;
|
|
832
|
+
this.position = 'start';
|
|
833
|
+
if (context.windowRef.settings.actions) {
|
|
834
|
+
this.definitions = context.windowRef.settings.actions.definitions;
|
|
835
|
+
this.position = context.windowRef.settings.actions.position || this.position;
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowActionBarComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
839
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowActionBarComponent, isStandalone: true, selector: "rxap-window-action-bar", ngImport: i0, template: "<mat-toolbar-row *ngIf=\"definitions\" class=\"container\" fxLayout=\"row\" fxLayoutAlign=\"{{position}} center\"\n fxLayoutGap=\"8px\">\n <span>this feature is removed</span>\n</mat-toolbar-row>\n", styles: [".container{padding:8px}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "directive", type: i1$1.MatToolbarRow, selector: "mat-toolbar-row", exportAs: ["matToolbarRow"] }, { kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i1$2.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i1$2.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i1$2.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }] }); }
|
|
840
|
+
}
|
|
841
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowActionBarComponent, decorators: [{
|
|
842
|
+
type: Component,
|
|
843
|
+
args: [{ selector: 'rxap-window-action-bar', standalone: true, imports: [NgIf, MatToolbarModule, FlexModule], template: "<mat-toolbar-row *ngIf=\"definitions\" class=\"container\" fxLayout=\"row\" fxLayoutAlign=\"{{position}} center\"\n fxLayoutGap=\"8px\">\n <span>this feature is removed</span>\n</mat-toolbar-row>\n", styles: [".container{padding:8px}\n"] }]
|
|
844
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
845
|
+
type: Inject,
|
|
846
|
+
args: [RXAP_WINDOW_CONTEXT]
|
|
847
|
+
}] }, { type: i0.Injector }]; } });
|
|
848
|
+
|
|
849
|
+
class RxapWindowSystemModule {
|
|
850
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapWindowSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
851
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: RxapWindowSystemModule, imports: [WindowContainerComponent,
|
|
852
|
+
WindowToolBarComponent,
|
|
853
|
+
WindowResizerComponent,
|
|
854
|
+
DefaultWindowComponent,
|
|
855
|
+
WindowContentComponent,
|
|
856
|
+
WindowActionBarComponent], exports: [WindowContainerComponent,
|
|
857
|
+
WindowToolBarComponent,
|
|
858
|
+
WindowResizerComponent,
|
|
859
|
+
DefaultWindowComponent,
|
|
860
|
+
WindowContentComponent,
|
|
861
|
+
WindowTaskBarModule] }); }
|
|
862
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapWindowSystemModule, imports: [WindowContainerComponent,
|
|
863
|
+
WindowToolBarComponent,
|
|
864
|
+
WindowResizerComponent,
|
|
865
|
+
DefaultWindowComponent,
|
|
866
|
+
WindowContentComponent,
|
|
867
|
+
WindowActionBarComponent, WindowTaskBarModule] }); }
|
|
868
|
+
}
|
|
869
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RxapWindowSystemModule, decorators: [{
|
|
870
|
+
type: NgModule,
|
|
871
|
+
args: [{
|
|
872
|
+
imports: [
|
|
873
|
+
WindowContainerComponent,
|
|
874
|
+
WindowToolBarComponent,
|
|
875
|
+
WindowResizerComponent,
|
|
876
|
+
DefaultWindowComponent,
|
|
877
|
+
WindowContentComponent,
|
|
878
|
+
WindowActionBarComponent,
|
|
879
|
+
],
|
|
880
|
+
exports: [
|
|
881
|
+
WindowContainerComponent,
|
|
882
|
+
WindowToolBarComponent,
|
|
883
|
+
WindowResizerComponent,
|
|
884
|
+
DefaultWindowComponent,
|
|
885
|
+
WindowContentComponent,
|
|
886
|
+
WindowTaskBarModule,
|
|
887
|
+
],
|
|
888
|
+
}]
|
|
889
|
+
}] });
|
|
890
|
+
|
|
774
891
|
/**
|
|
775
892
|
* Generated bundle index. Do not edit.
|
|
776
893
|
*/
|
|
777
894
|
|
|
778
|
-
export { DEFAULT_WINDOW_CONFIG, DefaultWindowComponent, RXAP_WINDOW_CONTAINER_CONTEXT, RXAP_WINDOW_CONTEXT, RXAP_WINDOW_DATA, RXAP_WINDOW_DEFAULT_SETTINGS, RXAP_WINDOW_REF, RXAP_WINDOW_SETTINGS, RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS, WindowContainerComponent, WindowContentComponent, WindowFooterDirective, WindowRef, WindowResizerComponent, WindowService, WindowTaskBarComponent, WindowTaskBarContainerComponent, WindowTitleDirective, WindowToolBarComponent };
|
|
895
|
+
export { DEFAULT_WINDOW_CONFIG, DefaultWindowComponent, RXAP_WINDOW_CONTAINER_CONTEXT, RXAP_WINDOW_CONTEXT, RXAP_WINDOW_DATA, RXAP_WINDOW_DEFAULT_SETTINGS, RXAP_WINDOW_REF, RXAP_WINDOW_SETTINGS, RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS, RxapWindowSystemModule, WindowContainerComponent, WindowContentComponent, WindowFooterDirective, WindowRef, WindowResizerComponent, WindowService, WindowTaskBarComponent, WindowTaskBarContainerComponent, WindowTaskBarModule, WindowTitleDirective, WindowToolBarComponent };
|
|
779
896
|
//# sourceMappingURL=rxap-window-system.mjs.map
|