@rxap/window-system 16.0.0-dev.1 → 16.0.0-dev.2
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/esm2022/index.mjs +1 -3
- package/esm2022/lib/default-window/default-window.component.mjs +5 -5
- package/esm2022/lib/window-container/window-container.component.mjs +33 -16
- package/esm2022/lib/window-content/window-content.component.mjs +4 -4
- package/esm2022/lib/window-footer.directive.mjs +4 -16
- package/esm2022/lib/window-resizer/window-resizer.component.mjs +8 -6
- package/esm2022/lib/window-task-bar/window-task/window-task.component.mjs +14 -10
- package/esm2022/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.mjs +17 -11
- package/esm2022/lib/window-task-bar/window-task-bar.component.mjs +9 -8
- package/esm2022/lib/window-title.directive.mjs +5 -17
- package/esm2022/lib/window-tool-bar/window-tool-bar.component.mjs +12 -7
- package/fesm2022/rxap-window-system.mjs +207 -344
- package/fesm2022/rxap-window-system.mjs.map +1 -1
- package/index.d.ts +0 -2
- package/lib/default-window/default-window.component.d.ts +1 -1
- package/lib/window-container/window-container.component.d.ts +1 -1
- package/lib/window-content/window-content.component.d.ts +1 -1
- package/lib/window-footer.directive.d.ts +1 -6
- package/lib/window-resizer/window-resizer.component.d.ts +1 -1
- package/lib/window-task-bar/window-task/window-task.component.d.ts +1 -1
- package/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.d.ts +1 -1
- package/lib/window-task-bar/window-task-bar.component.d.ts +1 -1
- package/lib/window-title.directive.d.ts +1 -6
- package/lib/window-tool-bar/window-tool-bar.component.d.ts +1 -1
- package/package.json +6 -6
- package/esm2022/lib/window-action-bar/window-action-bar.component.mjs +0 -28
- package/esm2022/lib/window-system.module.mjs +0 -87
- package/esm2022/lib/window-task-bar/window-task-bar.module.mjs +0 -51
- package/lib/window-action-bar/window-action-bar.component.d.ts +0 -11
- package/lib/window-system.module.d.ts +0 -23
- package/lib/window-task-bar/window-task-bar.module.d.ts +0 -17
|
@@ -1,114 +1,46 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken,
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
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';
|
|
3
|
+
import * as i1$3 from '@angular/cdk/overlay';
|
|
4
|
+
import { OverlayConfig, Overlay } from '@angular/cdk/overlay';
|
|
5
|
+
import * as i2 from '@angular/cdk/portal';
|
|
6
|
+
import { TemplatePortal, ComponentPortal, CdkPortalOutlet, PortalModule } from '@angular/cdk/portal';
|
|
7
|
+
import { Subject, BehaviorSubject, ReplaySubject, isObservable, TimeoutError, throwError, Subscription, fromEvent, merge } from 'rxjs';
|
|
8
|
+
import { startWith, take, tap, filter, delay, timeout, catchError, switchMap, takeUntil, map, finalize } from 'rxjs/operators';
|
|
9
|
+
import * as i1 from '@rxap/services';
|
|
10
|
+
import { LoadingIndicatorService } from '@rxap/services';
|
|
11
|
+
import { isDefined } from '@rxap/utilities/rxjs';
|
|
12
|
+
import { CdkDrag, CdkDragHandle } from '@angular/cdk/drag-drop';
|
|
13
|
+
import { __decorate, __metadata } from 'tslib';
|
|
14
|
+
import { Required } from '@rxap/utilities';
|
|
15
|
+
import { AsyncPipe, NgIf, NgStyle, NgClass, NgFor } from '@angular/common';
|
|
16
|
+
import * as i2$1 from '@angular/flex-layout/extended';
|
|
17
|
+
import { ExtendedModule } from '@angular/flex-layout/extended';
|
|
5
18
|
import * as i4 from '@angular/material/icon';
|
|
6
19
|
import { MatIconModule } from '@angular/material/icon';
|
|
20
|
+
import * as i5$1 from '@angular/material/progress-bar';
|
|
21
|
+
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
7
22
|
import * as i1$1 from '@angular/material/toolbar';
|
|
8
23
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import * as i1 from '@angular/common';
|
|
15
|
-
import { CommonModule } from '@angular/common';
|
|
16
|
-
import * as i1$2 from '@rxap/services';
|
|
17
|
-
import { LoadingIndicatorService } from '@rxap/services';
|
|
18
|
-
import * as i2 from '@angular/flex-layout/flex';
|
|
19
|
-
import * as i5$1 from '@angular/cdk/drag-drop';
|
|
20
|
-
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
21
|
-
import * as i6 from '@angular/cdk/portal';
|
|
22
|
-
import { TemplatePortal, ComponentPortal, CdkPortalOutlet, PortalModule } from '@angular/cdk/portal';
|
|
23
|
-
import * as i7$1 from '@angular/material/legacy-progress-bar';
|
|
24
|
-
import { MatLegacyProgressBarModule } from '@angular/material/legacy-progress-bar';
|
|
25
|
-
import * as i7 from '@rxap/material-directives/icon';
|
|
26
|
-
import { IconDirectiveModule } from '@rxap/material-directives/icon';
|
|
27
|
-
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
28
|
-
import { isDefined } from '@rxap/utilities/rxjs';
|
|
29
|
-
import * as i1$3 from '@angular/cdk/overlay';
|
|
30
|
-
import { OverlayConfig, Overlay, OverlayModule } from '@angular/cdk/overlay';
|
|
24
|
+
import * as i5 from '@angular/material/button';
|
|
25
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
26
|
+
import { IconDirective } from '@rxap/material-directives/icon';
|
|
27
|
+
import * as i1$2 from '@angular/flex-layout/flex';
|
|
28
|
+
import { FlexModule } from '@angular/flex-layout/flex';
|
|
31
29
|
import { v4 } from 'uuid';
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import * as i6$2 from '@angular/material/badge';
|
|
30
|
+
import { StopPropagationDirective } from '@rxap/directives';
|
|
31
|
+
import * as i3 from '@angular/material/badge';
|
|
35
32
|
import { MatBadgeModule } from '@angular/material/badge';
|
|
36
33
|
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
this.height$ = new EventEmitter();
|
|
48
|
-
this.resizing$ = new EventEmitter();
|
|
49
|
-
this._subscription = new Subscription();
|
|
50
|
-
this.windowRef = context.windowRef;
|
|
51
|
-
}
|
|
52
|
-
ngOnDestroy() {
|
|
53
|
-
this._subscription.unsubscribe();
|
|
54
|
-
}
|
|
55
|
-
ngOnInit() {
|
|
56
|
-
let originalMouseX = 0;
|
|
57
|
-
let originalMouseY = 0;
|
|
58
|
-
let originalWidth = 0;
|
|
59
|
-
let originalHeight = 0;
|
|
60
|
-
this._subscription.add(fromEvent(this.resizerRef.nativeElement, 'mousedown').pipe(tap(event => {
|
|
61
|
-
this.resizing$.emit(true);
|
|
62
|
-
originalMouseX = event.pageX;
|
|
63
|
-
originalMouseY = event.pageY;
|
|
64
|
-
originalWidth = parseFloat(getComputedStyle(this.containerRef.nativeElement, null)
|
|
65
|
-
.getPropertyValue('width')
|
|
66
|
-
.replace('px', ''));
|
|
67
|
-
originalHeight = parseFloat(getComputedStyle(this.containerRef.nativeElement, null)
|
|
68
|
-
.getPropertyValue('height')
|
|
69
|
-
.replace('px', ''));
|
|
70
|
-
}), switchMap(() => fromEvent(window, 'mousemove').pipe(takeUntil(fromEvent(window, 'mouseup')), map((event) => ({
|
|
71
|
-
width: originalWidth + (event.pageX - originalMouseX),
|
|
72
|
-
height: originalHeight + (event.pageY - originalMouseY)
|
|
73
|
-
})), filter(size => (Number(this.windowRef.getSizeConfig().minHeight) || 0) <=
|
|
74
|
-
size.height &&
|
|
75
|
-
(Number(this.windowRef.getSizeConfig().minWidth) || 0) <=
|
|
76
|
-
size.width), map(size => ({ width: size.width + 'px', height: size.height + 'px' })), tap(size => {
|
|
77
|
-
this.width$.emit(size.width);
|
|
78
|
-
this.height$.emit(size.height);
|
|
79
|
-
}), tap(size => {
|
|
80
|
-
this.windowRef.setHeight(size.height);
|
|
81
|
-
this.windowRef.setWidth(size.width);
|
|
82
|
-
}), finalize(() => this.resizing$.emit(false))))).subscribe());
|
|
83
|
-
}
|
|
84
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowResizerComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
85
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: WindowResizerComponent, 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: "directive", type: i3.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: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
86
|
-
}
|
|
87
|
-
__decorate([
|
|
88
|
-
Required,
|
|
89
|
-
__metadata("design:type", ElementRef)
|
|
90
|
-
], WindowResizerComponent.prototype, "containerRef", void 0);
|
|
91
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowResizerComponent, decorators: [{
|
|
92
|
-
type: Component,
|
|
93
|
-
args: [{ selector: 'rxap-window-resizer', changeDetection: ChangeDetectionStrategy.OnPush, 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"] }]
|
|
94
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
95
|
-
type: Inject,
|
|
96
|
-
args: [RXAP_WINDOW_CONTEXT]
|
|
97
|
-
}] }]; }, propDecorators: { containerRef: [{
|
|
98
|
-
type: Input
|
|
99
|
-
}], resizerRef: [{
|
|
100
|
-
type: ViewChild,
|
|
101
|
-
args: ['resizer', { static: true }]
|
|
102
|
-
}], width$: [{
|
|
103
|
-
type: Output,
|
|
104
|
-
args: ['width']
|
|
105
|
-
}], height$: [{
|
|
106
|
-
type: Output,
|
|
107
|
-
args: ['height']
|
|
108
|
-
}], resizing$: [{
|
|
109
|
-
type: Output,
|
|
110
|
-
args: ['resizing']
|
|
111
|
-
}] } });
|
|
34
|
+
const DEFAULT_WINDOW_CONFIG = {
|
|
35
|
+
resizeable: true,
|
|
36
|
+
draggable: true,
|
|
37
|
+
injector: null,
|
|
38
|
+
componentFactoryResolver: null,
|
|
39
|
+
minWidth: '384px',
|
|
40
|
+
minHeight: '192px',
|
|
41
|
+
maxWidth: '100vw',
|
|
42
|
+
maxHeight: '100vw'
|
|
43
|
+
};
|
|
112
44
|
|
|
113
45
|
function GetWindowStartPos() {
|
|
114
46
|
let top = '16px';
|
|
@@ -134,6 +66,13 @@ function GetWindowStartPos() {
|
|
|
134
66
|
return { top, left };
|
|
135
67
|
}
|
|
136
68
|
|
|
69
|
+
const RXAP_WINDOW_CONTEXT = new InjectionToken('rxap/core/window/WINDOW_CONTEXT');
|
|
70
|
+
const RXAP_WINDOW_DATA = new InjectionToken('rxap/core/window/WINDOW_DATA');
|
|
71
|
+
const RXAP_WINDOW_CONTAINER_CONTEXT = new InjectionToken('rxap/core/window/WINDOW_CONTAINER_CONTEXT');
|
|
72
|
+
const RXAP_WINDOW_REF = new InjectionToken('rxap/window-system/WINDOW_REF');
|
|
73
|
+
const RXAP_WINDOW_SETTINGS = new InjectionToken('rxap/window-system/window-settings');
|
|
74
|
+
const RXAP_WINDOW_DEFAULT_SETTINGS = new InjectionToken('rxap/window-system/default-window-settings');
|
|
75
|
+
|
|
137
76
|
class WindowRef extends Subject {
|
|
138
77
|
get isMinimized() {
|
|
139
78
|
return this.overlayRef.hostElement.style.display === 'none';
|
|
@@ -292,16 +231,149 @@ class WindowRef extends Subject {
|
|
|
292
231
|
}
|
|
293
232
|
}
|
|
294
233
|
|
|
234
|
+
class WindowContentComponent {
|
|
235
|
+
constructor(context, windowRef, injector, viewContainerRef, loadingIndicatorService) {
|
|
236
|
+
this.windowRef = windowRef;
|
|
237
|
+
this.injector = injector;
|
|
238
|
+
this.viewContainerRef = viewContainerRef;
|
|
239
|
+
this.loadingIndicatorService = loadingIndicatorService;
|
|
240
|
+
this.portal = null;
|
|
241
|
+
this.context = context;
|
|
242
|
+
}
|
|
243
|
+
ngOnInit() {
|
|
244
|
+
if (this.context.template) {
|
|
245
|
+
this.portal = new TemplatePortal(this.context.template, this.viewContainerRef);
|
|
246
|
+
}
|
|
247
|
+
else if (this.context.component) {
|
|
248
|
+
this.portal = new ComponentPortal(this.context.component, this.viewContainerRef, this.injector);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
ngAfterViewInit() {
|
|
252
|
+
this.portalOutlet.attached.pipe(startWith(this.portalOutlet.attachedRef), isDefined(), take(1), tap(attachedRef => this.windowRef.setAttachedRef(attachedRef)), tap(attachedRef => {
|
|
253
|
+
const promise = [];
|
|
254
|
+
if (attachedRef instanceof ComponentRef) {
|
|
255
|
+
attachedRef.changeDetectorRef.detectChanges();
|
|
256
|
+
const loading$ = attachedRef.instance.loading$;
|
|
257
|
+
if (loading$ && isObservable(loading$)) {
|
|
258
|
+
if (isDevMode()) {
|
|
259
|
+
console.warn('The component has a loading indicator member');
|
|
260
|
+
}
|
|
261
|
+
this.loadingIndicatorService.attachLoading(loading$);
|
|
262
|
+
promise.push(loading$.pipe(filter(Boolean), take(1), delay(100), tap(() => attachedRef.changeDetectorRef.detectChanges())).toPromise());
|
|
263
|
+
}
|
|
264
|
+
else {
|
|
265
|
+
this.loadingIndicatorService.disable();
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
this.loadingIndicatorService.disable();
|
|
270
|
+
}
|
|
271
|
+
return Promise.all(promise);
|
|
272
|
+
}), timeout(10000), catchError(error => {
|
|
273
|
+
if (error instanceof TimeoutError) {
|
|
274
|
+
if (isDevMode()) {
|
|
275
|
+
console.warn('The window content never resolved the attached ref');
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
return throwError(error);
|
|
279
|
+
})).subscribe();
|
|
280
|
+
}
|
|
281
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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 }); }
|
|
282
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", 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:1.5rem}\n"], dependencies: [{ kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
|
|
283
|
+
}
|
|
284
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowContentComponent, decorators: [{
|
|
285
|
+
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:1.5rem}\n"] }]
|
|
287
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
288
|
+
type: Inject,
|
|
289
|
+
args: [RXAP_WINDOW_CONTAINER_CONTEXT]
|
|
290
|
+
}] }, { type: undefined, decorators: [{
|
|
291
|
+
type: Inject,
|
|
292
|
+
args: [RXAP_WINDOW_REF]
|
|
293
|
+
}] }, { type: i0.Injector }, { type: i0.ViewContainerRef }, { type: i1.LoadingIndicatorService }]; }, propDecorators: { portalOutlet: [{
|
|
294
|
+
type: ViewChild,
|
|
295
|
+
args: [CdkPortalOutlet]
|
|
296
|
+
}] } });
|
|
297
|
+
|
|
298
|
+
class WindowResizerComponent {
|
|
299
|
+
constructor(context) {
|
|
300
|
+
this.width$ = new EventEmitter();
|
|
301
|
+
this.height$ = new EventEmitter();
|
|
302
|
+
this.resizing$ = new EventEmitter();
|
|
303
|
+
this._subscription = new Subscription();
|
|
304
|
+
this.windowRef = context.windowRef;
|
|
305
|
+
}
|
|
306
|
+
ngOnDestroy() {
|
|
307
|
+
this._subscription.unsubscribe();
|
|
308
|
+
}
|
|
309
|
+
ngOnInit() {
|
|
310
|
+
let originalMouseX = 0;
|
|
311
|
+
let originalMouseY = 0;
|
|
312
|
+
let originalWidth = 0;
|
|
313
|
+
let originalHeight = 0;
|
|
314
|
+
this._subscription.add(fromEvent(this.resizerRef.nativeElement, 'mousedown').pipe(tap(event => {
|
|
315
|
+
this.resizing$.emit(true);
|
|
316
|
+
originalMouseX = event.pageX;
|
|
317
|
+
originalMouseY = event.pageY;
|
|
318
|
+
originalWidth = parseFloat(getComputedStyle(this.containerRef.nativeElement, null)
|
|
319
|
+
.getPropertyValue('width')
|
|
320
|
+
.replace('px', ''));
|
|
321
|
+
originalHeight = parseFloat(getComputedStyle(this.containerRef.nativeElement, null)
|
|
322
|
+
.getPropertyValue('height')
|
|
323
|
+
.replace('px', ''));
|
|
324
|
+
}), switchMap(() => fromEvent(window, 'mousemove').pipe(takeUntil(fromEvent(window, 'mouseup')), map((event) => ({
|
|
325
|
+
width: originalWidth + (event.pageX - originalMouseX),
|
|
326
|
+
height: originalHeight + (event.pageY - originalMouseY)
|
|
327
|
+
})), filter(size => (Number(this.windowRef.getSizeConfig().minHeight) || 0) <=
|
|
328
|
+
size.height &&
|
|
329
|
+
(Number(this.windowRef.getSizeConfig().minWidth) || 0) <=
|
|
330
|
+
size.width), map(size => ({ width: size.width + 'px', height: size.height + 'px' })), tap(size => {
|
|
331
|
+
this.width$.emit(size.width);
|
|
332
|
+
this.height$.emit(size.height);
|
|
333
|
+
}), tap(size => {
|
|
334
|
+
this.windowRef.setHeight(size.height);
|
|
335
|
+
this.windowRef.setWidth(size.width);
|
|
336
|
+
}), finalize(() => this.resizing$.emit(false))))).subscribe());
|
|
337
|
+
}
|
|
338
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowResizerComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
339
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", 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
|
+
}
|
|
341
|
+
__decorate([
|
|
342
|
+
Required,
|
|
343
|
+
__metadata("design:type", ElementRef)
|
|
344
|
+
], WindowResizerComponent.prototype, "containerRef", void 0);
|
|
345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowResizerComponent, decorators: [{
|
|
346
|
+
type: Component,
|
|
347
|
+
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
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
349
|
+
type: Inject,
|
|
350
|
+
args: [RXAP_WINDOW_CONTEXT]
|
|
351
|
+
}] }]; }, propDecorators: { containerRef: [{
|
|
352
|
+
type: Input
|
|
353
|
+
}], resizerRef: [{
|
|
354
|
+
type: ViewChild,
|
|
355
|
+
args: ['resizer', { static: true }]
|
|
356
|
+
}], width$: [{
|
|
357
|
+
type: Output,
|
|
358
|
+
args: ['width']
|
|
359
|
+
}], height$: [{
|
|
360
|
+
type: Output,
|
|
361
|
+
args: ['height']
|
|
362
|
+
}], resizing$: [{
|
|
363
|
+
type: Output,
|
|
364
|
+
args: ['resizing']
|
|
365
|
+
}] } });
|
|
366
|
+
|
|
295
367
|
class WindowToolBarComponent {
|
|
296
368
|
constructor(context) {
|
|
297
369
|
this.windowRef = context.windowRef;
|
|
298
370
|
}
|
|
299
371
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowToolBarComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
300
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: WindowToolBarComponent, selector: "rxap-window-tool-bar", ngImport: i0, template: "<mat-toolbar class=\"header\" fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"1.5rem\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"1.0rem\">\n <ng-template [ngIf]=\"windowRef.titlePortal$ | async\" [ngIfElse]=\"titleFromSettings\" 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\" 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: "component", type: i1$1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type:
|
|
372
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: WindowToolBarComponent, isStandalone: true, selector: "rxap-window-tool-bar", ngImport: i0, template: "<mat-toolbar class=\"header\" fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"1.5rem\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"1.0rem\">\n <ng-template [ngIf]=\"windowRef.titlePortal$ | async\" [ngIfElse]=\"titleFromSettings\" 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\" 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 }); }
|
|
301
373
|
}
|
|
302
374
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowToolBarComponent, decorators: [{
|
|
303
375
|
type: Component,
|
|
304
|
-
args: [{ selector: 'rxap-window-tool-bar', changeDetection: ChangeDetectionStrategy.Default, template: "<mat-toolbar class=\"header\" fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"1.5rem\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"1.0rem\">\n <ng-template [ngIf]=\"windowRef.titlePortal$ | async\" [ngIfElse]=\"titleFromSettings\" 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\" 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"] }]
|
|
376
|
+
args: [{ selector: 'rxap-window-tool-bar', changeDetection: ChangeDetectionStrategy.Default, standalone: true, imports: [MatToolbarModule, FlexModule, NgIf, PortalModule, MatIconModule, IconDirective, MatButtonModule, AsyncPipe], template: "<mat-toolbar class=\"header\" fxLayout=\"row\" fxLayoutAlign=\"space-between center\" fxLayoutGap=\"1.5rem\">\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"1.0rem\">\n <ng-template [ngIf]=\"windowRef.titlePortal$ | async\" [ngIfElse]=\"titleFromSettings\" 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\" 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"] }]
|
|
305
377
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
306
378
|
type: Inject,
|
|
307
379
|
args: [RXAP_WINDOW_CONTEXT]
|
|
@@ -344,20 +416,33 @@ class WindowContainerComponent {
|
|
|
344
416
|
return point;
|
|
345
417
|
}
|
|
346
418
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowContainerComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }, { token: RXAP_WINDOW_REF }, { token: LoadingIndicatorService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
347
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: WindowContainerComponent, 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 [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 [cdkDragConstrainPosition]=\"dragConstrainPosition\"\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\" fxFlex=\"nogrow\">\n <ng-template [cdkPortalOutlet]=\"footerPortal\"></ng-template>\n </mat-toolbar>\n\n <mat-progress-bar mode=\"indeterminate\" *ngIf=\"windowInstance.isLoading$ | async\"></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: "
|
|
419
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", 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 [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 [cdkDragConstrainPosition]=\"dragConstrainPosition\"\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\" fxFlex=\"nogrow\">\n <ng-template [cdkPortalOutlet]=\"footerPortal\"></ng-template>\n </mat-toolbar>\n\n <mat-progress-bar mode=\"indeterminate\" *ngIf=\"windowInstance.isLoading$ | async\"></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 }); }
|
|
348
420
|
}
|
|
349
421
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowContainerComponent, decorators: [{
|
|
350
422
|
type: Component,
|
|
351
423
|
args: [{ selector: 'rxap-window-container', changeDetection: ChangeDetectionStrategy.Default, host: {
|
|
352
424
|
class: 'rxap-window-container'
|
|
353
|
-
},
|
|
425
|
+
}, standalone: true, imports: [
|
|
426
|
+
CdkDrag,
|
|
427
|
+
FlexModule,
|
|
428
|
+
ExtendedModule,
|
|
429
|
+
NgStyle,
|
|
430
|
+
CdkDragHandle,
|
|
431
|
+
WindowToolBarComponent,
|
|
432
|
+
NgIf,
|
|
433
|
+
MatToolbarModule,
|
|
434
|
+
PortalModule,
|
|
435
|
+
MatProgressBarModule,
|
|
436
|
+
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 [cdkDragConstrainPosition]=\"dragConstrainPosition\"\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\" fxFlex=\"nogrow\">\n <ng-template [cdkPortalOutlet]=\"footerPortal\"></ng-template>\n </mat-toolbar>\n\n <mat-progress-bar mode=\"indeterminate\" *ngIf=\"windowInstance.isLoading$ | async\"></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"] }]
|
|
354
439
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
355
440
|
type: Inject,
|
|
356
441
|
args: [RXAP_WINDOW_CONTEXT]
|
|
357
442
|
}] }, { type: WindowRef, decorators: [{
|
|
358
443
|
type: Inject,
|
|
359
444
|
args: [RXAP_WINDOW_REF]
|
|
360
|
-
}] }, { type: i1
|
|
445
|
+
}] }, { type: i1.LoadingIndicatorService, decorators: [{
|
|
361
446
|
type: Inject,
|
|
362
447
|
args: [LoadingIndicatorService]
|
|
363
448
|
}] }]; }, propDecorators: { footerContent: [{
|
|
@@ -374,111 +459,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
374
459
|
args: ['attr.data-id']
|
|
375
460
|
}] } });
|
|
376
461
|
|
|
377
|
-
class WindowContentComponent {
|
|
378
|
-
constructor(context, windowRef, injector, viewContainerRef, loadingIndicatorService) {
|
|
379
|
-
this.windowRef = windowRef;
|
|
380
|
-
this.injector = injector;
|
|
381
|
-
this.viewContainerRef = viewContainerRef;
|
|
382
|
-
this.loadingIndicatorService = loadingIndicatorService;
|
|
383
|
-
this.portal = null;
|
|
384
|
-
this.context = context;
|
|
385
|
-
}
|
|
386
|
-
ngOnInit() {
|
|
387
|
-
if (this.context.template) {
|
|
388
|
-
this.portal = new TemplatePortal(this.context.template, this.viewContainerRef);
|
|
389
|
-
}
|
|
390
|
-
else if (this.context.component) {
|
|
391
|
-
this.portal = new ComponentPortal(this.context.component, this.viewContainerRef, this.injector);
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
ngAfterViewInit() {
|
|
395
|
-
this.portalOutlet.attached.pipe(startWith(this.portalOutlet.attachedRef), isDefined(), take(1), tap(attachedRef => this.windowRef.setAttachedRef(attachedRef)), tap(attachedRef => {
|
|
396
|
-
const promise = [];
|
|
397
|
-
if (attachedRef instanceof ComponentRef) {
|
|
398
|
-
attachedRef.changeDetectorRef.detectChanges();
|
|
399
|
-
const loading$ = attachedRef.instance.loading$;
|
|
400
|
-
if (loading$ && isObservable(loading$)) {
|
|
401
|
-
if (isDevMode()) {
|
|
402
|
-
console.warn('The component has a loading indicator member');
|
|
403
|
-
}
|
|
404
|
-
this.loadingIndicatorService.attachLoading(loading$);
|
|
405
|
-
promise.push(loading$.pipe(filter(Boolean), take(1), delay(100), tap(() => attachedRef.changeDetectorRef.detectChanges())).toPromise());
|
|
406
|
-
}
|
|
407
|
-
else {
|
|
408
|
-
this.loadingIndicatorService.disable();
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
else {
|
|
412
|
-
this.loadingIndicatorService.disable();
|
|
413
|
-
}
|
|
414
|
-
return Promise.all(promise);
|
|
415
|
-
}), timeout(10000), catchError(error => {
|
|
416
|
-
if (error instanceof TimeoutError) {
|
|
417
|
-
if (isDevMode()) {
|
|
418
|
-
console.warn('The window content never resolved the attached ref');
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
return throwError(error);
|
|
422
|
-
})).subscribe();
|
|
423
|
-
}
|
|
424
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowContentComponent, deps: [{ token: RXAP_WINDOW_CONTAINER_CONTEXT }, { token: RXAP_WINDOW_REF }, { token: i0.Injector }, { token: i0.ViewContainerRef }, { token: i1$2.LoadingIndicatorService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
425
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: WindowContentComponent, 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:1.5rem}\n"], dependencies: [{ kind: "directive", type: i6.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
|
|
426
|
-
}
|
|
427
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowContentComponent, decorators: [{
|
|
428
|
-
type: Component,
|
|
429
|
-
args: [{ selector: 'rxap-window-content', changeDetection: ChangeDetectionStrategy.Default, 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:1.5rem}\n"] }]
|
|
430
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
431
|
-
type: Inject,
|
|
432
|
-
args: [RXAP_WINDOW_CONTAINER_CONTEXT]
|
|
433
|
-
}] }, { type: undefined, decorators: [{
|
|
434
|
-
type: Inject,
|
|
435
|
-
args: [RXAP_WINDOW_REF]
|
|
436
|
-
}] }, { type: i0.Injector }, { type: i0.ViewContainerRef }, { type: i1$2.LoadingIndicatorService }]; }, propDecorators: { portalOutlet: [{
|
|
437
|
-
type: ViewChild,
|
|
438
|
-
args: [CdkPortalOutlet]
|
|
439
|
-
}] } });
|
|
440
|
-
|
|
441
462
|
class DefaultWindowComponent {
|
|
442
463
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DefaultWindowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
443
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: DefaultWindowComponent, 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 }); }
|
|
464
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", 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 }); }
|
|
444
465
|
}
|
|
445
466
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DefaultWindowComponent, decorators: [{
|
|
446
467
|
type: Component,
|
|
447
|
-
args: [{ selector: 'rxap-default-window', changeDetection: ChangeDetectionStrategy.Default, template: "<rxap-window-container>\n <rxap-window-content></rxap-window-content>\n</rxap-window-container>\n" }]
|
|
468
|
+
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" }]
|
|
448
469
|
}] });
|
|
449
470
|
|
|
450
|
-
class WindowActionBarComponent {
|
|
451
|
-
constructor(context, injector) {
|
|
452
|
-
this.injector = injector;
|
|
453
|
-
this.definitions = null;
|
|
454
|
-
this.position = 'start';
|
|
455
|
-
if (context.windowRef.settings.actions) {
|
|
456
|
-
this.definitions = context.windowRef.settings.actions.definitions;
|
|
457
|
-
this.position = context.windowRef.settings.actions.position || this.position;
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowActionBarComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
461
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: WindowActionBarComponent, selector: "rxap-window-action-bar", ngImport: i0, template: "<mat-toolbar-row *ngIf=\"definitions\" class=\"container\" fxLayout=\"row\" fxLayoutAlign=\"{{position}} center\" fxLayoutGap=\".8rem\">\n <span>this feature is removed</span>\n</mat-toolbar-row>\n", styles: [".container{padding:.8rem}\n"], dependencies: [{ kind: "directive", type: i1$1.MatToolbarRow, selector: "mat-toolbar-row", exportAs: ["matToolbarRow"] }, { kind: "directive", type: i2.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: i2.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: i2.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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
462
|
-
}
|
|
463
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowActionBarComponent, decorators: [{
|
|
464
|
-
type: Component,
|
|
465
|
-
args: [{ selector: 'rxap-window-action-bar', template: "<mat-toolbar-row *ngIf=\"definitions\" class=\"container\" fxLayout=\"row\" fxLayoutAlign=\"{{position}} center\" fxLayoutGap=\".8rem\">\n <span>this feature is removed</span>\n</mat-toolbar-row>\n", styles: [".container{padding:.8rem}\n"] }]
|
|
466
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
467
|
-
type: Inject,
|
|
468
|
-
args: [RXAP_WINDOW_CONTEXT]
|
|
469
|
-
}] }, { type: i0.Injector }]; } });
|
|
470
|
-
|
|
471
|
-
const DEFAULT_WINDOW_CONFIG = {
|
|
472
|
-
resizeable: true,
|
|
473
|
-
draggable: true,
|
|
474
|
-
injector: null,
|
|
475
|
-
componentFactoryResolver: null,
|
|
476
|
-
minWidth: '384px',
|
|
477
|
-
minHeight: '192px',
|
|
478
|
-
maxWidth: '100vw',
|
|
479
|
-
maxHeight: '100vw'
|
|
480
|
-
};
|
|
481
|
-
|
|
482
471
|
class WindowService {
|
|
483
472
|
get hasActiveWindows() {
|
|
484
473
|
return this.active.size !== 0;
|
|
@@ -636,7 +625,7 @@ class WindowTaskComponent {
|
|
|
636
625
|
this.window.reopen();
|
|
637
626
|
}
|
|
638
627
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowTaskComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
639
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: WindowTaskComponent, selector: "rxap-window-task", inputs: { window: "window" }, ngImport: i0, template: "<div (click)=\"reopen()\" [ngClass]=\"{ minimized: window.isMinimized }\" class=\"container mat-elevation-z2\" fxLayout=\"row\" fxLayoutAlign=\"start center\"\n fxLayoutGap=\".5rem\">\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()\" rxapStopPropagation mat-icon-button type=\"button\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n", styles: [".container{padding:.5rem;cursor:pointer}.container.minimized{opacity:.5}\n"], dependencies: [{ kind: "
|
|
628
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", 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\" fxLayoutAlign=\"start center\"\n fxLayoutGap=\".5rem\">\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()\" rxapStopPropagation mat-icon-button type=\"button\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n", styles: [".container{padding:.5rem;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 }); }
|
|
640
629
|
}
|
|
641
630
|
__decorate([
|
|
642
631
|
Required,
|
|
@@ -644,7 +633,7 @@ __decorate([
|
|
|
644
633
|
], WindowTaskComponent.prototype, "window", void 0);
|
|
645
634
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowTaskComponent, decorators: [{
|
|
646
635
|
type: Component,
|
|
647
|
-
args: [{ selector: 'rxap-window-task', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div (click)=\"reopen()\" [ngClass]=\"{ minimized: window.isMinimized }\" class=\"container mat-elevation-z2\" fxLayout=\"row\" fxLayoutAlign=\"start center\"\n fxLayoutGap=\".5rem\">\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()\" rxapStopPropagation mat-icon-button type=\"button\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n", styles: [".container{padding:.5rem;cursor:pointer}.container.minimized{opacity:.5}\n"] }]
|
|
636
|
+
args: [{ selector: 'rxap-window-task', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [FlexModule, NgClass, ExtendedModule, NgIf, MatIconModule, IconDirective, MatButtonModule, StopPropagationDirective, AsyncPipe], template: "<div (click)=\"reopen()\" [ngClass]=\"{ minimized: window.isMinimized }\" class=\"container mat-elevation-z2\" fxLayout=\"row\" fxLayoutAlign=\"start center\"\n fxLayoutGap=\".5rem\">\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()\" rxapStopPropagation mat-icon-button type=\"button\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n", styles: [".container{padding:.5rem;cursor:pointer}.container.minimized{opacity:.5}\n"] }]
|
|
648
637
|
}], propDecorators: { window: [{
|
|
649
638
|
type: Input
|
|
650
639
|
}] } });
|
|
@@ -662,11 +651,11 @@ class WindowTaskBarComponent {
|
|
|
662
651
|
this.subscriptions.unsubscribe();
|
|
663
652
|
}
|
|
664
653
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowTaskBarComponent, deps: [{ token: WindowService }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
665
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: WindowTaskBarComponent, 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: "
|
|
654
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", 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 }); }
|
|
666
655
|
}
|
|
667
656
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowTaskBarComponent, decorators: [{
|
|
668
657
|
type: Component,
|
|
669
|
-
args: [{ selector: 'rxap-window-task-bar', changeDetection: ChangeDetectionStrategy.OnPush, 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" }]
|
|
658
|
+
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" }]
|
|
670
659
|
}], ctorParameters: function () { return [{ type: WindowService, decorators: [{
|
|
671
660
|
type: Inject,
|
|
672
661
|
args: [WindowService]
|
|
@@ -687,11 +676,11 @@ class WindowTaskBarContainerComponent {
|
|
|
687
676
|
}
|
|
688
677
|
}
|
|
689
678
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowTaskBarContainerComponent, deps: [{ token: WindowService }, { token: RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
690
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: WindowTaskBarContainerComponent, 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:1.6rem}\n"], dependencies: [{ kind: "directive", type:
|
|
679
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", 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:1.6rem}\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" }] }); }
|
|
691
680
|
}
|
|
692
681
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowTaskBarContainerComponent, decorators: [{
|
|
693
682
|
type: Component,
|
|
694
|
-
args: [{ selector: 'rxap-window-task-bar-container', 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:1.6rem}\n"] }]
|
|
683
|
+
args: [{ selector: 'rxap-window-task-bar-container', standalone: true, imports: [NgIf, FlexModule, MatButtonModule, MatBadgeModule, MatIconModule, MatToolbarModule, ExtendedModule, WindowTaskBarComponent], 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:1.6rem}\n"] }]
|
|
695
684
|
}], ctorParameters: function () { return [{ type: WindowService, decorators: [{
|
|
696
685
|
type: Inject,
|
|
697
686
|
args: [WindowService]
|
|
@@ -702,110 +691,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
702
691
|
args: [RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS]
|
|
703
692
|
}] }]; } });
|
|
704
693
|
|
|
705
|
-
class WindowTaskBarModule {
|
|
706
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowTaskBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
707
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: WindowTaskBarModule, declarations: [WindowTaskBarComponent, WindowTaskComponent, WindowTaskBarContainerComponent], imports: [CommonModule,
|
|
708
|
-
FlexLayoutModule,
|
|
709
|
-
MatIconModule,
|
|
710
|
-
MatToolbarModule,
|
|
711
|
-
MatBadgeModule,
|
|
712
|
-
MatLegacyButtonModule,
|
|
713
|
-
StopPropagationDirectiveModule,
|
|
714
|
-
IconDirectiveModule], exports: [WindowTaskBarComponent, WindowTaskBarContainerComponent] }); }
|
|
715
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowTaskBarModule, imports: [CommonModule,
|
|
716
|
-
FlexLayoutModule,
|
|
717
|
-
MatIconModule,
|
|
718
|
-
MatToolbarModule,
|
|
719
|
-
MatBadgeModule,
|
|
720
|
-
MatLegacyButtonModule,
|
|
721
|
-
StopPropagationDirectiveModule,
|
|
722
|
-
IconDirectiveModule] }); }
|
|
723
|
-
}
|
|
724
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowTaskBarModule, decorators: [{
|
|
725
|
-
type: NgModule,
|
|
726
|
-
args: [{
|
|
727
|
-
declarations: [WindowTaskBarComponent, WindowTaskComponent, WindowTaskBarContainerComponent],
|
|
728
|
-
imports: [
|
|
729
|
-
CommonModule,
|
|
730
|
-
FlexLayoutModule,
|
|
731
|
-
MatIconModule,
|
|
732
|
-
MatToolbarModule,
|
|
733
|
-
MatBadgeModule,
|
|
734
|
-
MatLegacyButtonModule,
|
|
735
|
-
StopPropagationDirectiveModule,
|
|
736
|
-
IconDirectiveModule
|
|
737
|
-
],
|
|
738
|
-
exports: [WindowTaskBarComponent, WindowTaskBarContainerComponent]
|
|
739
|
-
}]
|
|
740
|
-
}] });
|
|
741
|
-
|
|
742
|
-
class RxapWindowSystemModule {
|
|
743
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RxapWindowSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
744
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: RxapWindowSystemModule, declarations: [WindowContainerComponent,
|
|
745
|
-
WindowToolBarComponent,
|
|
746
|
-
WindowResizerComponent,
|
|
747
|
-
DefaultWindowComponent,
|
|
748
|
-
WindowContentComponent,
|
|
749
|
-
WindowActionBarComponent], imports: [MatToolbarModule,
|
|
750
|
-
FlexLayoutModule,
|
|
751
|
-
CommonModule,
|
|
752
|
-
DragDropModule,
|
|
753
|
-
MatIconModule,
|
|
754
|
-
MatLegacyButtonModule,
|
|
755
|
-
OverlayModule,
|
|
756
|
-
PortalModule,
|
|
757
|
-
MatLegacyProgressBarModule,
|
|
758
|
-
IconDirectiveModule], exports: [WindowContainerComponent,
|
|
759
|
-
WindowToolBarComponent,
|
|
760
|
-
WindowResizerComponent,
|
|
761
|
-
DefaultWindowComponent,
|
|
762
|
-
WindowContentComponent,
|
|
763
|
-
WindowTaskBarModule] }); }
|
|
764
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RxapWindowSystemModule, imports: [MatToolbarModule,
|
|
765
|
-
FlexLayoutModule,
|
|
766
|
-
CommonModule,
|
|
767
|
-
DragDropModule,
|
|
768
|
-
MatIconModule,
|
|
769
|
-
MatLegacyButtonModule,
|
|
770
|
-
OverlayModule,
|
|
771
|
-
PortalModule,
|
|
772
|
-
MatLegacyProgressBarModule,
|
|
773
|
-
IconDirectiveModule, WindowTaskBarModule] }); }
|
|
774
|
-
}
|
|
775
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RxapWindowSystemModule, decorators: [{
|
|
776
|
-
type: NgModule,
|
|
777
|
-
args: [{
|
|
778
|
-
imports: [
|
|
779
|
-
MatToolbarModule,
|
|
780
|
-
FlexLayoutModule,
|
|
781
|
-
CommonModule,
|
|
782
|
-
DragDropModule,
|
|
783
|
-
MatIconModule,
|
|
784
|
-
MatLegacyButtonModule,
|
|
785
|
-
OverlayModule,
|
|
786
|
-
PortalModule,
|
|
787
|
-
MatLegacyProgressBarModule,
|
|
788
|
-
IconDirectiveModule
|
|
789
|
-
],
|
|
790
|
-
declarations: [
|
|
791
|
-
WindowContainerComponent,
|
|
792
|
-
WindowToolBarComponent,
|
|
793
|
-
WindowResizerComponent,
|
|
794
|
-
DefaultWindowComponent,
|
|
795
|
-
WindowContentComponent,
|
|
796
|
-
WindowActionBarComponent
|
|
797
|
-
],
|
|
798
|
-
exports: [
|
|
799
|
-
WindowContainerComponent,
|
|
800
|
-
WindowToolBarComponent,
|
|
801
|
-
WindowResizerComponent,
|
|
802
|
-
DefaultWindowComponent,
|
|
803
|
-
WindowContentComponent,
|
|
804
|
-
WindowTaskBarModule
|
|
805
|
-
]
|
|
806
|
-
}]
|
|
807
|
-
}] });
|
|
808
|
-
|
|
809
694
|
class WindowFooterDirective {
|
|
810
695
|
/**
|
|
811
696
|
* Asserts the correct type of the context for the template that `NgForOf` will render.
|
|
@@ -827,12 +712,13 @@ class WindowFooterDirective {
|
|
|
827
712
|
}));
|
|
828
713
|
}
|
|
829
714
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowFooterDirective, deps: [{ token: RXAP_WINDOW_REF }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
830
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: WindowFooterDirective, selector: "[rxapWindowFooter]", ngImport: i0 }); }
|
|
715
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: WindowFooterDirective, isStandalone: true, selector: "[rxapWindowFooter]", ngImport: i0 }); }
|
|
831
716
|
}
|
|
832
717
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowFooterDirective, decorators: [{
|
|
833
718
|
type: Directive,
|
|
834
719
|
args: [{
|
|
835
720
|
selector: '[rxapWindowFooter]',
|
|
721
|
+
standalone: true
|
|
836
722
|
}]
|
|
837
723
|
}], ctorParameters: function () { return [{ type: WindowRef, decorators: [{
|
|
838
724
|
type: Inject,
|
|
@@ -844,18 +730,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
844
730
|
type: Inject,
|
|
845
731
|
args: [ViewContainerRef]
|
|
846
732
|
}] }]; } });
|
|
847
|
-
class WindowFooterDirectiveModule {
|
|
848
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowFooterDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
849
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: WindowFooterDirectiveModule, declarations: [WindowFooterDirective], exports: [WindowFooterDirective] }); }
|
|
850
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowFooterDirectiveModule }); }
|
|
851
|
-
}
|
|
852
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowFooterDirectiveModule, decorators: [{
|
|
853
|
-
type: NgModule,
|
|
854
|
-
args: [{
|
|
855
|
-
declarations: [WindowFooterDirective],
|
|
856
|
-
exports: [WindowFooterDirective]
|
|
857
|
-
}]
|
|
858
|
-
}] });
|
|
859
733
|
|
|
860
734
|
class WindowTitleDirective {
|
|
861
735
|
/**
|
|
@@ -878,12 +752,13 @@ class WindowTitleDirective {
|
|
|
878
752
|
}));
|
|
879
753
|
}
|
|
880
754
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowTitleDirective, deps: [{ token: RXAP_WINDOW_REF }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
881
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: WindowTitleDirective, selector: "[rxapWindowTitle]", ngImport: i0 }); }
|
|
755
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: WindowTitleDirective, isStandalone: true, selector: "[rxapWindowTitle]", ngImport: i0 }); }
|
|
882
756
|
}
|
|
883
757
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowTitleDirective, decorators: [{
|
|
884
758
|
type: Directive,
|
|
885
759
|
args: [{
|
|
886
|
-
selector: '[rxapWindowTitle]'
|
|
760
|
+
selector: '[rxapWindowTitle]',
|
|
761
|
+
standalone: true
|
|
887
762
|
}]
|
|
888
763
|
}], ctorParameters: function () { return [{ type: WindowRef, decorators: [{
|
|
889
764
|
type: Inject,
|
|
@@ -895,22 +770,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
895
770
|
type: Inject,
|
|
896
771
|
args: [ViewContainerRef]
|
|
897
772
|
}] }]; } });
|
|
898
|
-
class WindowTitleDirectiveModule {
|
|
899
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowTitleDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
900
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: WindowTitleDirectiveModule, declarations: [WindowTitleDirective], exports: [WindowTitleDirective] }); }
|
|
901
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowTitleDirectiveModule }); }
|
|
902
|
-
}
|
|
903
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: WindowTitleDirectiveModule, decorators: [{
|
|
904
|
-
type: NgModule,
|
|
905
|
-
args: [{
|
|
906
|
-
declarations: [WindowTitleDirective],
|
|
907
|
-
exports: [WindowTitleDirective]
|
|
908
|
-
}]
|
|
909
|
-
}] });
|
|
910
773
|
|
|
911
774
|
/**
|
|
912
775
|
* Generated bundle index. Do not edit.
|
|
913
776
|
*/
|
|
914
777
|
|
|
915
|
-
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,
|
|
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 };
|
|
916
779
|
//# sourceMappingURL=rxap-window-system.mjs.map
|