@rxap/window-system 19.0.5 → 21.0.1-dev.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 (158) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/compodoc/changelog.html +37 -0
  3. package/compodoc/classes/WindowRef.html +46 -47
  4. package/compodoc/components/WindowActionBarComponent.html +26 -64
  5. package/compodoc/components/WindowContainerComponent.html +219 -175
  6. package/compodoc/components/WindowContentComponent.html +27 -135
  7. package/compodoc/components/WindowResizerComponent.html +188 -194
  8. package/compodoc/components/WindowTaskBarComponent.html +43 -166
  9. package/compodoc/components/WindowTaskBarContainerComponent.html +43 -105
  10. package/compodoc/components/WindowTaskComponent.html +71 -66
  11. package/compodoc/components/WindowToolBarComponent.html +33 -65
  12. package/compodoc/dependencies.html +11 -11
  13. package/compodoc/directives/WindowFooterDirective.html +6 -90
  14. package/compodoc/graph/dependencies.svg +15 -255
  15. package/compodoc/injectables/WindowService.html +23 -124
  16. package/compodoc/interfaces/WindowFooterTemplateContext.html +4 -16
  17. package/compodoc/interfaces/WindowTaskBarContainerSettings.html +14 -25
  18. package/compodoc/js/menu-wc.js +0 -67
  19. package/compodoc/js/menu-wc_es5.js +1 -1
  20. package/compodoc/js/search/search_index.js +2 -2
  21. package/compodoc/modules.html +0 -34
  22. package/compodoc/overview.html +1 -287
  23. package/compodoc/properties.html +1 -1
  24. package/docs/documentation.json +2306 -3085
  25. package/docs/html/assets/hierarchy.js +1 -1
  26. package/docs/html/assets/navigation.js +1 -1
  27. package/docs/html/assets/search.js +1 -1
  28. package/docs/html/classes/DefaultWindowComponent.html +2 -2
  29. package/docs/html/classes/WindowActionBarComponent.html +2 -2
  30. package/docs/html/classes/WindowContainerComponent.html +5 -10
  31. package/docs/html/classes/WindowContentComponent.html +2 -12
  32. package/docs/html/classes/WindowFooterDirective.html +4 -4
  33. package/docs/html/classes/WindowInstanceService.html +3 -3
  34. package/docs/html/classes/WindowRef.html +22 -22
  35. package/docs/html/classes/WindowResizerComponent.html +6 -10
  36. package/docs/html/classes/WindowService.html +2 -2
  37. package/docs/html/classes/WindowTaskBarComponent.html +5 -13
  38. package/docs/html/classes/WindowTaskBarContainerComponent.html +2 -2
  39. package/docs/html/classes/WindowTaskComponent.html +2 -2
  40. package/docs/html/classes/WindowTitleDirective.html +3 -3
  41. package/docs/html/classes/WindowToolBarComponent.html +2 -2
  42. package/docs/html/functions/GetWindowStartPos.html +1 -1
  43. package/docs/html/hierarchy.html +1 -1
  44. package/docs/html/index.html +2 -2
  45. package/docs/html/interfaces/WindowActions.html +2 -2
  46. package/docs/html/interfaces/WindowConfig.html +2 -2
  47. package/docs/html/interfaces/WindowContainerContext.html +2 -2
  48. package/docs/html/interfaces/WindowContext.html +2 -2
  49. package/docs/html/interfaces/WindowFooterTemplateContext.html +2 -2
  50. package/docs/html/interfaces/WindowSettings.html +2 -2
  51. package/docs/html/interfaces/WindowTaskBarContainerSettings.html +2 -2
  52. package/docs/html/interfaces/WindowTitleTemplateContext.html +2 -2
  53. package/docs/html/modules.html +1 -1
  54. package/docs/html/variables/DEFAULT_WINDOW_CONFIG.html +1 -1
  55. package/docs/html/variables/RXAP_WINDOW_CONTAINER_CONTEXT.html +1 -1
  56. package/docs/html/variables/RXAP_WINDOW_CONTEXT.html +1 -1
  57. package/docs/html/variables/RXAP_WINDOW_DATA.html +1 -1
  58. package/docs/html/variables/RXAP_WINDOW_DEFAULT_SETTINGS.html +1 -1
  59. package/docs/html/variables/RXAP_WINDOW_REF.html +1 -1
  60. package/docs/html/variables/RXAP_WINDOW_SETTINGS.html +1 -1
  61. package/docs/html/variables/RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS.html +1 -1
  62. package/docs/markdown/README.md +1 -1
  63. package/docs/markdown/classes/DefaultWindowComponent.md +2 -2
  64. package/docs/markdown/classes/WindowActionBarComponent.md +7 -17
  65. package/docs/markdown/classes/WindowContainerComponent.md +42 -44
  66. package/docs/markdown/classes/WindowContentComponent.md +8 -77
  67. package/docs/markdown/classes/WindowFooterDirective.md +5 -21
  68. package/docs/markdown/classes/WindowInstanceService.md +5 -5
  69. package/docs/markdown/classes/WindowRef.md +69 -71
  70. package/docs/markdown/classes/WindowResizerComponent.md +26 -45
  71. package/docs/markdown/classes/WindowService.md +13 -33
  72. package/docs/markdown/classes/WindowTaskBarComponent.md +9 -72
  73. package/docs/markdown/classes/WindowTaskBarContainerComponent.md +6 -16
  74. package/docs/markdown/classes/WindowTaskComponent.md +6 -6
  75. package/docs/markdown/classes/WindowTitleDirective.md +4 -4
  76. package/docs/markdown/classes/WindowToolBarComponent.md +5 -11
  77. package/docs/markdown/functions/GetWindowStartPos.md +2 -2
  78. package/docs/markdown/globals.md +2 -4
  79. package/docs/markdown/interfaces/WindowActions.md +4 -4
  80. package/docs/markdown/interfaces/WindowConfig.md +25 -25
  81. package/docs/markdown/interfaces/WindowContainerContext.md +4 -4
  82. package/docs/markdown/interfaces/WindowContext.md +6 -6
  83. package/docs/markdown/interfaces/WindowFooterTemplateContext.md +3 -3
  84. package/docs/markdown/interfaces/WindowSettings.md +17 -17
  85. package/docs/markdown/interfaces/WindowTaskBarContainerSettings.md +3 -3
  86. package/docs/markdown/interfaces/WindowTitleTemplateContext.md +3 -3
  87. package/docs/markdown/variables/DEFAULT_WINDOW_CONFIG.md +2 -2
  88. package/docs/markdown/variables/RXAP_WINDOW_CONTAINER_CONTEXT.md +2 -2
  89. package/docs/markdown/variables/RXAP_WINDOW_CONTEXT.md +2 -2
  90. package/docs/markdown/variables/RXAP_WINDOW_DATA.md +2 -2
  91. package/docs/markdown/variables/RXAP_WINDOW_DEFAULT_SETTINGS.md +2 -2
  92. package/docs/markdown/variables/RXAP_WINDOW_REF.md +2 -2
  93. package/docs/markdown/variables/RXAP_WINDOW_SETTINGS.md +2 -2
  94. package/docs/markdown/variables/RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS.md +2 -2
  95. package/docs/wiki/Class.DefaultWindowComponent.md +1 -1
  96. package/docs/wiki/Class.WindowActionBarComponent.md +6 -16
  97. package/docs/wiki/Class.WindowContainerComponent.md +41 -43
  98. package/docs/wiki/Class.WindowContentComponent.md +7 -76
  99. package/docs/wiki/Class.WindowFooterDirective.md +4 -20
  100. package/docs/wiki/Class.WindowInstanceService.md +4 -4
  101. package/docs/wiki/Class.WindowRef.md +68 -70
  102. package/docs/wiki/Class.WindowResizerComponent.md +25 -44
  103. package/docs/wiki/Class.WindowService.md +12 -32
  104. package/docs/wiki/Class.WindowTaskBarComponent.md +8 -71
  105. package/docs/wiki/Class.WindowTaskBarContainerComponent.md +5 -15
  106. package/docs/wiki/Class.WindowTaskComponent.md +5 -5
  107. package/docs/wiki/Class.WindowTitleDirective.md +3 -3
  108. package/docs/wiki/Class.WindowToolBarComponent.md +4 -10
  109. package/docs/wiki/Function.GetWindowStartPos.md +1 -1
  110. package/docs/wiki/Interface.WindowActions.md +3 -3
  111. package/docs/wiki/Interface.WindowConfig.md +24 -24
  112. package/docs/wiki/Interface.WindowContainerContext.md +3 -3
  113. package/docs/wiki/Interface.WindowContext.md +5 -5
  114. package/docs/wiki/Interface.WindowFooterTemplateContext.md +2 -2
  115. package/docs/wiki/Interface.WindowSettings.md +16 -16
  116. package/docs/wiki/Interface.WindowTaskBarContainerSettings.md +2 -2
  117. package/docs/wiki/Interface.WindowTitleTemplateContext.md +2 -2
  118. package/docs/wiki/Variable.DEFAULT_WINDOW_CONFIG.md +1 -1
  119. package/docs/wiki/Variable.RXAP_WINDOW_CONTAINER_CONTEXT.md +1 -1
  120. package/docs/wiki/Variable.RXAP_WINDOW_CONTEXT.md +1 -1
  121. package/docs/wiki/Variable.RXAP_WINDOW_DATA.md +1 -1
  122. package/docs/wiki/Variable.RXAP_WINDOW_DEFAULT_SETTINGS.md +1 -1
  123. package/docs/wiki/Variable.RXAP_WINDOW_REF.md +1 -1
  124. package/docs/wiki/Variable.RXAP_WINDOW_SETTINGS.md +1 -1
  125. package/docs/wiki/Variable.RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS.md +1 -1
  126. package/docs/wiki/_Sidebar.md +0 -2
  127. package/docs/wiki/globals.md +1 -3
  128. package/fesm2022/rxap-window-system.mjs +151 -296
  129. package/fesm2022/rxap-window-system.mjs.map +1 -1
  130. package/package.json +30 -29
  131. package/types/rxap-window-system.d.ts +305 -0
  132. package/docs/html/classes/RxapWindowSystemModule.html +0 -2
  133. package/docs/html/classes/WindowTaskBarModule.html +0 -2
  134. package/docs/markdown/classes/RxapWindowSystemModule.md +0 -19
  135. package/docs/markdown/classes/WindowTaskBarModule.md +0 -19
  136. package/docs/wiki/Class.RxapWindowSystemModule.md +0 -15
  137. package/docs/wiki/Class.WindowTaskBarModule.md +0 -15
  138. package/index.d.ts +0 -20
  139. package/lib/default-window/default-window.component.d.ts +0 -5
  140. package/lib/tokens.d.ts +0 -10
  141. package/lib/utilities.d.ts +0 -4
  142. package/lib/window-action-bar/window-action-bar.component.d.ts +0 -11
  143. package/lib/window-config.d.ts +0 -35
  144. package/lib/window-container/window-container.component.d.ts +0 -21
  145. package/lib/window-content/window-content.component.d.ts +0 -20
  146. package/lib/window-context.d.ts +0 -13
  147. package/lib/window-footer.directive.d.ts +0 -22
  148. package/lib/window-instance.service.d.ts +0 -12
  149. package/lib/window-ref.d.ts +0 -71
  150. package/lib/window-resizer/window-resizer.component.d.ts +0 -17
  151. package/lib/window-system.module.d.ts +0 -13
  152. package/lib/window-task-bar/window-task/window-task.component.d.ts +0 -9
  153. package/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.d.ts +0 -14
  154. package/lib/window-task-bar/window-task-bar.component.d.ts +0 -14
  155. package/lib/window-task-bar/window-task-bar.module.d.ts +0 -9
  156. package/lib/window-title.directive.d.ts +0 -21
  157. package/lib/window-tool-bar/window-tool-bar.component.d.ts +0 -8
  158. package/lib/window.service.d.ts +0 -27
@@ -1,80 +1,74 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Component, ChangeDetectionStrategy, Inject, ComponentRef, isDevMode, ViewChild, EventEmitter, Input, Output, inject, INJECTOR, runInInjectionContext, ContentChild, HostBinding, InjectFlags, Injector, ViewContainerRef, ComponentFactoryResolver, Injectable, Optional, ChangeDetectorRef, NgModule, TemplateRef, Directive } from '@angular/core';
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';
10
- import { NgIf, AsyncPipe, NgClass, NgStyle, NgFor } from '@angular/common';
9
+ import { PortalModule, CdkPortalOutlet, TemplatePortal, ComponentPortal } from '@angular/cdk/portal';
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: "19.2.16", ngImport: i0, type: WindowToolBarComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }], target: i0.ɵɵFactoryTarget.Component }); }
41
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: WindowToolBarComponent, isStandalone: true, selector: "rxap-window-tool-bar", ngImport: i0, template: "<mat-toolbar class=\"header flex flex-row items-center justify-between gap-x-4\">\n <div class=\"flex flex-row justify-end items-center gap-x-3\">\n <ng-template [ngIfElse]=\"titleFromSettings\" [ngIf]=\"windowRef.titlePortal$ | async\" let-titlePortal>\n <ng-template [cdkPortalOutlet]=\"titlePortal\"></ng-template>\n </ng-template>\n <ng-template #titleFromSettings>\n <ng-template [ngIf]=\"windowRef.settings$ | async\" let-settings>\n <mat-icon *ngIf=\"settings.icon\" [rxapIcon]=\"settings.icon\"></mat-icon>\n <h3 *ngIf=\"settings.title\">{{settings.title}}</h3>\n </ng-template>\n </ng-template>\n </div>\n <div class=\"flex flex-row justify-end items-center\">\n <button (click)=\"windowRef.minimize()\" *ngIf=\"windowRef.minimizable !== false\"\n mat-icon-button type=\"button\">\n <mat-icon>minimize</mat-icon>\n </button>\n <button (click)=\"windowRef.fullScreen()\" mat-icon-button type=\"button\">\n <mat-icon>fullscreen</mat-icon>\n </button>\n <button (click)=\"windowRef.complete()\" mat-icon-button type=\"button\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n</mat-toolbar>\n", styles: [":host{width:100%}.header{height:64px}\n"], dependencies: [{ kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
38
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowToolBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
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
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowToolBarComponent, decorators: [{
41
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowToolBarComponent, decorators: [{
44
42
  type: Component,
45
43
  args: [{ selector: 'rxap-window-tool-bar', changeDetection: ChangeDetectionStrategy.Default, imports: [
46
44
  MatToolbarModule,
47
- NgIf,
48
45
  PortalModule,
49
46
  MatIconModule,
50
47
  IconDirective,
51
48
  MatButtonModule,
52
- AsyncPipe,
53
- ], template: "<mat-toolbar class=\"header flex flex-row items-center justify-between gap-x-4\">\n <div class=\"flex flex-row justify-end items-center gap-x-3\">\n <ng-template [ngIfElse]=\"titleFromSettings\" [ngIf]=\"windowRef.titlePortal$ | async\" let-titlePortal>\n <ng-template [cdkPortalOutlet]=\"titlePortal\"></ng-template>\n </ng-template>\n <ng-template #titleFromSettings>\n <ng-template [ngIf]=\"windowRef.settings$ | async\" let-settings>\n <mat-icon *ngIf=\"settings.icon\" [rxapIcon]=\"settings.icon\"></mat-icon>\n <h3 *ngIf=\"settings.title\">{{settings.title}}</h3>\n </ng-template>\n </ng-template>\n </div>\n <div class=\"flex flex-row justify-end items-center\">\n <button (click)=\"windowRef.minimize()\" *ngIf=\"windowRef.minimizable !== false\"\n mat-icon-button type=\"button\">\n <mat-icon>minimize</mat-icon>\n </button>\n <button (click)=\"windowRef.fullScreen()\" mat-icon-button type=\"button\">\n <mat-icon>fullscreen</mat-icon>\n </button>\n <button (click)=\"windowRef.complete()\" mat-icon-button type=\"button\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n</mat-toolbar>\n", styles: [":host{width:100%}.header{height:64px}\n"] }]
54
- }], ctorParameters: () => [{ type: undefined, decorators: [{
55
- type: Inject,
56
- args: [RXAP_WINDOW_CONTEXT]
57
- }] }] });
58
-
49
+ AsyncPipe
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"] }]
51
+ }], ctorParameters: () => [] });
59
52
  class WindowContentComponent {
60
- constructor(context, windowRef, injector, viewContainerRef, loadingIndicatorService) {
61
- this.windowRef = windowRef;
62
- this.injector = injector;
63
- this.viewContainerRef = viewContainerRef;
64
- 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);
65
58
  this.portal = null;
59
+ this.portalOutlet = viewChild.required(CdkPortalOutlet);
60
+ const context = inject(RXAP_WINDOW_CONTAINER_CONTEXT);
66
61
  this.context = context;
67
- }
68
- ngOnInit() {
69
62
  if (this.context.template) {
70
63
  this.portal = new TemplatePortal(this.context.template, this.viewContainerRef);
71
64
  }
72
65
  else if (this.context.component) {
73
66
  this.portal = new ComponentPortal(this.context.component, this.viewContainerRef, this.injector);
74
67
  }
68
+ afterNextRender(() => this.attach());
75
69
  }
76
- ngAfterViewInit() {
77
- 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 => {
78
72
  const promise = [];
79
73
  if (attachedRef instanceof ComponentRef) {
80
74
  attachedRef.changeDetectorRef.detectChanges();
@@ -103,50 +97,49 @@ class WindowContentComponent {
103
97
  return throwError(error);
104
98
  })).subscribe();
105
99
  }
106
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowContentComponent, deps: [{ token: RXAP_WINDOW_CONTAINER_CONTEXT }, { token: RXAP_WINDOW_REF }, { token: i0.Injector }, { token: i0.ViewContainerRef }, { token: i1$2.LoadingIndicatorService }], target: i0.ɵɵFactoryTarget.Component }); }
107
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: WindowContentComponent, isStandalone: true, selector: "rxap-window-content", viewQueries: [{ propertyName: "portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true }], ngImport: i0, template: "<div class=\"p-4\">\n <ng-template [cdkPortalOutlet]=\"portal\"></ng-template>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
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 }); }
108
102
  }
109
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowContentComponent, decorators: [{
103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowContentComponent, decorators: [{
110
104
  type: Component,
111
- 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" }]
112
- }], ctorParameters: () => [{ type: undefined, decorators: [{
113
- type: Inject,
114
- args: [RXAP_WINDOW_CONTAINER_CONTEXT]
115
- }] }, { type: undefined, decorators: [{
116
- type: Inject,
117
- args: [RXAP_WINDOW_REF]
118
- }] }, { type: i0.Injector }, { type: i0.ViewContainerRef }, { type: i1$2.LoadingIndicatorService }], propDecorators: { portalOutlet: [{
119
- type: ViewChild,
120
- args: [CdkPortalOutlet]
121
- }] } });
122
-
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 }] }] } });
123
107
  class WindowResizerComponent {
124
- constructor(context) {
108
+ constructor() {
109
+ this.containerRef = input.required(...(ngDevMode ? [{ debugName: "containerRef" }] : /* istanbul ignore next */ []));
110
+ this.resizerRef = viewChild.required('resizer');
125
111
  // eslint-disable-next-line @angular-eslint/no-output-rename
126
- this.width$ = new EventEmitter();
112
+ this.width$ = output({ alias: 'width' });
127
113
  // eslint-disable-next-line @angular-eslint/no-output-rename
128
- this.height$ = new EventEmitter();
114
+ this.height$ = output({ alias: 'height' });
129
115
  // eslint-disable-next-line @angular-eslint/no-output-rename
130
- 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 */ []));
131
121
  this._subscription = new Subscription();
122
+ const context = inject(RXAP_WINDOW_CONTEXT);
132
123
  this.windowRef = context.windowRef;
124
+ afterNextRender(() => this.init());
133
125
  }
134
126
  ngOnDestroy() {
135
127
  this._subscription.unsubscribe();
136
128
  }
137
- ngOnInit() {
129
+ init() {
138
130
  let originalMouseX = 0;
139
131
  let originalMouseY = 0;
140
132
  let originalWidth = 0;
141
133
  let originalHeight = 0;
142
- 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);
143
136
  this.resizing$.emit(true);
144
137
  originalMouseX = event.pageX;
145
138
  originalMouseY = event.pageY;
146
- originalWidth = parseFloat(getComputedStyle(this.containerRef.nativeElement, null)
139
+ originalWidth = parseFloat(getComputedStyle(this.containerRef().nativeElement, null)
147
140
  .getPropertyValue('width')
148
141
  .replace('px', ''));
149
- originalHeight = parseFloat(getComputedStyle(this.containerRef.nativeElement, null)
142
+ originalHeight = parseFloat(getComputedStyle(this.containerRef().nativeElement, null)
150
143
  .getPropertyValue('height')
151
144
  .replace('px', ''));
152
145
  }), switchMap(() => fromEvent(window, 'mousemove').pipe(takeUntil(fromEvent(window, 'mouseup')), map((event) => ({
@@ -164,49 +157,40 @@ class WindowResizerComponent {
164
157
  }), tap(size => {
165
158
  this.windowRef.setHeight(size.height);
166
159
  this.windowRef.setWidth(size.width);
167
- }), finalize(() => this.resizing$.emit(false))))).subscribe());
160
+ }), finalize(() => {
161
+ this.resizing.set(false);
162
+ this.resizing$.emit(false);
163
+ })))).subscribe());
168
164
  }
169
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowResizerComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }], target: i0.ɵɵFactoryTarget.Component }); }
170
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: WindowResizerComponent, isStandalone: true, selector: "rxap-window-resizer", inputs: { containerRef: "containerRef" }, outputs: { width$: "width", height$: "height", resizing$: "resizing" }, viewQueries: [{ propertyName: "resizerRef", first: true, predicate: ["resizer"], descendants: true, static: true }], ngImport: i0, template: "<div #resizer class=\"resizer\">\n <mat-icon [ngClass]=\"{ hidden: (resizing$ | async) === false }\">texture</mat-icon>\n</div>\n", styles: [":host,.resizer{position:absolute;inset:auto 0 0 auto;width:24px;height:24px;cursor:nwse-resize;z-index:100}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
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 }); }
171
167
  }
172
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowResizerComponent, decorators: [{
168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowResizerComponent, decorators: [{
173
169
  type: Component,
174
- 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"] }]
175
- }], ctorParameters: () => [{ type: undefined, decorators: [{
176
- type: Inject,
177
- args: [RXAP_WINDOW_CONTEXT]
178
- }] }], propDecorators: { containerRef: [{
179
- type: Input,
180
- args: [{ required: true }]
181
- }], resizerRef: [{
182
- type: ViewChild,
183
- args: ['resizer', { static: true }]
184
- }], width$: [{
185
- type: Output,
186
- args: ['width']
187
- }], height$: [{
188
- type: Output,
189
- args: ['height']
190
- }], resizing$: [{
191
- type: Output,
192
- args: ['resizing']
193
- }] } });
194
-
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"] }] } });
195
172
  class WindowContainerComponent {
196
173
  constructor() {
197
- 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 */ []));
198
179
  this.context = inject(RXAP_WINDOW_CONTEXT);
199
180
  this.windowRef = inject(RXAP_WINDOW_REF);
200
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));
201
184
  }
202
- get id() {
203
- return this.context.id;
185
+ onResizerWidth(value) {
186
+ if (value?.match(/^\d+/)) {
187
+ this.width.set(value);
188
+ }
204
189
  }
205
- ngOnInit() {
206
- runInInjectionContext(this.injector, () => {
207
- this.width = toSignal(merge(this.windowContainerResizer.width$, this.windowRef.width$).pipe(isDefined(), filter(value => !!value?.match(/^\d+/))), { initialValue: '100%' });
208
- this.height = toSignal(merge(this.windowContainerResizer.height$, this.windowRef.height$).pipe(isDefined(), filter(value => !!value?.match(/^\d+/))), { initialValue: '100%' });
209
- });
190
+ onResizerHeight(value) {
191
+ if (value?.match(/^\d+/)) {
192
+ this.height.set(value);
193
+ }
210
194
  }
211
195
  onDragEnded($event) {
212
196
  const nativeElement = $event.source.element.nativeElement;
@@ -214,13 +198,14 @@ class WindowContainerComponent {
214
198
  $event.source.reset();
215
199
  this.windowRef.setPos(pos.left + 'px', pos.top + 'px');
216
200
  }
217
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
218
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.16", 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.Default }); }
201
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
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 }); }
219
203
  }
220
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowContainerComponent, decorators: [{
204
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowContainerComponent, decorators: [{
221
205
  type: Component,
222
- args: [{ selector: 'rxap-window-container', changeDetection: ChangeDetectionStrategy.Default, host: {
206
+ args: [{ selector: 'rxap-window-container', changeDetection: ChangeDetectionStrategy.OnPush, host: {
223
207
  class: 'rxap-window-container',
208
+ '[attr.data-id]': 'context.id',
224
209
  }, imports: [
225
210
  CdkDrag,
226
211
  NgStyle,
@@ -231,30 +216,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImpo
231
216
  MatProgressBarModule,
232
217
  WindowResizerComponent,
233
218
  AsyncPipe,
234
- ], 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" }]
235
- }], propDecorators: { footerContent: [{
236
- type: ContentChild,
237
- args: ['[footer]', { static: true }]
238
- }], containerRef: [{
239
- type: ViewChild,
240
- args: ['container', { static: true }]
241
- }], windowContainerResizer: [{
242
- type: ViewChild,
243
- args: [WindowResizerComponent, { static: true }]
244
- }], id: [{
245
- type: HostBinding,
246
- args: ['attr.data-id']
247
- }] } });
248
-
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 }] }] } });
249
221
  class DefaultWindowComponent {
250
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: DefaultWindowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
251
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: DefaultWindowComponent, isStandalone: true, selector: "rxap-default-window", ngImport: i0, template: "<rxap-window-container>\n <rxap-window-content></rxap-window-content>\n</rxap-window-container>\n", styles: [""], dependencies: [{ kind: "component", type: WindowContainerComponent, selector: "rxap-window-container" }, { kind: "component", type: WindowContentComponent, selector: "rxap-window-content" }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
222
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DefaultWindowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
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 }); }
252
224
  }
253
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: DefaultWindowComponent, decorators: [{
225
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DefaultWindowComponent, decorators: [{
254
226
  type: Component,
255
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" }]
256
228
  }] });
257
-
258
229
  function GetWindowStartPos() {
259
230
  let top = '16px';
260
231
  let left = '16px';
@@ -281,7 +252,6 @@ function GetWindowStartPos() {
281
252
  left,
282
253
  };
283
254
  }
284
-
285
255
  const DEFAULT_WINDOW_CONFIG = {
286
256
  resizeable: true,
287
257
  draggable: true,
@@ -293,7 +263,6 @@ const DEFAULT_WINDOW_CONFIG = {
293
263
  maxHeight: '100vh',
294
264
  minimizable: false,
295
265
  };
296
-
297
266
  class WindowRef extends Subject {
298
267
  constructor(overlayRef, overlay, settings) {
299
268
  super();
@@ -464,7 +433,7 @@ class WindowRef extends Subject {
464
433
  * @private
465
434
  */
466
435
  updateWindowSettings(componentRef) {
467
- const settings = componentRef?.injector.get(RXAP_WINDOW_SETTINGS, null, InjectFlags.Optional) ?? this.settings;
436
+ const settings = componentRef?.injector.get(RXAP_WINDOW_SETTINGS, null, { optional: true }) ?? this.settings;
468
437
  if (settings) {
469
438
  // prevent change diction error: ExpressionChangedAfterItHasBeenCheckedError
470
439
  setTimeout(() => {
@@ -473,13 +442,12 @@ class WindowRef extends Subject {
473
442
  }
474
443
  }
475
444
  }
476
-
477
445
  class WindowService {
478
- constructor(injector, overlay, componentFactoryResolver, defaultWindowSettings) {
479
- this.injector = injector;
480
- this.overlay = overlay;
481
- this.componentFactoryResolver = componentFactoryResolver;
482
- 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 });
483
451
  this.activeCount$ = new Subject();
484
452
  this.active = new Map();
485
453
  }
@@ -556,11 +524,9 @@ class WindowService {
556
524
  ],
557
525
  name: windowConfig?.injectorName ?? 'WindowService',
558
526
  });
559
- const containerPortal = new ComponentPortal(windowConfig.windowComponent ?? DefaultWindowComponent, injector.get(ViewContainerRef, null, InjectFlags.Optional) ??
527
+ const containerPortal = new ComponentPortal(windowConfig.windowComponent ?? DefaultWindowComponent, injector.get(ViewContainerRef, null, { optional: true }) ??
560
528
  windowConfig.viewContainerRef ??
561
- null, injector, injector.get(ComponentFactoryResolver, null, InjectFlags.Optional) ??
562
- windowConfig.componentFactoryResolver ??
563
- this.componentFactoryResolver);
529
+ null, injector);
564
530
  overlayRef.attach(containerPortal);
565
531
  overlayRef
566
532
  .backdropClick()
@@ -600,156 +566,103 @@ class WindowService {
600
566
  });
601
567
  return this.overlay.create(overlayConfig);
602
568
  }
603
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowService, deps: [{ token: Injector }, { token: Overlay }, { token: ComponentFactoryResolver }, { token: RXAP_WINDOW_DEFAULT_SETTINGS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
604
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowService, providedIn: 'root' }); }
569
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
570
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowService, providedIn: 'root' }); }
605
571
  }
606
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowService, decorators: [{
572
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowService, decorators: [{
607
573
  type: Injectable,
608
574
  args: [{ providedIn: 'root' }]
609
- }], ctorParameters: () => [{ type: i0.Injector, decorators: [{
610
- type: Inject,
611
- args: [Injector]
612
- }] }, { type: i1$3.Overlay, decorators: [{
613
- type: Inject,
614
- args: [Overlay]
615
- }] }, { type: i0.ComponentFactoryResolver, decorators: [{
616
- type: Inject,
617
- args: [ComponentFactoryResolver]
618
- }] }, { type: undefined, decorators: [{
619
- type: Optional
620
- }, {
621
- type: Inject,
622
- args: [RXAP_WINDOW_DEFAULT_SETTINGS]
623
- }] }] });
624
-
575
+ }] });
625
576
  class WindowTaskComponent {
577
+ constructor() {
578
+ this.window = input.required(...(ngDevMode ? [{ debugName: "window" }] : /* istanbul ignore next */ []));
579
+ }
626
580
  close() {
627
- this.window.complete();
581
+ this.window().complete();
628
582
  }
629
583
  reopen() {
630
- this.window.reopen();
584
+ this.window().reopen();
631
585
  }
632
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowTaskComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
633
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: WindowTaskComponent, isStandalone: true, selector: "rxap-window-task", inputs: { window: "window" }, ngImport: i0, template: "<div (click)=\"reopen()\" [ngClass]=\"{ minimized: window.isMinimized }\"\n class=\"rxap-container mat-elevation-z2 flex flex-row justify-start items-center gap-2\">\n <ng-template [ngIf]=\"window.settings$ | async\" let-settings>\n <mat-icon *ngIf=\"settings.icon\" [rxapIcon]=\"settings.icon\"></mat-icon>\n <h3 *ngIf=\"settings.title\" class=\"grow\">{{settings.title}}</h3>\n </ng-template>\n <button (click)=\"close()\" mat-icon-button rxapStopPropagation type=\"button\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n", styles: [".rxap-container{padding:5px;cursor:pointer}.rxap-container.minimized{opacity:.5}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: IconDirective, selector: "mat-icon[rxapIcon]", inputs: ["rxapIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: StopPropagationDirective, selector: "[rxapStopPropagation]" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
586
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowTaskComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
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 }); }
634
588
  }
635
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowTaskComponent, decorators: [{
589
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowTaskComponent, decorators: [{
636
590
  type: Component,
637
591
  args: [{ selector: 'rxap-window-task', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
638
592
  NgClass,
639
- NgIf,
640
593
  MatIconModule,
641
594
  IconDirective,
642
595
  MatButtonModule,
643
596
  StopPropagationDirective,
644
- AsyncPipe,
645
- ], template: "<div (click)=\"reopen()\" [ngClass]=\"{ minimized: window.isMinimized }\"\n class=\"rxap-container mat-elevation-z2 flex flex-row justify-start items-center gap-2\">\n <ng-template [ngIf]=\"window.settings$ | async\" let-settings>\n <mat-icon *ngIf=\"settings.icon\" [rxapIcon]=\"settings.icon\"></mat-icon>\n <h3 *ngIf=\"settings.title\" class=\"grow\">{{settings.title}}</h3>\n </ng-template>\n <button (click)=\"close()\" mat-icon-button rxapStopPropagation type=\"button\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n", styles: [".rxap-container{padding:5px;cursor:pointer}.rxap-container.minimized{opacity:.5}\n"] }]
646
- }], propDecorators: { window: [{
647
- type: Input,
648
- args: [{ required: true }]
649
- }] } });
650
-
651
- class WindowTaskBarComponent {
652
- constructor(windowService, cdr) {
653
- this.windowService = windowService;
654
- this.cdr = cdr;
655
- this.subscriptions = new Subscription();
656
- }
657
- ngOnInit() {
658
- this.subscriptions.add(this.windowService.activeCount$.pipe(tap(() => this.cdr.markForCheck())).subscribe());
659
- }
660
- ngOnDestroy() {
661
- this.subscriptions.unsubscribe();
597
+ AsyncPipe
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$);
662
608
  }
663
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowTaskBarComponent, deps: [{ token: WindowService }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
664
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: WindowTaskBarComponent, isStandalone: true, selector: "rxap-window-task-bar", ngImport: i0, template: "<div class=\"tasks grow-0 flex flex-row flex-wrap\">\n <rxap-window-task *ngFor=\"let window of windowService.allActiveWindows\"\n [window]=\"window\"\n class=\"grow-0\">\n </rxap-window-task>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: WindowTaskComponent, selector: "rxap-window-task", inputs: ["window"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
665
- }
666
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowTaskBarComponent, decorators: [{
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
+ };
612
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowTaskBarComponent, decorators: [{
667
613
  type: Component,
668
- args: [{ selector: 'rxap-window-task-bar', changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgFor, WindowTaskComponent], template: "<div class=\"tasks grow-0 flex flex-row flex-wrap\">\n <rxap-window-task *ngFor=\"let window of windowService.allActiveWindows\"\n [window]=\"window\"\n class=\"grow-0\">\n </rxap-window-task>\n</div>\n" }]
669
- }], ctorParameters: () => [{ type: WindowService, decorators: [{
670
- type: Inject,
671
- args: [WindowService]
672
- }] }, { type: i0.ChangeDetectorRef, decorators: [{
673
- type: Inject,
674
- args: [ChangeDetectorRef]
675
- }] }] });
676
-
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
+ }] });
677
616
  const RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS = new InjectionToken('rxap/window-system/task-bar-container');
678
617
  class WindowTaskBarContainerComponent {
679
- constructor(windowService, settings = null) {
680
- this.windowService = windowService;
618
+ constructor() {
619
+ this.windowService = inject(WindowService);
681
620
  this.expand = true;
621
+ const settings = inject(RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS, { optional: true }) ?? null;
682
622
  if (settings) {
683
623
  if (settings.expand !== undefined) {
684
624
  this.expand = settings.expand;
685
625
  }
686
626
  }
687
627
  }
688
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowTaskBarContainerComponent, deps: [{ token: WindowService }, { token: RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
689
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: WindowTaskBarContainerComponent, isStandalone: true, selector: "rxap-window-task-bar-container", ngImport: i0, template: "<div *ngIf=\"windowService.hasActiveWindows\" class=\"rxap-container flex flex-col\">\n <div class=\"flex flex-row justify-end items-end\">\n <button (click)=\"expand = !expand\"\n [matBadgeHidden]=\"!windowService.hasActiveWindows\"\n [matBadge]=\"windowService.activeWindowCount.toFixed(0)\"\n class=\"pin\"\n color=\"primary\"\n mat-icon-button\n matBadgePosition=\"above before\"\n type=\"button\">\n <mat-icon *ngIf=\"!expand\">keyboard_arrow_up</mat-icon>\n <mat-icon *ngIf=\"expand\">keyboard_arrow_down</mat-icon>\n </button>\n </div>\n <mat-toolbar [ngClass]=\"{ hidden: !expand }\" class=\"tasks\">\n <rxap-window-task-bar></rxap-window-task-bar>\n </mat-toolbar>\n</div>\n", styles: [".rxap-container .pin{border:none;border-radius:50% 50% 0 0;cursor:pointer}.rxap-container .tasks{height:auto;padding:16px}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatBadgeModule }, { kind: "directive", type: i2$1.MatBadge, selector: "[matBadge]", inputs: ["matBadgeColor", "matBadgeOverlap", "matBadgeDisabled", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: WindowTaskBarComponent, selector: "rxap-window-task-bar" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
628
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowTaskBarContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
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"] }] }); }
690
630
  }
691
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowTaskBarContainerComponent, decorators: [{
631
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowTaskBarContainerComponent, decorators: [{
692
632
  type: Component,
693
633
  args: [{ selector: 'rxap-window-task-bar-container', imports: [
694
- NgIf,
695
634
  MatButtonModule,
696
635
  MatBadgeModule,
697
636
  MatIconModule,
698
637
  MatToolbarModule,
699
638
  WindowTaskBarComponent,
700
- NgClass,
701
- ], template: "<div *ngIf=\"windowService.hasActiveWindows\" class=\"rxap-container flex flex-col\">\n <div class=\"flex flex-row justify-end items-end\">\n <button (click)=\"expand = !expand\"\n [matBadgeHidden]=\"!windowService.hasActiveWindows\"\n [matBadge]=\"windowService.activeWindowCount.toFixed(0)\"\n class=\"pin\"\n color=\"primary\"\n mat-icon-button\n matBadgePosition=\"above before\"\n type=\"button\">\n <mat-icon *ngIf=\"!expand\">keyboard_arrow_up</mat-icon>\n <mat-icon *ngIf=\"expand\">keyboard_arrow_down</mat-icon>\n </button>\n </div>\n <mat-toolbar [ngClass]=\"{ hidden: !expand }\" class=\"tasks\">\n <rxap-window-task-bar></rxap-window-task-bar>\n </mat-toolbar>\n</div>\n", styles: [".rxap-container .pin{border:none;border-radius:50% 50% 0 0;cursor:pointer}.rxap-container .tasks{height:auto;padding:16px}\n"] }]
702
- }], ctorParameters: () => [{ type: WindowService, decorators: [{
703
- type: Inject,
704
- args: [WindowService]
705
- }] }, { type: undefined, decorators: [{
706
- type: Optional
707
- }, {
708
- type: Inject,
709
- args: [RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS]
710
- }] }] });
711
-
712
- class WindowTaskBarModule {
713
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowTaskBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
714
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.16", ngImport: i0, type: WindowTaskBarModule, imports: [WindowTaskBarComponent, WindowTaskComponent, WindowTaskBarContainerComponent], exports: [WindowTaskBarComponent, WindowTaskBarContainerComponent] }); }
715
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowTaskBarModule, imports: [WindowTaskBarComponent, WindowTaskComponent, WindowTaskBarContainerComponent] }); }
716
- }
717
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowTaskBarModule, decorators: [{
718
- type: NgModule,
719
- args: [{
720
- imports: [
721
- WindowTaskBarComponent, WindowTaskComponent, WindowTaskBarContainerComponent,
722
- ],
723
- exports: [WindowTaskBarComponent, WindowTaskBarContainerComponent],
724
- }]
725
- }] });
726
-
639
+ NgClass
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"] }]
641
+ }], ctorParameters: () => [] });
727
642
  class WindowActionBarComponent {
728
- constructor(context, injector) {
729
- this.injector = injector;
643
+ constructor() {
644
+ this.injector = inject(Injector);
730
645
  this.definitions = null;
731
646
  this.position = 'start';
647
+ // the removed actions feature accesses the protected window settings
648
+ const context = inject(RXAP_WINDOW_CONTEXT);
732
649
  if (context.windowRef.settings.actions) {
733
650
  this.definitions = context.windowRef.settings.actions.definitions;
734
651
  this.position = context.windowRef.settings.actions.position || this.position;
735
652
  }
736
653
  }
737
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowActionBarComponent, deps: [{ token: RXAP_WINDOW_CONTEXT }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
738
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: WindowActionBarComponent, isStandalone: true, selector: "rxap-window-action-bar", ngImport: i0, template: "<mat-toolbar-row *ngIf=\"definitions\" class=\"p-2 flex flex-row gap-2 justify-{{position}} items-center\">\n <span>this feature is removed</span>\n</mat-toolbar-row>\n", styles: [""], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "directive", type: i1.MatToolbarRow, selector: "mat-toolbar-row", exportAs: ["matToolbarRow"] }] }); }
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 }); }
739
656
  }
740
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowActionBarComponent, decorators: [{
657
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowActionBarComponent, decorators: [{
741
658
  type: Component,
742
- args: [{ selector: 'rxap-window-action-bar', imports: [NgIf, MatToolbarModule], template: "<mat-toolbar-row *ngIf=\"definitions\" class=\"p-2 flex flex-row gap-2 justify-{{position}} items-center\">\n <span>this feature is removed</span>\n</mat-toolbar-row>\n" }]
743
- }], ctorParameters: () => [{ type: undefined, decorators: [{
744
- type: Inject,
745
- args: [RXAP_WINDOW_CONTEXT]
746
- }] }, { type: i0.Injector }] });
747
-
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: () => [] });
748
661
  class WindowFooterDirective {
749
- constructor(windowRef, template, viewContainerRef) {
750
- this.windowRef = windowRef;
751
- this.template = template;
752
- this.viewContainerRef = viewContainerRef;
662
+ constructor() {
663
+ this.windowRef = inject(RXAP_WINDOW_REF);
664
+ this.template = inject(TemplateRef);
665
+ this.viewContainerRef = inject(ViewContainerRef);
753
666
  }
754
667
  /**
755
668
  * Asserts the correct type of the context for the template that `NgForOf` will render.
@@ -765,26 +678,16 @@ class WindowFooterDirective {
765
678
  $implicit: this.windowRef,
766
679
  }));
767
680
  }
768
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowFooterDirective, deps: [{ token: RXAP_WINDOW_REF }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
769
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.16", type: WindowFooterDirective, isStandalone: true, selector: "[rxapWindowFooter]", ngImport: i0 }); }
681
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowFooterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
682
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: WindowFooterDirective, isStandalone: true, selector: "[rxapWindowFooter]", ngImport: i0 }); }
770
683
  }
771
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowFooterDirective, decorators: [{
684
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowFooterDirective, decorators: [{
772
685
  type: Directive,
773
686
  args: [{
774
687
  selector: '[rxapWindowFooter]',
775
688
  standalone: true,
776
689
  }]
777
- }], ctorParameters: () => [{ type: WindowRef, decorators: [{
778
- type: Inject,
779
- args: [RXAP_WINDOW_REF]
780
- }] }, { type: i0.TemplateRef, decorators: [{
781
- type: Inject,
782
- args: [TemplateRef]
783
- }] }, { type: i0.ViewContainerRef, decorators: [{
784
- type: Inject,
785
- args: [ViewContainerRef]
786
- }] }] });
787
-
690
+ }] });
788
691
  class WindowInstanceService {
789
692
  constructor() {
790
693
  this.loading$ = new ToggleSubject(false);
@@ -796,56 +699,12 @@ class WindowInstanceService {
796
699
  ngOnDestroy() {
797
700
  this._attachedLoadingSubscription.unsubscribe();
798
701
  }
799
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowInstanceService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
800
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowInstanceService }); }
702
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowInstanceService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
703
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowInstanceService }); }
801
704
  }
802
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowInstanceService, decorators: [{
705
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowInstanceService, decorators: [{
803
706
  type: Injectable
804
707
  }] });
805
-
806
- // TODO : refactor to be used without a central module
807
- class RxapWindowSystemModule {
808
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: RxapWindowSystemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
809
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.16", ngImport: i0, type: RxapWindowSystemModule, imports: [WindowContainerComponent,
810
- WindowToolBarComponent,
811
- WindowResizerComponent,
812
- DefaultWindowComponent,
813
- WindowContentComponent,
814
- WindowActionBarComponent], exports: [WindowContainerComponent,
815
- WindowToolBarComponent,
816
- WindowResizerComponent,
817
- DefaultWindowComponent,
818
- WindowContentComponent,
819
- WindowTaskBarModule] }); }
820
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: RxapWindowSystemModule, imports: [WindowContainerComponent,
821
- WindowToolBarComponent,
822
- WindowResizerComponent,
823
- DefaultWindowComponent,
824
- WindowContentComponent,
825
- WindowActionBarComponent, WindowTaskBarModule] }); }
826
- }
827
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: RxapWindowSystemModule, decorators: [{
828
- type: NgModule,
829
- args: [{
830
- imports: [
831
- WindowContainerComponent,
832
- WindowToolBarComponent,
833
- WindowResizerComponent,
834
- DefaultWindowComponent,
835
- WindowContentComponent,
836
- WindowActionBarComponent,
837
- ],
838
- exports: [
839
- WindowContainerComponent,
840
- WindowToolBarComponent,
841
- WindowResizerComponent,
842
- DefaultWindowComponent,
843
- WindowContentComponent,
844
- WindowTaskBarModule,
845
- ],
846
- }]
847
- }] });
848
-
849
708
  class WindowTitleDirective {
850
709
  constructor() {
851
710
  this.windowRef = inject(RXAP_WINDOW_REF);
@@ -866,23 +725,19 @@ class WindowTitleDirective {
866
725
  $implicit: this.windowRef,
867
726
  }));
868
727
  }
869
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
870
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.16", type: WindowTitleDirective, isStandalone: true, selector: "[rxapWindowTitle]", ngImport: i0 }); }
728
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowTitleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
729
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: WindowTitleDirective, isStandalone: true, selector: "[rxapWindowTitle]", ngImport: i0 }); }
871
730
  }
872
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: WindowTitleDirective, decorators: [{
731
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: WindowTitleDirective, decorators: [{
873
732
  type: Directive,
874
733
  args: [{
875
734
  selector: '[rxapWindowTitle]',
876
735
  standalone: true,
877
736
  }]
878
737
  }] });
879
-
880
738
  // region window-tool-bar
881
739
  // endregion
882
-
883
740
  /**
884
741
  * Generated bundle index. Do not edit.
885
742
  */
886
-
887
- 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 };
888
- //# 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 };