@rxap/window-system 21.0.1-dev.0 → 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 (136) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/compodoc/changelog.html +19 -0
  3. package/compodoc/components/WindowActionBarComponent.html +18 -57
  4. package/compodoc/components/WindowContainerComponent.html +219 -175
  5. package/compodoc/components/WindowContentComponent.html +27 -135
  6. package/compodoc/components/WindowResizerComponent.html +188 -194
  7. package/compodoc/components/WindowTaskBarComponent.html +35 -159
  8. package/compodoc/components/WindowTaskBarContainerComponent.html +11 -74
  9. package/compodoc/components/WindowTaskComponent.html +51 -44
  10. package/compodoc/components/WindowToolBarComponent.html +7 -39
  11. package/compodoc/dependencies.html +5 -5
  12. package/compodoc/directives/WindowFooterDirective.html +6 -90
  13. package/compodoc/graph/dependencies.svg +15 -255
  14. package/compodoc/injectables/WindowService.html +22 -119
  15. package/compodoc/interfaces/WindowFooterTemplateContext.html +4 -16
  16. package/compodoc/interfaces/WindowTaskBarContainerSettings.html +6 -13
  17. package/compodoc/js/menu-wc.js +0 -67
  18. package/compodoc/js/menu-wc_es5.js +1 -1
  19. package/compodoc/js/search/search_index.js +2 -2
  20. package/compodoc/modules.html +0 -34
  21. package/compodoc/overview.html +1 -287
  22. package/compodoc/properties.html +1 -1
  23. package/docs/documentation.json +2006 -2781
  24. package/docs/html/assets/hierarchy.js +1 -1
  25. package/docs/html/assets/navigation.js +1 -1
  26. package/docs/html/assets/search.js +1 -1
  27. package/docs/html/classes/DefaultWindowComponent.html +2 -2
  28. package/docs/html/classes/WindowActionBarComponent.html +2 -2
  29. package/docs/html/classes/WindowContainerComponent.html +5 -10
  30. package/docs/html/classes/WindowContentComponent.html +2 -12
  31. package/docs/html/classes/WindowFooterDirective.html +4 -4
  32. package/docs/html/classes/WindowInstanceService.html +3 -3
  33. package/docs/html/classes/WindowRef.html +11 -11
  34. package/docs/html/classes/WindowResizerComponent.html +6 -10
  35. package/docs/html/classes/WindowService.html +2 -2
  36. package/docs/html/classes/WindowTaskBarComponent.html +5 -13
  37. package/docs/html/classes/WindowTaskBarContainerComponent.html +2 -2
  38. package/docs/html/classes/WindowTaskComponent.html +2 -2
  39. package/docs/html/classes/WindowTitleDirective.html +3 -3
  40. package/docs/html/classes/WindowToolBarComponent.html +2 -2
  41. package/docs/html/functions/GetWindowStartPos.html +1 -1
  42. package/docs/html/hierarchy.html +1 -1
  43. package/docs/html/index.html +2 -2
  44. package/docs/html/interfaces/WindowActions.html +2 -2
  45. package/docs/html/interfaces/WindowConfig.html +2 -2
  46. package/docs/html/interfaces/WindowContainerContext.html +2 -2
  47. package/docs/html/interfaces/WindowContext.html +2 -2
  48. package/docs/html/interfaces/WindowFooterTemplateContext.html +2 -2
  49. package/docs/html/interfaces/WindowSettings.html +2 -2
  50. package/docs/html/interfaces/WindowTaskBarContainerSettings.html +2 -2
  51. package/docs/html/interfaces/WindowTitleTemplateContext.html +2 -2
  52. package/docs/html/modules.html +1 -1
  53. package/docs/html/variables/DEFAULT_WINDOW_CONFIG.html +1 -1
  54. package/docs/html/variables/RXAP_WINDOW_CONTAINER_CONTEXT.html +1 -1
  55. package/docs/html/variables/RXAP_WINDOW_CONTEXT.html +1 -1
  56. package/docs/html/variables/RXAP_WINDOW_DATA.html +1 -1
  57. package/docs/html/variables/RXAP_WINDOW_DEFAULT_SETTINGS.html +1 -1
  58. package/docs/html/variables/RXAP_WINDOW_REF.html +1 -1
  59. package/docs/html/variables/RXAP_WINDOW_SETTINGS.html +1 -1
  60. package/docs/html/variables/RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS.html +1 -1
  61. package/docs/markdown/README.md +1 -1
  62. package/docs/markdown/classes/DefaultWindowComponent.md +2 -2
  63. package/docs/markdown/classes/WindowActionBarComponent.md +7 -17
  64. package/docs/markdown/classes/WindowContainerComponent.md +42 -44
  65. package/docs/markdown/classes/WindowContentComponent.md +8 -77
  66. package/docs/markdown/classes/WindowFooterDirective.md +5 -21
  67. package/docs/markdown/classes/WindowInstanceService.md +5 -5
  68. package/docs/markdown/classes/WindowRef.md +36 -36
  69. package/docs/markdown/classes/WindowResizerComponent.md +26 -45
  70. package/docs/markdown/classes/WindowService.md +13 -33
  71. package/docs/markdown/classes/WindowTaskBarComponent.md +9 -72
  72. package/docs/markdown/classes/WindowTaskBarContainerComponent.md +6 -16
  73. package/docs/markdown/classes/WindowTaskComponent.md +6 -6
  74. package/docs/markdown/classes/WindowTitleDirective.md +4 -4
  75. package/docs/markdown/classes/WindowToolBarComponent.md +5 -11
  76. package/docs/markdown/functions/GetWindowStartPos.md +2 -2
  77. package/docs/markdown/globals.md +2 -4
  78. package/docs/markdown/interfaces/WindowActions.md +4 -4
  79. package/docs/markdown/interfaces/WindowConfig.md +24 -24
  80. package/docs/markdown/interfaces/WindowContainerContext.md +4 -4
  81. package/docs/markdown/interfaces/WindowContext.md +6 -6
  82. package/docs/markdown/interfaces/WindowFooterTemplateContext.md +3 -3
  83. package/docs/markdown/interfaces/WindowSettings.md +17 -17
  84. package/docs/markdown/interfaces/WindowTaskBarContainerSettings.md +3 -3
  85. package/docs/markdown/interfaces/WindowTitleTemplateContext.md +3 -3
  86. package/docs/markdown/variables/DEFAULT_WINDOW_CONFIG.md +2 -2
  87. package/docs/markdown/variables/RXAP_WINDOW_CONTAINER_CONTEXT.md +2 -2
  88. package/docs/markdown/variables/RXAP_WINDOW_CONTEXT.md +2 -2
  89. package/docs/markdown/variables/RXAP_WINDOW_DATA.md +2 -2
  90. package/docs/markdown/variables/RXAP_WINDOW_DEFAULT_SETTINGS.md +2 -2
  91. package/docs/markdown/variables/RXAP_WINDOW_REF.md +2 -2
  92. package/docs/markdown/variables/RXAP_WINDOW_SETTINGS.md +2 -2
  93. package/docs/markdown/variables/RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS.md +2 -2
  94. package/docs/wiki/Class.DefaultWindowComponent.md +1 -1
  95. package/docs/wiki/Class.WindowActionBarComponent.md +6 -16
  96. package/docs/wiki/Class.WindowContainerComponent.md +41 -43
  97. package/docs/wiki/Class.WindowContentComponent.md +7 -76
  98. package/docs/wiki/Class.WindowFooterDirective.md +4 -20
  99. package/docs/wiki/Class.WindowInstanceService.md +4 -4
  100. package/docs/wiki/Class.WindowRef.md +35 -35
  101. package/docs/wiki/Class.WindowResizerComponent.md +25 -44
  102. package/docs/wiki/Class.WindowService.md +12 -32
  103. package/docs/wiki/Class.WindowTaskBarComponent.md +8 -71
  104. package/docs/wiki/Class.WindowTaskBarContainerComponent.md +5 -15
  105. package/docs/wiki/Class.WindowTaskComponent.md +5 -5
  106. package/docs/wiki/Class.WindowTitleDirective.md +3 -3
  107. package/docs/wiki/Class.WindowToolBarComponent.md +4 -10
  108. package/docs/wiki/Function.GetWindowStartPos.md +1 -1
  109. package/docs/wiki/Interface.WindowActions.md +3 -3
  110. package/docs/wiki/Interface.WindowConfig.md +23 -23
  111. package/docs/wiki/Interface.WindowContainerContext.md +3 -3
  112. package/docs/wiki/Interface.WindowContext.md +5 -5
  113. package/docs/wiki/Interface.WindowFooterTemplateContext.md +2 -2
  114. package/docs/wiki/Interface.WindowSettings.md +16 -16
  115. package/docs/wiki/Interface.WindowTaskBarContainerSettings.md +2 -2
  116. package/docs/wiki/Interface.WindowTitleTemplateContext.md +2 -2
  117. package/docs/wiki/Variable.DEFAULT_WINDOW_CONFIG.md +1 -1
  118. package/docs/wiki/Variable.RXAP_WINDOW_CONTAINER_CONTEXT.md +1 -1
  119. package/docs/wiki/Variable.RXAP_WINDOW_CONTEXT.md +1 -1
  120. package/docs/wiki/Variable.RXAP_WINDOW_DATA.md +1 -1
  121. package/docs/wiki/Variable.RXAP_WINDOW_DEFAULT_SETTINGS.md +1 -1
  122. package/docs/wiki/Variable.RXAP_WINDOW_REF.md +1 -1
  123. package/docs/wiki/Variable.RXAP_WINDOW_SETTINGS.md +1 -1
  124. package/docs/wiki/Variable.RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS.md +1 -1
  125. package/docs/wiki/_Sidebar.md +0 -2
  126. package/docs/wiki/globals.md +1 -3
  127. package/fesm2022/rxap-window-system.mjs +117 -257
  128. package/fesm2022/rxap-window-system.mjs.map +1 -1
  129. package/package.json +14 -14
  130. package/types/rxap-window-system.d.ts +44 -55
  131. package/docs/html/classes/RxapWindowSystemModule.html +0 -2
  132. package/docs/html/classes/WindowTaskBarModule.html +0 -2
  133. package/docs/markdown/classes/RxapWindowSystemModule.md +0 -19
  134. package/docs/markdown/classes/WindowTaskBarModule.md +0 -19
  135. package/docs/wiki/Class.RxapWindowSystemModule.md +0 -15
  136. package/docs/wiki/Class.WindowTaskBarModule.md +0 -15
@@ -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.Default</code></td>
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(context: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">any</a>, windowRef: <a href="../classes/WindowRef.html" target="_self">WindowRef</a>, injector: Injector, viewContainerRef: ViewContainerRef, loadingIndicatorService: LoadingIndicatorService)</code>
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="57" class="link-to-prism">src/lib/window-content/window-content.component.ts:57</a></div>
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="52" class="link-to-prism">src/lib/window-content/window-content.component.ts:52</a></div>
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="54" class="link-to-prism">src/lib/window-content/window-content.component.ts:54</a></div>
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>Type : </i> <code>CdkPortalOutlet</code>
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="57" class="link-to-prism">src/lib/window-content/window-content.component.ts:57</a></div>
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 &#x27;@angular/core&#x27;;
346
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { afterNextRender, ChangeDetectionStrategy, Component, ComponentRef, Injector, isDevMode, ViewContainerRef, viewChild, inject } from &#x27;@angular/core&#x27;;
453
347
  import {
454
348
  RXAP_WINDOW_CONTAINER_CONTEXT,
455
349
  RXAP_WINDOW_REF,
@@ -484,41 +378,39 @@ import { isDefined } from &#x27;@rxap/rxjs&#x27;;
484
378
  selector: &#x27;rxap-window-content&#x27;,
485
379
  templateUrl: &#x27;./window-content.component.html&#x27;,
486
380
  styleUrls: [&#x27;./window-content.component.scss&#x27;],
487
- changeDetection: ChangeDetectionStrategy.Default,
381
+ changeDetection: ChangeDetectionStrategy.OnPush,
488
382
  imports: [PortalModule]
489
383
  })
490
- export class WindowContentComponent implements AfterViewInit, OnInit {
384
+ export class WindowContentComponent {
385
+ private readonly windowRef &#x3D; inject&lt;WindowRef&gt;(RXAP_WINDOW_REF);
386
+ private readonly injector &#x3D; inject(Injector);
387
+ private readonly viewContainerRef &#x3D; inject(ViewContainerRef);
388
+ private readonly loadingIndicatorService &#x3D; inject(LoadingIndicatorService);
389
+
491
390
 
492
391
  public context: WindowContainerContext&lt;any&gt;;
493
392
 
494
393
  public portal: Portal&lt;any&gt; | null &#x3D; null;
495
394
 
496
- @ViewChild(CdkPortalOutlet)
497
- public portalOutlet!: CdkPortalOutlet;
498
-
499
- constructor(
500
- @Inject(RXAP_WINDOW_CONTAINER_CONTEXT)
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 &#x3D; viewChild.required(CdkPortalOutlet);
396
+
397
+ constructor() {
398
+ const context &#x3D; inject(RXAP_WINDOW_CONTAINER_CONTEXT);
399
+
508
400
  this.context &#x3D; context;
509
- }
510
401
 
511
- public ngOnInit() {
512
402
  if (this.context.template) {
513
403
  this.portal &#x3D; new TemplatePortal(this.context.template, this.viewContainerRef);
514
404
  } else if (this.context.component) {
515
405
  this.portal &#x3D; new ComponentPortal&lt;any&gt;(this.context.component, this.viewContainerRef, this.injector);
516
406
  }
407
+
408
+ afterNextRender(() &#x3D;&gt; this.attach());
517
409
  }
518
410
 
519
- public ngAfterViewInit() {
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 &#x3D;&gt; this.windowRef.setAttachedRef(attachedRef)),