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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/compodoc/changelog.html +20 -0
  3. package/compodoc/classes/WindowRef.html +46 -47
  4. package/compodoc/components/WindowActionBarComponent.html +8 -7
  5. package/compodoc/components/WindowTaskBarComponent.html +9 -8
  6. package/compodoc/components/WindowTaskBarContainerComponent.html +35 -34
  7. package/compodoc/components/WindowTaskComponent.html +23 -25
  8. package/compodoc/components/WindowToolBarComponent.html +28 -28
  9. package/compodoc/dependencies.html +11 -11
  10. package/compodoc/injectables/WindowService.html +19 -23
  11. package/compodoc/interfaces/WindowTaskBarContainerSettings.html +8 -12
  12. package/compodoc/js/search/search_index.js +2 -2
  13. package/compodoc/modules/RxapWindowSystemModule/dependencies.svg +4 -4
  14. package/compodoc/modules/RxapWindowSystemModule.html +4 -4
  15. package/compodoc/properties.html +1 -1
  16. package/docs/documentation.json +484 -488
  17. package/docs/html/classes/DefaultWindowComponent.html +2 -2
  18. package/docs/html/classes/RxapWindowSystemModule.html +2 -2
  19. package/docs/html/classes/WindowActionBarComponent.html +2 -2
  20. package/docs/html/classes/WindowContainerComponent.html +3 -3
  21. package/docs/html/classes/WindowContentComponent.html +4 -4
  22. package/docs/html/classes/WindowFooterDirective.html +4 -4
  23. package/docs/html/classes/WindowInstanceService.html +3 -3
  24. package/docs/html/classes/WindowRef.html +22 -22
  25. package/docs/html/classes/WindowResizerComponent.html +4 -4
  26. package/docs/html/classes/WindowService.html +2 -2
  27. package/docs/html/classes/WindowTaskBarComponent.html +4 -4
  28. package/docs/html/classes/WindowTaskBarContainerComponent.html +2 -2
  29. package/docs/html/classes/WindowTaskBarModule.html +2 -2
  30. package/docs/html/classes/WindowTaskComponent.html +2 -2
  31. package/docs/html/classes/WindowTitleDirective.html +3 -3
  32. package/docs/html/classes/WindowToolBarComponent.html +2 -2
  33. package/docs/html/functions/GetWindowStartPos.html +1 -1
  34. package/docs/html/hierarchy.html +1 -1
  35. package/docs/html/index.html +2 -2
  36. package/docs/html/interfaces/WindowActions.html +2 -2
  37. package/docs/html/interfaces/WindowConfig.html +2 -2
  38. package/docs/html/interfaces/WindowContainerContext.html +2 -2
  39. package/docs/html/interfaces/WindowContext.html +2 -2
  40. package/docs/html/interfaces/WindowFooterTemplateContext.html +2 -2
  41. package/docs/html/interfaces/WindowSettings.html +2 -2
  42. package/docs/html/interfaces/WindowTaskBarContainerSettings.html +2 -2
  43. package/docs/html/interfaces/WindowTitleTemplateContext.html +2 -2
  44. package/docs/html/modules.html +1 -1
  45. package/docs/html/variables/DEFAULT_WINDOW_CONFIG.html +1 -1
  46. package/docs/html/variables/RXAP_WINDOW_CONTAINER_CONTEXT.html +1 -1
  47. package/docs/html/variables/RXAP_WINDOW_CONTEXT.html +1 -1
  48. package/docs/html/variables/RXAP_WINDOW_DATA.html +1 -1
  49. package/docs/html/variables/RXAP_WINDOW_DEFAULT_SETTINGS.html +1 -1
  50. package/docs/html/variables/RXAP_WINDOW_REF.html +1 -1
  51. package/docs/html/variables/RXAP_WINDOW_SETTINGS.html +1 -1
  52. package/docs/html/variables/RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS.html +1 -1
  53. package/docs/markdown/README.md +1 -1
  54. package/docs/markdown/classes/DefaultWindowComponent.md +2 -2
  55. package/docs/markdown/classes/RxapWindowSystemModule.md +2 -2
  56. package/docs/markdown/classes/WindowActionBarComponent.md +6 -6
  57. package/docs/markdown/classes/WindowContainerComponent.md +13 -13
  58. package/docs/markdown/classes/WindowContentComponent.md +8 -8
  59. package/docs/markdown/classes/WindowFooterDirective.md +5 -5
  60. package/docs/markdown/classes/WindowInstanceService.md +5 -5
  61. package/docs/markdown/classes/WindowRef.md +69 -71
  62. package/docs/markdown/classes/WindowResizerComponent.md +11 -11
  63. package/docs/markdown/classes/WindowService.md +14 -14
  64. package/docs/markdown/classes/WindowTaskBarComponent.md +8 -8
  65. package/docs/markdown/classes/WindowTaskBarContainerComponent.md +5 -5
  66. package/docs/markdown/classes/WindowTaskBarModule.md +2 -2
  67. package/docs/markdown/classes/WindowTaskComponent.md +5 -5
  68. package/docs/markdown/classes/WindowTitleDirective.md +4 -4
  69. package/docs/markdown/classes/WindowToolBarComponent.md +4 -4
  70. package/docs/markdown/functions/GetWindowStartPos.md +2 -2
  71. package/docs/markdown/globals.md +2 -2
  72. package/docs/markdown/interfaces/WindowActions.md +4 -4
  73. package/docs/markdown/interfaces/WindowConfig.md +25 -25
  74. package/docs/markdown/interfaces/WindowContainerContext.md +4 -4
  75. package/docs/markdown/interfaces/WindowContext.md +6 -6
  76. package/docs/markdown/interfaces/WindowFooterTemplateContext.md +3 -3
  77. package/docs/markdown/interfaces/WindowSettings.md +17 -17
  78. package/docs/markdown/interfaces/WindowTaskBarContainerSettings.md +3 -3
  79. package/docs/markdown/interfaces/WindowTitleTemplateContext.md +3 -3
  80. package/docs/markdown/variables/DEFAULT_WINDOW_CONFIG.md +2 -2
  81. package/docs/markdown/variables/RXAP_WINDOW_CONTAINER_CONTEXT.md +2 -2
  82. package/docs/markdown/variables/RXAP_WINDOW_CONTEXT.md +2 -2
  83. package/docs/markdown/variables/RXAP_WINDOW_DATA.md +2 -2
  84. package/docs/markdown/variables/RXAP_WINDOW_DEFAULT_SETTINGS.md +2 -2
  85. package/docs/markdown/variables/RXAP_WINDOW_REF.md +2 -2
  86. package/docs/markdown/variables/RXAP_WINDOW_SETTINGS.md +2 -2
  87. package/docs/markdown/variables/RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS.md +2 -2
  88. package/docs/wiki/Class.DefaultWindowComponent.md +1 -1
  89. package/docs/wiki/Class.RxapWindowSystemModule.md +1 -1
  90. package/docs/wiki/Class.WindowActionBarComponent.md +5 -5
  91. package/docs/wiki/Class.WindowContainerComponent.md +12 -12
  92. package/docs/wiki/Class.WindowContentComponent.md +7 -7
  93. package/docs/wiki/Class.WindowFooterDirective.md +4 -4
  94. package/docs/wiki/Class.WindowInstanceService.md +4 -4
  95. package/docs/wiki/Class.WindowRef.md +68 -70
  96. package/docs/wiki/Class.WindowResizerComponent.md +10 -10
  97. package/docs/wiki/Class.WindowService.md +13 -13
  98. package/docs/wiki/Class.WindowTaskBarComponent.md +7 -7
  99. package/docs/wiki/Class.WindowTaskBarContainerComponent.md +4 -4
  100. package/docs/wiki/Class.WindowTaskBarModule.md +1 -1
  101. package/docs/wiki/Class.WindowTaskComponent.md +4 -4
  102. package/docs/wiki/Class.WindowTitleDirective.md +3 -3
  103. package/docs/wiki/Class.WindowToolBarComponent.md +3 -3
  104. package/docs/wiki/Function.GetWindowStartPos.md +1 -1
  105. package/docs/wiki/Interface.WindowActions.md +3 -3
  106. package/docs/wiki/Interface.WindowConfig.md +24 -24
  107. package/docs/wiki/Interface.WindowContainerContext.md +3 -3
  108. package/docs/wiki/Interface.WindowContext.md +5 -5
  109. package/docs/wiki/Interface.WindowFooterTemplateContext.md +2 -2
  110. package/docs/wiki/Interface.WindowSettings.md +16 -16
  111. package/docs/wiki/Interface.WindowTaskBarContainerSettings.md +2 -2
  112. package/docs/wiki/Interface.WindowTitleTemplateContext.md +2 -2
  113. package/docs/wiki/Variable.DEFAULT_WINDOW_CONFIG.md +1 -1
  114. package/docs/wiki/Variable.RXAP_WINDOW_CONTAINER_CONTEXT.md +1 -1
  115. package/docs/wiki/Variable.RXAP_WINDOW_CONTEXT.md +1 -1
  116. package/docs/wiki/Variable.RXAP_WINDOW_DATA.md +1 -1
  117. package/docs/wiki/Variable.RXAP_WINDOW_DEFAULT_SETTINGS.md +1 -1
  118. package/docs/wiki/Variable.RXAP_WINDOW_REF.md +1 -1
  119. package/docs/wiki/Variable.RXAP_WINDOW_SETTINGS.md +1 -1
  120. package/docs/wiki/Variable.RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS.md +1 -1
  121. package/docs/wiki/globals.md +1 -1
  122. package/fesm2022/rxap-window-system.mjs +60 -65
  123. package/fesm2022/rxap-window-system.mjs.map +1 -1
  124. package/package.json +30 -29
  125. package/types/rxap-window-system.d.ts +316 -0
  126. package/index.d.ts +0 -20
  127. package/lib/default-window/default-window.component.d.ts +0 -5
  128. package/lib/tokens.d.ts +0 -10
  129. package/lib/utilities.d.ts +0 -4
  130. package/lib/window-action-bar/window-action-bar.component.d.ts +0 -11
  131. package/lib/window-config.d.ts +0 -35
  132. package/lib/window-container/window-container.component.d.ts +0 -21
  133. package/lib/window-content/window-content.component.d.ts +0 -20
  134. package/lib/window-context.d.ts +0 -13
  135. package/lib/window-footer.directive.d.ts +0 -22
  136. package/lib/window-instance.service.d.ts +0 -12
  137. package/lib/window-ref.d.ts +0 -71
  138. package/lib/window-resizer/window-resizer.component.d.ts +0 -17
  139. package/lib/window-system.module.d.ts +0 -13
  140. package/lib/window-task-bar/window-task/window-task.component.d.ts +0 -9
  141. package/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.d.ts +0 -14
  142. package/lib/window-task-bar/window-task-bar.component.d.ts +0 -14
  143. package/lib/window-task-bar/window-task-bar.module.d.ts +0 -9
  144. package/lib/window-title.directive.d.ts +0 -21
  145. package/lib/window-tool-bar/window-tool-bar.component.d.ts +0 -8
  146. package/lib/window.service.d.ts +0 -27
@@ -0,0 +1,316 @@
1
+ import { OverlayRef, Overlay, OverlaySizeConfig, ComponentType as ComponentType$1 } from '@angular/cdk/overlay';
2
+ import { ComponentType, Portal, CdkPortalOutlet } from '@angular/cdk/portal';
3
+ import * as i0 from '@angular/core';
4
+ import { TemplateRef, Injector, ComponentFactoryResolver, ViewContainerRef, ComponentRef, EmbeddedViewRef, InjectionToken, OnInit, OnDestroy, ChangeDetectorRef, ElementRef, EventEmitter, AfterViewInit, Signal } from '@angular/core';
5
+ import { Subject, BehaviorSubject, ReplaySubject, Subscription, Observable } from 'rxjs';
6
+ import { ButtonDefinition, ToggleSubject } from '@rxap/rxjs';
7
+ import { IconConfig } from '@rxap/utilities';
8
+ import { LoadingIndicatorService } from '@rxap/services';
9
+ import * as _rxap_window_system from '@rxap/window-system';
10
+ import { CdkDragEnd } from '@angular/cdk/drag-drop';
11
+
12
+ interface WindowActions<A> {
13
+ position?: 'start' | 'end';
14
+ definitions: ButtonDefinition<[A]>[];
15
+ }
16
+ interface WindowSettings<D = any> {
17
+ id?: string;
18
+ title?: string;
19
+ icon?: IconConfig;
20
+ width?: string;
21
+ height?: string;
22
+ minWidth?: string;
23
+ minHeight?: string;
24
+ maxWidth?: string;
25
+ maxHeight?: string;
26
+ resizeable?: boolean;
27
+ minimizable?: boolean;
28
+ draggable?: boolean;
29
+ panelClass?: string;
30
+ data?: D;
31
+ actions?: WindowActions<D>;
32
+ }
33
+ interface WindowConfig<D = any, T = any> extends WindowSettings<D> {
34
+ windowComponent?: ComponentType<T>;
35
+ component?: ComponentType<T>;
36
+ template?: TemplateRef<T>;
37
+ injector?: Injector | null;
38
+ injectorName?: string;
39
+ componentFactoryResolver?: ComponentFactoryResolver | null;
40
+ viewContainerRef?: ViewContainerRef | null;
41
+ }
42
+ declare const DEFAULT_WINDOW_CONFIG: WindowConfig<any, any>;
43
+
44
+ declare class WindowRef<D = any, R = any> extends Subject<R> {
45
+ protected readonly overlayRef: OverlayRef;
46
+ protected readonly overlay: Overlay;
47
+ protected readonly settings: WindowSettings<D>;
48
+ readonly width$: BehaviorSubject<string>;
49
+ readonly height$: BehaviorSubject<string>;
50
+ /**
51
+ * @deprecated removed. use the subscribe method and wait for the resolve event
52
+ */
53
+ readonly closed$: Subject<R | undefined>;
54
+ attachedRef$: ReplaySubject<ComponentRef<any> | EmbeddedViewRef<any>>;
55
+ /**
56
+ * @internal
57
+ */
58
+ footerPortal$: ReplaySubject<Portal<any>>;
59
+ /**
60
+ * @internal
61
+ */
62
+ titlePortal$: ReplaySubject<Portal<any>>;
63
+ settings$: ReplaySubject<WindowSettings<any>>;
64
+ /**
65
+ * stores the window size before fullScreen
66
+ * @internal
67
+ */
68
+ private oldSizes;
69
+ constructor(overlayRef: OverlayRef, overlay: Overlay, settings: WindowSettings<D>);
70
+ get id(): string | undefined;
71
+ get minimizable(): boolean | undefined;
72
+ get draggable(): boolean | undefined;
73
+ get minWidth(): string | undefined;
74
+ get minHeight(): string | undefined;
75
+ get maxWidth(): string | undefined;
76
+ get maxHeight(): string | undefined;
77
+ get isMinimized(): boolean;
78
+ /**
79
+ * @deprecated removed. use the complete method
80
+ * @param result
81
+ */
82
+ close(result?: R): void;
83
+ complete(): void;
84
+ minimize(): void;
85
+ reopen(): void;
86
+ getSizeConfig(): OverlaySizeConfig;
87
+ setWidth(width: string): void;
88
+ setHeight(height: string): void;
89
+ getWidth(): string;
90
+ getHeight(): string;
91
+ setPos(x: string, y: string): void;
92
+ getPos(): {
93
+ x: string;
94
+ y: string;
95
+ };
96
+ fullScreen(): void;
97
+ /**
98
+ * @param portal
99
+ */
100
+ setFooterPortal(portal: Portal<any>): void;
101
+ setTitlePortal(portal: Portal<any>): void;
102
+ setAttachedRef(attachedRef: ComponentRef<any> | EmbeddedViewRef<any>): void;
103
+ /**
104
+ * Injects the window settings from the component ref injector and overwrites
105
+ * the settings
106
+ * @private
107
+ */
108
+ private updateWindowSettings;
109
+ }
110
+
111
+ declare class WindowToolBarComponent<D> {
112
+ windowRef: WindowRef<D>;
113
+ constructor(context: any);
114
+ static ɵfac: i0.ɵɵFactoryDeclaration<WindowToolBarComponent<any>, never>;
115
+ static ɵcmp: i0.ɵɵComponentDeclaration<WindowToolBarComponent<any>, "rxap-window-tool-bar", never, {}, {}, never, never, true, never>;
116
+ }
117
+
118
+ declare class WindowService {
119
+ private readonly injector;
120
+ private readonly overlay;
121
+ private readonly componentFactoryResolver;
122
+ private readonly defaultWindowSettings?;
123
+ readonly activeCount$: Subject<number>;
124
+ private readonly active;
125
+ constructor(injector: Injector, overlay: Overlay, componentFactoryResolver: ComponentFactoryResolver, defaultWindowSettings?: WindowSettings | undefined);
126
+ get hasActiveWindows(): boolean;
127
+ get activeWindowCount(): number;
128
+ get allActiveWindows(): Array<WindowRef<any>>;
129
+ get<D>(id: string): WindowRef<D>;
130
+ close(id: string): void;
131
+ has(id: string): boolean;
132
+ open<D, T>(config: WindowConfig<D, T>): WindowRef<D>;
133
+ remove(id: string): boolean;
134
+ add(windowRef: WindowRef<any>): void;
135
+ private createOverlay;
136
+ static ɵfac: i0.ɵɵFactoryDeclaration<WindowService, [null, null, null, { optional: true; }]>;
137
+ static ɵprov: i0.ɵɵInjectableDeclaration<WindowService>;
138
+ }
139
+
140
+ interface WindowTaskBarContainerSettings {
141
+ expand?: boolean;
142
+ }
143
+ declare const RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS: InjectionToken<unknown>;
144
+ declare class WindowTaskBarContainerComponent {
145
+ windowService: WindowService;
146
+ expand: boolean;
147
+ constructor(windowService: WindowService, settings?: WindowTaskBarContainerSettings | null);
148
+ static ɵfac: i0.ɵɵFactoryDeclaration<WindowTaskBarContainerComponent, [null, { optional: true; }]>;
149
+ static ɵcmp: i0.ɵɵComponentDeclaration<WindowTaskBarContainerComponent, "rxap-window-task-bar-container", never, {}, {}, never, never, true, never>;
150
+ }
151
+
152
+ declare class WindowTaskComponent {
153
+ window: WindowRef<any>;
154
+ close(): void;
155
+ reopen(): void;
156
+ static ɵfac: i0.ɵɵFactoryDeclaration<WindowTaskComponent, never>;
157
+ static ɵcmp: i0.ɵɵComponentDeclaration<WindowTaskComponent, "rxap-window-task", never, { "window": { "alias": "window"; "required": true; }; }, {}, never, never, true, never>;
158
+ }
159
+
160
+ declare class WindowTaskBarComponent implements OnInit, OnDestroy {
161
+ windowService: WindowService;
162
+ cdr: ChangeDetectorRef;
163
+ subscriptions: Subscription;
164
+ constructor(windowService: WindowService, cdr: ChangeDetectorRef);
165
+ ngOnInit(): void;
166
+ ngOnDestroy(): void;
167
+ static ɵfac: i0.ɵɵFactoryDeclaration<WindowTaskBarComponent, never>;
168
+ static ɵcmp: i0.ɵɵComponentDeclaration<WindowTaskBarComponent, "rxap-window-task-bar", never, {}, {}, never, never, true, never>;
169
+ }
170
+
171
+ declare class WindowTaskBarModule {
172
+ static ɵfac: i0.ɵɵFactoryDeclaration<WindowTaskBarModule, never>;
173
+ static ɵmod: i0.ɵɵNgModuleDeclaration<WindowTaskBarModule, never, [typeof WindowTaskBarComponent, typeof WindowTaskComponent, typeof WindowTaskBarContainerComponent], [typeof WindowTaskBarComponent, typeof WindowTaskBarContainerComponent]>;
174
+ static ɵinj: i0.ɵɵInjectorDeclaration<WindowTaskBarModule>;
175
+ }
176
+
177
+ declare class WindowResizerComponent implements OnInit, OnDestroy {
178
+ containerRef: ElementRef<any>;
179
+ windowRef: WindowRef<any>;
180
+ resizerRef: ElementRef<any>;
181
+ width$: EventEmitter<string>;
182
+ height$: EventEmitter<string>;
183
+ resizing$: EventEmitter<boolean>;
184
+ private _subscription;
185
+ constructor(context: any);
186
+ ngOnDestroy(): void;
187
+ ngOnInit(): void;
188
+ static ɵfac: i0.ɵɵFactoryDeclaration<WindowResizerComponent, never>;
189
+ static ɵcmp: i0.ɵɵComponentDeclaration<WindowResizerComponent, "rxap-window-resizer", never, { "containerRef": { "alias": "containerRef"; "required": true; }; }, { "width$": "width"; "height$": "height"; "resizing$": "resizing"; }, never, never, true, never>;
190
+ }
191
+
192
+ interface WindowContext<D> {
193
+ overlayRef: OverlayRef;
194
+ windowRef: WindowRef<D>;
195
+ data?: D;
196
+ id: string;
197
+ }
198
+ interface WindowContainerContext<T> {
199
+ component?: ComponentType$1<T>;
200
+ template?: TemplateRef<T>;
201
+ }
202
+
203
+ declare class WindowContentComponent implements AfterViewInit, OnInit {
204
+ private readonly windowRef;
205
+ private readonly injector;
206
+ private readonly viewContainerRef;
207
+ private readonly loadingIndicatorService;
208
+ context: WindowContainerContext<any>;
209
+ portal: Portal<any> | null;
210
+ portalOutlet: CdkPortalOutlet;
211
+ constructor(context: any, windowRef: WindowRef, injector: Injector, viewContainerRef: ViewContainerRef, loadingIndicatorService: LoadingIndicatorService);
212
+ ngOnInit(): void;
213
+ ngAfterViewInit(): void;
214
+ static ɵfac: i0.ɵɵFactoryDeclaration<WindowContentComponent, never>;
215
+ static ɵcmp: i0.ɵɵComponentDeclaration<WindowContentComponent, "rxap-window-content", never, {}, {}, never, never, true, never>;
216
+ }
217
+
218
+ declare class WindowContainerComponent implements OnInit {
219
+ footerContent: ElementRef;
220
+ containerRef: ElementRef;
221
+ windowContainerResizer: WindowResizerComponent;
222
+ width: Signal<string>;
223
+ height: Signal<string>;
224
+ private readonly injector;
225
+ readonly context: _rxap_window_system.WindowContext<any>;
226
+ readonly windowRef: _rxap_window_system.WindowRef<any, any>;
227
+ readonly windowInstance: LoadingIndicatorService;
228
+ get id(): string;
229
+ ngOnInit(): void;
230
+ onDragEnded($event: CdkDragEnd): void;
231
+ static ɵfac: i0.ɵɵFactoryDeclaration<WindowContainerComponent, never>;
232
+ static ɵcmp: i0.ɵɵComponentDeclaration<WindowContainerComponent, "rxap-window-container", never, {}, {}, ["footerContent"], ["*"], true, never>;
233
+ }
234
+
235
+ declare class WindowActionBarComponent {
236
+ injector: Injector;
237
+ definitions: ButtonDefinition<any>[] | null;
238
+ position: string;
239
+ constructor(context: any, injector: Injector);
240
+ static ɵfac: i0.ɵɵFactoryDeclaration<WindowActionBarComponent, never>;
241
+ static ɵcmp: i0.ɵɵComponentDeclaration<WindowActionBarComponent, "rxap-window-action-bar", never, {}, {}, never, never, true, never>;
242
+ }
243
+
244
+ declare class DefaultWindowComponent {
245
+ static ɵfac: i0.ɵɵFactoryDeclaration<DefaultWindowComponent, never>;
246
+ static ɵcmp: i0.ɵɵComponentDeclaration<DefaultWindowComponent, "rxap-default-window", never, {}, {}, never, never, true, never>;
247
+ }
248
+
249
+ declare const RXAP_WINDOW_CONTEXT: InjectionToken<WindowContext<any>>;
250
+ declare const RXAP_WINDOW_DATA: InjectionToken<any>;
251
+ declare const RXAP_WINDOW_CONTAINER_CONTEXT: InjectionToken<WindowContainerContext<any>>;
252
+ declare const RXAP_WINDOW_REF: InjectionToken<WindowRef<any, any>>;
253
+ declare const RXAP_WINDOW_SETTINGS: InjectionToken<WindowSettings<any>>;
254
+ declare const RXAP_WINDOW_DEFAULT_SETTINGS: InjectionToken<WindowSettings<any>>;
255
+
256
+ declare function GetWindowStartPos(): {
257
+ top: string;
258
+ left: string;
259
+ };
260
+
261
+ interface WindowFooterTemplateContext {
262
+ $implicit: WindowRef;
263
+ }
264
+ declare class WindowFooterDirective implements OnInit {
265
+ private readonly windowRef;
266
+ private readonly template;
267
+ private readonly viewContainerRef;
268
+ constructor(windowRef: WindowRef, template: TemplateRef<WindowFooterTemplateContext>, viewContainerRef: ViewContainerRef);
269
+ /**
270
+ * Asserts the correct type of the context for the template that `NgForOf` will render.
271
+ *
272
+ * The presence of this method is a signal to the Ivy template type-check compiler that the
273
+ * `NgForOf` structural directive renders its template with a specific context type.
274
+ */
275
+ static ngTemplateContextGuard(dir: WindowFooterDirective, ctx: any): ctx is WindowFooterTemplateContext;
276
+ ngOnInit(): void;
277
+ static ɵfac: i0.ɵɵFactoryDeclaration<WindowFooterDirective, never>;
278
+ static ɵdir: i0.ɵɵDirectiveDeclaration<WindowFooterDirective, "[rxapWindowFooter]", never, {}, {}, never, never, true, never>;
279
+ }
280
+
281
+ declare class WindowInstanceService implements OnDestroy {
282
+ readonly loading$: ToggleSubject;
283
+ private readonly _attachedLoadingSubscription;
284
+ attachLoading(loading$: Observable<any>): void;
285
+ ngOnDestroy(): void;
286
+ static ɵfac: i0.ɵɵFactoryDeclaration<WindowInstanceService, never>;
287
+ static ɵprov: i0.ɵɵInjectableDeclaration<WindowInstanceService>;
288
+ }
289
+
290
+ declare class RxapWindowSystemModule {
291
+ static ɵfac: i0.ɵɵFactoryDeclaration<RxapWindowSystemModule, never>;
292
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RxapWindowSystemModule, never, [typeof WindowContainerComponent, typeof WindowToolBarComponent, typeof WindowResizerComponent, typeof DefaultWindowComponent, typeof WindowContentComponent, typeof WindowActionBarComponent], [typeof WindowContainerComponent, typeof WindowToolBarComponent, typeof WindowResizerComponent, typeof DefaultWindowComponent, typeof WindowContentComponent, typeof WindowTaskBarModule]>;
293
+ static ɵinj: i0.ɵɵInjectorDeclaration<RxapWindowSystemModule>;
294
+ }
295
+
296
+ interface WindowTitleTemplateContext {
297
+ $implicit: WindowRef;
298
+ }
299
+ declare class WindowTitleDirective implements OnInit {
300
+ private readonly windowRef;
301
+ private readonly template;
302
+ private readonly viewContainerRef;
303
+ /**
304
+ * Asserts the correct type of the context for the template that `NgForOf` will render.
305
+ *
306
+ * The presence of this method is a signal to the Ivy template type-check compiler that the
307
+ * `NgForOf` structural directive renders its template with a specific context type.
308
+ */
309
+ static ngTemplateContextGuard(dir: WindowTitleDirective, ctx: any): ctx is WindowTitleTemplateContext;
310
+ ngOnInit(): void;
311
+ static ɵfac: i0.ɵɵFactoryDeclaration<WindowTitleDirective, never>;
312
+ static ɵdir: i0.ɵɵDirectiveDeclaration<WindowTitleDirective, "[rxapWindowTitle]", never, {}, {}, never, never, true, never>;
313
+ }
314
+
315
+ 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 };
316
+ export type { WindowActions, WindowConfig, WindowContainerContext, WindowContext, WindowFooterTemplateContext, WindowSettings, WindowTaskBarContainerSettings, WindowTitleTemplateContext };
package/index.d.ts DELETED
@@ -1,20 +0,0 @@
1
- export * from './lib/window-tool-bar/window-tool-bar.component';
2
- export * from './lib/window-task-bar/window-task-bar-container/window-task-bar-container.component';
3
- export * from './lib/window-task-bar/window-task/window-task.component';
4
- export * from './lib/window-task-bar/window-task-bar.component';
5
- export * from './lib/window-task-bar/window-task-bar.module';
6
- export * from './lib/window-resizer/window-resizer.component';
7
- export * from './lib/window-content/window-content.component';
8
- export * from './lib/window-container/window-container.component';
9
- export * from './lib/window-action-bar/window-action-bar.component';
10
- export * from './lib/default-window/default-window.component';
11
- export * from './lib/tokens';
12
- export * from './lib/utilities';
13
- export * from './lib/window-config';
14
- export * from './lib/window-context';
15
- export * from './lib/window-footer.directive';
16
- export * from './lib/window-instance.service';
17
- export * from './lib/window-ref';
18
- export * from './lib/window-system.module';
19
- export * from './lib/window-title.directive';
20
- export * from './lib/window.service';
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class DefaultWindowComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<DefaultWindowComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<DefaultWindowComponent, "rxap-default-window", never, {}, {}, never, never, true, never>;
5
- }
package/lib/tokens.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import type { WindowContainerContext, WindowContext } from './window-context';
3
- import type { WindowRef } from './window-ref';
4
- import { WindowSettings } from './window-config';
5
- export declare const RXAP_WINDOW_CONTEXT: InjectionToken<WindowContext<any>>;
6
- export declare const RXAP_WINDOW_DATA: InjectionToken<any>;
7
- export declare const RXAP_WINDOW_CONTAINER_CONTEXT: InjectionToken<WindowContainerContext<any>>;
8
- export declare const RXAP_WINDOW_REF: InjectionToken<WindowRef<any, any>>;
9
- export declare const RXAP_WINDOW_SETTINGS: InjectionToken<WindowSettings<any>>;
10
- export declare const RXAP_WINDOW_DEFAULT_SETTINGS: InjectionToken<WindowSettings<any>>;
@@ -1,4 +0,0 @@
1
- export declare function GetWindowStartPos(): {
2
- top: string;
3
- left: string;
4
- };
@@ -1,11 +0,0 @@
1
- import { Injector } from '@angular/core';
2
- import { ButtonDefinition } from '@rxap/rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class WindowActionBarComponent {
5
- injector: Injector;
6
- definitions: ButtonDefinition<any>[] | null;
7
- position: string;
8
- constructor(context: any, injector: Injector);
9
- static ɵfac: i0.ɵɵFactoryDeclaration<WindowActionBarComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<WindowActionBarComponent, "rxap-window-action-bar", never, {}, {}, never, never, true, never>;
11
- }
@@ -1,35 +0,0 @@
1
- import { ComponentType } from '@angular/cdk/portal';
2
- import { ComponentFactoryResolver, Injector, TemplateRef, ViewContainerRef } from '@angular/core';
3
- import { ButtonDefinition } from '@rxap/rxjs';
4
- import { IconConfig } from '@rxap/utilities';
5
- export interface WindowActions<A> {
6
- position?: 'start' | 'end';
7
- definitions: ButtonDefinition<[A]>[];
8
- }
9
- export interface WindowSettings<D = any> {
10
- id?: string;
11
- title?: string;
12
- icon?: IconConfig;
13
- width?: string;
14
- height?: string;
15
- minWidth?: string;
16
- minHeight?: string;
17
- maxWidth?: string;
18
- maxHeight?: string;
19
- resizeable?: boolean;
20
- minimizable?: boolean;
21
- draggable?: boolean;
22
- panelClass?: string;
23
- data?: D;
24
- actions?: WindowActions<D>;
25
- }
26
- export interface WindowConfig<D = any, T = any> extends WindowSettings<D> {
27
- windowComponent?: ComponentType<T>;
28
- component?: ComponentType<T>;
29
- template?: TemplateRef<T>;
30
- injector?: Injector | null;
31
- injectorName?: string;
32
- componentFactoryResolver?: ComponentFactoryResolver | null;
33
- viewContainerRef?: ViewContainerRef | null;
34
- }
35
- export declare const DEFAULT_WINDOW_CONFIG: WindowConfig<any, any>;
@@ -1,21 +0,0 @@
1
- import { CdkDragEnd } from '@angular/cdk/drag-drop';
2
- import { ElementRef, OnInit, Signal } from '@angular/core';
3
- import { LoadingIndicatorService } from '@rxap/services';
4
- import { WindowResizerComponent } from '../window-resizer/window-resizer.component';
5
- import * as i0 from "@angular/core";
6
- export declare class WindowContainerComponent implements OnInit {
7
- footerContent: ElementRef;
8
- containerRef: ElementRef;
9
- windowContainerResizer: WindowResizerComponent;
10
- width: Signal<string>;
11
- height: Signal<string>;
12
- private readonly injector;
13
- readonly context: import("@rxap/window-system").WindowContext<any>;
14
- readonly windowRef: import("@rxap/window-system").WindowRef<any, any>;
15
- readonly windowInstance: LoadingIndicatorService;
16
- get id(): string;
17
- ngOnInit(): void;
18
- onDragEnded($event: CdkDragEnd): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<WindowContainerComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<WindowContainerComponent, "rxap-window-container", never, {}, {}, ["footerContent"], ["*"], true, never>;
21
- }
@@ -1,20 +0,0 @@
1
- import { AfterViewInit, Injector, OnInit, ViewContainerRef } from '@angular/core';
2
- import { WindowContainerContext } from '../window-context';
3
- import { CdkPortalOutlet, Portal } from '@angular/cdk/portal';
4
- import type { WindowRef } from '../window-ref';
5
- import { LoadingIndicatorService } from '@rxap/services';
6
- import * as i0 from "@angular/core";
7
- export declare class WindowContentComponent implements AfterViewInit, OnInit {
8
- private readonly windowRef;
9
- private readonly injector;
10
- private readonly viewContainerRef;
11
- private readonly loadingIndicatorService;
12
- context: WindowContainerContext<any>;
13
- portal: Portal<any> | null;
14
- portalOutlet: CdkPortalOutlet;
15
- constructor(context: any, windowRef: WindowRef, injector: Injector, viewContainerRef: ViewContainerRef, loadingIndicatorService: LoadingIndicatorService);
16
- ngOnInit(): void;
17
- ngAfterViewInit(): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<WindowContentComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<WindowContentComponent, "rxap-window-content", never, {}, {}, never, never, true, never>;
20
- }
@@ -1,13 +0,0 @@
1
- import { ComponentType, OverlayRef } from '@angular/cdk/overlay';
2
- import { WindowRef } from './window-ref';
3
- import { TemplateRef } from '@angular/core';
4
- export interface WindowContext<D> {
5
- overlayRef: OverlayRef;
6
- windowRef: WindowRef<D>;
7
- data?: D;
8
- id: string;
9
- }
10
- export interface WindowContainerContext<T> {
11
- component?: ComponentType<T>;
12
- template?: TemplateRef<T>;
13
- }
@@ -1,22 +0,0 @@
1
- import { OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { WindowRef } from './window-ref';
3
- import * as i0 from "@angular/core";
4
- export interface WindowFooterTemplateContext {
5
- $implicit: WindowRef;
6
- }
7
- export declare class WindowFooterDirective implements OnInit {
8
- private readonly windowRef;
9
- private readonly template;
10
- private readonly viewContainerRef;
11
- constructor(windowRef: WindowRef, template: TemplateRef<WindowFooterTemplateContext>, viewContainerRef: ViewContainerRef);
12
- /**
13
- * Asserts the correct type of the context for the template that `NgForOf` will render.
14
- *
15
- * The presence of this method is a signal to the Ivy template type-check compiler that the
16
- * `NgForOf` structural directive renders its template with a specific context type.
17
- */
18
- static ngTemplateContextGuard(dir: WindowFooterDirective, ctx: any): ctx is WindowFooterTemplateContext;
19
- ngOnInit(): void;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<WindowFooterDirective, never>;
21
- static ɵdir: i0.ɵɵDirectiveDeclaration<WindowFooterDirective, "[rxapWindowFooter]", never, {}, {}, never, never, true, never>;
22
- }
@@ -1,12 +0,0 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { ToggleSubject } from '@rxap/rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class WindowInstanceService implements OnDestroy {
6
- readonly loading$: ToggleSubject;
7
- private readonly _attachedLoadingSubscription;
8
- attachLoading(loading$: Observable<any>): void;
9
- ngOnDestroy(): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<WindowInstanceService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<WindowInstanceService>;
12
- }
@@ -1,71 +0,0 @@
1
- import { Overlay, OverlayRef, OverlaySizeConfig } from '@angular/cdk/overlay';
2
- import { Portal } from '@angular/cdk/portal';
3
- import { ComponentRef, EmbeddedViewRef } from '@angular/core';
4
- import { BehaviorSubject, ReplaySubject, Subject } from 'rxjs';
5
- import { WindowSettings } from './window-config';
6
- export declare class WindowRef<D = any, R = any> extends Subject<R> {
7
- protected readonly overlayRef: OverlayRef;
8
- protected readonly overlay: Overlay;
9
- protected readonly settings: WindowSettings<D>;
10
- readonly width$: BehaviorSubject<string>;
11
- readonly height$: BehaviorSubject<string>;
12
- /**
13
- * @deprecated removed. use the subscribe method and wait for the resolve event
14
- */
15
- readonly closed$: Subject<R | undefined>;
16
- attachedRef$: ReplaySubject<ComponentRef<any> | EmbeddedViewRef<any>>;
17
- /**
18
- * @internal
19
- */
20
- footerPortal$: ReplaySubject<Portal<any>>;
21
- /**
22
- * @internal
23
- */
24
- titlePortal$: ReplaySubject<Portal<any>>;
25
- settings$: ReplaySubject<WindowSettings<any>>;
26
- /**
27
- * stores the window size before fullScreen
28
- * @internal
29
- */
30
- private oldSizes;
31
- constructor(overlayRef: OverlayRef, overlay: Overlay, settings: WindowSettings<D>);
32
- get id(): string | undefined;
33
- get minimizable(): boolean | undefined;
34
- get draggable(): boolean | undefined;
35
- get minWidth(): string | undefined;
36
- get minHeight(): string | undefined;
37
- get maxWidth(): string | undefined;
38
- get maxHeight(): string | undefined;
39
- get isMinimized(): boolean;
40
- /**
41
- * @deprecated removed. use the complete method
42
- * @param result
43
- */
44
- close(result?: R): void;
45
- complete(): void;
46
- minimize(): void;
47
- reopen(): void;
48
- getSizeConfig(): OverlaySizeConfig;
49
- setWidth(width: string): void;
50
- setHeight(height: string): void;
51
- getWidth(): string;
52
- getHeight(): string;
53
- setPos(x: string, y: string): void;
54
- getPos(): {
55
- x: string;
56
- y: string;
57
- };
58
- fullScreen(): void;
59
- /**
60
- * @param portal
61
- */
62
- setFooterPortal(portal: Portal<any>): void;
63
- setTitlePortal(portal: Portal<any>): void;
64
- setAttachedRef(attachedRef: ComponentRef<any> | EmbeddedViewRef<any>): void;
65
- /**
66
- * Injects the window settings from the component ref injector and overwrites
67
- * the settings
68
- * @private
69
- */
70
- private updateWindowSettings;
71
- }
@@ -1,17 +0,0 @@
1
- import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- import { WindowRef } from '../window-ref';
3
- import * as i0 from "@angular/core";
4
- export declare class WindowResizerComponent implements OnInit, OnDestroy {
5
- containerRef: ElementRef<any>;
6
- windowRef: WindowRef<any>;
7
- resizerRef: ElementRef<any>;
8
- width$: EventEmitter<string>;
9
- height$: EventEmitter<string>;
10
- resizing$: EventEmitter<boolean>;
11
- private _subscription;
12
- constructor(context: any);
13
- ngOnDestroy(): void;
14
- ngOnInit(): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<WindowResizerComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<WindowResizerComponent, "rxap-window-resizer", never, { "containerRef": { "alias": "containerRef"; "required": true; }; }, { "width$": "width"; "height$": "height"; "resizing$": "resizing"; }, never, never, true, never>;
17
- }
@@ -1,13 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./window-container/window-container.component";
3
- import * as i2 from "./window-tool-bar/window-tool-bar.component";
4
- import * as i3 from "./window-resizer/window-resizer.component";
5
- import * as i4 from "./default-window/default-window.component";
6
- import * as i5 from "./window-content/window-content.component";
7
- import * as i6 from "./window-action-bar/window-action-bar.component";
8
- import * as i7 from "./window-task-bar/window-task-bar.module";
9
- export declare class RxapWindowSystemModule {
10
- static ɵfac: i0.ɵɵFactoryDeclaration<RxapWindowSystemModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<RxapWindowSystemModule, never, [typeof i1.WindowContainerComponent, typeof i2.WindowToolBarComponent, typeof i3.WindowResizerComponent, typeof i4.DefaultWindowComponent, typeof i5.WindowContentComponent, typeof i6.WindowActionBarComponent], [typeof i1.WindowContainerComponent, typeof i2.WindowToolBarComponent, typeof i3.WindowResizerComponent, typeof i4.DefaultWindowComponent, typeof i5.WindowContentComponent, typeof i7.WindowTaskBarModule]>;
12
- static ɵinj: i0.ɵɵInjectorDeclaration<RxapWindowSystemModule>;
13
- }
@@ -1,9 +0,0 @@
1
- import { WindowRef } from '../../window-ref';
2
- import * as i0 from "@angular/core";
3
- export declare class WindowTaskComponent {
4
- window: WindowRef<any>;
5
- close(): void;
6
- reopen(): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<WindowTaskComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<WindowTaskComponent, "rxap-window-task", never, { "window": { "alias": "window"; "required": true; }; }, {}, never, never, true, never>;
9
- }
@@ -1,14 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { WindowService } from '../../window.service';
3
- import * as i0 from "@angular/core";
4
- export interface WindowTaskBarContainerSettings {
5
- expand?: boolean;
6
- }
7
- export declare const RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS: InjectionToken<unknown>;
8
- export declare class WindowTaskBarContainerComponent {
9
- windowService: WindowService;
10
- expand: boolean;
11
- constructor(windowService: WindowService, settings?: WindowTaskBarContainerSettings | null);
12
- static ɵfac: i0.ɵɵFactoryDeclaration<WindowTaskBarContainerComponent, [null, { optional: true; }]>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<WindowTaskBarContainerComponent, "rxap-window-task-bar-container", never, {}, {}, never, never, true, never>;
14
- }
@@ -1,14 +0,0 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
- import { WindowService } from '../window.service';
3
- import { Subscription } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class WindowTaskBarComponent implements OnInit, OnDestroy {
6
- windowService: WindowService;
7
- cdr: ChangeDetectorRef;
8
- subscriptions: Subscription;
9
- constructor(windowService: WindowService, cdr: ChangeDetectorRef);
10
- ngOnInit(): void;
11
- ngOnDestroy(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<WindowTaskBarComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<WindowTaskBarComponent, "rxap-window-task-bar", never, {}, {}, never, never, true, never>;
14
- }