@rxap/window-system 16.0.0-dev.9 → 16.0.1-dev.0
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 +93 -0
- package/README.md +1 -1
- package/esm2022/lib/window-action-bar/window-action-bar.component.mjs +3 -5
- package/esm2022/lib/window-config.mjs +4 -3
- package/esm2022/lib/window-container/window-container.component.mjs +10 -16
- package/esm2022/lib/window-ref.mjs +22 -1
- package/esm2022/lib/window-resizer/window-resizer.component.mjs +6 -13
- package/esm2022/lib/window-task-bar/window-task/window-task.component.mjs +7 -18
- package/esm2022/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.mjs +11 -16
- package/esm2022/lib/window-task-bar/window-task-bar.component.mjs +5 -7
- package/esm2022/lib/window-tool-bar/window-tool-bar.component.mjs +3 -3
- package/esm2022/lib/window.service.mjs +2 -2
- package/fesm2022/rxap-window-system.mjs +51 -45
- package/fesm2022/rxap-window-system.mjs.map +1 -1
- package/lib/window-config.d.ts +1 -1
- package/lib/window-ref.d.ts +10 -3
- 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/package.json +36 -36
- package/theme.css +1 -1
- package/src/lib/window-container/_window-container.component.theme.scss +0 -22
|
@@ -3,31 +3,26 @@ import { OverlayConfig, Overlay } from '@angular/cdk/overlay';
|
|
|
3
3
|
import * as i2 from '@angular/cdk/portal';
|
|
4
4
|
import { TemplatePortal, ComponentPortal, CdkPortalOutlet, PortalModule } from '@angular/cdk/portal';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { InjectionToken, ComponentRef, isDevMode, Component, ChangeDetectionStrategy, Inject, ViewChild, EventEmitter,
|
|
6
|
+
import { InjectionToken, ComponentRef, isDevMode, Component, ChangeDetectionStrategy, Inject, ViewChild, EventEmitter, Input, Output, InjectFlags, ContentChild, HostBinding, Injector, ViewContainerRef, ComponentFactoryResolver, Injectable, Optional, ChangeDetectorRef, NgModule, TemplateRef, Directive } from '@angular/core';
|
|
7
7
|
import * as i1 from '@rxap/services';
|
|
8
8
|
import { LoadingIndicatorService } from '@rxap/services';
|
|
9
|
-
import {
|
|
9
|
+
import { GenerateRandomString } from '@rxap/utilities';
|
|
10
10
|
import { isObservable, TimeoutError, throwError, Subscription, fromEvent, Subject, BehaviorSubject, ReplaySubject, merge } from 'rxjs';
|
|
11
11
|
import { startWith, take, tap, filter, delay, timeout, catchError, switchMap, takeUntil, map, finalize } from 'rxjs/operators';
|
|
12
12
|
import { isDefined } from '@rxap/rxjs';
|
|
13
13
|
import { CdkDrag, CdkDragHandle } from '@angular/cdk/drag-drop';
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import * as i2$1 from '@angular/flex-layout/extended';
|
|
17
|
-
import { ExtendedModule } from '@angular/flex-layout/extended';
|
|
18
|
-
import * as i3 from '@angular/material/icon';
|
|
14
|
+
import { AsyncPipe, NgClass, NgIf, NgStyle, NgFor } from '@angular/common';
|
|
15
|
+
import * as i1$1 from '@angular/material/icon';
|
|
19
16
|
import { MatIconModule } from '@angular/material/icon';
|
|
20
|
-
import * as
|
|
17
|
+
import * as i3 from '@angular/material/progress-bar';
|
|
21
18
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
22
|
-
import * as i1$
|
|
19
|
+
import * as i1$2 from '@angular/material/toolbar';
|
|
23
20
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
24
21
|
import * as i4 from '@angular/material/button';
|
|
25
22
|
import { MatButtonModule } from '@angular/material/button';
|
|
26
23
|
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';
|
|
29
24
|
import { StopPropagationDirective } from '@rxap/directives';
|
|
30
|
-
import * as
|
|
25
|
+
import * as i2$1 from '@angular/material/badge';
|
|
31
26
|
import { MatBadgeModule } from '@angular/material/badge';
|
|
32
27
|
|
|
33
28
|
const RXAP_WINDOW_CONTEXT = new InjectionToken('rxap/core/window/WINDOW_CONTEXT');
|
|
@@ -148,20 +143,17 @@ class WindowResizerComponent {
|
|
|
148
143
|
}), finalize(() => this.resizing$.emit(false))))).subscribe());
|
|
149
144
|
}
|
|
150
145
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowResizerComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
151
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowResizerComponent, isStandalone: true, selector: "rxap-window-resizer", inputs: { containerRef: "containerRef" }, outputs: { width$: "width", height$: "height", resizing$: "resizing" }, viewQueries: [{ propertyName: "resizerRef", first: true, predicate: ["resizer"], descendants: true, static: true }], ngImport: i0, template: "<div #resizer class=\"resizer\">\n <mat-icon [
|
|
146
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowResizerComponent, isStandalone: true, selector: "rxap-window-resizer", inputs: { containerRef: "containerRef" }, outputs: { width$: "width", height$: "height", resizing$: "resizing" }, viewQueries: [{ propertyName: "resizerRef", first: true, predicate: ["resizer"], descendants: true, static: true }], ngImport: i0, template: "<div #resizer class=\"resizer\">\n <mat-icon [ngClass]=\"{ hide: (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 }); }
|
|
152
147
|
}
|
|
153
|
-
__decorate([
|
|
154
|
-
Required,
|
|
155
|
-
__metadata("design:type", ElementRef)
|
|
156
|
-
], WindowResizerComponent.prototype, "containerRef", void 0);
|
|
157
148
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowResizerComponent, decorators: [{
|
|
158
149
|
type: Component,
|
|
159
|
-
args: [{ selector: 'rxap-window-resizer', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatIconModule,
|
|
150
|
+
args: [{ selector: 'rxap-window-resizer', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatIconModule, AsyncPipe, NgClass], template: "<div #resizer class=\"resizer\">\n <mat-icon [ngClass]=\"{ hide: (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"] }]
|
|
160
151
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
161
152
|
type: Inject,
|
|
162
153
|
args: [RXAP_WINDOW_CONTEXT]
|
|
163
154
|
}] }]; }, propDecorators: { containerRef: [{
|
|
164
|
-
type: Input
|
|
155
|
+
type: Input,
|
|
156
|
+
args: [{ required: true }]
|
|
165
157
|
}], resizerRef: [{
|
|
166
158
|
type: ViewChild,
|
|
167
159
|
args: ['resizer', { static: true }]
|
|
@@ -231,6 +223,27 @@ class WindowRef extends Subject {
|
|
|
231
223
|
*/
|
|
232
224
|
this.oldSizes = null;
|
|
233
225
|
}
|
|
226
|
+
get id() {
|
|
227
|
+
return this.settings.id;
|
|
228
|
+
}
|
|
229
|
+
get minimizable() {
|
|
230
|
+
return this.settings.minimizable;
|
|
231
|
+
}
|
|
232
|
+
get draggable() {
|
|
233
|
+
return this.settings.draggable;
|
|
234
|
+
}
|
|
235
|
+
get minWidth() {
|
|
236
|
+
return this.settings.minWidth;
|
|
237
|
+
}
|
|
238
|
+
get minHeight() {
|
|
239
|
+
return this.settings.minHeight;
|
|
240
|
+
}
|
|
241
|
+
get maxWidth() {
|
|
242
|
+
return this.settings.maxWidth;
|
|
243
|
+
}
|
|
244
|
+
get maxHeight() {
|
|
245
|
+
return this.settings.maxHeight;
|
|
246
|
+
}
|
|
234
247
|
get isMinimized() {
|
|
235
248
|
return this.overlayRef.hostElement.style.display === 'none';
|
|
236
249
|
}
|
|
@@ -367,7 +380,7 @@ class WindowToolBarComponent {
|
|
|
367
380
|
this.windowRef = context.windowRef;
|
|
368
381
|
}
|
|
369
382
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowToolBarComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
370
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowToolBarComponent, isStandalone: true, selector: "rxap-window-tool-bar", ngImport: i0, template: "<mat-toolbar class=\"header 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.
|
|
383
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowToolBarComponent, isStandalone: true, selector: "rxap-window-tool-bar", ngImport: i0, template: "<mat-toolbar class=\"header 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 }); }
|
|
371
384
|
}
|
|
372
385
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowToolBarComponent, decorators: [{
|
|
373
386
|
type: Component,
|
|
@@ -379,7 +392,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
|
|
|
379
392
|
IconDirective,
|
|
380
393
|
MatButtonModule,
|
|
381
394
|
AsyncPipe,
|
|
382
|
-
], 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.
|
|
395
|
+
], 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"] }]
|
|
383
396
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
384
397
|
type: Inject,
|
|
385
398
|
args: [RXAP_WINDOW_CONTEXT]
|
|
@@ -405,7 +418,7 @@ class WindowContainerComponent {
|
|
|
405
418
|
this.windowRef.setPos(pos.left + 'px', pos.top + 'px');
|
|
406
419
|
}
|
|
407
420
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowContainerComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }, { token: RXAP_WINDOW_REF }, { token: LoadingIndicatorService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
408
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowContainerComponent, isStandalone: true, selector: "rxap-window-container", host: { properties: { "attr.data-id": "this.id" }, classAttribute: "rxap-window-container" }, queries: [{ propertyName: "footerContent", first: true, predicate: ["[footer]"], descendants: true, static: true }], viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["container"], descendants: true, static: true }, { propertyName: "windowContainerResizer", first: true, predicate: WindowResizerComponent, descendants: true, static: true }], ngImport: i0, template: "<div #container\n (cdkDragEnded)=\"onDragEnded($event)\"\n [cdkDragDisabled]=\"windowRef.
|
|
421
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowContainerComponent, isStandalone: true, selector: "rxap-window-container", host: { properties: { "attr.data-id": "this.id" }, classAttribute: "rxap-window-container" }, queries: [{ propertyName: "footerContent", first: true, predicate: ["[footer]"], descendants: true, static: true }], viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["container"], descendants: true, static: true }, { propertyName: "windowContainerResizer", first: true, predicate: WindowResizerComponent, descendants: true, static: true }], ngImport: i0, template: "<div #container\n (cdkDragEnded)=\"onDragEnded($event)\"\n [cdkDragDisabled]=\"windowRef.draggable === false\"\n [ngStyle]=\"{\n 'width': width$ | async,\n 'height': height$ | async,\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=\"window-container mat-elevation-z4 mat-drawer-container flex flex-col\">\n\n <div cdkDragHandle class=\"tool-bar grow-0\">\n <rxap-window-tool-bar></rxap-window-tool-bar>\n </div>\n\n <div class=\"content grow\">\n <ng-content></ng-content>\n </div>\n\n <mat-toolbar *ngIf=\"windowRef.footerPortal$ | async as footerPortal\" class=\"footer mat-elevation-z1 grow-0\">\n <ng-template [cdkPortalOutlet]=\"footerPortal\"></ng-template>\n </mat-toolbar>\n\n <mat-progress-bar *ngIf=\"windowInstance.isLoading$ | async\" mode=\"indeterminate\"></mat-progress-bar>\n\n <rxap-window-resizer [containerRef]=\"containerRef\"></rxap-window-resizer>\n\n</div>\n", styles: [".window-container{cursor:move;position:relative;z-index:1;max-height:100vh;max-width:100vw}.window-container:active{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.window-container .tool-bar{width:100%}.window-container .content{overflow:auto;width:100%}.window-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: "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$2.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 }); }
|
|
409
422
|
}
|
|
410
423
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowContainerComponent, decorators: [{
|
|
411
424
|
type: Component,
|
|
@@ -413,8 +426,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
|
|
|
413
426
|
class: 'rxap-window-container',
|
|
414
427
|
}, standalone: true, imports: [
|
|
415
428
|
CdkDrag,
|
|
416
|
-
FlexModule,
|
|
417
|
-
ExtendedModule,
|
|
418
429
|
NgStyle,
|
|
419
430
|
CdkDragHandle,
|
|
420
431
|
WindowToolBarComponent,
|
|
@@ -424,7 +435,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
|
|
|
424
435
|
MatProgressBarModule,
|
|
425
436
|
WindowResizerComponent,
|
|
426
437
|
AsyncPipe,
|
|
427
|
-
], template: "<div #container\n (cdkDragEnded)=\"onDragEnded($event)\"\n [cdkDragDisabled]=\"windowRef.
|
|
438
|
+
], template: "<div #container\n (cdkDragEnded)=\"onDragEnded($event)\"\n [cdkDragDisabled]=\"windowRef.draggable === false\"\n [ngStyle]=\"{\n 'width': width$ | async,\n 'height': height$ | async,\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=\"window-container mat-elevation-z4 mat-drawer-container flex flex-col\">\n\n <div cdkDragHandle class=\"tool-bar grow-0\">\n <rxap-window-tool-bar></rxap-window-tool-bar>\n </div>\n\n <div class=\"content grow\">\n <ng-content></ng-content>\n </div>\n\n <mat-toolbar *ngIf=\"windowRef.footerPortal$ | async as footerPortal\" class=\"footer mat-elevation-z1 grow-0\">\n <ng-template [cdkPortalOutlet]=\"footerPortal\"></ng-template>\n </mat-toolbar>\n\n <mat-progress-bar *ngIf=\"windowInstance.isLoading$ | async\" mode=\"indeterminate\"></mat-progress-bar>\n\n <rxap-window-resizer [containerRef]=\"containerRef\"></rxap-window-resizer>\n\n</div>\n", styles: [".window-container{cursor:move;position:relative;z-index:1;max-height:100vh;max-width:100vw}.window-container:active{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.window-container .tool-bar{width:100%}.window-container .content{overflow:auto;width:100%}.window-container .footer{width:100%;height:64px}\n"] }]
|
|
428
439
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
429
440
|
type: Inject,
|
|
430
441
|
args: [RXAP_WINDOW_CONTEXT]
|
|
@@ -464,8 +475,9 @@ const DEFAULT_WINDOW_CONFIG = {
|
|
|
464
475
|
componentFactoryResolver: null,
|
|
465
476
|
minWidth: '384px',
|
|
466
477
|
minHeight: '192px',
|
|
467
|
-
maxWidth: '
|
|
468
|
-
maxHeight: '
|
|
478
|
+
maxWidth: '90vw',
|
|
479
|
+
maxHeight: '90vh',
|
|
480
|
+
minimizable: false,
|
|
469
481
|
};
|
|
470
482
|
|
|
471
483
|
class WindowService {
|
|
@@ -570,7 +582,7 @@ class WindowService {
|
|
|
570
582
|
return result;
|
|
571
583
|
}
|
|
572
584
|
add(windowRef) {
|
|
573
|
-
this.active.set(windowRef.
|
|
585
|
+
this.active.set(windowRef.id, windowRef);
|
|
574
586
|
this.activeCount$.next(this.active.size);
|
|
575
587
|
}
|
|
576
588
|
createOverlay({ panelClass, width, height, minHeight, minWidth, maxHeight, maxWidth, }) {
|
|
@@ -624,27 +636,22 @@ class WindowTaskComponent {
|
|
|
624
636
|
this.window.reopen();
|
|
625
637
|
}
|
|
626
638
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowTaskComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
627
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowTaskComponent, isStandalone: true, selector: "rxap-window-task", inputs: { window: "window" }, ngImport: i0, template: "<div (click)=\"reopen()\" [ngClass]=\"{ minimized: window.isMinimized }\"
|
|
639
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowTaskComponent, isStandalone: true, selector: "rxap-window-task", inputs: { window: "window" }, ngImport: i0, template: "<div (click)=\"reopen()\" [ngClass]=\"{ minimized: window.isMinimized }\"\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]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: StopPropagationDirective, selector: "[rxapStopPropagation]" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
628
640
|
}
|
|
629
|
-
__decorate([
|
|
630
|
-
Required,
|
|
631
|
-
__metadata("design:type", WindowRef)
|
|
632
|
-
], WindowTaskComponent.prototype, "window", void 0);
|
|
633
641
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowTaskComponent, decorators: [{
|
|
634
642
|
type: Component,
|
|
635
643
|
args: [{ selector: 'rxap-window-task', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
636
|
-
FlexModule,
|
|
637
644
|
NgClass,
|
|
638
|
-
ExtendedModule,
|
|
639
645
|
NgIf,
|
|
640
646
|
MatIconModule,
|
|
641
647
|
IconDirective,
|
|
642
648
|
MatButtonModule,
|
|
643
649
|
StopPropagationDirective,
|
|
644
650
|
AsyncPipe,
|
|
645
|
-
], template: "<div (click)=\"reopen()\" [ngClass]=\"{ minimized: window.isMinimized }\"
|
|
651
|
+
], 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"] }]
|
|
646
652
|
}], propDecorators: { window: [{
|
|
647
|
-
type: Input
|
|
653
|
+
type: Input,
|
|
654
|
+
args: [{ required: true }]
|
|
648
655
|
}] } });
|
|
649
656
|
|
|
650
657
|
class WindowTaskBarComponent {
|
|
@@ -660,11 +667,11 @@ class WindowTaskBarComponent {
|
|
|
660
667
|
this.subscriptions.unsubscribe();
|
|
661
668
|
}
|
|
662
669
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowTaskBarComponent, deps: [{ token: WindowService }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
663
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowTaskBarComponent, isStandalone: true, selector: "rxap-window-task-bar", ngImport: i0, template: "<div class=\"tasks
|
|
670
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowTaskBarComponent, isStandalone: true, selector: "rxap-window-task-bar", ngImport: i0, template: "<div class=\"tasks 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 }); }
|
|
664
671
|
}
|
|
665
672
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowTaskBarComponent, decorators: [{
|
|
666
673
|
type: Component,
|
|
667
|
-
args: [{ selector: 'rxap-window-task-bar', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
674
|
+
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" }]
|
|
668
675
|
}], ctorParameters: function () { return [{ type: WindowService, decorators: [{
|
|
669
676
|
type: Inject,
|
|
670
677
|
args: [WindowService]
|
|
@@ -685,20 +692,19 @@ class WindowTaskBarContainerComponent {
|
|
|
685
692
|
}
|
|
686
693
|
}
|
|
687
694
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowTaskBarContainerComponent, deps: [{ token: WindowService }, { token: RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
688
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowTaskBarContainerComponent, isStandalone: true, selector: "rxap-window-task-bar-container", ngImport: i0, template: "<div *ngIf=\"windowService.hasActiveWindows\" class=\"container
|
|
695
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowTaskBarContainerComponent, isStandalone: true, selector: "rxap-window-task-bar-container", ngImport: i0, template: "<div *ngIf=\"windowService.hasActiveWindows\" class=\"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]=\"{ hide: !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]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatBadgeModule }, { kind: "directive", type: i2$1.MatBadge, selector: "[matBadge]", inputs: ["matBadgeDisabled", "matBadgeColor", "matBadgeOverlap", "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$2.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"] }] }); }
|
|
689
696
|
}
|
|
690
697
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowTaskBarContainerComponent, decorators: [{
|
|
691
698
|
type: Component,
|
|
692
699
|
args: [{ selector: 'rxap-window-task-bar-container', standalone: true, imports: [
|
|
693
700
|
NgIf,
|
|
694
|
-
FlexModule,
|
|
695
701
|
MatButtonModule,
|
|
696
702
|
MatBadgeModule,
|
|
697
703
|
MatIconModule,
|
|
698
704
|
MatToolbarModule,
|
|
699
|
-
ExtendedModule,
|
|
700
705
|
WindowTaskBarComponent,
|
|
701
|
-
|
|
706
|
+
NgClass,
|
|
707
|
+
], 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]=\"{ hide: !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"] }]
|
|
702
708
|
}], ctorParameters: function () { return [{ type: WindowService, decorators: [{
|
|
703
709
|
type: Inject,
|
|
704
710
|
args: [WindowService]
|
|
@@ -815,11 +821,11 @@ class WindowActionBarComponent {
|
|
|
815
821
|
}
|
|
816
822
|
}
|
|
817
823
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowActionBarComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
818
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowActionBarComponent, isStandalone: true, selector: "rxap-window-action-bar", ngImport: i0, template: "<mat-toolbar-row *ngIf=\"definitions\" class=\"
|
|
824
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: WindowActionBarComponent, isStandalone: true, selector: "rxap-window-action-bar", ngImport: i0, template: "<mat-toolbar-row *ngIf=\"definitions\" class=\"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"] }] }); }
|
|
819
825
|
}
|
|
820
826
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: WindowActionBarComponent, decorators: [{
|
|
821
827
|
type: Component,
|
|
822
|
-
args: [{ selector: 'rxap-window-action-bar', standalone: true, imports: [NgIf, MatToolbarModule
|
|
828
|
+
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" }]
|
|
823
829
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
824
830
|
type: Inject,
|
|
825
831
|
args: [RXAP_WINDOW_CONTEXT]
|