@rxap/window-system 21.0.1-dev.0 → 21.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +45 -0
- package/compodoc/changelog.html +43 -0
- package/compodoc/components/WindowActionBarComponent.html +18 -57
- package/compodoc/components/WindowContainerComponent.html +219 -175
- package/compodoc/components/WindowContentComponent.html +27 -135
- package/compodoc/components/WindowResizerComponent.html +188 -194
- package/compodoc/components/WindowTaskBarComponent.html +35 -159
- package/compodoc/components/WindowTaskBarContainerComponent.html +11 -74
- package/compodoc/components/WindowTaskComponent.html +51 -44
- package/compodoc/components/WindowToolBarComponent.html +7 -39
- package/compodoc/dependencies.html +5 -5
- package/compodoc/directives/WindowFooterDirective.html +6 -90
- package/compodoc/graph/dependencies.svg +15 -255
- package/compodoc/injectables/WindowService.html +22 -119
- package/compodoc/interfaces/WindowFooterTemplateContext.html +4 -16
- package/compodoc/interfaces/WindowTaskBarContainerSettings.html +6 -13
- package/compodoc/js/menu-wc.js +0 -67
- package/compodoc/js/menu-wc_es5.js +1 -1
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/modules.html +0 -34
- package/compodoc/overview.html +1 -287
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +2006 -2781
- package/docs/html/assets/hierarchy.js +1 -1
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/DefaultWindowComponent.html +2 -2
- package/docs/html/classes/WindowActionBarComponent.html +2 -2
- package/docs/html/classes/WindowContainerComponent.html +5 -10
- package/docs/html/classes/WindowContentComponent.html +2 -12
- package/docs/html/classes/WindowFooterDirective.html +4 -4
- package/docs/html/classes/WindowInstanceService.html +3 -3
- package/docs/html/classes/WindowRef.html +11 -11
- package/docs/html/classes/WindowResizerComponent.html +6 -10
- package/docs/html/classes/WindowService.html +2 -2
- package/docs/html/classes/WindowTaskBarComponent.html +5 -13
- package/docs/html/classes/WindowTaskBarContainerComponent.html +2 -2
- package/docs/html/classes/WindowTaskComponent.html +2 -2
- package/docs/html/classes/WindowTitleDirective.html +3 -3
- package/docs/html/classes/WindowToolBarComponent.html +2 -2
- package/docs/html/functions/GetWindowStartPos.html +1 -1
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/WindowActions.html +2 -2
- package/docs/html/interfaces/WindowConfig.html +2 -2
- package/docs/html/interfaces/WindowContainerContext.html +2 -2
- package/docs/html/interfaces/WindowContext.html +2 -2
- package/docs/html/interfaces/WindowFooterTemplateContext.html +2 -2
- package/docs/html/interfaces/WindowSettings.html +2 -2
- package/docs/html/interfaces/WindowTaskBarContainerSettings.html +2 -2
- package/docs/html/interfaces/WindowTitleTemplateContext.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/variables/DEFAULT_WINDOW_CONFIG.html +1 -1
- package/docs/html/variables/RXAP_WINDOW_CONTAINER_CONTEXT.html +1 -1
- package/docs/html/variables/RXAP_WINDOW_CONTEXT.html +1 -1
- package/docs/html/variables/RXAP_WINDOW_DATA.html +1 -1
- package/docs/html/variables/RXAP_WINDOW_DEFAULT_SETTINGS.html +1 -1
- package/docs/html/variables/RXAP_WINDOW_REF.html +1 -1
- package/docs/html/variables/RXAP_WINDOW_SETTINGS.html +1 -1
- package/docs/html/variables/RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/DefaultWindowComponent.md +2 -2
- package/docs/markdown/classes/WindowActionBarComponent.md +7 -17
- package/docs/markdown/classes/WindowContainerComponent.md +42 -44
- package/docs/markdown/classes/WindowContentComponent.md +8 -77
- package/docs/markdown/classes/WindowFooterDirective.md +5 -21
- package/docs/markdown/classes/WindowInstanceService.md +5 -5
- package/docs/markdown/classes/WindowRef.md +36 -36
- package/docs/markdown/classes/WindowResizerComponent.md +26 -45
- package/docs/markdown/classes/WindowService.md +13 -33
- package/docs/markdown/classes/WindowTaskBarComponent.md +9 -72
- package/docs/markdown/classes/WindowTaskBarContainerComponent.md +6 -16
- package/docs/markdown/classes/WindowTaskComponent.md +6 -6
- package/docs/markdown/classes/WindowTitleDirective.md +4 -4
- package/docs/markdown/classes/WindowToolBarComponent.md +5 -11
- package/docs/markdown/functions/GetWindowStartPos.md +2 -2
- package/docs/markdown/globals.md +2 -4
- package/docs/markdown/interfaces/WindowActions.md +4 -4
- package/docs/markdown/interfaces/WindowConfig.md +24 -24
- package/docs/markdown/interfaces/WindowContainerContext.md +4 -4
- package/docs/markdown/interfaces/WindowContext.md +6 -6
- package/docs/markdown/interfaces/WindowFooterTemplateContext.md +3 -3
- package/docs/markdown/interfaces/WindowSettings.md +17 -17
- package/docs/markdown/interfaces/WindowTaskBarContainerSettings.md +3 -3
- package/docs/markdown/interfaces/WindowTitleTemplateContext.md +3 -3
- package/docs/markdown/variables/DEFAULT_WINDOW_CONFIG.md +2 -2
- package/docs/markdown/variables/RXAP_WINDOW_CONTAINER_CONTEXT.md +2 -2
- package/docs/markdown/variables/RXAP_WINDOW_CONTEXT.md +2 -2
- package/docs/markdown/variables/RXAP_WINDOW_DATA.md +2 -2
- package/docs/markdown/variables/RXAP_WINDOW_DEFAULT_SETTINGS.md +2 -2
- package/docs/markdown/variables/RXAP_WINDOW_REF.md +2 -2
- package/docs/markdown/variables/RXAP_WINDOW_SETTINGS.md +2 -2
- package/docs/markdown/variables/RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS.md +2 -2
- package/docs/wiki/Class.DefaultWindowComponent.md +1 -1
- package/docs/wiki/Class.WindowActionBarComponent.md +6 -16
- package/docs/wiki/Class.WindowContainerComponent.md +41 -43
- package/docs/wiki/Class.WindowContentComponent.md +7 -76
- package/docs/wiki/Class.WindowFooterDirective.md +4 -20
- package/docs/wiki/Class.WindowInstanceService.md +4 -4
- package/docs/wiki/Class.WindowRef.md +35 -35
- package/docs/wiki/Class.WindowResizerComponent.md +25 -44
- package/docs/wiki/Class.WindowService.md +12 -32
- package/docs/wiki/Class.WindowTaskBarComponent.md +8 -71
- package/docs/wiki/Class.WindowTaskBarContainerComponent.md +5 -15
- package/docs/wiki/Class.WindowTaskComponent.md +5 -5
- package/docs/wiki/Class.WindowTitleDirective.md +3 -3
- package/docs/wiki/Class.WindowToolBarComponent.md +4 -10
- package/docs/wiki/Function.GetWindowStartPos.md +1 -1
- package/docs/wiki/Interface.WindowActions.md +3 -3
- package/docs/wiki/Interface.WindowConfig.md +23 -23
- package/docs/wiki/Interface.WindowContainerContext.md +3 -3
- package/docs/wiki/Interface.WindowContext.md +5 -5
- package/docs/wiki/Interface.WindowFooterTemplateContext.md +2 -2
- package/docs/wiki/Interface.WindowSettings.md +16 -16
- package/docs/wiki/Interface.WindowTaskBarContainerSettings.md +2 -2
- package/docs/wiki/Interface.WindowTitleTemplateContext.md +2 -2
- package/docs/wiki/Variable.DEFAULT_WINDOW_CONFIG.md +1 -1
- package/docs/wiki/Variable.RXAP_WINDOW_CONTAINER_CONTEXT.md +1 -1
- package/docs/wiki/Variable.RXAP_WINDOW_CONTEXT.md +1 -1
- package/docs/wiki/Variable.RXAP_WINDOW_DATA.md +1 -1
- package/docs/wiki/Variable.RXAP_WINDOW_DEFAULT_SETTINGS.md +1 -1
- package/docs/wiki/Variable.RXAP_WINDOW_REF.md +1 -1
- package/docs/wiki/Variable.RXAP_WINDOW_SETTINGS.md +1 -1
- package/docs/wiki/Variable.RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS.md +1 -1
- package/docs/wiki/_Sidebar.md +0 -2
- package/docs/wiki/globals.md +1 -3
- package/fesm2022/rxap-window-system.mjs +117 -257
- package/fesm2022/rxap-window-system.mjs.map +1 -1
- package/package.json +14 -14
- package/types/rxap-window-system.d.ts +44 -55
- package/docs/html/classes/RxapWindowSystemModule.html +0 -2
- package/docs/html/classes/WindowTaskBarModule.html +0 -2
- package/docs/markdown/classes/RxapWindowSystemModule.md +0 -19
- package/docs/markdown/classes/WindowTaskBarModule.md +0 -19
- package/docs/wiki/Class.RxapWindowSystemModule.md +0 -15
- package/docs/wiki/Class.WindowTaskBarModule.md +0 -15
|
@@ -126,13 +126,6 @@
|
|
|
126
126
|
|
|
127
127
|
|
|
128
128
|
|
|
129
|
-
<p class="comment">
|
|
130
|
-
<h3>Implements</h3>
|
|
131
|
-
</p>
|
|
132
|
-
<p class="comment">
|
|
133
|
-
<code>AfterViewInit</code>
|
|
134
|
-
<code>OnInit</code>
|
|
135
|
-
</p>
|
|
136
129
|
|
|
137
130
|
|
|
138
131
|
<section data-compodoc="block-metadata">
|
|
@@ -142,7 +135,7 @@
|
|
|
142
135
|
|
|
143
136
|
<tr>
|
|
144
137
|
<td class="col-md-3">changeDetection</td>
|
|
145
|
-
<td class="col-md-9"><code>ChangeDetectionStrategy.
|
|
138
|
+
<td class="col-md-9"><code>ChangeDetectionStrategy.OnPush</code></td>
|
|
146
139
|
</tr>
|
|
147
140
|
|
|
148
141
|
|
|
@@ -212,8 +205,8 @@
|
|
|
212
205
|
<a href="#portal" >portal</a>
|
|
213
206
|
</li>
|
|
214
207
|
<li>
|
|
215
|
-
<span class="modifier"></span>
|
|
216
208
|
<span class="modifier">Public</span>
|
|
209
|
+
<span class="modifier">Readonly</span>
|
|
217
210
|
<a href="#portalOutlet" >portalOutlet</a>
|
|
218
211
|
</li>
|
|
219
212
|
</ul>
|
|
@@ -235,93 +228,15 @@
|
|
|
235
228
|
<tbody>
|
|
236
229
|
<tr>
|
|
237
230
|
<td class="col-md-4">
|
|
238
|
-
<code>constructor(
|
|
231
|
+
<code>constructor()</code>
|
|
239
232
|
</td>
|
|
240
233
|
</tr>
|
|
241
234
|
<tr>
|
|
242
235
|
<td class="col-md-4">
|
|
243
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
236
|
+
<div class="io-line">Defined in <a href="" data-line="50" class="link-to-prism">src/lib/window-content/window-content.component.ts:50</a></div>
|
|
244
237
|
</td>
|
|
245
238
|
</tr>
|
|
246
239
|
|
|
247
|
-
<tr>
|
|
248
|
-
<td class="col-md-4">
|
|
249
|
-
<div>
|
|
250
|
-
<b>Parameters :</b>
|
|
251
|
-
<table class="params">
|
|
252
|
-
<thead>
|
|
253
|
-
<tr>
|
|
254
|
-
<td>Name</td>
|
|
255
|
-
<td>Type</td>
|
|
256
|
-
<td>Optional</td>
|
|
257
|
-
</tr>
|
|
258
|
-
</thead>
|
|
259
|
-
<tbody>
|
|
260
|
-
<tr>
|
|
261
|
-
<td>context</td>
|
|
262
|
-
|
|
263
|
-
<td>
|
|
264
|
-
<code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
265
|
-
</td>
|
|
266
|
-
|
|
267
|
-
<td>
|
|
268
|
-
No
|
|
269
|
-
</td>
|
|
270
|
-
|
|
271
|
-
</tr>
|
|
272
|
-
<tr>
|
|
273
|
-
<td>windowRef</td>
|
|
274
|
-
|
|
275
|
-
<td>
|
|
276
|
-
<code><a href="../classes/WindowRef.html" target="_self" >WindowRef</a></code>
|
|
277
|
-
</td>
|
|
278
|
-
|
|
279
|
-
<td>
|
|
280
|
-
No
|
|
281
|
-
</td>
|
|
282
|
-
|
|
283
|
-
</tr>
|
|
284
|
-
<tr>
|
|
285
|
-
<td>injector</td>
|
|
286
|
-
|
|
287
|
-
<td>
|
|
288
|
-
<code>Injector</code>
|
|
289
|
-
</td>
|
|
290
|
-
|
|
291
|
-
<td>
|
|
292
|
-
No
|
|
293
|
-
</td>
|
|
294
|
-
|
|
295
|
-
</tr>
|
|
296
|
-
<tr>
|
|
297
|
-
<td>viewContainerRef</td>
|
|
298
|
-
|
|
299
|
-
<td>
|
|
300
|
-
<code>ViewContainerRef</code>
|
|
301
|
-
</td>
|
|
302
|
-
|
|
303
|
-
<td>
|
|
304
|
-
No
|
|
305
|
-
</td>
|
|
306
|
-
|
|
307
|
-
</tr>
|
|
308
|
-
<tr>
|
|
309
|
-
<td>loadingIndicatorService</td>
|
|
310
|
-
|
|
311
|
-
<td>
|
|
312
|
-
<code>LoadingIndicatorService</code>
|
|
313
|
-
</td>
|
|
314
|
-
|
|
315
|
-
<td>
|
|
316
|
-
No
|
|
317
|
-
</td>
|
|
318
|
-
|
|
319
|
-
</tr>
|
|
320
|
-
</tbody>
|
|
321
|
-
</table>
|
|
322
|
-
</div>
|
|
323
|
-
</td>
|
|
324
|
-
</tr>
|
|
325
240
|
</tbody>
|
|
326
241
|
</table>
|
|
327
242
|
</section>
|
|
@@ -356,7 +271,7 @@
|
|
|
356
271
|
</tr>
|
|
357
272
|
<tr>
|
|
358
273
|
<td class="col-md-4">
|
|
359
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
274
|
+
<div class="io-line">Defined in <a href="" data-line="46" class="link-to-prism">src/lib/window-content/window-content.component.ts:46</a></div>
|
|
360
275
|
</td>
|
|
361
276
|
</tr>
|
|
362
277
|
|
|
@@ -388,7 +303,7 @@
|
|
|
388
303
|
</tr>
|
|
389
304
|
<tr>
|
|
390
305
|
<td class="col-md-4">
|
|
391
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
306
|
+
<div class="io-line">Defined in <a href="" data-line="48" class="link-to-prism">src/lib/window-content/window-content.component.ts:48</a></div>
|
|
392
307
|
</td>
|
|
393
308
|
</tr>
|
|
394
309
|
|
|
@@ -401,8 +316,8 @@
|
|
|
401
316
|
<td class="col-md-4">
|
|
402
317
|
<a name="portalOutlet"></a>
|
|
403
318
|
<span class="name">
|
|
404
|
-
<span class="modifier"></span>
|
|
405
319
|
<span class="modifier">Public</span>
|
|
320
|
+
<span class="modifier">Readonly</span>
|
|
406
321
|
<span ><b>portalOutlet</b></span>
|
|
407
322
|
<a href="#portalOutlet"><span class="icon ion-ios-link"></span></a>
|
|
408
323
|
</span>
|
|
@@ -410,22 +325,12 @@
|
|
|
410
325
|
</tr>
|
|
411
326
|
<tr>
|
|
412
327
|
<td class="col-md-4">
|
|
413
|
-
<i>
|
|
414
|
-
|
|
415
|
-
</td>
|
|
416
|
-
</tr>
|
|
417
|
-
<tr>
|
|
418
|
-
<td class="col-md-4">
|
|
419
|
-
<b>Decorators : </b>
|
|
420
|
-
<br />
|
|
421
|
-
<code>
|
|
422
|
-
@ViewChild(CdkPortalOutlet)<br />
|
|
423
|
-
</code>
|
|
328
|
+
<i>Default value : </i><code>viewChild.required(CdkPortalOutlet)</code>
|
|
424
329
|
</td>
|
|
425
330
|
</tr>
|
|
426
331
|
<tr>
|
|
427
332
|
<td class="col-md-4">
|
|
428
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
333
|
+
<div class="io-line">Defined in <a href="" data-line="50" class="link-to-prism">src/lib/window-content/window-content.component.ts:50</a></div>
|
|
429
334
|
</td>
|
|
430
335
|
</tr>
|
|
431
336
|
|
|
@@ -438,18 +343,7 @@
|
|
|
438
343
|
|
|
439
344
|
|
|
440
345
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
441
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
442
|
-
AfterViewInit,
|
|
443
|
-
ChangeDetectionStrategy,
|
|
444
|
-
Component,
|
|
445
|
-
ComponentRef,
|
|
446
|
-
Inject,
|
|
447
|
-
Injector,
|
|
448
|
-
isDevMode,
|
|
449
|
-
OnInit,
|
|
450
|
-
ViewChild,
|
|
451
|
-
ViewContainerRef,
|
|
452
|
-
} from '@angular/core';
|
|
346
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { afterNextRender, ChangeDetectionStrategy, Component, ComponentRef, Injector, isDevMode, ViewContainerRef, viewChild, inject } from '@angular/core';
|
|
453
347
|
import {
|
|
454
348
|
RXAP_WINDOW_CONTAINER_CONTEXT,
|
|
455
349
|
RXAP_WINDOW_REF,
|
|
@@ -484,41 +378,39 @@ import { isDefined } from '@rxap/rxjs';
|
|
|
484
378
|
selector: 'rxap-window-content',
|
|
485
379
|
templateUrl: './window-content.component.html',
|
|
486
380
|
styleUrls: ['./window-content.component.scss'],
|
|
487
|
-
changeDetection: ChangeDetectionStrategy.
|
|
381
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
488
382
|
imports: [PortalModule]
|
|
489
383
|
})
|
|
490
|
-
export class WindowContentComponent
|
|
384
|
+
export class WindowContentComponent {
|
|
385
|
+
private readonly windowRef = inject<WindowRef>(RXAP_WINDOW_REF);
|
|
386
|
+
private readonly injector = inject(Injector);
|
|
387
|
+
private readonly viewContainerRef = inject(ViewContainerRef);
|
|
388
|
+
private readonly loadingIndicatorService = inject(LoadingIndicatorService);
|
|
389
|
+
|
|
491
390
|
|
|
492
391
|
public context: WindowContainerContext<any>;
|
|
493
392
|
|
|
494
393
|
public portal: Portal<any> | null = null;
|
|
495
394
|
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
context: any,
|
|
502
|
-
@Inject(RXAP_WINDOW_REF)
|
|
503
|
-
private readonly windowRef: WindowRef,
|
|
504
|
-
private readonly injector: Injector,
|
|
505
|
-
private readonly viewContainerRef: ViewContainerRef,
|
|
506
|
-
private readonly loadingIndicatorService: LoadingIndicatorService,
|
|
507
|
-
) {
|
|
395
|
+
public readonly portalOutlet = viewChild.required(CdkPortalOutlet);
|
|
396
|
+
|
|
397
|
+
constructor() {
|
|
398
|
+
const context = inject(RXAP_WINDOW_CONTAINER_CONTEXT);
|
|
399
|
+
|
|
508
400
|
this.context = context;
|
|
509
|
-
}
|
|
510
401
|
|
|
511
|
-
public ngOnInit() {
|
|
512
402
|
if (this.context.template) {
|
|
513
403
|
this.portal = new TemplatePortal(this.context.template, this.viewContainerRef);
|
|
514
404
|
} else if (this.context.component) {
|
|
515
405
|
this.portal = new ComponentPortal<any>(this.context.component, this.viewContainerRef, this.injector);
|
|
516
406
|
}
|
|
407
|
+
|
|
408
|
+
afterNextRender(() => this.attach());
|
|
517
409
|
}
|
|
518
410
|
|
|
519
|
-
|
|
520
|
-
this.portalOutlet.attached.pipe(
|
|
521
|
-
startWith(this.portalOutlet.attachedRef),
|
|
411
|
+
private attach() {
|
|
412
|
+
this.portalOutlet().attached.pipe(
|
|
413
|
+
startWith(this.portalOutlet().attachedRef),
|
|
522
414
|
isDefined(),
|
|
523
415
|
take(1),
|
|
524
416
|
tap(attachedRef => this.windowRef.setAttachedRef(attachedRef)),
|