@rxap/window-system 16.0.3 → 17.0.1
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 +8 -0
- package/README.md +1 -1
- package/esm2022/index.mjs +36 -12
- package/esm2022/lib/default-window/default-window.component.mjs +4 -4
- package/esm2022/lib/utilities.mjs +1 -1
- package/esm2022/lib/window-action-bar/window-action-bar.component.mjs +6 -6
- package/esm2022/lib/window-container/window-container.component.mjs +4 -4
- package/esm2022/lib/window-content/window-content.component.mjs +6 -6
- package/esm2022/lib/window-footer.directive.mjs +6 -6
- package/esm2022/lib/window-instance.service.mjs +23 -0
- package/esm2022/lib/window-ref.mjs +1 -1
- package/esm2022/lib/window-resizer/window-resizer.component.mjs +6 -6
- package/esm2022/lib/window-system.module.mjs +5 -5
- package/esm2022/lib/window-task-bar/window-task/window-task.component.mjs +4 -4
- package/esm2022/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.mjs +6 -6
- package/esm2022/lib/window-task-bar/window-task-bar.component.mjs +6 -6
- package/esm2022/lib/window-task-bar/window-task-bar.module.mjs +5 -5
- package/esm2022/lib/window-title.directive.mjs +4 -4
- package/esm2022/lib/window-tool-bar/window-tool-bar.component.mjs +6 -6
- package/esm2022/lib/window.service.mjs +6 -6
- package/fesm2022/rxap-window-system.mjs +151 -130
- package/fesm2022/rxap-window-system.mjs.map +1 -1
- package/index.d.ts +15 -11
- package/lib/window-instance.service.d.ts +12 -0
- package/package.json +26 -26
|
@@ -1,27 +1,27 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, Component, ChangeDetectionStrategy, Inject, ComponentRef, isDevMode, ViewChild, EventEmitter, Input, Output, inject, INJECTOR, runInInjectionContext, ContentChild, HostBinding, InjectFlags, Injector, ViewContainerRef, ComponentFactoryResolver, Injectable, Optional, ChangeDetectorRef, NgModule, TemplateRef, Directive } from '@angular/core';
|
|
3
|
+
import * as i4 from '@angular/material/button';
|
|
4
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
5
|
+
import { IconDirective } from '@rxap/material-directives/icon';
|
|
6
|
+
import * as i1$1 from '@angular/material/icon';
|
|
7
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
8
|
+
import * as i2 from '@angular/cdk/portal';
|
|
9
|
+
import { PortalModule, TemplatePortal, ComponentPortal, CdkPortalOutlet } from '@angular/cdk/portal';
|
|
10
|
+
import { NgIf, AsyncPipe, NgClass, NgStyle, NgFor } from '@angular/common';
|
|
11
|
+
import * as i1 from '@angular/material/toolbar';
|
|
12
|
+
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
1
13
|
import * as i1$3 from '@angular/cdk/overlay';
|
|
2
14
|
import { OverlayConfig, Overlay } from '@angular/cdk/overlay';
|
|
3
|
-
import * as
|
|
4
|
-
import { TemplatePortal, ComponentPortal, CdkPortalOutlet, PortalModule } from '@angular/cdk/portal';
|
|
5
|
-
import * as i0 from '@angular/core';
|
|
6
|
-
import { InjectionToken, ComponentRef, isDevMode, Component, ChangeDetectionStrategy, Inject, ViewChild, EventEmitter, Input, Output, inject, INJECTOR, runInInjectionContext, ContentChild, HostBinding, InjectFlags, Injector, ViewContainerRef, ComponentFactoryResolver, Injectable, Optional, ChangeDetectorRef, NgModule, TemplateRef, Directive } from '@angular/core';
|
|
7
|
-
import * as i1 from '@rxap/services';
|
|
15
|
+
import * as i1$2 from '@rxap/services';
|
|
8
16
|
import { LoadingIndicatorService } from '@rxap/services';
|
|
9
17
|
import { GenerateRandomString } from '@rxap/utilities';
|
|
10
18
|
import { isObservable, TimeoutError, throwError, Subscription, fromEvent, merge, Subject, BehaviorSubject, ReplaySubject } from 'rxjs';
|
|
11
19
|
import { startWith, take, tap, filter, delay, timeout, catchError, switchMap, takeUntil, map, finalize } from 'rxjs/operators';
|
|
12
|
-
import { isDefined } from '@rxap/rxjs';
|
|
20
|
+
import { isDefined, ToggleSubject } from '@rxap/rxjs';
|
|
13
21
|
import { CdkDrag, CdkDragHandle } from '@angular/cdk/drag-drop';
|
|
14
|
-
import { AsyncPipe, NgClass, NgIf, NgStyle, NgFor } from '@angular/common';
|
|
15
22
|
import { toSignal } from '@angular/core/rxjs-interop';
|
|
16
23
|
import * as i3 from '@angular/material/progress-bar';
|
|
17
24
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
18
|
-
import * as i1$2 from '@angular/material/toolbar';
|
|
19
|
-
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
20
|
-
import * as i1$1 from '@angular/material/icon';
|
|
21
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
22
|
-
import * as i4 from '@angular/material/button';
|
|
23
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
24
|
-
import { IconDirective } from '@rxap/material-directives/icon';
|
|
25
25
|
import { StopPropagationDirective } from '@rxap/directives';
|
|
26
26
|
import * as i2$1 from '@angular/material/badge';
|
|
27
27
|
import { MatBadgeModule } from '@angular/material/badge';
|
|
@@ -33,6 +33,29 @@ const RXAP_WINDOW_REF = new InjectionToken('rxap/window-system/WINDOW_REF');
|
|
|
33
33
|
const RXAP_WINDOW_SETTINGS = new InjectionToken('rxap/window-system/window-settings');
|
|
34
34
|
const RXAP_WINDOW_DEFAULT_SETTINGS = new InjectionToken('rxap/window-system/default-window-settings');
|
|
35
35
|
|
|
36
|
+
class WindowToolBarComponent {
|
|
37
|
+
constructor(context) {
|
|
38
|
+
this.windowRef = context.windowRef;
|
|
39
|
+
}
|
|
40
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowToolBarComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
41
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: WindowToolBarComponent, isStandalone: true, selector: "rxap-window-tool-bar", ngImport: i0, template: "<mat-toolbar class=\"header flex flex-row items-center justify-between gap-x-4\">\n <div class=\"flex flex-row justify-end items-center gap-x-3\">\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\"></mat-icon>\n <h3 *ngIf=\"settings.title\">{{settings.title}}</h3>\n </ng-template>\n </ng-template>\n </div>\n <div class=\"flex flex-row justify-end items-center\">\n <button (click)=\"windowRef.minimize()\" *ngIf=\"windowRef.minimizable !== false\"\n mat-icon-button type=\"button\">\n <mat-icon>minimize</mat-icon>\n </button>\n <button (click)=\"windowRef.fullScreen()\" mat-icon-button type=\"button\">\n <mat-icon>fullscreen</mat-icon>\n </button>\n <button (click)=\"windowRef.complete()\" 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.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { 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: i1$1.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: i4.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
|
|
42
|
+
}
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowToolBarComponent, decorators: [{
|
|
44
|
+
type: Component,
|
|
45
|
+
args: [{ selector: 'rxap-window-tool-bar', changeDetection: ChangeDetectionStrategy.Default, standalone: true, imports: [
|
|
46
|
+
MatToolbarModule,
|
|
47
|
+
NgIf,
|
|
48
|
+
PortalModule,
|
|
49
|
+
MatIconModule,
|
|
50
|
+
IconDirective,
|
|
51
|
+
MatButtonModule,
|
|
52
|
+
AsyncPipe,
|
|
53
|
+
], template: "<mat-toolbar class=\"header flex flex-row items-center justify-between gap-x-4\">\n <div class=\"flex flex-row justify-end items-center gap-x-3\">\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\"></mat-icon>\n <h3 *ngIf=\"settings.title\">{{settings.title}}</h3>\n </ng-template>\n </ng-template>\n </div>\n <div class=\"flex flex-row justify-end items-center\">\n <button (click)=\"windowRef.minimize()\" *ngIf=\"windowRef.minimizable !== false\"\n mat-icon-button type=\"button\">\n <mat-icon>minimize</mat-icon>\n </button>\n <button (click)=\"windowRef.fullScreen()\" mat-icon-button type=\"button\">\n <mat-icon>fullscreen</mat-icon>\n </button>\n <button (click)=\"windowRef.complete()\" 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"] }]
|
|
54
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
55
|
+
type: Inject,
|
|
56
|
+
args: [RXAP_WINDOW_CONTEXT]
|
|
57
|
+
}] }] });
|
|
58
|
+
|
|
36
59
|
class WindowContentComponent {
|
|
37
60
|
constructor(context, windowRef, injector, viewContainerRef, loadingIndicatorService) {
|
|
38
61
|
this.windowRef = windowRef;
|
|
@@ -80,19 +103,19 @@ class WindowContentComponent {
|
|
|
80
103
|
return throwError(error);
|
|
81
104
|
})).subscribe();
|
|
82
105
|
}
|
|
83
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
84
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
106
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", 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 }); }
|
|
107
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: WindowContentComponent, isStandalone: true, selector: "rxap-window-content", viewQueries: [{ propertyName: "portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true }], ngImport: i0, template: "<div class=\"p-4\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
|
|
85
108
|
}
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowContentComponent, decorators: [{
|
|
87
110
|
type: Component,
|
|
88
111
|
args: [{ selector: 'rxap-window-content', changeDetection: ChangeDetectionStrategy.Default, standalone: true, imports: [PortalModule], template: "<div class=\"p-4\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n</div>\n" }]
|
|
89
|
-
}], ctorParameters:
|
|
112
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
90
113
|
type: Inject,
|
|
91
114
|
args: [RXAP_WINDOW_CONTAINER_CONTEXT]
|
|
92
115
|
}] }, { type: undefined, decorators: [{
|
|
93
116
|
type: Inject,
|
|
94
117
|
args: [RXAP_WINDOW_REF]
|
|
95
|
-
}] }, { type: i0.Injector }, { type: i0.ViewContainerRef }, { type: i1.LoadingIndicatorService }]
|
|
118
|
+
}] }, { type: i0.Injector }, { type: i0.ViewContainerRef }, { type: i1$2.LoadingIndicatorService }], propDecorators: { portalOutlet: [{
|
|
96
119
|
type: ViewChild,
|
|
97
120
|
args: [CdkPortalOutlet]
|
|
98
121
|
}] } });
|
|
@@ -143,16 +166,16 @@ class WindowResizerComponent {
|
|
|
143
166
|
this.windowRef.setWidth(size.width);
|
|
144
167
|
}), finalize(() => this.resizing$.emit(false))))).subscribe());
|
|
145
168
|
}
|
|
146
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
147
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
169
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowResizerComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
170
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", 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 [ngClass]=\"{ hidden: (resizing$ | async) === false }\">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: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
148
171
|
}
|
|
149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowResizerComponent, decorators: [{
|
|
150
173
|
type: Component,
|
|
151
174
|
args: [{ selector: 'rxap-window-resizer', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatIconModule, AsyncPipe, NgClass], template: "<div #resizer class=\"resizer\">\n <mat-icon [ngClass]=\"{ hidden: (resizing$ | async) === false }\">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"] }]
|
|
152
|
-
}], ctorParameters:
|
|
175
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
153
176
|
type: Inject,
|
|
154
177
|
args: [RXAP_WINDOW_CONTEXT]
|
|
155
|
-
}] }]
|
|
178
|
+
}] }], propDecorators: { containerRef: [{
|
|
156
179
|
type: Input,
|
|
157
180
|
args: [{ required: true }]
|
|
158
181
|
}], resizerRef: [{
|
|
@@ -169,29 +192,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
169
192
|
args: ['resizing']
|
|
170
193
|
}] } });
|
|
171
194
|
|
|
172
|
-
class WindowToolBarComponent {
|
|
173
|
-
constructor(context) {
|
|
174
|
-
this.windowRef = context.windowRef;
|
|
175
|
-
}
|
|
176
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowToolBarComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
177
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: WindowToolBarComponent, isStandalone: true, selector: "rxap-window-tool-bar", ngImport: i0, template: "<mat-toolbar class=\"header flex flex-row items-center justify-between gap-x-4\">\n <div class=\"flex flex-row justify-end items-center gap-x-3\">\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\"></mat-icon>\n <h3 *ngIf=\"settings.title\">{{settings.title}}</h3>\n </ng-template>\n </ng-template>\n </div>\n <div class=\"flex flex-row justify-end items-center\">\n <button (click)=\"windowRef.minimize()\" *ngIf=\"windowRef.minimizable !== false\"\n mat-icon-button type=\"button\">\n <mat-icon>minimize</mat-icon>\n </button>\n <button (click)=\"windowRef.fullScreen()\" mat-icon-button type=\"button\">\n <mat-icon>fullscreen</mat-icon>\n </button>\n <button (click)=\"windowRef.complete()\" 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$2.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { 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: i1$1.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: i4.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
|
|
178
|
-
}
|
|
179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowToolBarComponent, decorators: [{
|
|
180
|
-
type: Component,
|
|
181
|
-
args: [{ selector: 'rxap-window-tool-bar', changeDetection: ChangeDetectionStrategy.Default, standalone: true, imports: [
|
|
182
|
-
MatToolbarModule,
|
|
183
|
-
NgIf,
|
|
184
|
-
PortalModule,
|
|
185
|
-
MatIconModule,
|
|
186
|
-
IconDirective,
|
|
187
|
-
MatButtonModule,
|
|
188
|
-
AsyncPipe,
|
|
189
|
-
], template: "<mat-toolbar class=\"header flex flex-row items-center justify-between gap-x-4\">\n <div class=\"flex flex-row justify-end items-center gap-x-3\">\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\"></mat-icon>\n <h3 *ngIf=\"settings.title\">{{settings.title}}</h3>\n </ng-template>\n </ng-template>\n </div>\n <div class=\"flex flex-row justify-end items-center\">\n <button (click)=\"windowRef.minimize()\" *ngIf=\"windowRef.minimizable !== false\"\n mat-icon-button type=\"button\">\n <mat-icon>minimize</mat-icon>\n </button>\n <button (click)=\"windowRef.fullScreen()\" mat-icon-button type=\"button\">\n <mat-icon>fullscreen</mat-icon>\n </button>\n <button (click)=\"windowRef.complete()\" 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"] }]
|
|
190
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
191
|
-
type: Inject,
|
|
192
|
-
args: [RXAP_WINDOW_CONTEXT]
|
|
193
|
-
}] }]; } });
|
|
194
|
-
|
|
195
195
|
class WindowContainerComponent {
|
|
196
196
|
constructor() {
|
|
197
197
|
this.injector = inject(INJECTOR);
|
|
@@ -214,10 +214,10 @@ class WindowContainerComponent {
|
|
|
214
214
|
$event.source.reset();
|
|
215
215
|
this.windowRef.setPos(pos.left + 'px', pos.top + 'px');
|
|
216
216
|
}
|
|
217
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
218
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
217
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
218
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", 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.draggable === false\"\n [ngStyle]=\"{\n 'width': width(),\n 'height': height(),\n 'minWidth': windowRef.minWidth,\n 'minHeight': windowRef.minHeight,\n 'maxWidth': windowRef.maxWidth,\n 'maxHeight': windowRef.maxHeight\n }\"\n cdkDrag\n cdkDragBoundary=\".cdk-overlay-container\"\n class=\"mat-elevation-z4 mat-drawer-container z-[1]\">\n <div class=\"flex flex-col h-full max-h-full\">\n\n <div cdkDragHandle class=\"grow-0 w-full h-[64px] min-h-[64px] cursor-move\">\n <rxap-window-tool-bar></rxap-window-tool-bar>\n </div>\n\n <div class=\"grow overflow-auto w-full\">\n <ng-content></ng-content>\n </div>\n\n <mat-toolbar *ngIf=\"windowRef.footerPortal$ | async as footerPortal\"\n class=\"mat-elevation-z1 grow-0 w-full h-[64px] min-h-[64px]\">\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 </div>\n</div>\n", styles: [""], 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: "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.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: i3.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 }); }
|
|
219
219
|
}
|
|
220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowContainerComponent, decorators: [{
|
|
221
221
|
type: Component,
|
|
222
222
|
args: [{ selector: 'rxap-window-container', changeDetection: ChangeDetectionStrategy.Default, host: {
|
|
223
223
|
class: 'rxap-window-container',
|
|
@@ -248,10 +248,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
248
248
|
}] } });
|
|
249
249
|
|
|
250
250
|
class DefaultWindowComponent {
|
|
251
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
252
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
251
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: DefaultWindowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
252
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", 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 }); }
|
|
253
253
|
}
|
|
254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
254
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: DefaultWindowComponent, decorators: [{
|
|
255
255
|
type: Component,
|
|
256
256
|
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" }]
|
|
257
257
|
}] });
|
|
@@ -601,13 +601,13 @@ class WindowService {
|
|
|
601
601
|
});
|
|
602
602
|
return this.overlay.create(overlayConfig);
|
|
603
603
|
}
|
|
604
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
605
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
604
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowService, deps: [{ token: Injector }, { token: Overlay }, { token: ComponentFactoryResolver }, { token: RXAP_WINDOW_DEFAULT_SETTINGS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
605
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowService, providedIn: 'root' }); }
|
|
606
606
|
}
|
|
607
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
607
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowService, decorators: [{
|
|
608
608
|
type: Injectable,
|
|
609
609
|
args: [{ providedIn: 'root' }]
|
|
610
|
-
}], ctorParameters:
|
|
610
|
+
}], ctorParameters: () => [{ type: i0.Injector, decorators: [{
|
|
611
611
|
type: Inject,
|
|
612
612
|
args: [Injector]
|
|
613
613
|
}] }, { type: i1$3.Overlay, decorators: [{
|
|
@@ -621,7 +621,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
621
621
|
}, {
|
|
622
622
|
type: Inject,
|
|
623
623
|
args: [RXAP_WINDOW_DEFAULT_SETTINGS]
|
|
624
|
-
}] }]
|
|
624
|
+
}] }] });
|
|
625
625
|
|
|
626
626
|
class WindowTaskComponent {
|
|
627
627
|
close() {
|
|
@@ -630,10 +630,10 @@ class WindowTaskComponent {
|
|
|
630
630
|
reopen() {
|
|
631
631
|
this.window.reopen();
|
|
632
632
|
}
|
|
633
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
634
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
633
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowTaskComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
634
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: WindowTaskComponent, isStandalone: true, selector: "rxap-window-task", inputs: { window: "window" }, ngImport: i0, template: "<div (click)=\"reopen()\" [ngClass]=\"{ minimized: window.isMinimized }\"\n class=\"rxap-container mat-elevation-z2 flex flex-row justify-start items-center gap-2\">\n <ng-template [ngIf]=\"window.settings$ | async\" let-settings>\n <mat-icon *ngIf=\"settings.icon\" [rxapIcon]=\"settings.icon\"></mat-icon>\n <h3 *ngIf=\"settings.title\" class=\"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: [".rxap-container{padding:5px;cursor:pointer}.rxap-container.minimized{opacity:.5}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.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: i4.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: StopPropagationDirective, selector: "[rxapStopPropagation]" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
635
635
|
}
|
|
636
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
636
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowTaskComponent, decorators: [{
|
|
637
637
|
type: Component,
|
|
638
638
|
args: [{ selector: 'rxap-window-task', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
639
639
|
NgClass,
|
|
@@ -661,19 +661,19 @@ class WindowTaskBarComponent {
|
|
|
661
661
|
ngOnDestroy() {
|
|
662
662
|
this.subscriptions.unsubscribe();
|
|
663
663
|
}
|
|
664
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
665
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
664
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowTaskBarComponent, deps: [{ token: WindowService }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
665
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: WindowTaskBarComponent, isStandalone: true, selector: "rxap-window-task-bar", ngImport: i0, template: "<div class=\"tasks grow-0 flex flex-row flex-wrap\">\n <rxap-window-task *ngFor=\"let window of windowService.allActiveWindows\"\n [window]=\"window\"\n class=\"grow-0\">\n </rxap-window-task>\n</div>\n", styles: [""], dependencies: [{ 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
666
|
}
|
|
667
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
667
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowTaskBarComponent, decorators: [{
|
|
668
668
|
type: Component,
|
|
669
669
|
args: [{ selector: 'rxap-window-task-bar', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgFor, WindowTaskComponent], template: "<div class=\"tasks grow-0 flex flex-row flex-wrap\">\n <rxap-window-task *ngFor=\"let window of windowService.allActiveWindows\"\n [window]=\"window\"\n class=\"grow-0\">\n </rxap-window-task>\n</div>\n" }]
|
|
670
|
-
}], ctorParameters:
|
|
670
|
+
}], ctorParameters: () => [{ type: WindowService, decorators: [{
|
|
671
671
|
type: Inject,
|
|
672
672
|
args: [WindowService]
|
|
673
673
|
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
674
674
|
type: Inject,
|
|
675
675
|
args: [ChangeDetectorRef]
|
|
676
|
-
}] }]
|
|
676
|
+
}] }] });
|
|
677
677
|
|
|
678
678
|
const RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS = new InjectionToken('rxap/window-system/task-bar-container');
|
|
679
679
|
class WindowTaskBarContainerComponent {
|
|
@@ -686,10 +686,10 @@ class WindowTaskBarContainerComponent {
|
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
690
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
689
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", 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: "17.1.3", type: WindowTaskBarContainerComponent, isStandalone: true, selector: "rxap-window-task-bar-container", ngImport: i0, template: "<div *ngIf=\"windowService.hasActiveWindows\" class=\"rxap-container flex flex-col\">\n <div class=\"flex flex-row justify-end items-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 [ngClass]=\"{ hidden: !expand }\" class=\"tasks\">\n <rxap-window-task-bar></rxap-window-task-bar>\n </mat-toolbar>\n</div>\n", styles: [".rxap-container .pin{border:none;border-radius:50% 50% 0 0;cursor:pointer}.rxap-container .tasks{height:auto;padding:16px}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatBadgeModule }, { kind: "directive", type: i2$1.MatBadge, selector: "[matBadge]", inputs: ["matBadgeColor", "matBadgeOverlap", "matBadgeDisabled", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: WindowTaskBarComponent, selector: "rxap-window-task-bar" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
691
691
|
}
|
|
692
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowTaskBarContainerComponent, decorators: [{
|
|
693
693
|
type: Component,
|
|
694
694
|
args: [{ selector: 'rxap-window-task-bar-container', standalone: true, imports: [
|
|
695
695
|
NgIf,
|
|
@@ -700,7 +700,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
700
700
|
WindowTaskBarComponent,
|
|
701
701
|
NgClass,
|
|
702
702
|
], template: "<div *ngIf=\"windowService.hasActiveWindows\" class=\"rxap-container flex flex-col\">\n <div class=\"flex flex-row justify-end items-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 [ngClass]=\"{ hidden: !expand }\" class=\"tasks\">\n <rxap-window-task-bar></rxap-window-task-bar>\n </mat-toolbar>\n</div>\n", styles: [".rxap-container .pin{border:none;border-radius:50% 50% 0 0;cursor:pointer}.rxap-container .tasks{height:auto;padding:16px}\n"] }]
|
|
703
|
-
}], ctorParameters:
|
|
703
|
+
}], ctorParameters: () => [{ type: WindowService, decorators: [{
|
|
704
704
|
type: Inject,
|
|
705
705
|
args: [WindowService]
|
|
706
706
|
}] }, { type: undefined, decorators: [{
|
|
@@ -708,14 +708,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
708
708
|
}, {
|
|
709
709
|
type: Inject,
|
|
710
710
|
args: [RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS]
|
|
711
|
-
}] }]
|
|
711
|
+
}] }] });
|
|
712
712
|
|
|
713
713
|
class WindowTaskBarModule {
|
|
714
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
715
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
716
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
714
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowTaskBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
715
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.3", ngImport: i0, type: WindowTaskBarModule, imports: [WindowTaskBarComponent, WindowTaskComponent, WindowTaskBarContainerComponent], exports: [WindowTaskBarComponent, WindowTaskBarContainerComponent] }); }
|
|
716
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowTaskBarModule, imports: [WindowTaskBarComponent, WindowTaskComponent, WindowTaskBarContainerComponent] }); }
|
|
717
717
|
}
|
|
718
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
718
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowTaskBarModule, decorators: [{
|
|
719
719
|
type: NgModule,
|
|
720
720
|
args: [{
|
|
721
721
|
imports: [
|
|
@@ -725,6 +725,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
725
725
|
}]
|
|
726
726
|
}] });
|
|
727
727
|
|
|
728
|
+
class WindowActionBarComponent {
|
|
729
|
+
constructor(context, injector) {
|
|
730
|
+
this.injector = injector;
|
|
731
|
+
this.definitions = null;
|
|
732
|
+
this.position = 'start';
|
|
733
|
+
if (context.windowRef.settings.actions) {
|
|
734
|
+
this.definitions = context.windowRef.settings.actions.definitions;
|
|
735
|
+
this.position = context.windowRef.settings.actions.position || this.position;
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowActionBarComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
739
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: WindowActionBarComponent, isStandalone: true, selector: "rxap-window-action-bar", ngImport: i0, template: "<mat-toolbar-row *ngIf=\"definitions\" class=\"p-2 flex flex-row gap-2 justify-{{position}} items-center\">\n <span>this feature is removed</span>\n</mat-toolbar-row>\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "directive", type: i1.MatToolbarRow, selector: "mat-toolbar-row", exportAs: ["matToolbarRow"] }] }); }
|
|
740
|
+
}
|
|
741
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowActionBarComponent, decorators: [{
|
|
742
|
+
type: Component,
|
|
743
|
+
args: [{ selector: 'rxap-window-action-bar', standalone: true, imports: [NgIf, MatToolbarModule], template: "<mat-toolbar-row *ngIf=\"definitions\" class=\"p-2 flex flex-row gap-2 justify-{{position}} items-center\">\n <span>this feature is removed</span>\n</mat-toolbar-row>\n" }]
|
|
744
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
745
|
+
type: Inject,
|
|
746
|
+
args: [RXAP_WINDOW_CONTEXT]
|
|
747
|
+
}] }, { type: i0.Injector }] });
|
|
748
|
+
|
|
728
749
|
class WindowFooterDirective {
|
|
729
750
|
constructor(windowRef, template, viewContainerRef) {
|
|
730
751
|
this.windowRef = windowRef;
|
|
@@ -745,16 +766,16 @@ class WindowFooterDirective {
|
|
|
745
766
|
$implicit: this.windowRef,
|
|
746
767
|
}));
|
|
747
768
|
}
|
|
748
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
749
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
769
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowFooterDirective, deps: [{ token: RXAP_WINDOW_REF }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
770
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.3", type: WindowFooterDirective, isStandalone: true, selector: "[rxapWindowFooter]", ngImport: i0 }); }
|
|
750
771
|
}
|
|
751
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
772
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowFooterDirective, decorators: [{
|
|
752
773
|
type: Directive,
|
|
753
774
|
args: [{
|
|
754
775
|
selector: '[rxapWindowFooter]',
|
|
755
776
|
standalone: true,
|
|
756
777
|
}]
|
|
757
|
-
}], ctorParameters:
|
|
778
|
+
}], ctorParameters: () => [{ type: WindowRef, decorators: [{
|
|
758
779
|
type: Inject,
|
|
759
780
|
args: [RXAP_WINDOW_REF]
|
|
760
781
|
}] }, { type: i0.TemplateRef, decorators: [{
|
|
@@ -763,64 +784,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
763
784
|
}] }, { type: i0.ViewContainerRef, decorators: [{
|
|
764
785
|
type: Inject,
|
|
765
786
|
args: [ViewContainerRef]
|
|
766
|
-
}] }]
|
|
787
|
+
}] }] });
|
|
767
788
|
|
|
768
|
-
class
|
|
789
|
+
class WindowInstanceService {
|
|
769
790
|
constructor() {
|
|
770
|
-
this.
|
|
771
|
-
this.
|
|
772
|
-
this.viewContainerRef = inject(ViewContainerRef);
|
|
791
|
+
this.loading$ = new ToggleSubject(false);
|
|
792
|
+
this._attachedLoadingSubscription = new Subscription();
|
|
773
793
|
}
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
*
|
|
777
|
-
* The presence of this method is a signal to the Ivy template type-check compiler that the
|
|
778
|
-
* `NgForOf` structural directive renders its template with a specific context type.
|
|
779
|
-
*/
|
|
780
|
-
static ngTemplateContextGuard(dir, ctx) {
|
|
781
|
-
return true;
|
|
794
|
+
attachLoading(loading$) {
|
|
795
|
+
this._attachedLoadingSubscription.add(loading$.pipe(map(Boolean), delay(0)).subscribe(this.loading$.next));
|
|
782
796
|
}
|
|
783
|
-
|
|
784
|
-
this.
|
|
785
|
-
$implicit: this.windowRef,
|
|
786
|
-
}));
|
|
797
|
+
ngOnDestroy() {
|
|
798
|
+
this._attachedLoadingSubscription.unsubscribe();
|
|
787
799
|
}
|
|
788
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
789
|
-
static { this.ɵ
|
|
800
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowInstanceService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
801
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowInstanceService }); }
|
|
790
802
|
}
|
|
791
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
792
|
-
type:
|
|
793
|
-
args: [{
|
|
794
|
-
selector: '[rxapWindowTitle]',
|
|
795
|
-
standalone: true,
|
|
796
|
-
}]
|
|
803
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowInstanceService, decorators: [{
|
|
804
|
+
type: Injectable
|
|
797
805
|
}] });
|
|
798
806
|
|
|
799
|
-
class WindowActionBarComponent {
|
|
800
|
-
constructor(context, injector) {
|
|
801
|
-
this.injector = injector;
|
|
802
|
-
this.definitions = null;
|
|
803
|
-
this.position = 'start';
|
|
804
|
-
if (context.windowRef.settings.actions) {
|
|
805
|
-
this.definitions = context.windowRef.settings.actions.definitions;
|
|
806
|
-
this.position = context.windowRef.settings.actions.position || this.position;
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowActionBarComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
810
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: WindowActionBarComponent, isStandalone: true, selector: "rxap-window-action-bar", ngImport: i0, template: "<mat-toolbar-row *ngIf=\"definitions\" class=\"p-2 flex flex-row gap-2 justify-{{position}} items-center\">\n <span>this feature is removed</span>\n</mat-toolbar-row>\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "directive", type: i1$2.MatToolbarRow, selector: "mat-toolbar-row", exportAs: ["matToolbarRow"] }] }); }
|
|
811
|
-
}
|
|
812
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WindowActionBarComponent, decorators: [{
|
|
813
|
-
type: Component,
|
|
814
|
-
args: [{ selector: 'rxap-window-action-bar', standalone: true, imports: [NgIf, MatToolbarModule], template: "<mat-toolbar-row *ngIf=\"definitions\" class=\"p-2 flex flex-row gap-2 justify-{{position}} items-center\">\n <span>this feature is removed</span>\n</mat-toolbar-row>\n" }]
|
|
815
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
816
|
-
type: Inject,
|
|
817
|
-
args: [RXAP_WINDOW_CONTEXT]
|
|
818
|
-
}] }, { type: i0.Injector }]; } });
|
|
819
|
-
|
|
820
807
|
// TODO : refactor to be used without a central module
|
|
821
808
|
class RxapWindowSystemModule {
|
|
822
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
823
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
809
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: RxapWindowSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
810
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.3", ngImport: i0, type: RxapWindowSystemModule, imports: [WindowContainerComponent,
|
|
824
811
|
WindowToolBarComponent,
|
|
825
812
|
WindowResizerComponent,
|
|
826
813
|
DefaultWindowComponent,
|
|
@@ -831,14 +818,14 @@ class RxapWindowSystemModule {
|
|
|
831
818
|
DefaultWindowComponent,
|
|
832
819
|
WindowContentComponent,
|
|
833
820
|
WindowTaskBarModule] }); }
|
|
834
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
821
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: RxapWindowSystemModule, imports: [WindowContainerComponent,
|
|
835
822
|
WindowToolBarComponent,
|
|
836
823
|
WindowResizerComponent,
|
|
837
824
|
DefaultWindowComponent,
|
|
838
825
|
WindowContentComponent,
|
|
839
826
|
WindowActionBarComponent, WindowTaskBarModule] }); }
|
|
840
827
|
}
|
|
841
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: RxapWindowSystemModule, decorators: [{
|
|
842
829
|
type: NgModule,
|
|
843
830
|
args: [{
|
|
844
831
|
imports: [
|
|
@@ -860,9 +847,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
860
847
|
}]
|
|
861
848
|
}] });
|
|
862
849
|
|
|
850
|
+
class WindowTitleDirective {
|
|
851
|
+
constructor() {
|
|
852
|
+
this.windowRef = inject(RXAP_WINDOW_REF);
|
|
853
|
+
this.template = inject(TemplateRef);
|
|
854
|
+
this.viewContainerRef = inject(ViewContainerRef);
|
|
855
|
+
}
|
|
856
|
+
/**
|
|
857
|
+
* Asserts the correct type of the context for the template that `NgForOf` will render.
|
|
858
|
+
*
|
|
859
|
+
* The presence of this method is a signal to the Ivy template type-check compiler that the
|
|
860
|
+
* `NgForOf` structural directive renders its template with a specific context type.
|
|
861
|
+
*/
|
|
862
|
+
static ngTemplateContextGuard(dir, ctx) {
|
|
863
|
+
return true;
|
|
864
|
+
}
|
|
865
|
+
ngOnInit() {
|
|
866
|
+
this.windowRef.setTitlePortal(new TemplatePortal(this.template, this.viewContainerRef, {
|
|
867
|
+
$implicit: this.windowRef,
|
|
868
|
+
}));
|
|
869
|
+
}
|
|
870
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
871
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.3", type: WindowTitleDirective, isStandalone: true, selector: "[rxapWindowTitle]", ngImport: i0 }); }
|
|
872
|
+
}
|
|
873
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: WindowTitleDirective, decorators: [{
|
|
874
|
+
type: Directive,
|
|
875
|
+
args: [{
|
|
876
|
+
selector: '[rxapWindowTitle]',
|
|
877
|
+
standalone: true,
|
|
878
|
+
}]
|
|
879
|
+
}] });
|
|
880
|
+
|
|
881
|
+
// region window-tool-bar
|
|
882
|
+
// endregion
|
|
883
|
+
|
|
863
884
|
/**
|
|
864
885
|
* Generated bundle index. Do not edit.
|
|
865
886
|
*/
|
|
866
887
|
|
|
867
|
-
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 };
|
|
888
|
+
export { DEFAULT_WINDOW_CONFIG, DefaultWindowComponent, GetWindowStartPos, 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, WindowActionBarComponent, WindowContainerComponent, WindowContentComponent, WindowFooterDirective, WindowInstanceService, WindowRef, WindowResizerComponent, WindowService, WindowTaskBarComponent, WindowTaskBarContainerComponent, WindowTaskBarModule, WindowTaskComponent, WindowTitleDirective, WindowToolBarComponent };
|
|
868
889
|
//# sourceMappingURL=rxap-window-system.mjs.map
|