@rxap/window-system 21.0.1-dev.0 → 21.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/compodoc/changelog.html +43 -0
  3. package/compodoc/components/WindowActionBarComponent.html +18 -57
  4. package/compodoc/components/WindowContainerComponent.html +219 -175
  5. package/compodoc/components/WindowContentComponent.html +27 -135
  6. package/compodoc/components/WindowResizerComponent.html +188 -194
  7. package/compodoc/components/WindowTaskBarComponent.html +35 -159
  8. package/compodoc/components/WindowTaskBarContainerComponent.html +11 -74
  9. package/compodoc/components/WindowTaskComponent.html +51 -44
  10. package/compodoc/components/WindowToolBarComponent.html +7 -39
  11. package/compodoc/dependencies.html +5 -5
  12. package/compodoc/directives/WindowFooterDirective.html +6 -90
  13. package/compodoc/graph/dependencies.svg +15 -255
  14. package/compodoc/injectables/WindowService.html +22 -119
  15. package/compodoc/interfaces/WindowFooterTemplateContext.html +4 -16
  16. package/compodoc/interfaces/WindowTaskBarContainerSettings.html +6 -13
  17. package/compodoc/js/menu-wc.js +0 -67
  18. package/compodoc/js/menu-wc_es5.js +1 -1
  19. package/compodoc/js/search/search_index.js +2 -2
  20. package/compodoc/modules.html +0 -34
  21. package/compodoc/overview.html +1 -287
  22. package/compodoc/properties.html +1 -1
  23. package/docs/documentation.json +2006 -2781
  24. package/docs/html/assets/hierarchy.js +1 -1
  25. package/docs/html/assets/navigation.js +1 -1
  26. package/docs/html/assets/search.js +1 -1
  27. package/docs/html/classes/DefaultWindowComponent.html +2 -2
  28. package/docs/html/classes/WindowActionBarComponent.html +2 -2
  29. package/docs/html/classes/WindowContainerComponent.html +5 -10
  30. package/docs/html/classes/WindowContentComponent.html +2 -12
  31. package/docs/html/classes/WindowFooterDirective.html +4 -4
  32. package/docs/html/classes/WindowInstanceService.html +3 -3
  33. package/docs/html/classes/WindowRef.html +11 -11
  34. package/docs/html/classes/WindowResizerComponent.html +6 -10
  35. package/docs/html/classes/WindowService.html +2 -2
  36. package/docs/html/classes/WindowTaskBarComponent.html +5 -13
  37. package/docs/html/classes/WindowTaskBarContainerComponent.html +2 -2
  38. package/docs/html/classes/WindowTaskComponent.html +2 -2
  39. package/docs/html/classes/WindowTitleDirective.html +3 -3
  40. package/docs/html/classes/WindowToolBarComponent.html +2 -2
  41. package/docs/html/functions/GetWindowStartPos.html +1 -1
  42. package/docs/html/hierarchy.html +1 -1
  43. package/docs/html/index.html +2 -2
  44. package/docs/html/interfaces/WindowActions.html +2 -2
  45. package/docs/html/interfaces/WindowConfig.html +2 -2
  46. package/docs/html/interfaces/WindowContainerContext.html +2 -2
  47. package/docs/html/interfaces/WindowContext.html +2 -2
  48. package/docs/html/interfaces/WindowFooterTemplateContext.html +2 -2
  49. package/docs/html/interfaces/WindowSettings.html +2 -2
  50. package/docs/html/interfaces/WindowTaskBarContainerSettings.html +2 -2
  51. package/docs/html/interfaces/WindowTitleTemplateContext.html +2 -2
  52. package/docs/html/modules.html +1 -1
  53. package/docs/html/variables/DEFAULT_WINDOW_CONFIG.html +1 -1
  54. package/docs/html/variables/RXAP_WINDOW_CONTAINER_CONTEXT.html +1 -1
  55. package/docs/html/variables/RXAP_WINDOW_CONTEXT.html +1 -1
  56. package/docs/html/variables/RXAP_WINDOW_DATA.html +1 -1
  57. package/docs/html/variables/RXAP_WINDOW_DEFAULT_SETTINGS.html +1 -1
  58. package/docs/html/variables/RXAP_WINDOW_REF.html +1 -1
  59. package/docs/html/variables/RXAP_WINDOW_SETTINGS.html +1 -1
  60. package/docs/html/variables/RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS.html +1 -1
  61. package/docs/markdown/README.md +1 -1
  62. package/docs/markdown/classes/DefaultWindowComponent.md +2 -2
  63. package/docs/markdown/classes/WindowActionBarComponent.md +7 -17
  64. package/docs/markdown/classes/WindowContainerComponent.md +42 -44
  65. package/docs/markdown/classes/WindowContentComponent.md +8 -77
  66. package/docs/markdown/classes/WindowFooterDirective.md +5 -21
  67. package/docs/markdown/classes/WindowInstanceService.md +5 -5
  68. package/docs/markdown/classes/WindowRef.md +36 -36
  69. package/docs/markdown/classes/WindowResizerComponent.md +26 -45
  70. package/docs/markdown/classes/WindowService.md +13 -33
  71. package/docs/markdown/classes/WindowTaskBarComponent.md +9 -72
  72. package/docs/markdown/classes/WindowTaskBarContainerComponent.md +6 -16
  73. package/docs/markdown/classes/WindowTaskComponent.md +6 -6
  74. package/docs/markdown/classes/WindowTitleDirective.md +4 -4
  75. package/docs/markdown/classes/WindowToolBarComponent.md +5 -11
  76. package/docs/markdown/functions/GetWindowStartPos.md +2 -2
  77. package/docs/markdown/globals.md +2 -4
  78. package/docs/markdown/interfaces/WindowActions.md +4 -4
  79. package/docs/markdown/interfaces/WindowConfig.md +24 -24
  80. package/docs/markdown/interfaces/WindowContainerContext.md +4 -4
  81. package/docs/markdown/interfaces/WindowContext.md +6 -6
  82. package/docs/markdown/interfaces/WindowFooterTemplateContext.md +3 -3
  83. package/docs/markdown/interfaces/WindowSettings.md +17 -17
  84. package/docs/markdown/interfaces/WindowTaskBarContainerSettings.md +3 -3
  85. package/docs/markdown/interfaces/WindowTitleTemplateContext.md +3 -3
  86. package/docs/markdown/variables/DEFAULT_WINDOW_CONFIG.md +2 -2
  87. package/docs/markdown/variables/RXAP_WINDOW_CONTAINER_CONTEXT.md +2 -2
  88. package/docs/markdown/variables/RXAP_WINDOW_CONTEXT.md +2 -2
  89. package/docs/markdown/variables/RXAP_WINDOW_DATA.md +2 -2
  90. package/docs/markdown/variables/RXAP_WINDOW_DEFAULT_SETTINGS.md +2 -2
  91. package/docs/markdown/variables/RXAP_WINDOW_REF.md +2 -2
  92. package/docs/markdown/variables/RXAP_WINDOW_SETTINGS.md +2 -2
  93. package/docs/markdown/variables/RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS.md +2 -2
  94. package/docs/wiki/Class.DefaultWindowComponent.md +1 -1
  95. package/docs/wiki/Class.WindowActionBarComponent.md +6 -16
  96. package/docs/wiki/Class.WindowContainerComponent.md +41 -43
  97. package/docs/wiki/Class.WindowContentComponent.md +7 -76
  98. package/docs/wiki/Class.WindowFooterDirective.md +4 -20
  99. package/docs/wiki/Class.WindowInstanceService.md +4 -4
  100. package/docs/wiki/Class.WindowRef.md +35 -35
  101. package/docs/wiki/Class.WindowResizerComponent.md +25 -44
  102. package/docs/wiki/Class.WindowService.md +12 -32
  103. package/docs/wiki/Class.WindowTaskBarComponent.md +8 -71
  104. package/docs/wiki/Class.WindowTaskBarContainerComponent.md +5 -15
  105. package/docs/wiki/Class.WindowTaskComponent.md +5 -5
  106. package/docs/wiki/Class.WindowTitleDirective.md +3 -3
  107. package/docs/wiki/Class.WindowToolBarComponent.md +4 -10
  108. package/docs/wiki/Function.GetWindowStartPos.md +1 -1
  109. package/docs/wiki/Interface.WindowActions.md +3 -3
  110. package/docs/wiki/Interface.WindowConfig.md +23 -23
  111. package/docs/wiki/Interface.WindowContainerContext.md +3 -3
  112. package/docs/wiki/Interface.WindowContext.md +5 -5
  113. package/docs/wiki/Interface.WindowFooterTemplateContext.md +2 -2
  114. package/docs/wiki/Interface.WindowSettings.md +16 -16
  115. package/docs/wiki/Interface.WindowTaskBarContainerSettings.md +2 -2
  116. package/docs/wiki/Interface.WindowTitleTemplateContext.md +2 -2
  117. package/docs/wiki/Variable.DEFAULT_WINDOW_CONFIG.md +1 -1
  118. package/docs/wiki/Variable.RXAP_WINDOW_CONTAINER_CONTEXT.md +1 -1
  119. package/docs/wiki/Variable.RXAP_WINDOW_CONTEXT.md +1 -1
  120. package/docs/wiki/Variable.RXAP_WINDOW_DATA.md +1 -1
  121. package/docs/wiki/Variable.RXAP_WINDOW_DEFAULT_SETTINGS.md +1 -1
  122. package/docs/wiki/Variable.RXAP_WINDOW_REF.md +1 -1
  123. package/docs/wiki/Variable.RXAP_WINDOW_SETTINGS.md +1 -1
  124. package/docs/wiki/Variable.RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS.md +1 -1
  125. package/docs/wiki/_Sidebar.md +0 -2
  126. package/docs/wiki/globals.md +1 -3
  127. package/fesm2022/rxap-window-system.mjs +117 -257
  128. package/fesm2022/rxap-window-system.mjs.map +1 -1
  129. package/package.json +14 -14
  130. package/types/rxap-window-system.d.ts +44 -55
  131. package/docs/html/classes/RxapWindowSystemModule.html +0 -2
  132. package/docs/html/classes/WindowTaskBarModule.html +0 -2
  133. package/docs/markdown/classes/RxapWindowSystemModule.md +0 -19
  134. package/docs/markdown/classes/WindowTaskBarModule.md +0 -19
  135. package/docs/wiki/Class.RxapWindowSystemModule.md +0 -15
  136. package/docs/wiki/Class.WindowTaskBarModule.md +0 -15
@@ -1,43 +1,41 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Inject, ChangeDetectionStrategy, Component, ComponentRef, isDevMode, ViewChild, EventEmitter, Output, Input, inject, INJECTOR, runInInjectionContext, HostBinding, ContentChild, Injector, ViewContainerRef, ComponentFactoryResolver, Optional, Injectable, ChangeDetectorRef, NgModule, TemplateRef, Directive } from '@angular/core';
2
+ import { InjectionToken, inject, ChangeDetectionStrategy, Component, Injector, ViewContainerRef, viewChild, afterNextRender, ComponentRef, isDevMode, input, output, signal, contentChild, ComponentFactoryResolver, Injectable, TemplateRef, Directive } from '@angular/core';
3
3
  import * as i4 from '@angular/material/button';
4
4
  import { MatButtonModule } from '@angular/material/button';
5
5
  import { IconDirective } from '@rxap/material-directives/icon';
6
6
  import * as i1$1 from '@angular/material/icon';
7
7
  import { MatIconModule } from '@angular/material/icon';
8
8
  import * as i2 from '@angular/cdk/portal';
9
- import { PortalModule, TemplatePortal, ComponentPortal, CdkPortalOutlet } from '@angular/cdk/portal';
9
+ import { PortalModule, CdkPortalOutlet, TemplatePortal, ComponentPortal } from '@angular/cdk/portal';
10
10
  import { AsyncPipe, NgClass, NgStyle } from '@angular/common';
11
11
  import * as i1 from '@angular/material/toolbar';
12
12
  import { MatToolbarModule } from '@angular/material/toolbar';
13
- import * as i1$3 from '@angular/cdk/overlay';
14
- import { OverlayConfig, Overlay } from '@angular/cdk/overlay';
15
- import * as i1$2 from '@rxap/services';
13
+ import { Overlay, OverlayConfig } from '@angular/cdk/overlay';
16
14
  import { LoadingIndicatorService } from '@rxap/services';
17
15
  import { GenerateRandomString } from '@rxap/utilities';
18
- import { isObservable, TimeoutError, throwError, Subscription, fromEvent, merge, Subject, BehaviorSubject, ReplaySubject } from 'rxjs';
16
+ import { isObservable, TimeoutError, throwError, Subscription, fromEvent, Subject, BehaviorSubject, ReplaySubject } from 'rxjs';
19
17
  import { startWith, take, tap, filter, delay, timeout, catchError, switchMap, takeUntil, map, finalize } from 'rxjs/operators';
20
18
  import { isDefined, ToggleSubject } from '@rxap/rxjs';
21
19
  import { CdkDrag, CdkDragHandle } from '@angular/cdk/drag-drop';
22
- import { toSignal } from '@angular/core/rxjs-interop';
20
+ import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
23
21
  import * as i3 from '@angular/material/progress-bar';
24
22
  import { MatProgressBarModule } from '@angular/material/progress-bar';
23
+ import { __decorate } from 'tslib';
25
24
  import { StopPropagationDirective } from '@rxap/directives';
26
25
  import * as i2$1 from '@angular/material/badge';
27
26
  import { MatBadgeModule } from '@angular/material/badge';
28
-
29
27
  const RXAP_WINDOW_CONTEXT = new InjectionToken('rxap/core/window/WINDOW_CONTEXT');
30
28
  const RXAP_WINDOW_DATA = new InjectionToken('rxap/core/window/WINDOW_DATA');
31
29
  const RXAP_WINDOW_CONTAINER_CONTEXT = new InjectionToken('rxap/core/window/WINDOW_CONTAINER_CONTEXT');
32
30
  const RXAP_WINDOW_REF = new InjectionToken('rxap/window-system/WINDOW_REF');
33
31
  const RXAP_WINDOW_SETTINGS = new InjectionToken('rxap/window-system/window-settings');
34
32
  const RXAP_WINDOW_DEFAULT_SETTINGS = new InjectionToken('rxap/window-system/default-window-settings');
35
-
36
33
  class WindowToolBarComponent {
37
- constructor(context) {
34
+ constructor() {
35
+ const context = inject(RXAP_WINDOW_CONTEXT);
38
36
  this.windowRef = context.windowRef;
39
37
  }
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowToolBarComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }], target: i0.ɵɵFactoryTarget.Component }); }
38
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowToolBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
41
39
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", 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 @if (windowRef.titlePortal$ | async; as titlePortal) {\n <ng-template [cdkPortalOutlet]=\"titlePortal\"></ng-template>\n } @else {\n @if (windowRef.settings$ | async; as settings) {\n @if (settings.icon) {\n <mat-icon [rxapIcon]=\"settings.icon\"></mat-icon>\n }\n @if (settings.title) {\n <h3>{{settings.title}}</h3>\n }\n }\n }\n </div>\n <div class=\"flex flex-row justify-end items-center\">\n @if (windowRef.minimizable !== false) {\n <button (click)=\"windowRef.minimize()\"\n mat-icon-button type=\"button\">\n <mat-icon>minimize</mat-icon>\n </button>\n }\n <button (click)=\"windowRef.fullScreen()\" mat-icon-button type=\"button\">\n <mat-icon>fullscreen</mat-icon>\n </button>\n <button (click)=\"windowRef.complete()\" mat-icon-button type=\"button\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n</mat-toolbar>\n", styles: [":host{width:100%}.header{height:64px}\n"], dependencies: [{ kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "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], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
42
40
  }
43
41
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowToolBarComponent, decorators: [{
@@ -50,30 +48,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
50
48
  MatButtonModule,
51
49
  AsyncPipe
52
50
  ], 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 @if (windowRef.titlePortal$ | async; as titlePortal) {\n <ng-template [cdkPortalOutlet]=\"titlePortal\"></ng-template>\n } @else {\n @if (windowRef.settings$ | async; as settings) {\n @if (settings.icon) {\n <mat-icon [rxapIcon]=\"settings.icon\"></mat-icon>\n }\n @if (settings.title) {\n <h3>{{settings.title}}</h3>\n }\n }\n }\n </div>\n <div class=\"flex flex-row justify-end items-center\">\n @if (windowRef.minimizable !== false) {\n <button (click)=\"windowRef.minimize()\"\n mat-icon-button type=\"button\">\n <mat-icon>minimize</mat-icon>\n </button>\n }\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"] }]
53
- }], ctorParameters: () => [{ type: undefined, decorators: [{
54
- type: Inject,
55
- args: [RXAP_WINDOW_CONTEXT]
56
- }] }] });
57
-
51
+ }], ctorParameters: () => [] });
58
52
  class WindowContentComponent {
59
- constructor(context, windowRef, injector, viewContainerRef, loadingIndicatorService) {
60
- this.windowRef = windowRef;
61
- this.injector = injector;
62
- this.viewContainerRef = viewContainerRef;
63
- this.loadingIndicatorService = loadingIndicatorService;
53
+ constructor() {
54
+ this.windowRef = inject(RXAP_WINDOW_REF);
55
+ this.injector = inject(Injector);
56
+ this.viewContainerRef = inject(ViewContainerRef);
57
+ this.loadingIndicatorService = inject(LoadingIndicatorService);
64
58
  this.portal = null;
59
+ this.portalOutlet = viewChild.required(CdkPortalOutlet);
60
+ const context = inject(RXAP_WINDOW_CONTAINER_CONTEXT);
65
61
  this.context = context;
66
- }
67
- ngOnInit() {
68
62
  if (this.context.template) {
69
63
  this.portal = new TemplatePortal(this.context.template, this.viewContainerRef);
70
64
  }
71
65
  else if (this.context.component) {
72
66
  this.portal = new ComponentPortal(this.context.component, this.viewContainerRef, this.injector);
73
67
  }
68
+ afterNextRender(() => this.attach());
74
69
  }
75
- ngAfterViewInit() {
76
- this.portalOutlet.attached.pipe(startWith(this.portalOutlet.attachedRef), isDefined(), take(1), tap(attachedRef => this.windowRef.setAttachedRef(attachedRef)), tap(attachedRef => {
70
+ attach() {
71
+ this.portalOutlet().attached.pipe(startWith(this.portalOutlet().attachedRef), isDefined(), take(1), tap(attachedRef => this.windowRef.setAttachedRef(attachedRef)), tap(attachedRef => {
77
72
  const promise = [];
78
73
  if (attachedRef instanceof ComponentRef) {
79
74
  attachedRef.changeDetectorRef.detectChanges();
@@ -102,50 +97,49 @@ class WindowContentComponent {
102
97
  return throwError(error);
103
98
  })).subscribe();
104
99
  }
105
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowContentComponent, deps: [{ token: RXAP_WINDOW_CONTAINER_CONTEXT }, { token: RXAP_WINDOW_REF }, { token: i0.Injector }, { token: i0.ViewContainerRef }, { token: i1$2.LoadingIndicatorService }], target: i0.ɵɵFactoryTarget.Component }); }
106
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: WindowContentComponent, isStandalone: true, selector: "rxap-window-content", viewQueries: [{ propertyName: "portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true }], ngImport: i0, template: "<div class=\"p-4\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
100
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
101
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.9", type: WindowContentComponent, isStandalone: true, selector: "rxap-window-content", viewQueries: [{ propertyName: "portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"p-4\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
107
102
  }
108
103
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowContentComponent, decorators: [{
109
104
  type: Component,
110
- args: [{ selector: 'rxap-window-content', changeDetection: ChangeDetectionStrategy.Default, imports: [PortalModule], template: "<div class=\"p-4\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n</div>\n" }]
111
- }], ctorParameters: () => [{ type: undefined, decorators: [{
112
- type: Inject,
113
- args: [RXAP_WINDOW_CONTAINER_CONTEXT]
114
- }] }, { type: undefined, decorators: [{
115
- type: Inject,
116
- args: [RXAP_WINDOW_REF]
117
- }] }, { type: i0.Injector }, { type: i0.ViewContainerRef }, { type: i1$2.LoadingIndicatorService }], propDecorators: { portalOutlet: [{
118
- type: ViewChild,
119
- args: [CdkPortalOutlet]
120
- }] } });
121
-
105
+ args: [{ selector: 'rxap-window-content', changeDetection: ChangeDetectionStrategy.OnPush, imports: [PortalModule], template: "<div class=\"p-4\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n</div>\n" }]
106
+ }], ctorParameters: () => [], propDecorators: { portalOutlet: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CdkPortalOutlet), { isSignal: true }] }] } });
122
107
  class WindowResizerComponent {
123
- constructor(context) {
108
+ constructor() {
109
+ this.containerRef = input.required(...(ngDevMode ? [{ debugName: "containerRef" }] : /* istanbul ignore next */ []));
110
+ this.resizerRef = viewChild.required('resizer');
124
111
  // eslint-disable-next-line @angular-eslint/no-output-rename
125
- this.width$ = new EventEmitter();
112
+ this.width$ = output({ alias: 'width' });
126
113
  // eslint-disable-next-line @angular-eslint/no-output-rename
127
- this.height$ = new EventEmitter();
114
+ this.height$ = output({ alias: 'height' });
128
115
  // eslint-disable-next-line @angular-eslint/no-output-rename
129
- this.resizing$ = new EventEmitter();
116
+ this.resizing$ = output({ alias: 'resizing' });
117
+ /**
118
+ * null until the first resize action has started
119
+ */
120
+ this.resizing = signal(null, ...(ngDevMode ? [{ debugName: "resizing" }] : /* istanbul ignore next */ []));
130
121
  this._subscription = new Subscription();
122
+ const context = inject(RXAP_WINDOW_CONTEXT);
131
123
  this.windowRef = context.windowRef;
124
+ afterNextRender(() => this.init());
132
125
  }
133
126
  ngOnDestroy() {
134
127
  this._subscription.unsubscribe();
135
128
  }
136
- ngOnInit() {
129
+ init() {
137
130
  let originalMouseX = 0;
138
131
  let originalMouseY = 0;
139
132
  let originalWidth = 0;
140
133
  let originalHeight = 0;
141
- this._subscription.add(fromEvent(this.resizerRef.nativeElement, 'mousedown').pipe(tap(event => {
134
+ this._subscription.add(fromEvent(this.resizerRef().nativeElement, 'mousedown').pipe(tap(event => {
135
+ this.resizing.set(true);
142
136
  this.resizing$.emit(true);
143
137
  originalMouseX = event.pageX;
144
138
  originalMouseY = event.pageY;
145
- originalWidth = parseFloat(getComputedStyle(this.containerRef.nativeElement, null)
139
+ originalWidth = parseFloat(getComputedStyle(this.containerRef().nativeElement, null)
146
140
  .getPropertyValue('width')
147
141
  .replace('px', ''));
148
- originalHeight = parseFloat(getComputedStyle(this.containerRef.nativeElement, null)
142
+ originalHeight = parseFloat(getComputedStyle(this.containerRef().nativeElement, null)
149
143
  .getPropertyValue('height')
150
144
  .replace('px', ''));
151
145
  }), switchMap(() => fromEvent(window, 'mousemove').pipe(takeUntil(fromEvent(window, 'mouseup')), map((event) => ({
@@ -163,49 +157,40 @@ class WindowResizerComponent {
163
157
  }), tap(size => {
164
158
  this.windowRef.setHeight(size.height);
165
159
  this.windowRef.setWidth(size.width);
166
- }), finalize(() => this.resizing$.emit(false))))).subscribe());
160
+ }), finalize(() => {
161
+ this.resizing.set(false);
162
+ this.resizing$.emit(false);
163
+ })))).subscribe());
167
164
  }
168
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowResizerComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }], target: i0.ɵɵFactoryTarget.Component }); }
169
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: WindowResizerComponent, isStandalone: true, selector: "rxap-window-resizer", inputs: { containerRef: "containerRef" }, outputs: { width$: "width", height$: "height", resizing$: "resizing" }, viewQueries: [{ propertyName: "resizerRef", first: true, predicate: ["resizer"], descendants: true, static: true }], ngImport: i0, template: "<div #resizer class=\"resizer\">\n <mat-icon [ngClass]=\"{ hidden: (resizing$ | async) === false }\">texture</mat-icon>\n</div>\n", styles: [":host,.resizer{position:absolute;inset:auto 0 0 auto;width:24px;height:24px;cursor:nwse-resize;z-index:100}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
165
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowResizerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
166
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.9", type: WindowResizerComponent, isStandalone: true, selector: "rxap-window-resizer", inputs: { containerRef: { classPropertyName: "containerRef", publicName: "containerRef", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { width$: "width", height$: "height", resizing$: "resizing" }, viewQueries: [{ propertyName: "resizerRef", first: true, predicate: ["resizer"], descendants: true, isSignal: true }], ngImport: i0, template: "<div #resizer class=\"resizer\">\n <mat-icon [ngClass]=\"{ hidden: resizing() === 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: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
170
167
  }
171
168
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowResizerComponent, decorators: [{
172
169
  type: Component,
173
- args: [{ selector: 'rxap-window-resizer', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIconModule, AsyncPipe, NgClass], template: "<div #resizer class=\"resizer\">\n <mat-icon [ngClass]=\"{ hidden: (resizing$ | async) === false }\">texture</mat-icon>\n</div>\n", styles: [":host,.resizer{position:absolute;inset:auto 0 0 auto;width:24px;height:24px;cursor:nwse-resize;z-index:100}\n"] }]
174
- }], ctorParameters: () => [{ type: undefined, decorators: [{
175
- type: Inject,
176
- args: [RXAP_WINDOW_CONTEXT]
177
- }] }], propDecorators: { containerRef: [{
178
- type: Input,
179
- args: [{ required: true }]
180
- }], resizerRef: [{
181
- type: ViewChild,
182
- args: ['resizer', { static: true }]
183
- }], width$: [{
184
- type: Output,
185
- args: ['width']
186
- }], height$: [{
187
- type: Output,
188
- args: ['height']
189
- }], resizing$: [{
190
- type: Output,
191
- args: ['resizing']
192
- }] } });
193
-
170
+ args: [{ selector: 'rxap-window-resizer', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIconModule, NgClass], template: "<div #resizer class=\"resizer\">\n <mat-icon [ngClass]=\"{ hidden: resizing() === 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"] }]
171
+ }], ctorParameters: () => [], propDecorators: { containerRef: [{ type: i0.Input, args: [{ isSignal: true, alias: "containerRef", required: true }] }], resizerRef: [{ type: i0.ViewChild, args: ['resizer', { isSignal: true }] }], width$: [{ type: i0.Output, args: ["width"] }], height$: [{ type: i0.Output, args: ["height"] }], resizing$: [{ type: i0.Output, args: ["resizing"] }] } });
194
172
  class WindowContainerComponent {
195
173
  constructor() {
196
- this.injector = inject(INJECTOR);
174
+ this.footerContent = contentChild.required('[footer]');
175
+ this.containerRef = viewChild.required('container');
176
+ this.windowContainerResizer = viewChild.required(WindowResizerComponent);
177
+ this.width = signal('100%', ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
178
+ this.height = signal('100%', ...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
197
179
  this.context = inject(RXAP_WINDOW_CONTEXT);
198
180
  this.windowRef = inject(RXAP_WINDOW_REF);
199
181
  this.windowInstance = inject(LoadingIndicatorService);
182
+ this.windowRef.width$.pipe(isDefined(), filter(value => !!value?.match(/^\d+/)), takeUntilDestroyed()).subscribe(value => this.width.set(value));
183
+ this.windowRef.height$.pipe(isDefined(), filter(value => !!value?.match(/^\d+/)), takeUntilDestroyed()).subscribe(value => this.height.set(value));
200
184
  }
201
- get id() {
202
- return this.context.id;
185
+ onResizerWidth(value) {
186
+ if (value?.match(/^\d+/)) {
187
+ this.width.set(value);
188
+ }
203
189
  }
204
- ngOnInit() {
205
- runInInjectionContext(this.injector, () => {
206
- this.width = toSignal(merge(this.windowContainerResizer.width$, this.windowRef.width$).pipe(isDefined(), filter(value => !!value?.match(/^\d+/))), { initialValue: '100%' });
207
- this.height = toSignal(merge(this.windowContainerResizer.height$, this.windowRef.height$).pipe(isDefined(), filter(value => !!value?.match(/^\d+/))), { initialValue: '100%' });
208
- });
190
+ onResizerHeight(value) {
191
+ if (value?.match(/^\d+/)) {
192
+ this.height.set(value);
193
+ }
209
194
  }
210
195
  onDragEnded($event) {
211
196
  const nativeElement = $event.source.element.nativeElement;
@@ -214,12 +199,13 @@ class WindowContainerComponent {
214
199
  this.windowRef.setPos(pos.left + 'px', pos.top + 'px');
215
200
  }
216
201
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
217
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: WindowContainerComponent, isStandalone: true, selector: "rxap-window-container", host: { properties: { "attr.data-id": "this.id" }, classAttribute: "rxap-window-container" }, queries: [{ propertyName: "footerContent", first: true, predicate: ["[footer]"], descendants: true, static: true }], viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["container"], descendants: true, static: true }, { propertyName: "windowContainerResizer", first: true, predicate: WindowResizerComponent, descendants: true, static: true }], ngImport: i0, template: "<div #container\n (cdkDragEnded)=\"onDragEnded($event)\"\n [cdkDragDisabled]=\"windowRef.draggable === false\"\n [ngStyle]=\"{\n 'width': width(),\n 'height': height(),\n 'minWidth': windowRef.minWidth,\n 'minHeight': windowRef.minHeight,\n 'maxWidth': windowRef.maxWidth,\n 'maxHeight': windowRef.maxHeight\n }\"\n cdkDrag\n cdkDragBoundary=\".cdk-overlay-container\"\n class=\"drop-shadow-2xl bg-white dark:bg-black border-2 border-gray-400 dark:border-gray-800 rounded-xl overflow-hidden\">\n <div class=\"flex flex-col h-full max-h-full\">\n\n <div cdkDragHandle class=\"grow-0 w-full h-[64px] min-h-[64px] cursor-move\">\n <rxap-window-tool-bar></rxap-window-tool-bar>\n </div>\n\n <div class=\"grow overflow-auto w-full\">\n <ng-content></ng-content>\n </div>\n\n @if (windowRef.footerPortal$ | async; as footerPortal) {\n <mat-toolbar class=\"mat-elevation-z1 grow-0 w-full h-[64px] min-h-[64px]\">\n <ng-template [cdkPortalOutlet]=\"footerPortal\"></ng-template>\n </mat-toolbar>\n }\n\n @if (windowInstance.isLoading$ | async) {\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n }\n\n <rxap-window-resizer [containerRef]=\"containerRef\"></rxap-window-resizer>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], 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: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i3.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: WindowResizerComponent, selector: "rxap-window-resizer", inputs: ["containerRef"], outputs: ["width", "height", "resizing"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
202
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: WindowContainerComponent, isStandalone: true, selector: "rxap-window-container", host: { properties: { "attr.data-id": "context.id" }, classAttribute: "rxap-window-container" }, queries: [{ propertyName: "footerContent", first: true, predicate: ["[footer]"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["container"], descendants: true, isSignal: true }, { propertyName: "windowContainerResizer", first: true, predicate: WindowResizerComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<div #container\n (cdkDragEnded)=\"onDragEnded($event)\"\n [cdkDragDisabled]=\"windowRef.draggable === false\"\n [ngStyle]=\"{\n 'width': width(),\n 'height': height(),\n 'minWidth': windowRef.minWidth,\n 'minHeight': windowRef.minHeight,\n 'maxWidth': windowRef.maxWidth,\n 'maxHeight': windowRef.maxHeight\n }\"\n cdkDrag\n cdkDragBoundary=\".cdk-overlay-container\"\n class=\"drop-shadow-2xl bg-white dark:bg-black border-2 border-gray-400 dark:border-gray-800 rounded-xl overflow-hidden\">\n <div class=\"flex flex-col h-full max-h-full\">\n\n <div cdkDragHandle class=\"grow-0 w-full h-[64px] min-h-[64px] cursor-move\">\n <rxap-window-tool-bar></rxap-window-tool-bar>\n </div>\n\n <div class=\"grow overflow-auto w-full\">\n <ng-content></ng-content>\n </div>\n\n @if (windowRef.footerPortal$ | async; as footerPortal) {\n <mat-toolbar class=\"mat-elevation-z1 grow-0 w-full h-[64px] min-h-[64px]\">\n <ng-template [cdkPortalOutlet]=\"footerPortal\"></ng-template>\n </mat-toolbar>\n }\n\n @if (windowInstance.isLoading$ | async) {\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n }\n\n <rxap-window-resizer [containerRef]=\"containerRef()\"\n (width)=\"onResizerWidth($event)\"\n (height)=\"onResizerHeight($event)\"></rxap-window-resizer>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], 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: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i3.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: WindowResizerComponent, selector: "rxap-window-resizer", inputs: ["containerRef"], outputs: ["width", "height", "resizing"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
218
203
  }
219
204
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowContainerComponent, decorators: [{
220
205
  type: Component,
221
- args: [{ selector: 'rxap-window-container', changeDetection: ChangeDetectionStrategy.Default, host: {
206
+ args: [{ selector: 'rxap-window-container', changeDetection: ChangeDetectionStrategy.OnPush, host: {
222
207
  class: 'rxap-window-container',
208
+ '[attr.data-id]': 'context.id',
223
209
  }, imports: [
224
210
  CdkDrag,
225
211
  NgStyle,
@@ -230,21 +216,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
230
216
  MatProgressBarModule,
231
217
  WindowResizerComponent,
232
218
  AsyncPipe,
233
- ], template: "<div #container\n (cdkDragEnded)=\"onDragEnded($event)\"\n [cdkDragDisabled]=\"windowRef.draggable === false\"\n [ngStyle]=\"{\n 'width': width(),\n 'height': height(),\n 'minWidth': windowRef.minWidth,\n 'minHeight': windowRef.minHeight,\n 'maxWidth': windowRef.maxWidth,\n 'maxHeight': windowRef.maxHeight\n }\"\n cdkDrag\n cdkDragBoundary=\".cdk-overlay-container\"\n class=\"drop-shadow-2xl bg-white dark:bg-black border-2 border-gray-400 dark:border-gray-800 rounded-xl overflow-hidden\">\n <div class=\"flex flex-col h-full max-h-full\">\n\n <div cdkDragHandle class=\"grow-0 w-full h-[64px] min-h-[64px] cursor-move\">\n <rxap-window-tool-bar></rxap-window-tool-bar>\n </div>\n\n <div class=\"grow overflow-auto w-full\">\n <ng-content></ng-content>\n </div>\n\n @if (windowRef.footerPortal$ | async; as footerPortal) {\n <mat-toolbar class=\"mat-elevation-z1 grow-0 w-full h-[64px] min-h-[64px]\">\n <ng-template [cdkPortalOutlet]=\"footerPortal\"></ng-template>\n </mat-toolbar>\n }\n\n @if (windowInstance.isLoading$ | async) {\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n }\n\n <rxap-window-resizer [containerRef]=\"containerRef\"></rxap-window-resizer>\n </div>\n</div>\n" }]
234
- }], propDecorators: { footerContent: [{
235
- type: ContentChild,
236
- args: ['[footer]', { static: true }]
237
- }], containerRef: [{
238
- type: ViewChild,
239
- args: ['container', { static: true }]
240
- }], windowContainerResizer: [{
241
- type: ViewChild,
242
- args: [WindowResizerComponent, { static: true }]
243
- }], id: [{
244
- type: HostBinding,
245
- args: ['attr.data-id']
246
- }] } });
247
-
219
+ ], template: "<div #container\n (cdkDragEnded)=\"onDragEnded($event)\"\n [cdkDragDisabled]=\"windowRef.draggable === false\"\n [ngStyle]=\"{\n 'width': width(),\n 'height': height(),\n 'minWidth': windowRef.minWidth,\n 'minHeight': windowRef.minHeight,\n 'maxWidth': windowRef.maxWidth,\n 'maxHeight': windowRef.maxHeight\n }\"\n cdkDrag\n cdkDragBoundary=\".cdk-overlay-container\"\n class=\"drop-shadow-2xl bg-white dark:bg-black border-2 border-gray-400 dark:border-gray-800 rounded-xl overflow-hidden\">\n <div class=\"flex flex-col h-full max-h-full\">\n\n <div cdkDragHandle class=\"grow-0 w-full h-[64px] min-h-[64px] cursor-move\">\n <rxap-window-tool-bar></rxap-window-tool-bar>\n </div>\n\n <div class=\"grow overflow-auto w-full\">\n <ng-content></ng-content>\n </div>\n\n @if (windowRef.footerPortal$ | async; as footerPortal) {\n <mat-toolbar class=\"mat-elevation-z1 grow-0 w-full h-[64px] min-h-[64px]\">\n <ng-template [cdkPortalOutlet]=\"footerPortal\"></ng-template>\n </mat-toolbar>\n }\n\n @if (windowInstance.isLoading$ | async) {\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n }\n\n <rxap-window-resizer [containerRef]=\"containerRef()\"\n (width)=\"onResizerWidth($event)\"\n (height)=\"onResizerHeight($event)\"></rxap-window-resizer>\n </div>\n</div>\n" }]
220
+ }], ctorParameters: () => [], propDecorators: { footerContent: [{ type: i0.ContentChild, args: ['[footer]', { isSignal: true }] }], containerRef: [{ type: i0.ViewChild, args: ['container', { isSignal: true }] }], windowContainerResizer: [{ type: i0.ViewChild, args: [i0.forwardRef(() => WindowResizerComponent), { isSignal: true }] }] } });
248
221
  class DefaultWindowComponent {
249
222
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DefaultWindowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
250
223
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: DefaultWindowComponent, isStandalone: true, selector: "rxap-default-window", ngImport: i0, template: "<rxap-window-container>\n <rxap-window-content></rxap-window-content>\n</rxap-window-container>\n", styles: [""], dependencies: [{ kind: "component", type: WindowContainerComponent, selector: "rxap-window-container" }, { kind: "component", type: WindowContentComponent, selector: "rxap-window-content" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
@@ -253,7 +226,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
253
226
  type: Component,
254
227
  args: [{ selector: 'rxap-default-window', changeDetection: ChangeDetectionStrategy.Default, imports: [WindowContainerComponent, WindowContentComponent], template: "<rxap-window-container>\n <rxap-window-content></rxap-window-content>\n</rxap-window-container>\n" }]
255
228
  }] });
256
-
257
229
  function GetWindowStartPos() {
258
230
  let top = '16px';
259
231
  let left = '16px';
@@ -280,7 +252,6 @@ function GetWindowStartPos() {
280
252
  left,
281
253
  };
282
254
  }
283
-
284
255
  const DEFAULT_WINDOW_CONFIG = {
285
256
  resizeable: true,
286
257
  draggable: true,
@@ -292,7 +263,6 @@ const DEFAULT_WINDOW_CONFIG = {
292
263
  maxHeight: '100vh',
293
264
  minimizable: false,
294
265
  };
295
-
296
266
  class WindowRef extends Subject {
297
267
  constructor(overlayRef, overlay, settings) {
298
268
  super();
@@ -472,13 +442,12 @@ class WindowRef extends Subject {
472
442
  }
473
443
  }
474
444
  }
475
-
476
445
  class WindowService {
477
- constructor(injector, overlay, componentFactoryResolver, defaultWindowSettings) {
478
- this.injector = injector;
479
- this.overlay = overlay;
480
- this.componentFactoryResolver = componentFactoryResolver;
481
- this.defaultWindowSettings = defaultWindowSettings;
446
+ constructor() {
447
+ this.injector = inject(Injector);
448
+ this.overlay = inject(Overlay);
449
+ this.componentFactoryResolver = inject(ComponentFactoryResolver);
450
+ this.defaultWindowSettings = inject(RXAP_WINDOW_DEFAULT_SETTINGS, { optional: true });
482
451
  this.activeCount$ = new Subject();
483
452
  this.active = new Map();
484
453
  }
@@ -597,37 +566,25 @@ class WindowService {
597
566
  });
598
567
  return this.overlay.create(overlayConfig);
599
568
  }
600
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowService, deps: [{ token: Injector }, { token: Overlay }, { token: ComponentFactoryResolver }, { token: RXAP_WINDOW_DEFAULT_SETTINGS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
569
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
601
570
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowService, providedIn: 'root' }); }
602
571
  }
603
572
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowService, decorators: [{
604
573
  type: Injectable,
605
574
  args: [{ providedIn: 'root' }]
606
- }], ctorParameters: () => [{ type: i0.Injector, decorators: [{
607
- type: Inject,
608
- args: [Injector]
609
- }] }, { type: i1$3.Overlay, decorators: [{
610
- type: Inject,
611
- args: [Overlay]
612
- }] }, { type: i0.ComponentFactoryResolver, decorators: [{
613
- type: Inject,
614
- args: [ComponentFactoryResolver]
615
- }] }, { type: undefined, decorators: [{
616
- type: Optional
617
- }, {
618
- type: Inject,
619
- args: [RXAP_WINDOW_DEFAULT_SETTINGS]
620
- }] }] });
621
-
575
+ }] });
622
576
  class WindowTaskComponent {
577
+ constructor() {
578
+ this.window = input.required(...(ngDevMode ? [{ debugName: "window" }] : /* istanbul ignore next */ []));
579
+ }
623
580
  close() {
624
- this.window.complete();
581
+ this.window().complete();
625
582
  }
626
583
  reopen() {
627
- this.window.reopen();
584
+ this.window().reopen();
628
585
  }
629
586
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowTaskComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
630
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", 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 @if (window.settings$ | async; as settings) {\n @if (settings.icon) {\n <mat-icon [rxapIcon]=\"settings.icon\"></mat-icon>\n }\n @if (settings.title) {\n <h3 class=\"grow\">{{settings.title}}</h3>\n }\n }\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: "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], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: StopPropagationDirective, selector: "[rxapStopPropagation]" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
587
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: WindowTaskComponent, isStandalone: true, selector: "rxap-window-task", inputs: { window: { classPropertyName: "window", publicName: "window", isSignal: true, isRequired: true, transformFunction: null } }, 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 @if (window().settings$ | async; as settings) {\n @if (settings.icon) {\n <mat-icon [rxapIcon]=\"settings.icon\"></mat-icon>\n }\n @if (settings.title) {\n <h3 class=\"grow\">{{settings.title}}</h3>\n }\n }\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: "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], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: StopPropagationDirective, selector: "[rxapStopPropagation]" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
631
588
  }
632
589
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowTaskComponent, decorators: [{
633
590
  type: Component,
@@ -638,50 +595,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
638
595
  MatButtonModule,
639
596
  StopPropagationDirective,
640
597
  AsyncPipe
641
- ], 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 @if (window.settings$ | async; as settings) {\n @if (settings.icon) {\n <mat-icon [rxapIcon]=\"settings.icon\"></mat-icon>\n }\n @if (settings.title) {\n <h3 class=\"grow\">{{settings.title}}</h3>\n }\n }\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"] }]
642
- }], propDecorators: { window: [{
643
- type: Input,
644
- args: [{ required: true }]
645
- }] } });
646
-
647
- class WindowTaskBarComponent {
648
- constructor(windowService, cdr) {
649
- this.windowService = windowService;
650
- this.cdr = cdr;
651
- this.subscriptions = new Subscription();
652
- }
653
- ngOnInit() {
654
- this.subscriptions.add(this.windowService.activeCount$.pipe(tap(() => this.cdr.markForCheck())).subscribe());
655
- }
656
- ngOnDestroy() {
657
- this.subscriptions.unsubscribe();
598
+ ], 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 @if (window().settings$ | async; as settings) {\n @if (settings.icon) {\n <mat-icon [rxapIcon]=\"settings.icon\"></mat-icon>\n }\n @if (settings.title) {\n <h3 class=\"grow\">{{settings.title}}</h3>\n }\n }\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"] }]
599
+ }], propDecorators: { window: [{ type: i0.Input, args: [{ isSignal: true, alias: "window", required: true }] }] } });
600
+ let WindowTaskBarComponent = class WindowTaskBarComponent {
601
+ constructor() {
602
+ this.windowService = inject(WindowService);
603
+ /**
604
+ * Emits whenever the number of active windows changes. Reading the signal in the template
605
+ * marks the component dirty so the window list is re-evaluated.
606
+ */
607
+ this.activeCount = toSignal(this.windowService.activeCount$);
658
608
  }
659
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowTaskBarComponent, deps: [{ token: WindowService }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
660
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: WindowTaskBarComponent, isStandalone: true, selector: "rxap-window-task-bar", ngImport: i0, template: "<div class=\"tasks grow-0 flex flex-row flex-wrap\">\n @for (window of windowService.allActiveWindows; track window) {\n <rxap-window-task\n [window]=\"window\"\n class=\"grow-0\">\n </rxap-window-task>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: WindowTaskComponent, selector: "rxap-window-task", inputs: ["window"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
661
- }
609
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowTaskBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
610
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: WindowTaskBarComponent, isStandalone: true, selector: "rxap-window-task-bar", ngImport: i0, template: "@let _activeCount = activeCount();\n<div class=\"tasks grow-0 flex flex-row flex-wrap\">\n @for (window of windowService.allActiveWindows; track window) {\n <rxap-window-task\n [window]=\"window\"\n class=\"grow-0\">\n </rxap-window-task>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: WindowTaskComponent, selector: "rxap-window-task", inputs: ["window"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
611
+ };
662
612
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowTaskBarComponent, decorators: [{
663
613
  type: Component,
664
- args: [{ selector: 'rxap-window-task-bar', changeDetection: ChangeDetectionStrategy.OnPush, imports: [WindowTaskComponent], template: "<div class=\"tasks grow-0 flex flex-row flex-wrap\">\n @for (window of windowService.allActiveWindows; track window) {\n <rxap-window-task\n [window]=\"window\"\n class=\"grow-0\">\n </rxap-window-task>\n }\n</div>\n" }]
665
- }], ctorParameters: () => [{ type: WindowService, decorators: [{
666
- type: Inject,
667
- args: [WindowService]
668
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
669
- type: Inject,
670
- args: [ChangeDetectorRef]
671
- }] }] });
672
-
614
+ args: [{ selector: 'rxap-window-task-bar', changeDetection: ChangeDetectionStrategy.OnPush, imports: [WindowTaskComponent], template: "@let _activeCount = activeCount();\n<div class=\"tasks grow-0 flex flex-row flex-wrap\">\n @for (window of windowService.allActiveWindows; track window) {\n <rxap-window-task\n [window]=\"window\"\n class=\"grow-0\">\n </rxap-window-task>\n }\n</div>\n" }]
615
+ }] });
673
616
  const RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS = new InjectionToken('rxap/window-system/task-bar-container');
674
617
  class WindowTaskBarContainerComponent {
675
- constructor(windowService, settings = null) {
676
- this.windowService = windowService;
618
+ constructor() {
619
+ this.windowService = inject(WindowService);
677
620
  this.expand = true;
621
+ const settings = inject(RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS, { optional: true }) ?? null;
678
622
  if (settings) {
679
623
  if (settings.expand !== undefined) {
680
624
  this.expand = settings.expand;
681
625
  }
682
626
  }
683
627
  }
684
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowTaskBarContainerComponent, deps: [{ token: WindowService }, { token: RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
628
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowTaskBarContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
685
629
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: WindowTaskBarContainerComponent, isStandalone: true, selector: "rxap-window-task-bar-container", ngImport: i0, template: "@if (windowService.hasActiveWindows) {\n <div 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 @if (!expand) {\n <mat-icon>keyboard_arrow_up</mat-icon>\n }\n @if (expand) {\n <mat-icon>keyboard_arrow_down</mat-icon>\n }\n </button>\n </div>\n <mat-toolbar [ngClass]=\"{ hidden: !expand }\" class=\"tasks\">\n <rxap-window-task-bar></rxap-window-task-bar>\n </mat-toolbar>\n </div>\n}\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: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatBadgeModule }, { kind: "directive", type: i2$1.MatBadge, selector: "[matBadge]", inputs: ["matBadgeColor", "matBadgeOverlap", "matBadgeDisabled", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: WindowTaskBarComponent, selector: "rxap-window-task-bar" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
686
630
  }
687
631
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowTaskBarContainerComponent, decorators: [{
@@ -694,57 +638,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
694
638
  WindowTaskBarComponent,
695
639
  NgClass
696
640
  ], template: "@if (windowService.hasActiveWindows) {\n <div 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 @if (!expand) {\n <mat-icon>keyboard_arrow_up</mat-icon>\n }\n @if (expand) {\n <mat-icon>keyboard_arrow_down</mat-icon>\n }\n </button>\n </div>\n <mat-toolbar [ngClass]=\"{ hidden: !expand }\" class=\"tasks\">\n <rxap-window-task-bar></rxap-window-task-bar>\n </mat-toolbar>\n </div>\n}\n", styles: [".rxap-container .pin{border:none;border-radius:50% 50% 0 0;cursor:pointer}.rxap-container .tasks{height:auto;padding:16px}\n"] }]
697
- }], ctorParameters: () => [{ type: WindowService, decorators: [{
698
- type: Inject,
699
- args: [WindowService]
700
- }] }, { type: undefined, decorators: [{
701
- type: Optional
702
- }, {
703
- type: Inject,
704
- args: [RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS]
705
- }] }] });
706
-
707
- class WindowTaskBarModule {
708
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowTaskBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
709
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: WindowTaskBarModule, imports: [WindowTaskBarComponent, WindowTaskComponent, WindowTaskBarContainerComponent], exports: [WindowTaskBarComponent, WindowTaskBarContainerComponent] }); }
710
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowTaskBarModule, imports: [WindowTaskBarComponent, WindowTaskComponent, WindowTaskBarContainerComponent] }); }
711
- }
712
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowTaskBarModule, decorators: [{
713
- type: NgModule,
714
- args: [{
715
- imports: [
716
- WindowTaskBarComponent, WindowTaskComponent, WindowTaskBarContainerComponent,
717
- ],
718
- exports: [WindowTaskBarComponent, WindowTaskBarContainerComponent],
719
- }]
720
- }] });
721
-
641
+ }], ctorParameters: () => [] });
722
642
  class WindowActionBarComponent {
723
- constructor(context, injector) {
724
- this.injector = injector;
643
+ constructor() {
644
+ this.injector = inject(Injector);
725
645
  this.definitions = null;
726
646
  this.position = 'start';
647
+ // the removed actions feature accesses the protected window settings
648
+ const context = inject(RXAP_WINDOW_CONTEXT);
727
649
  if (context.windowRef.settings.actions) {
728
650
  this.definitions = context.windowRef.settings.actions.definitions;
729
651
  this.position = context.windowRef.settings.actions.position || this.position;
730
652
  }
731
653
  }
732
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowActionBarComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
733
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: WindowActionBarComponent, isStandalone: true, selector: "rxap-window-action-bar", ngImport: i0, template: "@if (definitions) {\n <mat-toolbar-row class=\"p-2 flex flex-row gap-2 justify-{{position}} items-center\">\n <span>this feature is removed</span>\n </mat-toolbar-row>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatToolbarModule }, { kind: "directive", type: i1.MatToolbarRow, selector: "mat-toolbar-row", exportAs: ["matToolbarRow"] }] }); }
654
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowActionBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
655
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: WindowActionBarComponent, isStandalone: true, selector: "rxap-window-action-bar", ngImport: i0, template: "@if (definitions) {\n <mat-toolbar-row class=\"p-2 flex flex-row gap-2 justify-{{position}} items-center\">\n <span>this feature is removed</span>\n </mat-toolbar-row>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatToolbarModule }, { kind: "directive", type: i1.MatToolbarRow, selector: "mat-toolbar-row", exportAs: ["matToolbarRow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
734
656
  }
735
657
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowActionBarComponent, decorators: [{
736
658
  type: Component,
737
- args: [{ selector: 'rxap-window-action-bar', imports: [MatToolbarModule], template: "@if (definitions) {\n <mat-toolbar-row class=\"p-2 flex flex-row gap-2 justify-{{position}} items-center\">\n <span>this feature is removed</span>\n </mat-toolbar-row>\n}\n" }]
738
- }], ctorParameters: () => [{ type: undefined, decorators: [{
739
- type: Inject,
740
- args: [RXAP_WINDOW_CONTEXT]
741
- }] }, { type: i0.Injector }] });
742
-
659
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'rxap-window-action-bar', imports: [MatToolbarModule], template: "@if (definitions) {\n <mat-toolbar-row class=\"p-2 flex flex-row gap-2 justify-{{position}} items-center\">\n <span>this feature is removed</span>\n </mat-toolbar-row>\n}\n" }]
660
+ }], ctorParameters: () => [] });
743
661
  class WindowFooterDirective {
744
- constructor(windowRef, template, viewContainerRef) {
745
- this.windowRef = windowRef;
746
- this.template = template;
747
- this.viewContainerRef = viewContainerRef;
662
+ constructor() {
663
+ this.windowRef = inject(RXAP_WINDOW_REF);
664
+ this.template = inject(TemplateRef);
665
+ this.viewContainerRef = inject(ViewContainerRef);
748
666
  }
749
667
  /**
750
668
  * Asserts the correct type of the context for the template that `NgForOf` will render.
@@ -760,7 +678,7 @@ class WindowFooterDirective {
760
678
  $implicit: this.windowRef,
761
679
  }));
762
680
  }
763
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowFooterDirective, deps: [{ token: RXAP_WINDOW_REF }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
681
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowFooterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
764
682
  static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: WindowFooterDirective, isStandalone: true, selector: "[rxapWindowFooter]", ngImport: i0 }); }
765
683
  }
766
684
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowFooterDirective, decorators: [{
@@ -769,17 +687,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
769
687
  selector: '[rxapWindowFooter]',
770
688
  standalone: true,
771
689
  }]
772
- }], ctorParameters: () => [{ type: WindowRef, decorators: [{
773
- type: Inject,
774
- args: [RXAP_WINDOW_REF]
775
- }] }, { type: i0.TemplateRef, decorators: [{
776
- type: Inject,
777
- args: [TemplateRef]
778
- }] }, { type: i0.ViewContainerRef, decorators: [{
779
- type: Inject,
780
- args: [ViewContainerRef]
781
- }] }] });
782
-
690
+ }] });
783
691
  class WindowInstanceService {
784
692
  constructor() {
785
693
  this.loading$ = new ToggleSubject(false);
@@ -797,50 +705,6 @@ class WindowInstanceService {
797
705
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowInstanceService, decorators: [{
798
706
  type: Injectable
799
707
  }] });
800
-
801
- // TODO : refactor to be used without a central module
802
- class RxapWindowSystemModule {
803
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RxapWindowSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
804
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: RxapWindowSystemModule, imports: [WindowContainerComponent,
805
- WindowToolBarComponent,
806
- WindowResizerComponent,
807
- DefaultWindowComponent,
808
- WindowContentComponent,
809
- WindowActionBarComponent], exports: [WindowContainerComponent,
810
- WindowToolBarComponent,
811
- WindowResizerComponent,
812
- DefaultWindowComponent,
813
- WindowContentComponent,
814
- WindowTaskBarModule] }); }
815
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RxapWindowSystemModule, imports: [WindowContainerComponent,
816
- WindowToolBarComponent,
817
- WindowResizerComponent,
818
- DefaultWindowComponent,
819
- WindowContentComponent,
820
- WindowActionBarComponent, WindowTaskBarModule] }); }
821
- }
822
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RxapWindowSystemModule, decorators: [{
823
- type: NgModule,
824
- args: [{
825
- imports: [
826
- WindowContainerComponent,
827
- WindowToolBarComponent,
828
- WindowResizerComponent,
829
- DefaultWindowComponent,
830
- WindowContentComponent,
831
- WindowActionBarComponent,
832
- ],
833
- exports: [
834
- WindowContainerComponent,
835
- WindowToolBarComponent,
836
- WindowResizerComponent,
837
- DefaultWindowComponent,
838
- WindowContentComponent,
839
- WindowTaskBarModule,
840
- ],
841
- }]
842
- }] });
843
-
844
708
  class WindowTitleDirective {
845
709
  constructor() {
846
710
  this.windowRef = inject(RXAP_WINDOW_REF);
@@ -871,13 +735,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
871
735
  standalone: true,
872
736
  }]
873
737
  }] });
874
-
875
738
  // region window-tool-bar
876
739
  // endregion
877
-
878
740
  /**
879
741
  * Generated bundle index. Do not edit.
880
742
  */
881
-
882
- export { DEFAULT_WINDOW_CONFIG, DefaultWindowComponent, GetWindowStartPos, RXAP_WINDOW_CONTAINER_CONTEXT, RXAP_WINDOW_CONTEXT, RXAP_WINDOW_DATA, RXAP_WINDOW_DEFAULT_SETTINGS, RXAP_WINDOW_REF, RXAP_WINDOW_SETTINGS, RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS, RxapWindowSystemModule, WindowActionBarComponent, WindowContainerComponent, WindowContentComponent, WindowFooterDirective, WindowInstanceService, WindowRef, WindowResizerComponent, WindowService, WindowTaskBarComponent, WindowTaskBarContainerComponent, WindowTaskBarModule, WindowTaskComponent, WindowTitleDirective, WindowToolBarComponent };
883
- //# sourceMappingURL=rxap-window-system.mjs.map
743
+ export { DEFAULT_WINDOW_CONFIG, DefaultWindowComponent, GetWindowStartPos, RXAP_WINDOW_CONTAINER_CONTEXT, RXAP_WINDOW_CONTEXT, RXAP_WINDOW_DATA, RXAP_WINDOW_DEFAULT_SETTINGS, RXAP_WINDOW_REF, RXAP_WINDOW_SETTINGS, RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS, WindowActionBarComponent, WindowContainerComponent, WindowContentComponent, WindowFooterDirective, WindowInstanceService, WindowRef, WindowResizerComponent, WindowService, WindowTaskBarComponent, WindowTaskBarContainerComponent, WindowTaskComponent, WindowTitleDirective, WindowToolBarComponent };