@rxap/window-system 12.0.10 → 13.0.0-next.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/esm2020/index.mjs +17 -0
- package/esm2020/lib/default-window/default-window.component.mjs +13 -0
- package/esm2020/lib/tokens.mjs +8 -0
- package/esm2020/lib/utilities.mjs +24 -0
- package/esm2020/lib/window-action-bar/window-action-bar.component.mjs +28 -0
- package/esm2020/lib/window-config.mjs +11 -0
- package/esm2020/lib/window-container/window-container.component.mjs +85 -0
- package/esm2020/lib/window-content/window-content.component.mjs +74 -0
- package/esm2020/lib/window-context.mjs +2 -0
- package/esm2020/lib/window-footer.directive.mjs +57 -0
- package/esm2020/lib/window-ref.mjs +162 -0
- package/esm2020/lib/window-resizer/window-resizer.component.mjs +79 -0
- package/esm2020/lib/window-system.module.mjs +92 -0
- package/esm2020/lib/window-task-bar/window-task/window-task.component.mjs +33 -0
- package/esm2020/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.mjs +39 -0
- package/esm2020/lib/window-task-bar/window-task-bar.component.mjs +35 -0
- package/esm2020/lib/window-task-bar/window-task-bar.module.mjs +52 -0
- package/esm2020/lib/window-title.directive.mjs +57 -0
- package/esm2020/lib/window-tool-bar/window-tool-bar.component.mjs +25 -0
- package/esm2020/lib/window.service.mjs +163 -0
- package/esm2020/rxap-window-system.mjs +5 -0
- package/fesm2015/rxap-window-system.mjs +933 -0
- package/fesm2015/rxap-window-system.mjs.map +1 -0
- package/{fesm2015/rxap-window-system.js → fesm2020/rxap-window-system.mjs} +90 -126
- package/fesm2020/rxap-window-system.mjs.map +1 -0
- package/lib/window-config.d.ts +1 -0
- package/package.json +38 -23
- package/src/schematics/ng-add/index.js +1 -1
- package/src/schematics/ng-add/index.js.map +1 -1
- package/bundles/rxap-window-system.umd.js +0 -1384
- package/bundles/rxap-window-system.umd.js.map +0 -1
- package/esm2015/index.js +0 -17
- package/esm2015/index.js.map +0 -1
- package/esm2015/lib/default-window/default-window.component.js +0 -18
- package/esm2015/lib/default-window/default-window.component.js.map +0 -1
- package/esm2015/lib/tokens.js +0 -8
- package/esm2015/lib/tokens.js.map +0 -1
- package/esm2015/lib/utilities.js +0 -24
- package/esm2015/lib/utilities.js.map +0 -1
- package/esm2015/lib/window-action-bar/window-action-bar.component.js +0 -32
- package/esm2015/lib/window-action-bar/window-action-bar.component.js.map +0 -1
- package/esm2015/lib/window-config.js +0 -11
- package/esm2015/lib/window-config.js.map +0 -1
- package/esm2015/lib/window-container/window-container.component.js +0 -91
- package/esm2015/lib/window-container/window-container.component.js.map +0 -1
- package/esm2015/lib/window-content/window-content.component.js +0 -79
- package/esm2015/lib/window-content/window-content.component.js.map +0 -1
- package/esm2015/lib/window-context.js +0 -2
- package/esm2015/lib/window-context.js.map +0 -1
- package/esm2015/lib/window-footer.directive.js +0 -57
- package/esm2015/lib/window-footer.directive.js.map +0 -1
- package/esm2015/lib/window-ref.js +0 -157
- package/esm2015/lib/window-ref.js.map +0 -1
- package/esm2015/lib/window-resizer/window-resizer.component.js +0 -84
- package/esm2015/lib/window-resizer/window-resizer.component.js.map +0 -1
- package/esm2015/lib/window-system.module.js +0 -95
- package/esm2015/lib/window-system.module.js.map +0 -1
- package/esm2015/lib/window-task-bar/window-task/window-task.component.js +0 -38
- package/esm2015/lib/window-task-bar/window-task/window-task.component.js.map +0 -1
- package/esm2015/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.js +0 -43
- package/esm2015/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.js.map +0 -1
- package/esm2015/lib/window-task-bar/window-task-bar.component.js +0 -40
- package/esm2015/lib/window-task-bar/window-task-bar.component.js.map +0 -1
- package/esm2015/lib/window-task-bar/window-task-bar.module.js +0 -53
- package/esm2015/lib/window-task-bar/window-task-bar.module.js.map +0 -1
- package/esm2015/lib/window-title.directive.js +0 -57
- package/esm2015/lib/window-title.directive.js.map +0 -1
- package/esm2015/lib/window-tool-bar/window-tool-bar.component.js +0 -30
- package/esm2015/lib/window-tool-bar/window-tool-bar.component.js.map +0 -1
- package/esm2015/lib/window.service.js +0 -156
- package/esm2015/lib/window.service.js.map +0 -1
- package/esm2015/rxap-window-system.js +0 -5
- package/esm2015/rxap-window-system.js.map +0 -1
- package/fesm2015/rxap-window-system.js.map +0 -1
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { Component, Inject, ChangeDetectionStrategy, Injector, ViewContainerRef, ViewChild, ComponentRef, isDevMode } from '@angular/core';
|
|
2
|
-
import { RXAP_WINDOW_CONTAINER_CONTEXT, RXAP_WINDOW_REF } from '../tokens';
|
|
3
|
-
import { ComponentPortal, TemplatePortal, CdkPortalOutlet } from '@angular/cdk/portal';
|
|
4
|
-
import { startWith, take, tap, timeout, catchError, filter, delay } from 'rxjs/operators';
|
|
5
|
-
import { TimeoutError, throwError, isObservable } from 'rxjs';
|
|
6
|
-
import { LoadingIndicatorService } from '@rxap/services';
|
|
7
|
-
import { isDefined } from '@rxap/utilities/rxjs';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "@rxap/services";
|
|
10
|
-
import * as i2 from "@angular/cdk/portal";
|
|
11
|
-
export class WindowContentComponent {
|
|
12
|
-
constructor(context, windowRef, injector, viewContainerRef, loadingIndicatorService) {
|
|
13
|
-
this.windowRef = windowRef;
|
|
14
|
-
this.injector = injector;
|
|
15
|
-
this.viewContainerRef = viewContainerRef;
|
|
16
|
-
this.loadingIndicatorService = loadingIndicatorService;
|
|
17
|
-
this.portal = null;
|
|
18
|
-
this.context = context;
|
|
19
|
-
}
|
|
20
|
-
ngOnInit() {
|
|
21
|
-
if (this.context.template) {
|
|
22
|
-
this.portal = new TemplatePortal(this.context.template, this.viewContainerRef);
|
|
23
|
-
}
|
|
24
|
-
else if (this.context.component) {
|
|
25
|
-
this.portal = new ComponentPortal(this.context.component, this.viewContainerRef, this.injector);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
ngAfterViewInit() {
|
|
29
|
-
this.portalOutlet.attached.pipe(startWith(this.portalOutlet.attachedRef), isDefined(), take(1), tap(attachedRef => this.windowRef.setAttachedRef(attachedRef)), tap(attachedRef => {
|
|
30
|
-
const promise = [];
|
|
31
|
-
if (attachedRef instanceof ComponentRef) {
|
|
32
|
-
attachedRef.changeDetectorRef.detectChanges();
|
|
33
|
-
const loading$ = attachedRef.instance.loading$;
|
|
34
|
-
if (loading$ && isObservable(loading$)) {
|
|
35
|
-
if (isDevMode()) {
|
|
36
|
-
console.warn('The component has a loading indicator member');
|
|
37
|
-
}
|
|
38
|
-
this.loadingIndicatorService.attachLoading(loading$);
|
|
39
|
-
promise.push(loading$.pipe(filter(Boolean), take(1), delay(100), tap(() => attachedRef.changeDetectorRef.detectChanges())).toPromise());
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
this.loadingIndicatorService.disable();
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
this.loadingIndicatorService.disable();
|
|
47
|
-
}
|
|
48
|
-
return Promise.all(promise);
|
|
49
|
-
}), timeout(10000), catchError(error => {
|
|
50
|
-
if (error instanceof TimeoutError) {
|
|
51
|
-
if (isDevMode()) {
|
|
52
|
-
console.warn('The window content never resolved the attached ref');
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return throwError(error);
|
|
56
|
-
})).subscribe();
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
WindowContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", 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 });
|
|
60
|
-
WindowContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", 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:auto}.content .inner{padding:1.5rem}"], directives: [{ type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.Default });
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: WindowContentComponent, decorators: [{
|
|
62
|
-
type: Component,
|
|
63
|
-
args: [{
|
|
64
|
-
selector: 'rxap-window-content',
|
|
65
|
-
templateUrl: './window-content.component.html',
|
|
66
|
-
styleUrls: ['./window-content.component.scss'],
|
|
67
|
-
changeDetection: ChangeDetectionStrategy.Default
|
|
68
|
-
}]
|
|
69
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
70
|
-
type: Inject,
|
|
71
|
-
args: [RXAP_WINDOW_CONTAINER_CONTEXT]
|
|
72
|
-
}] }, { type: undefined, decorators: [{
|
|
73
|
-
type: Inject,
|
|
74
|
-
args: [RXAP_WINDOW_REF]
|
|
75
|
-
}] }, { type: i0.Injector }, { type: i0.ViewContainerRef }, { type: i1.LoadingIndicatorService }]; }, propDecorators: { portalOutlet: [{
|
|
76
|
-
type: ViewChild,
|
|
77
|
-
args: [CdkPortalOutlet]
|
|
78
|
-
}] } });
|
|
79
|
-
//# sourceMappingURL=window-content.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"window-content.component.js","sourceRoot":"","sources":["../../../../../../libs/window-system/src/lib/window-content/window-content.component.ts","../../../../../../libs/window-system/src/lib/window-content/window-content.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,uBAAuB,EACvB,QAAQ,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AAK,YAAY,YAAY,EAAE;gBACjC,IAAI,SAAS,EAAE,EAAE;oBACf,OAAO,CAAC,IAAI,CAAC,oDAAoD,CAAC,CAAC;iBACpE;aACF;YAED,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC;QAC3B,CAAC,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC;;mHAvEU,sBAAsB,kBAUvB,6BAA6B,aAE7B,eAAe;uGAZd,sBAAsB,yGAMtB,eAAe,gDCrD5B,oIAKA;2FD0Ca,sBAAsB;kBANlC,SAAS;mBAAC;oBACT,QAAQ,EAAS,qBAAqB;oBACtC,WAAW,EAAM,iCAAiC;oBAClD,SAAS,EAAQ,CAAE,iCAAiC,CAAE;oBACtD,eAAe,EAAE,uBAAuB,CAAC,OAAO;iBACjD;;0BAWI,MAAM;2BAAC,6BAA6B;;0BAEpC,MAAM;2BAAC,eAAe;wIALlB,YAAY;sBADlB,SAAS;uBAAC,eAAe","sourcesContent":["import {\n Component,\n Inject,\n ChangeDetectionStrategy,\n Injector,\n ViewContainerRef,\n ViewChild,\n AfterViewInit,\n ComponentRef,\n isDevMode,\n OnInit\n} from '@angular/core';\nimport {\n RXAP_WINDOW_CONTAINER_CONTEXT,\n RXAP_WINDOW_REF\n} from '../tokens';\nimport { WindowContainerContext } from '../window-context';\nimport {\n ComponentPortal,\n Portal,\n TemplatePortal,\n CdkPortalOutlet\n} from '@angular/cdk/portal';\nimport type { WindowRef } from '../window-ref';\nimport {\n startWith,\n take,\n tap,\n timeout,\n catchError,\n filter,\n delay\n} from 'rxjs/operators';\nimport {\n TimeoutError,\n throwError,\n isObservable\n} from 'rxjs';\nimport { LoadingIndicatorService } from '@rxap/services';\nimport { isDefined } from '@rxap/utilities/rxjs';\n\n@Component({\n selector: 'rxap-window-content',\n templateUrl: './window-content.component.html',\n styleUrls: [ './window-content.component.scss' ],\n changeDetection: ChangeDetectionStrategy.Default\n})\nexport class WindowContentComponent implements AfterViewInit, OnInit {\n\n public context: WindowContainerContext<any>;\n\n public portal: Portal<any> | null = null;\n\n @ViewChild(CdkPortalOutlet)\n public portalOutlet!: CdkPortalOutlet;\n\n constructor(\n @Inject(RXAP_WINDOW_CONTAINER_CONTEXT)\n context: any,\n @Inject(RXAP_WINDOW_REF)\n private readonly windowRef: WindowRef,\n private readonly injector: Injector,\n private readonly viewContainerRef: ViewContainerRef,\n private readonly loadingIndicatorService: LoadingIndicatorService\n ) {\n this.context = context;\n }\n\n public ngOnInit() {\n if (this.context.template) {\n this.portal = new TemplatePortal(this.context.template, this.viewContainerRef);\n } else if (this.context.component) {\n this.portal = new ComponentPortal<any>(this.context.component, this.viewContainerRef, this.injector);\n }\n }\n\n public ngAfterViewInit() {\n this.portalOutlet.attached.pipe(\n startWith(this.portalOutlet.attachedRef),\n isDefined(),\n take(1),\n tap(attachedRef => this.windowRef.setAttachedRef(attachedRef)),\n tap(attachedRef => {\n const promise: Promise<any>[] = [];\n if (attachedRef instanceof ComponentRef) {\n attachedRef.changeDetectorRef.detectChanges();\n const loading$ = attachedRef.instance.loading$;\n if (loading$ && isObservable(loading$)) {\n if (isDevMode()) {\n console.warn('The component has a loading indicator member');\n }\n this.loadingIndicatorService.attachLoading(loading$);\n promise.push(loading$.pipe(\n filter(Boolean),\n take(1),\n delay(100),\n tap(() => attachedRef.changeDetectorRef.detectChanges())\n ).toPromise());\n } else {\n this.loadingIndicatorService.disable();\n }\n } else {\n this.loadingIndicatorService.disable();\n }\n return Promise.all(promise);\n }),\n timeout(10000),\n catchError(error => {\n\n if (error instanceof TimeoutError) {\n if (isDevMode()) {\n console.warn('The window content never resolved the attached ref');\n }\n }\n\n return throwError(error);\n })\n ).subscribe();\n }\n\n}\n","<div class=\"content\">\n <div class=\"inner\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n </div>\n</div>\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"window-context.js","sourceRoot":"","sources":["../../../../../libs/window-system/src/lib/window-context.ts"],"names":[],"mappings":"","sourcesContent":["import {\n OverlayRef,\n ComponentType\n} from '@angular/cdk/overlay';\nimport { WindowRef } from './window-ref';\nimport { TemplateRef } from '@angular/core';\n\nexport interface WindowContext<D> {\n overlayRef: OverlayRef;\n windowRef: WindowRef<D>;\n data?: D;\n id: string;\n}\n\nexport interface WindowContainerContext<T> {\n component?: ComponentType<T>;\n template?: TemplateRef<T>;\n}\n"]}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Directive, Inject, TemplateRef, NgModule, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { WindowRef } from './window-ref';
|
|
3
|
-
import { RXAP_WINDOW_REF } from './tokens';
|
|
4
|
-
import { TemplatePortal } from '@angular/cdk/portal';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "./window-ref";
|
|
7
|
-
export class WindowFooterDirective {
|
|
8
|
-
constructor(windowRef, template, viewContainerRef) {
|
|
9
|
-
this.windowRef = windowRef;
|
|
10
|
-
this.template = template;
|
|
11
|
-
this.viewContainerRef = viewContainerRef;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Asserts the correct type of the context for the template that `NgForOf` will render.
|
|
15
|
-
*
|
|
16
|
-
* The presence of this method is a signal to the Ivy template type-check compiler that the
|
|
17
|
-
* `NgForOf` structural directive renders its template with a specific context type.
|
|
18
|
-
*/
|
|
19
|
-
static ngTemplateContextGuard(dir, ctx) {
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
ngOnInit() {
|
|
23
|
-
this.windowRef.setFooterPortal(new TemplatePortal(this.template, this.viewContainerRef, {
|
|
24
|
-
$implicit: this.windowRef,
|
|
25
|
-
}));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
WindowFooterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: WindowFooterDirective, deps: [{ token: RXAP_WINDOW_REF }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
29
|
-
WindowFooterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: WindowFooterDirective, selector: "[rxapWindowFooter]", ngImport: i0 });
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: WindowFooterDirective, decorators: [{
|
|
31
|
-
type: Directive,
|
|
32
|
-
args: [{
|
|
33
|
-
selector: '[rxapWindowFooter]',
|
|
34
|
-
}]
|
|
35
|
-
}], ctorParameters: function () { return [{ type: i1.WindowRef, decorators: [{
|
|
36
|
-
type: Inject,
|
|
37
|
-
args: [RXAP_WINDOW_REF]
|
|
38
|
-
}] }, { type: i0.TemplateRef, decorators: [{
|
|
39
|
-
type: Inject,
|
|
40
|
-
args: [TemplateRef]
|
|
41
|
-
}] }, { type: i0.ViewContainerRef, decorators: [{
|
|
42
|
-
type: Inject,
|
|
43
|
-
args: [ViewContainerRef]
|
|
44
|
-
}] }]; } });
|
|
45
|
-
export class WindowFooterDirectiveModule {
|
|
46
|
-
}
|
|
47
|
-
WindowFooterDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: WindowFooterDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
48
|
-
WindowFooterDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: WindowFooterDirectiveModule, declarations: [WindowFooterDirective], exports: [WindowFooterDirective] });
|
|
49
|
-
WindowFooterDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: WindowFooterDirectiveModule });
|
|
50
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: WindowFooterDirectiveModule, decorators: [{
|
|
51
|
-
type: NgModule,
|
|
52
|
-
args: [{
|
|
53
|
-
declarations: [WindowFooterDirective],
|
|
54
|
-
exports: [WindowFooterDirective]
|
|
55
|
-
}]
|
|
56
|
-
}] });
|
|
57
|
-
//# sourceMappingURL=window-footer.directive.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"window-footer.directive.js","sourceRoot":"","sources":["../../../../../libs/window-system/src/lib/window-footer.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,WAAW,EAEX,QAAQ,EACR,gBAAgB,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;;;AASrD,MAAM,OAAO,qBAAqB;IAahC,YAEmB,SAAoB,EAEpB,QAAkD,EAElD,gBAAkC;QAJlC,cAAS,GAAT,SAAS,CAAW;QAEpB,aAAQ,GAAR,QAAQ,CAA0C;QAElD,qBAAgB,GAAhB,gBAAgB,CAAkB;IACjD,CAAC;IAlBL;;;;;OAKG;IACH,MAAM,CAAC,sBAAsB,CAAC,GAA0B,EAAE,GAAQ;QAEhE,OAAO,IAAI,CAAC;IACd,CAAC;IAWM,QAAQ;QACb,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,IAAI,cAAc,CAC/C,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,gBAAgB,EACrB;YACE,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CACF,CAAC,CAAC;IACL,CAAC;;kHA9BU,qBAAqB,kBActB,eAAe,aAEf,WAAW,aAEX,gBAAgB;sGAlBf,qBAAqB;2FAArB,qBAAqB;kBAHjC,SAAS;mBAAC;oBACT,QAAQ,EAAE,oBAAoB;iBAC/B;;0BAeI,MAAM;2BAAC,eAAe;;0BAEtB,MAAM;2BAAC,WAAW;;0BAElB,MAAM;2BAAC,gBAAgB;;AAoB5B,MAAM,OAAO,2BAA2B;;wHAA3B,2BAA2B;yHAA3B,2BAA2B,iBAtC3B,qBAAqB,aAArB,qBAAqB;yHAsCrB,2BAA2B;2FAA3B,2BAA2B;kBAJvC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;oBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;iBACjC","sourcesContent":["import {\n Directive,\n Inject,\n TemplateRef,\n OnInit,\n NgModule,\n ViewContainerRef\n} from '@angular/core';\nimport { WindowRef } from './window-ref';\nimport { RXAP_WINDOW_REF } from './tokens';\nimport { TemplatePortal } from '@angular/cdk/portal';\n\nexport interface WindowFooterTemplateContext {\n $implicit: WindowRef;\n}\n\n@Directive({\n selector: '[rxapWindowFooter]',\n})\nexport class WindowFooterDirective implements OnInit {\n\n /**\n * Asserts the correct type of the context for the template that `NgForOf` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `NgForOf` structural directive renders its template with a specific context type.\n */\n static ngTemplateContextGuard(dir: WindowFooterDirective, ctx: any):\n ctx is WindowFooterTemplateContext {\n return true;\n }\n\n constructor(\n @Inject(RXAP_WINDOW_REF)\n private readonly windowRef: WindowRef,\n @Inject(TemplateRef)\n private readonly template: TemplateRef<WindowFooterTemplateContext>,\n @Inject(ViewContainerRef)\n private readonly viewContainerRef: ViewContainerRef,\n ) { }\n\n public ngOnInit() {\n this.windowRef.setFooterPortal(new TemplatePortal<WindowFooterTemplateContext>(\n this.template,\n this.viewContainerRef,\n {\n $implicit: this.windowRef,\n }\n ));\n }\n\n}\n\n@NgModule({\n declarations: [WindowFooterDirective],\n exports: [WindowFooterDirective]\n})\nexport class WindowFooterDirectiveModule {}\n"]}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject, Subject, ReplaySubject } from 'rxjs';
|
|
2
|
-
import { GetWindowStartPos } from './utilities';
|
|
3
|
-
import { ComponentRef, InjectFlags } from '@angular/core';
|
|
4
|
-
import { RXAP_WINDOW_SETTINGS } from './tokens';
|
|
5
|
-
export class WindowRef extends Subject {
|
|
6
|
-
constructor(overlayRef, overlay, settings) {
|
|
7
|
-
super();
|
|
8
|
-
this.overlayRef = overlayRef;
|
|
9
|
-
this.overlay = overlay;
|
|
10
|
-
this.settings = settings;
|
|
11
|
-
this.width$ = new BehaviorSubject(this.getWidth());
|
|
12
|
-
this.height$ = new BehaviorSubject(this.getHeight());
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated removed. use the subscribe method and wait for the resolve event
|
|
15
|
-
*/
|
|
16
|
-
this.closed$ = new Subject();
|
|
17
|
-
this.attachedRef$ = new ReplaySubject(1);
|
|
18
|
-
/**
|
|
19
|
-
* stores the window size before fullScreen
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
this.oldSizes = null;
|
|
23
|
-
/**
|
|
24
|
-
* @internal
|
|
25
|
-
*/
|
|
26
|
-
this.footerPortal$ = new ReplaySubject(1);
|
|
27
|
-
/**
|
|
28
|
-
* @internal
|
|
29
|
-
*/
|
|
30
|
-
this.titlePortal$ = new ReplaySubject(1);
|
|
31
|
-
this.settings$ = new ReplaySubject(1);
|
|
32
|
-
}
|
|
33
|
-
get isMinimized() {
|
|
34
|
-
return this.overlayRef.hostElement.style.display === 'none';
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated removed. use the complete method
|
|
38
|
-
* @param result
|
|
39
|
-
*/
|
|
40
|
-
close(result) {
|
|
41
|
-
this.closed$.next(result);
|
|
42
|
-
if (result !== undefined) {
|
|
43
|
-
this.next(result);
|
|
44
|
-
}
|
|
45
|
-
this.complete();
|
|
46
|
-
}
|
|
47
|
-
complete() {
|
|
48
|
-
this.overlayRef.dispose();
|
|
49
|
-
super.complete();
|
|
50
|
-
}
|
|
51
|
-
minimize() {
|
|
52
|
-
this.overlayRef.hostElement.style.display = 'none';
|
|
53
|
-
}
|
|
54
|
-
reopen() {
|
|
55
|
-
const startPos = GetWindowStartPos();
|
|
56
|
-
this.setPos(startPos.left, startPos.top);
|
|
57
|
-
this.overlayRef.hostElement.style.display = 'flex';
|
|
58
|
-
}
|
|
59
|
-
getSizeConfig() {
|
|
60
|
-
const config = this.overlayRef.getConfig();
|
|
61
|
-
return {
|
|
62
|
-
width: config.width,
|
|
63
|
-
height: config.height,
|
|
64
|
-
minHeight: config.minHeight,
|
|
65
|
-
minWidth: config.minWidth,
|
|
66
|
-
maxHeight: config.maxHeight,
|
|
67
|
-
maxWidth: config.maxWidth
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
setWidth(width) {
|
|
71
|
-
this.overlayRef.updateSize(Object.assign(Object.assign({}, this.getSizeConfig()), { width }));
|
|
72
|
-
this.width$.next(width);
|
|
73
|
-
}
|
|
74
|
-
setHeight(height) {
|
|
75
|
-
this.overlayRef.updateSize(Object.assign(Object.assign({}, this.getSizeConfig()), { height }));
|
|
76
|
-
this.height$.next(height);
|
|
77
|
-
}
|
|
78
|
-
getWidth() {
|
|
79
|
-
// tslint:disable-next-line:no-non-null-assertion
|
|
80
|
-
return this.getSizeConfig().width + '';
|
|
81
|
-
// return this.overlayRef.overlayElement.offsetWidth + 'px'
|
|
82
|
-
}
|
|
83
|
-
getHeight() {
|
|
84
|
-
// tslint:disable-next-line:no-non-null-assertion
|
|
85
|
-
return this.getSizeConfig().height + '';
|
|
86
|
-
// return this.overlayRef.overlayElement.offsetHeight + 'px';
|
|
87
|
-
}
|
|
88
|
-
setPos(x, y) {
|
|
89
|
-
this.overlayRef.updatePositionStrategy(this
|
|
90
|
-
.overlay
|
|
91
|
-
.position()
|
|
92
|
-
.global()
|
|
93
|
-
.top(y)
|
|
94
|
-
.left(x));
|
|
95
|
-
this.overlayRef.updatePosition();
|
|
96
|
-
}
|
|
97
|
-
getPos() {
|
|
98
|
-
const pos = this.overlayRef.overlayElement.getBoundingClientRect();
|
|
99
|
-
return { x: pos.left + 'px', y: pos.top + 'px' };
|
|
100
|
-
}
|
|
101
|
-
fullScreen() {
|
|
102
|
-
if (this.oldSizes === null) {
|
|
103
|
-
this.oldSizes = {
|
|
104
|
-
width: this.overlayRef.overlayElement.offsetWidth + 'px',
|
|
105
|
-
height: this.overlayRef.overlayElement.offsetHeight + 'px',
|
|
106
|
-
pos: this.getPos()
|
|
107
|
-
};
|
|
108
|
-
this.setWidth('100vw');
|
|
109
|
-
this.setHeight('100vh');
|
|
110
|
-
this.setPos('0px', '0px');
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
this.setWidth(this.oldSizes.width);
|
|
114
|
-
this.setHeight(this.oldSizes.height);
|
|
115
|
-
this.setPos(this.oldSizes.pos.x, this.oldSizes.pos.y);
|
|
116
|
-
this.oldSizes = null;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* @param portal
|
|
121
|
-
*/
|
|
122
|
-
setFooterPortal(portal) {
|
|
123
|
-
setTimeout(() => {
|
|
124
|
-
this.footerPortal$.next(portal);
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
setTitlePortal(portal) {
|
|
128
|
-
setTimeout(() => {
|
|
129
|
-
this.titlePortal$.next(portal);
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
setAttachedRef(attachedRef) {
|
|
133
|
-
if (attachedRef instanceof ComponentRef) {
|
|
134
|
-
this.updateWindowSettings(attachedRef);
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
this.updateWindowSettings();
|
|
138
|
-
}
|
|
139
|
-
this.attachedRef$.next(attachedRef);
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Injects the window settings from the component ref injector and overwrites
|
|
143
|
-
* the settings
|
|
144
|
-
* @private
|
|
145
|
-
*/
|
|
146
|
-
updateWindowSettings(componentRef) {
|
|
147
|
-
var _a;
|
|
148
|
-
const settings = (_a = componentRef === null || componentRef === void 0 ? void 0 : componentRef.injector.get(RXAP_WINDOW_SETTINGS, null, InjectFlags.Optional)) !== null && _a !== void 0 ? _a : this.settings;
|
|
149
|
-
if (settings) {
|
|
150
|
-
// prevent change diction error: ExpressionChangedAfterItHasBeenCheckedError
|
|
151
|
-
setTimeout(() => {
|
|
152
|
-
this.settings$.next(Object.assign({}, this.settings, settings));
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
//# sourceMappingURL=window-ref.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"window-ref.js","sourceRoot":"","sources":["../../../../../libs/window-system/src/lib/window-ref.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,eAAe,EACf,OAAO,EACP,aAAa,EACd,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,EACL,YAAY,EAEZ,WAAW,EACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,OAAO,SAA4B,SAAQ,OAAU;IAkCzD,YACkB,UAAsB,EACrB,OAAgB,EAC1B,QAA2B;QAElC,KAAK,EAAE,CAAC;QAJQ,eAAU,GAAV,UAAU,CAAY;QACrB,YAAO,GAAP,OAAO,CAAS;QAC1B,aAAQ,GAAR,QAAQ,CAAmB;QAnCpB,WAAM,GAAI,IAAI,eAAe,CAAS,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QACvD,YAAO,GAAG,IAAI,eAAe,CAAS,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;QAExE;;WAEG;QACa,YAAO,GAAG,IAAI,OAAO,EAAiB,CAAC;QAEhD,iBAAY,GAAG,IAAI,aAAa,CAA2C,CAAC,CAAC,CAAC;QAMrF;;;WAGG;QACK,aAAQ,GAA4E,IAAI,CAAC;QAEjG;;WAEG;QACI,kBAAa,GAAG,IAAI,aAAa,CAAc,CAAC,CAAC,CAAC;QAEzD;;WAEG;QACI,iBAAY,GAAG,IAAI,aAAa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D;;;;OAIG;IACK,oBAAoB,CAAC,YAAgC;;QAC3D,MAAM,QAAQ,GAAG,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,QAAQ,CAAC,GAAG,CAAC,oBAAoB,EAAE,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,mCAAI,IAAI,CAAC,QAAQ,CAAC;QAC/G,IAAI,QAAQ,EAAE;YACZ,4EAA4E;YAC5E,UAAU,CAAC,GAAG,EAAE;gBACd,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;YAClE,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;CAEF","sourcesContent":["import {\n OverlayRef,\n OverlaySizeConfig,\n Overlay\n} from '@angular/cdk/overlay';\nimport { WindowSettings } from './window-config';\nimport {\n BehaviorSubject,\n Subject,\n ReplaySubject\n} from 'rxjs';\nimport { GetWindowStartPos } from './utilities';\nimport { Portal } from '@angular/cdk/portal';\nimport {\n ComponentRef,\n EmbeddedViewRef,\n InjectFlags\n} from '@angular/core';\nimport { RXAP_WINDOW_SETTINGS } from './tokens';\n\nexport class WindowRef<D = any, R = any> extends Subject<R> {\n\n public readonly width$ = new BehaviorSubject<string>(this.getWidth());\n public readonly height$ = new BehaviorSubject<string>(this.getHeight());\n\n /**\n * @deprecated removed. use the subscribe method and wait for the resolve event\n */\n public readonly closed$ = new Subject<R | undefined>();\n\n public attachedRef$ = new ReplaySubject<ComponentRef<any> | EmbeddedViewRef<any>>(1);\n\n public get isMinimized(): boolean {\n return this.overlayRef.hostElement.style.display === 'none';\n }\n\n /**\n * stores the window size before fullScreen\n * @internal\n */\n private oldSizes: { width: string, height: string, pos: { x: string, y: string } } | null = null;\n\n /**\n * @internal\n */\n public footerPortal$ = new ReplaySubject<Portal<any>>(1);\n\n /**\n * @internal\n */\n public titlePortal$ = new ReplaySubject<Portal<any>>(1);\n\n public settings$ = new ReplaySubject<WindowSettings>(1);\n\n constructor(\n public readonly overlayRef: OverlayRef,\n private readonly overlay: Overlay,\n public settings: WindowSettings<D>\n ) {\n super();\n }\n\n /**\n * @deprecated removed. use the complete method\n * @param result\n */\n public close(result?: R): void {\n this.closed$.next(result);\n if (result !== undefined) {\n this.next(result);\n }\n this.complete();\n }\n\n public complete() {\n this.overlayRef.dispose();\n super.complete();\n }\n\n public minimize(): void {\n this.overlayRef.hostElement.style.display = 'none';\n }\n\n public reopen(): void {\n const startPos = GetWindowStartPos();\n this.setPos(startPos.left, startPos.top);\n this.overlayRef.hostElement.style.display = 'flex';\n }\n\n public getSizeConfig(): OverlaySizeConfig {\n const config = this.overlayRef.getConfig();\n return {\n width: config.width,\n height: config.height,\n minHeight: config.minHeight,\n minWidth: config.minWidth,\n maxHeight: config.maxHeight,\n maxWidth: config.maxWidth\n };\n }\n\n public setWidth(width: string): void {\n this.overlayRef.updateSize({\n ...this.getSizeConfig(),\n width\n });\n this.width$.next(width);\n }\n\n public setHeight(height: string): void {\n this.overlayRef.updateSize({\n ...this.getSizeConfig(),\n height\n });\n this.height$.next(height);\n }\n\n public getWidth(): string {\n // tslint:disable-next-line:no-non-null-assertion\n return this.getSizeConfig().width! + '';\n // return this.overlayRef.overlayElement.offsetWidth + 'px'\n }\n\n public getHeight(): string {\n // tslint:disable-next-line:no-non-null-assertion\n return this.getSizeConfig().height! + '';\n // return this.overlayRef.overlayElement.offsetHeight + 'px';\n }\n\n public setPos(x: string, y: string): void {\n this.overlayRef.updatePositionStrategy(this\n .overlay\n .position()\n .global()\n .top(y)\n .left(x)\n );\n this.overlayRef.updatePosition();\n }\n\n public getPos(): { x: string, y: string } {\n const pos = this.overlayRef.overlayElement.getBoundingClientRect();\n return { x: pos.left + 'px', y: pos.top + 'px' };\n }\n\n public fullScreen(): void {\n if (this.oldSizes === null) {\n this.oldSizes = {\n width: this.overlayRef.overlayElement.offsetWidth + 'px',\n height: this.overlayRef.overlayElement.offsetHeight + 'px',\n pos: this.getPos()\n };\n this.setWidth('100vw');\n this.setHeight('100vh');\n this.setPos('0px', '0px');\n } else {\n this.setWidth(this.oldSizes.width);\n this.setHeight(this.oldSizes.height);\n this.setPos(this.oldSizes.pos.x, this.oldSizes.pos.y);\n this.oldSizes = null;\n }\n }\n\n /**\n * @param portal\n */\n public setFooterPortal(portal: Portal<any>) {\n setTimeout(() => {\n this.footerPortal$.next(portal);\n });\n }\n\n public setTitlePortal(portal: Portal<any>) {\n setTimeout(() => {\n this.titlePortal$.next(portal);\n });\n }\n\n public setAttachedRef(attachedRef: ComponentRef<any> | EmbeddedViewRef<any>) {\n if (attachedRef instanceof ComponentRef) {\n this.updateWindowSettings(attachedRef);\n } else {\n this.updateWindowSettings();\n }\n this.attachedRef$.next(attachedRef);\n }\n\n\n /**\n * Injects the window settings from the component ref injector and overwrites\n * the settings\n * @private\n */\n private updateWindowSettings(componentRef?: ComponentRef<any>) {\n const settings = componentRef?.injector.get(RXAP_WINDOW_SETTINGS, null, InjectFlags.Optional) ?? this.settings;\n if (settings) {\n // prevent change diction error: ExpressionChangedAfterItHasBeenCheckedError\n setTimeout(() => {\n this.settings$.next(Object.assign({}, this.settings, settings));\n });\n }\n }\n\n}\n"]}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Component, Input, ElementRef, ViewChild, Output, EventEmitter, ChangeDetectionStrategy, Inject } from '@angular/core';
|
|
3
|
-
import { fromEvent, Subscription } from 'rxjs';
|
|
4
|
-
import { tap, switchMap, takeUntil, map, filter, finalize } from 'rxjs/operators';
|
|
5
|
-
import { RXAP_WINDOW_CONTEXT } from '../tokens';
|
|
6
|
-
import { Required } from '@rxap/utilities';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@angular/material/icon";
|
|
9
|
-
import * as i2 from "@angular/flex-layout/extended";
|
|
10
|
-
import * as i3 from "@angular/common";
|
|
11
|
-
export class WindowResizerComponent {
|
|
12
|
-
constructor(context) {
|
|
13
|
-
this.width$ = new EventEmitter();
|
|
14
|
-
this.height$ = new EventEmitter();
|
|
15
|
-
this.resizing$ = new EventEmitter();
|
|
16
|
-
this._subscription = new Subscription();
|
|
17
|
-
this.windowRef = context.windowRef;
|
|
18
|
-
}
|
|
19
|
-
ngOnDestroy() {
|
|
20
|
-
this._subscription.unsubscribe();
|
|
21
|
-
}
|
|
22
|
-
ngOnInit() {
|
|
23
|
-
let originalMouseX = 0;
|
|
24
|
-
let originalMouseY = 0;
|
|
25
|
-
let originalWidth = 0;
|
|
26
|
-
let originalHeight = 0;
|
|
27
|
-
this._subscription.add(fromEvent(this.resizerRef.nativeElement, 'mousedown').pipe(tap(event => {
|
|
28
|
-
this.resizing$.emit(true);
|
|
29
|
-
originalMouseX = event.pageX;
|
|
30
|
-
originalMouseY = event.pageY;
|
|
31
|
-
originalWidth = parseFloat(getComputedStyle(this.containerRef.nativeElement, null)
|
|
32
|
-
.getPropertyValue('width')
|
|
33
|
-
.replace('px', ''));
|
|
34
|
-
originalHeight = parseFloat(getComputedStyle(this.containerRef.nativeElement, null)
|
|
35
|
-
.getPropertyValue('height')
|
|
36
|
-
.replace('px', ''));
|
|
37
|
-
}), switchMap(() => fromEvent(window, 'mousemove').pipe(takeUntil(fromEvent(window, 'mouseup')), map((event) => ({
|
|
38
|
-
width: originalWidth + (event.pageX - originalMouseX),
|
|
39
|
-
height: originalHeight + (event.pageY - originalMouseY)
|
|
40
|
-
})), filter(size => (Number(this.windowRef.getSizeConfig().minHeight) || 0) <=
|
|
41
|
-
size.height &&
|
|
42
|
-
(Number(this.windowRef.getSizeConfig().minWidth) || 0) <=
|
|
43
|
-
size.width), map(size => ({ width: size.width + 'px', height: size.height + 'px' })), tap(size => {
|
|
44
|
-
this.width$.emit(size.width);
|
|
45
|
-
this.height$.emit(size.height);
|
|
46
|
-
}), tap(size => {
|
|
47
|
-
this.windowRef.setHeight(size.height);
|
|
48
|
-
this.windowRef.setWidth(size.width);
|
|
49
|
-
}), finalize(() => this.resizing$.emit(false))))).subscribe());
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
WindowResizerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: WindowResizerComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }], target: i0.ɵɵFactoryTarget.Component });
|
|
53
|
-
WindowResizerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", 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: [".resizer,:host{position:absolute;top:auto;left:auto;right:0;bottom:0;width:24px;height:24px;cursor:nwse-resize;z-index:100}"], components: [{ type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i2.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"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
54
|
-
__decorate([
|
|
55
|
-
Required,
|
|
56
|
-
__metadata("design:type", ElementRef)
|
|
57
|
-
], WindowResizerComponent.prototype, "containerRef", void 0);
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: WindowResizerComponent, decorators: [{
|
|
59
|
-
type: Component,
|
|
60
|
-
args: [{
|
|
61
|
-
selector: 'rxap-window-resizer',
|
|
62
|
-
templateUrl: './window-resizer.component.html',
|
|
63
|
-
styleUrls: ['./window-resizer.component.scss'],
|
|
64
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
65
|
-
}]
|
|
66
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
67
|
-
type: Inject,
|
|
68
|
-
args: [RXAP_WINDOW_CONTEXT]
|
|
69
|
-
}] }]; }, propDecorators: { containerRef: [{
|
|
70
|
-
type: Input
|
|
71
|
-
}], resizerRef: [{
|
|
72
|
-
type: ViewChild,
|
|
73
|
-
args: ['resizer', { static: true }]
|
|
74
|
-
}], width$: [{
|
|
75
|
-
type: Output,
|
|
76
|
-
args: ['width']
|
|
77
|
-
}], height$: [{
|
|
78
|
-
type: Output,
|
|
79
|
-
args: ['height']
|
|
80
|
-
}], resizing$: [{
|
|
81
|
-
type: Output,
|
|
82
|
-
args: ['resizing']
|
|
83
|
-
}] } });
|
|
84
|
-
//# sourceMappingURL=window-resizer.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"window-resizer.component.js","sourceRoot":"","sources":["../../../../../../libs/window-system/src/lib/window-resizer/window-resizer.component.ts","../../../../../../libs/window-system/src/lib/window-resizer/window-resizer.component.html"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EAET,KAAK,EACL,UAAU,EAEV,SAAS,EACT,MAAM,EACN,YAAY,EACZ,uBAAuB,EACvB,MAAM,EACP,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,SAAS,EACT,YAAY,EACb,MAAM,MAAM,CAAC;AACd,OAAO,EACL,GAAG,EACH,SAAS,EACT,SAAS,EACT,GAAG,EACH,MAAM,EACN,QAAQ,EACT,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;;;;;AAQ3C,MAAM,OAAO,sBAAsB;IAcjC,YAC+B,OAAY;QAPnB,WAAM,GAAS,IAAI,YAAY,EAAU,CAAC;QACzC,YAAO,GAAO,IAAI,YAAY,EAAU,CAAC;QACvC,cAAS,GAAG,IAAI,YAAY,EAAW,CAAC;QAE3D,kBAAa,GAAG,IAAI,YAAY,EAAE,CAAC;QAKzC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IACrC,CAAC;IAED,WAAW;QACT,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;IACnC,CAAC;IAED,QAAQ;QAEN,IAAI,cAAc,GAAG,CAAC,CAAC;QACvB,IAAI,cAAc,GAAG,CAAC,CAAC;QACvB,IAAI,aAAa,GAAI,CAAC,CAAC;QACvB,IAAI,cAAc,GAAG,CAAC,CAAC;QAEvB,IAAI,CAAC,aAAa,CAAC,GAAG,CACpB,SAAS,CAAa,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC,IAAI,CACpE,GAAG,CAAC,KAAK,CAAC,EAAE;YACV,IAA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Destroy,\n ViewChild,\n Output,\n EventEmitter,\n ChangeDetectionStrategy,\n Inject\n} from '@angular/core';\nimport {\n fromEvent,\n Subscription\n} from 'rxjs';\nimport {\n tap,\n switchMap,\n takeUntil,\n map,\n filter,\n finalize\n} from 'rxjs/operators';\nimport { RXAP_WINDOW_CONTEXT } from '../tokens';\nimport { WindowRef } from '../window-ref';\nimport { Required } from '@rxap/utilities';\n\n@Component({\n selector: 'rxap-window-resizer',\n templateUrl: './window-resizer.component.html',\n styleUrls: [ './window-resizer.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WindowResizerComponent implements OnInit, OnDestroy {\n\n @Input() @Required public containerRef!: ElementRef<any>;\n\n public windowRef: WindowRef<any>;\n\n @ViewChild('resizer', { static: true }) public resizerRef!: ElementRef<any>;\n\n @Output('width') public width$ = new EventEmitter<string>();\n @Output('height') public height$ = new EventEmitter<string>();\n @Output('resizing') public resizing$ = new EventEmitter<boolean>();\n\n private _subscription = new Subscription();\n\n constructor(\n @Inject(RXAP_WINDOW_CONTEXT) context: any\n ) {\n this.windowRef = context.windowRef;\n }\n\n ngOnDestroy(): void {\n this._subscription.unsubscribe();\n }\n\n ngOnInit() {\n\n let originalMouseX = 0;\n let originalMouseY = 0;\n let originalWidth = 0;\n let originalHeight = 0;\n\n this._subscription.add(\n fromEvent<MouseEvent>(this.resizerRef.nativeElement, 'mousedown').pipe(\n tap(event => {\n this.resizing$.emit(true);\n originalMouseX = event.pageX;\n originalMouseY = event.pageY;\n originalWidth = parseFloat(\n getComputedStyle(this.containerRef.nativeElement, null)\n .getPropertyValue('width')\n .replace('px', '')\n );\n originalHeight = parseFloat(\n getComputedStyle(this.containerRef.nativeElement, null)\n .getPropertyValue('height')\n .replace('px', '')\n );\n }),\n switchMap(() => fromEvent<MouseEvent>(window, 'mousemove').pipe(\n takeUntil(fromEvent(window, 'mouseup')),\n map((event) => ({\n width: originalWidth + (event.pageX - originalMouseX),\n height: originalHeight + (event.pageY - originalMouseY)\n })),\n filter(size => (Number(this.windowRef.getSizeConfig().minHeight) || 0) <=\n size.height &&\n (Number(this.windowRef.getSizeConfig().minWidth) || 0) <=\n size.width),\n map(size => ({ width: size.width + 'px', height: size.height + 'px' })),\n tap(size => {\n this.width$.emit(size.width);\n this.height$.emit(size.height);\n }),\n tap(size => {\n this.windowRef.setHeight(size.height);\n this.windowRef.setWidth(size.width);\n }),\n finalize(() => this.resizing$.emit(false))\n )\n )\n ).subscribe()\n );\n\n }\n\n}\n","<div #resizer class=\"resizer\">\n <mat-icon [fxShow]=\"resizing$ | async\">texture</mat-icon>\n</div>\n"]}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
3
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
4
|
-
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
5
|
-
import { WindowContainerComponent } from './window-container/window-container.component';
|
|
6
|
-
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
7
|
-
import { CommonModule } from '@angular/common';
|
|
8
|
-
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
9
|
-
import { WindowToolBarComponent } from './window-tool-bar/window-tool-bar.component';
|
|
10
|
-
import { WindowResizerComponent } from './window-resizer/window-resizer.component';
|
|
11
|
-
import { DefaultWindowComponent } from './default-window/default-window.component';
|
|
12
|
-
import { WindowContentComponent } from './window-content/window-content.component';
|
|
13
|
-
import { OverlayModule } from '@angular/cdk/overlay';
|
|
14
|
-
import { WindowActionBarComponent } from './window-action-bar/window-action-bar.component';
|
|
15
|
-
import { WindowTaskBarModule } from './window-task-bar/window-task-bar.module';
|
|
16
|
-
import { ButtonComponentModule } from '@rxap/components';
|
|
17
|
-
import { PortalModule } from '@angular/cdk/portal';
|
|
18
|
-
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
19
|
-
import { IconDirectiveModule } from '@rxap/material-directives/icon';
|
|
20
|
-
import * as i0 from "@angular/core";
|
|
21
|
-
export class RxapWindowSystemModule {
|
|
22
|
-
}
|
|
23
|
-
RxapWindowSystemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: RxapWindowSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
24
|
-
RxapWindowSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: RxapWindowSystemModule, declarations: [WindowContainerComponent,
|
|
25
|
-
WindowToolBarComponent,
|
|
26
|
-
WindowResizerComponent,
|
|
27
|
-
DefaultWindowComponent,
|
|
28
|
-
WindowContentComponent,
|
|
29
|
-
WindowActionBarComponent], imports: [MatToolbarModule,
|
|
30
|
-
FlexLayoutModule,
|
|
31
|
-
CommonModule,
|
|
32
|
-
DragDropModule,
|
|
33
|
-
MatIconModule,
|
|
34
|
-
MatButtonModule,
|
|
35
|
-
OverlayModule,
|
|
36
|
-
ButtonComponentModule,
|
|
37
|
-
PortalModule,
|
|
38
|
-
MatProgressBarModule,
|
|
39
|
-
IconDirectiveModule], exports: [WindowContainerComponent,
|
|
40
|
-
WindowToolBarComponent,
|
|
41
|
-
WindowResizerComponent,
|
|
42
|
-
DefaultWindowComponent,
|
|
43
|
-
WindowContentComponent,
|
|
44
|
-
WindowTaskBarModule] });
|
|
45
|
-
RxapWindowSystemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: RxapWindowSystemModule, imports: [[
|
|
46
|
-
MatToolbarModule,
|
|
47
|
-
FlexLayoutModule,
|
|
48
|
-
CommonModule,
|
|
49
|
-
DragDropModule,
|
|
50
|
-
MatIconModule,
|
|
51
|
-
MatButtonModule,
|
|
52
|
-
OverlayModule,
|
|
53
|
-
ButtonComponentModule,
|
|
54
|
-
PortalModule,
|
|
55
|
-
MatProgressBarModule,
|
|
56
|
-
IconDirectiveModule
|
|
57
|
-
], WindowTaskBarModule] });
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: RxapWindowSystemModule, decorators: [{
|
|
59
|
-
type: NgModule,
|
|
60
|
-
args: [{
|
|
61
|
-
imports: [
|
|
62
|
-
MatToolbarModule,
|
|
63
|
-
FlexLayoutModule,
|
|
64
|
-
CommonModule,
|
|
65
|
-
DragDropModule,
|
|
66
|
-
MatIconModule,
|
|
67
|
-
MatButtonModule,
|
|
68
|
-
OverlayModule,
|
|
69
|
-
ButtonComponentModule,
|
|
70
|
-
PortalModule,
|
|
71
|
-
MatProgressBarModule,
|
|
72
|
-
IconDirectiveModule
|
|
73
|
-
],
|
|
74
|
-
declarations: [
|
|
75
|
-
WindowContainerComponent,
|
|
76
|
-
WindowToolBarComponent,
|
|
77
|
-
WindowResizerComponent,
|
|
78
|
-
DefaultWindowComponent,
|
|
79
|
-
WindowContentComponent,
|
|
80
|
-
WindowActionBarComponent,
|
|
81
|
-
],
|
|
82
|
-
entryComponents: [
|
|
83
|
-
DefaultWindowComponent
|
|
84
|
-
],
|
|
85
|
-
exports: [
|
|
86
|
-
WindowContainerComponent,
|
|
87
|
-
WindowToolBarComponent,
|
|
88
|
-
WindowResizerComponent,
|
|
89
|
-
DefaultWindowComponent,
|
|
90
|
-
WindowContentComponent,
|
|
91
|
-
WindowTaskBarModule
|
|
92
|
-
]
|
|
93
|
-
}]
|
|
94
|
-
}] });
|
|
95
|
-
//# sourceMappingURL=window-system.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"window-system.module.js","sourceRoot":"","sources":["../../../../../libs/window-system/src/lib/window-system.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,gBAAgB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BAAgB;YAChB,gBAAgB;YAChB,YAAY;YACZ,cAAc;YACd,aAAa;YACb,eAAe;YACf,aAAa;YACb,qBAAqB;YACrB,YAAY;YACZ,oBAAoB;YACpB,mBAAmB;SACpB,EAkBC,mBAAmB;2FAGV,sBAAsB;kBAlClC,QAAQ;mBAAC;oBACR,OAAO,EAAE;wBACP,gBAAgB;wBAChB,gBAAgB;wBAChB,YAAY;wBACZ,cAAc;wBACd,aAAa;wBACb,eAAe;wBACf,aAAa;wBACb,qBAAqB;wBACrB,YAAY;wBACZ,oBAAoB;wBACpB,mBAAmB;qBACpB;oBACD,YAAY,EAAK;wBACf,wBAAwB;wBACxB,sBAAsB;wBACtB,sBAAsB;wBACtB,sBAAsB;wBACtB,sBAAsB;wBACtB,wBAAwB;qBACzB;oBACD,eAAe,EAAE;wBACf,sBAAsB;qBACvB;oBACD,OAAO,EAAU;wBACf,wBAAwB;wBACxB,sBAAsB;wBACtB,sBAAsB;wBACtB,sBAAsB;wBACtB,sBAAsB;wBACtB,mBAAmB;qBACpB;iBACF","sourcesContent":["import { NgModule } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { WindowContainerComponent } from './window-container/window-container.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { CommonModule } from '@angular/common';\nimport { DragDropModule } from '@angular/cdk/drag-drop';\nimport { WindowToolBarComponent } from './window-tool-bar/window-tool-bar.component';\nimport { WindowResizerComponent } from './window-resizer/window-resizer.component';\nimport { DefaultWindowComponent } from './default-window/default-window.component';\nimport { WindowContentComponent } from './window-content/window-content.component';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { WindowActionBarComponent } from './window-action-bar/window-action-bar.component';\nimport { WindowTaskBarModule } from './window-task-bar/window-task-bar.module';\nimport { ButtonComponentModule } from '@rxap/components';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { IconDirectiveModule } from '@rxap/material-directives/icon';\n\n@NgModule({\n imports: [\n MatToolbarModule,\n FlexLayoutModule,\n CommonModule,\n DragDropModule,\n MatIconModule,\n MatButtonModule,\n OverlayModule,\n ButtonComponentModule,\n PortalModule,\n MatProgressBarModule,\n IconDirectiveModule\n ],\n declarations: [\n WindowContainerComponent,\n WindowToolBarComponent,\n WindowResizerComponent,\n DefaultWindowComponent,\n WindowContentComponent,\n WindowActionBarComponent,\n ],\n entryComponents: [\n DefaultWindowComponent\n ],\n exports: [\n WindowContainerComponent,\n WindowToolBarComponent,\n WindowResizerComponent,\n DefaultWindowComponent,\n WindowContentComponent,\n WindowTaskBarModule\n ]\n})\nexport class RxapWindowSystemModule { }\n"]}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
|
|
3
|
-
import { Required } from '@rxap/utilities';
|
|
4
|
-
import { WindowRef } from '../../window-ref';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/material/icon";
|
|
7
|
-
import * as i2 from "@angular/material/button";
|
|
8
|
-
import * as i3 from "@angular/flex-layout/flex";
|
|
9
|
-
import * as i4 from "@angular/common";
|
|
10
|
-
import * as i5 from "@angular/flex-layout/extended";
|
|
11
|
-
import * as i6 from "@rxap/material-directives/icon";
|
|
12
|
-
import * as i7 from "@rxap/directives";
|
|
13
|
-
export class WindowTaskComponent {
|
|
14
|
-
close() {
|
|
15
|
-
this.window.complete();
|
|
16
|
-
}
|
|
17
|
-
reopen() {
|
|
18
|
-
this.window.reopen();
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
WindowTaskComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: WindowTaskComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
-
WindowTaskComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", 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}"], components: [{ type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i3.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"] }, { type: i3.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"] }, { type: i3.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"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5.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"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }, { type: i3.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"] }, { type: i7.StopPropagationDirective, selector: "[rxapStopPropagation]" }], pipes: { "async": i4.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
23
|
-
__decorate([
|
|
24
|
-
Required,
|
|
25
|
-
__metadata("design:type", WindowRef)
|
|
26
|
-
], WindowTaskComponent.prototype, "window", void 0);
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: WindowTaskComponent, decorators: [{
|
|
28
|
-
type: Component,
|
|
29
|
-
args: [{
|
|
30
|
-
selector: 'rxap-window-task',
|
|
31
|
-
templateUrl: './window-task.component.html',
|
|
32
|
-
styleUrls: ['./window-task.component.scss'],
|
|
33
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
34
|
-
}]
|
|
35
|
-
}], propDecorators: { window: [{
|
|
36
|
-
type: Input
|
|
37
|
-
}] } });
|
|
38
|
-
//# sourceMappingURL=window-task.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"window-task.component.js","sourceRoot":"","sources":["../../../../../../../libs/window-system/src/lib/window-task-bar/window-task/window-task.component.ts","../../../../../../../libs/window-system/src/lib/window-task-bar/window-task/window-task.component.html"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,uBAAuB,EACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;;;;;;;;;AAQ7C,MAAM,OAAO,mBAAmB;IAIvB,KAAK;QACV,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;IACzB,CAAC;IAEM,MAAM;QACX,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;IACvB,CAAC;;gHAVU,mBAAmB;oGAAnB,mBAAmB,sFCdhC,skBAUA;ADMqB;IAAT,QAAQ;8BAAiB,SAAS;mDAAM;2FAFvC,mBAAmB;kBAN/B,SAAS;mBAAC;oBACT,QAAQ,EAAS,kBAAkB;oBACnC,WAAW,EAAM,8BAA8B;oBAC/C,SAAS,EAAQ,CAAE,8BAA8B,CAAE;oBACnD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;8BAG2B,MAAM;sBAA/B,KAAK","sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\nimport { WindowRef } from '../../window-ref';\n\n@Component({\n selector: 'rxap-window-task',\n templateUrl: './window-task.component.html',\n styleUrls: [ './window-task.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WindowTaskComponent {\n\n @Input() @Required public window!: WindowRef<any>;\n\n public close() {\n this.window.complete();\n }\n\n public reopen() {\n this.window.reopen();\n }\n\n}\n","<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"]}
|