@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
@@ -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>OnInit</code>
134
- <code>OnDestroy</code>
135
- </p>
136
129
 
137
130
 
138
131
  <section data-compodoc="block-metadata">
@@ -164,7 +157,6 @@
164
157
  <tr>
165
158
  <td class="col-md-3">imports</td>
166
159
  <td class="col-md-9">
167
- <code>NgFor</code>
168
160
  <code><a href="../components/WindowTaskComponent.html" target="_self" >WindowTaskComponent</a></code>
169
161
  </td>
170
162
  </tr>
@@ -205,17 +197,10 @@
205
197
  <td class="col-md-4">
206
198
  <ul class="index-list">
207
199
  <li>
208
- <span class="modifier"></span>
209
- <span class="modifier">Public</span>
210
- <a href="#cdr" >cdr</a>
200
+ <span class="modifier">Readonly</span>
201
+ <a href="#activeCount" >activeCount</a>
211
202
  </li>
212
203
  <li>
213
- <span class="modifier">Public</span>
214
- <a href="#subscriptions" >subscriptions</a>
215
- </li>
216
- <li>
217
- <span class="modifier"></span>
218
- <span class="modifier">Public</span>
219
204
  <a href="#windowService" >windowService</a>
220
205
  </li>
221
206
  </ul>
@@ -231,66 +216,6 @@
231
216
  </table>
232
217
  </section>
233
218
 
234
- <section data-compodoc="block-constructor">
235
- <h3 id="constructor">Constructor</h3>
236
- <table class="table table-sm table-bordered">
237
- <tbody>
238
- <tr>
239
- <td class="col-md-4">
240
- <code>constructor(windowService: <a href="../injectables/WindowService.html" target="_self">WindowService</a>, cdr: ChangeDetectorRef)</code>
241
- </td>
242
- </tr>
243
- <tr>
244
- <td class="col-md-4">
245
- <div class="io-line">Defined in <a href="" data-line="24" class="link-to-prism">src/lib/window-task-bar/window-task-bar.component.ts:24</a></div>
246
- </td>
247
- </tr>
248
-
249
- <tr>
250
- <td class="col-md-4">
251
- <div>
252
- <b>Parameters :</b>
253
- <table class="params">
254
- <thead>
255
- <tr>
256
- <td>Name</td>
257
- <td>Type</td>
258
- <td>Optional</td>
259
- </tr>
260
- </thead>
261
- <tbody>
262
- <tr>
263
- <td>windowService</td>
264
-
265
- <td>
266
- <code><a href="../injectables/WindowService.html" target="_self" >WindowService</a></code>
267
- </td>
268
-
269
- <td>
270
- No
271
- </td>
272
-
273
- </tr>
274
- <tr>
275
- <td>cdr</td>
276
-
277
- <td>
278
- <code>ChangeDetectorRef</code>
279
- </td>
280
-
281
- <td>
282
- No
283
- </td>
284
-
285
- </tr>
286
- </tbody>
287
- </table>
288
- </div>
289
- </td>
290
- </tr>
291
- </tbody>
292
- </table>
293
- </section>
294
219
 
295
220
 
296
221
 
@@ -306,62 +231,32 @@
306
231
  <tbody>
307
232
  <tr>
308
233
  <td class="col-md-4">
309
- <a name="cdr"></a>
234
+ <a name="activeCount"></a>
310
235
  <span class="name">
311
- <span class="modifier"></span>
312
- <span class="modifier">Public</span>
313
- <span ><b>cdr</b></span>
314
- <a href="#cdr"><span class="icon ion-ios-link"></span></a>
236
+ <span class="modifier">Readonly</span>
237
+ <span ><b>activeCount</b></span>
238
+ <a href="#activeCount"><span class="icon ion-ios-link"></span></a>
315
239
  </span>
316
240
  </td>
317
241
  </tr>
318
242
  <tr>
319
243
  <td class="col-md-4">
320
- <i>Type : </i> <code>ChangeDetectorRef</code>
321
-
322
- </td>
323
- </tr>
324
- <tr>
325
- <td class="col-md-4">
326
- <b>Decorators : </b>
327
- <br />
328
- <code>
329
- @Inject(ChangeDetectorRef)<br />
330
- </code>
244
+ <i>Default value : </i><code>toSignal(this.windowService.activeCount$)</code>
331
245
  </td>
332
246
  </tr>
333
247
  <tr>
334
248
  <td class="col-md-4">
335
- <div class="io-line">Defined in <a href="" data-line="28" class="link-to-prism">src/lib/window-task-bar/window-task-bar.component.ts:28</a></div>
249
+ <div class="io-line">Defined in <a href="" data-line="31" class="link-to-prism">src/lib/window-task-bar/window-task-bar.component.ts:31</a></div>
336
250
  </td>
337
251
  </tr>
338
252
 
339
-
340
- </tbody>
341
- </table>
342
- <table class="table table-sm table-bordered">
343
- <tbody>
344
253
  <tr>
345
254
  <td class="col-md-4">
346
- <a name="subscriptions"></a>
347
- <span class="name">
348
- <span class="modifier">Public</span>
349
- <span ><b>subscriptions</b></span>
350
- <a href="#subscriptions"><span class="icon ion-ios-link"></span></a>
351
- </span>
255
+ <div class="io-description"><p>Emits whenever the number of active windows changes. Reading the signal in the template
256
+ marks the component dirty so the window list is re-evaluated.</p>
257
+ </div>
352
258
  </td>
353
259
  </tr>
354
- <tr>
355
- <td class="col-md-4">
356
- <i>Default value : </i><code>new Subscription()</code>
357
- </td>
358
- </tr>
359
- <tr>
360
- <td class="col-md-4">
361
- <div class="io-line">Defined in <a href="" data-line="24" class="link-to-prism">src/lib/window-task-bar/window-task-bar.component.ts:24</a></div>
362
- </td>
363
- </tr>
364
-
365
260
 
366
261
  </tbody>
367
262
  </table>
@@ -371,8 +266,6 @@
371
266
  <td class="col-md-4">
372
267
  <a name="windowService"></a>
373
268
  <span class="name">
374
- <span class="modifier"></span>
375
- <span class="modifier">Public</span>
376
269
  <span ><b>windowService</b></span>
377
270
  <a href="#windowService"><span class="icon ion-ios-link"></span></a>
378
271
  </span>
@@ -380,22 +273,12 @@
380
273
  </tr>
381
274
  <tr>
382
275
  <td class="col-md-4">
383
- <i>Type : </i> <code><a href="../injectables/WindowService.html" target="_self" >WindowService</a></code>
384
-
385
- </td>
386
- </tr>
387
- <tr>
388
- <td class="col-md-4">
389
- <b>Decorators : </b>
390
- <br />
391
- <code>
392
- @Inject(WindowService)<br />
393
- </code>
276
+ <i>Default value : </i><code>inject&lt;WindowService&gt;(WindowService)</code>
394
277
  </td>
395
278
  </tr>
396
279
  <tr>
397
280
  <td class="col-md-4">
398
- <div class="io-line">Defined in <a href="" data-line="27" class="link-to-prism">src/lib/window-task-bar/window-task-bar.component.ts:27</a></div>
281
+ <div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/lib/window-task-bar/window-task-bar.component.ts:25</a></div>
399
282
  </td>
400
283
  </tr>
401
284
 
@@ -408,57 +291,51 @@
408
291
 
409
292
 
410
293
  <div class="tab-pane fade tab-source-code" id="source">
411
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
412
- ChangeDetectionStrategy,
413
- ChangeDetectorRef,
414
- Component,
415
- Inject,
416
- OnDestroy,
417
- OnInit,
418
- } from &#x27;@angular/core&#x27;;
294
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { ChangeDetectionStrategy, Component, inject } from &#x27;@angular/core&#x27;;
295
+ import { toSignal } from &#x27;@angular/core/rxjs-interop&#x27;;
419
296
  import { WindowService } from &#x27;../window.service&#x27;;
420
- import { Subscription } from &#x27;rxjs&#x27;;
421
- import { tap } from &#x27;rxjs/operators&#x27;;
422
297
  import { WindowTaskComponent } from &#x27;./window-task/window-task.component&#x27;;
423
- import { NgFor } from &#x27;@angular/common&#x27;;
298
+ import { Showcase } from &#x27;@ng-prism/core&#x27;;
424
299
 
300
+
301
+ @Showcase({
302
+ title: &#x27;Window Task Bar&#x27;,
303
+ category: &#x27;Window System&#x27;,
304
+ description: &#x27;Task bar that lists all minimized windows of the &#x60;WindowService&#x60;. Without open windows it is empty.&#x27;,
305
+ status: &#x27;stable&#x27;,
306
+ variants: [
307
+ { name: &#x27;Empty&#x27; },
308
+ ],
309
+ })
425
310
  @Component({
426
311
  selector: &#x27;rxap-window-task-bar&#x27;,
427
312
  templateUrl: &#x27;./window-task-bar.component.html&#x27;,
428
313
  styleUrls: [&#x27;./window-task-bar.component.scss&#x27;],
429
314
  changeDetection: ChangeDetectionStrategy.OnPush,
430
- imports: [NgFor, WindowTaskComponent]
315
+ imports: [WindowTaskComponent]
431
316
  })
432
- export class WindowTaskBarComponent implements OnInit, OnDestroy {
433
-
434
- public subscriptions &#x3D; new Subscription();
317
+ export class WindowTaskBarComponent {
318
+ windowService &#x3D; inject&lt;WindowService&gt;(WindowService);
435
319
 
436
- constructor(
437
- @Inject(WindowService) public windowService: WindowService,
438
- @Inject(ChangeDetectorRef) public cdr: ChangeDetectorRef,
439
- ) {
440
- }
441
-
442
- public ngOnInit(): void {
443
- this.subscriptions.add(this.windowService.activeCount$.pipe(
444
- tap(() &#x3D;&gt; this.cdr.markForCheck()),
445
- ).subscribe());
446
- }
447
-
448
- public ngOnDestroy(): void {
449
- this.subscriptions.unsubscribe();
450
- }
320
+ /**
321
+ * Emits whenever the number of active windows changes. Reading the signal in the template
322
+ * marks the component dirty so the window list is re-evaluated.
323
+ */
324
+ readonly activeCount &#x3D; toSignal(this.windowService.activeCount$);
451
325
 
452
326
  }
453
327
  </code></pre>
454
328
  </div>
455
329
 
456
330
  <div class="tab-pane fade " id="templateData">
457
- <pre class="line-numbers"><code class="language-html">&lt;div class&#x3D;&quot;tasks grow-0 flex flex-row flex-wrap&quot;&gt;
458
- &lt;rxap-window-task *ngFor&#x3D;&quot;let window of windowService.allActiveWindows&quot;
459
- [window]&#x3D;&quot;window&quot;
460
- class&#x3D;&quot;grow-0&quot;&gt;
461
- &lt;/rxap-window-task&gt;
331
+ <pre class="line-numbers"><code class="language-html">@let _activeCount &#x3D; activeCount();
332
+ &lt;div class&#x3D;&quot;tasks grow-0 flex flex-row flex-wrap&quot;&gt;
333
+ @for (window of windowService.allActiveWindows; track window) {
334
+ &lt;rxap-window-task
335
+ [window]&#x3D;&quot;window&quot;
336
+ class&#x3D;&quot;grow-0&quot;&gt;
337
+ &lt;/rxap-window-task&gt;
338
+ }
462
339
  &lt;/div&gt;
463
340
  </code></pre>
464
341
  </div>
@@ -495,7 +372,7 @@ export class WindowTaskBarComponent implements OnInit, OnDestroy {
495
372
  <script src="../js/libs/htmlparser.js"></script>
496
373
  <script src="../js/libs/deep-iterator.js"></script>
497
374
  <script>
498
- var COMPONENT_TEMPLATE = '<div><div class="tasks grow-0 flex flex-row flex-wrap"> <rxap-window-task *ngFor="let window of windowService.allActiveWindows" [window]="window" class="grow-0"> </rxap-window-task></div></div>'
375
+ var COMPONENT_TEMPLATE = '<div>@let _activeCount = activeCount();<div class="tasks grow-0 flex flex-row flex-wrap"> @for (window of windowService.allActiveWindows; track window) { <rxap-window-task [window]="window" class="grow-0"> </rxap-window-task> }</div></div>'
499
376
  var COMPONENTS = [{'name': 'DefaultWindowComponent', 'selector': 'rxap-default-window'},{'name': 'WindowActionBarComponent', 'selector': 'rxap-window-action-bar'},{'name': 'WindowContainerComponent', 'selector': 'rxap-window-container'},{'name': 'WindowContentComponent', 'selector': 'rxap-window-content'},{'name': 'WindowResizerComponent', 'selector': 'rxap-window-resizer'},{'name': 'WindowTaskBarComponent', 'selector': 'rxap-window-task-bar'},{'name': 'WindowTaskBarContainerComponent', 'selector': 'rxap-window-task-bar-container'},{'name': 'WindowTaskComponent', 'selector': 'rxap-window-task'},{'name': 'WindowToolBarComponent', 'selector': 'rxap-window-tool-bar'}];
500
377
  var DIRECTIVES = [{'name': 'WindowFooterDirective', 'selector': '[rxapWindowFooter]'},{'name': 'WindowTitleDirective', 'selector': '[rxapWindowTitle]'}];
501
378
  var ACTUAL_COMPONENT = {'name': 'WindowTaskBarComponent'};
@@ -153,7 +153,6 @@
153
153
  <tr>
154
154
  <td class="col-md-3">imports</td>
155
155
  <td class="col-md-9">
156
- <code>NgIf</code>
157
156
  <code>MatButtonModule</code>
158
157
  <code>MatBadgeModule</code>
159
158
  <code>MatIconModule</code>
@@ -203,8 +202,6 @@
203
202
  <a href="#expand" >expand</a>
204
203
  </li>
205
204
  <li>
206
- <span class="modifier"></span>
207
- <span class="modifier">Public</span>
208
205
  <a href="#windowService" >windowService</a>
209
206
  </li>
210
207
  </ul>
@@ -226,57 +223,15 @@
226
223
  <tbody>
227
224
  <tr>
228
225
  <td class="col-md-4">
229
- <code>constructor(windowService: <a href="../injectables/WindowService.html" target="_self">WindowService</a>, settings: <a href="../interfaces/WindowTaskBarContainerSettings.html" target="_self">WindowTaskBarContainerSettings | null</a>)</code>
226
+ <code>constructor()</code>
230
227
  </td>
231
228
  </tr>
232
229
  <tr>
233
230
  <td class="col-md-4">
234
- <div class="io-line">Defined in <a href="" data-line="40" class="link-to-prism">src/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.ts:40</a></div>
231
+ <div class="io-line">Defined in <a href="" data-line="33" class="link-to-prism">src/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.ts:33</a></div>
235
232
  </td>
236
233
  </tr>
237
234
 
238
- <tr>
239
- <td class="col-md-4">
240
- <div>
241
- <b>Parameters :</b>
242
- <table class="params">
243
- <thead>
244
- <tr>
245
- <td>Name</td>
246
- <td>Type</td>
247
- <td>Optional</td>
248
- </tr>
249
- </thead>
250
- <tbody>
251
- <tr>
252
- <td>windowService</td>
253
-
254
- <td>
255
- <code><a href="../injectables/WindowService.html" target="_self" >WindowService</a></code>
256
- </td>
257
-
258
- <td>
259
- No
260
- </td>
261
-
262
- </tr>
263
- <tr>
264
- <td>settings</td>
265
-
266
- <td>
267
- <code><a href="../interfaces/WindowTaskBarContainerSettings.html" target="_self" >WindowTaskBarContainerSettings | null</a></code>
268
- </td>
269
-
270
- <td>
271
- No
272
- </td>
273
-
274
- </tr>
275
- </tbody>
276
- </table>
277
- </div>
278
- </td>
279
- </tr>
280
235
  </tbody>
281
236
  </table>
282
237
  </section>
@@ -310,7 +265,7 @@
310
265
  </tr>
311
266
  <tr>
312
267
  <td class="col-md-4">
313
- <div class="io-line">Defined in <a href="" data-line="40" class="link-to-prism">src/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.ts:40</a></div>
268
+ <div class="io-line">Defined in <a href="" data-line="33" class="link-to-prism">src/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.ts:33</a></div>
314
269
  </td>
315
270
  </tr>
316
271
 
@@ -323,8 +278,6 @@
323
278
  <td class="col-md-4">
324
279
  <a name="windowService"></a>
325
280
  <span class="name">
326
- <span class="modifier"></span>
327
- <span class="modifier">Public</span>
328
281
  <span ><b>windowService</b></span>
329
282
  <a href="#windowService"><span class="icon ion-ios-link"></span></a>
330
283
  </span>
@@ -332,22 +285,12 @@
332
285
  </tr>
333
286
  <tr>
334
287
  <td class="col-md-4">
335
- <i>Type : </i> <code><a href="../injectables/WindowService.html" target="_self" >WindowService</a></code>
336
-
337
- </td>
338
- </tr>
339
- <tr>
340
- <td class="col-md-4">
341
- <b>Decorators : </b>
342
- <br />
343
- <code>
344
- @Inject(WindowService)<br />
345
- </code>
288
+ <i>Default value : </i><code>inject&lt;WindowService&gt;(WindowService)</code>
346
289
  </td>
347
290
  </tr>
348
291
  <tr>
349
292
  <td class="col-md-4">
350
- <div class="io-line">Defined in <a href="" data-line="44" class="link-to-prism">src/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.ts:44</a></div>
293
+ <div class="io-line">Defined in <a href="" data-line="30" class="link-to-prism">src/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.ts:30</a></div>
351
294
  </td>
352
295
  </tr>
353
296
 
@@ -360,22 +303,14 @@
360
303
 
361
304
 
362
305
  <div class="tab-pane fade tab-source-code" id="source">
363
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
364
- Component,
365
- Inject,
366
- InjectionToken,
367
- Optional,
368
- } from &#x27;@angular/core&#x27;;
306
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Component, InjectionToken, inject } from &#x27;@angular/core&#x27;;
369
307
  import { WindowService } from &#x27;../../window.service&#x27;;
370
308
  import { WindowTaskBarComponent } from &#x27;../window-task-bar.component&#x27;;
371
309
  import { MatToolbarModule } from &#x27;@angular/material/toolbar&#x27;;
372
310
  import { MatIconModule } from &#x27;@angular/material/icon&#x27;;
373
311
  import { MatBadgeModule } from &#x27;@angular/material/badge&#x27;;
374
312
  import { MatButtonModule } from &#x27;@angular/material/button&#x27;;
375
- import {
376
- NgClass,
377
- NgIf,
378
- } from &#x27;@angular/common&#x27;;
313
+ import { NgClass } from &#x27;@angular/common&#x27;;
379
314
 
380
315
  export interface WindowTaskBarContainerSettings {
381
316
  expand?: boolean;
@@ -388,26 +323,23 @@ export const RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS &#x3D; new InjectionToken(&
388
323
  templateUrl: &#x27;./window-task-bar-container.component.html&#x27;,
389
324
  styleUrls: [&#x27;./window-task-bar-container.component.scss&#x27;],
390
325
  imports: [
391
- NgIf,
392
- MatButtonModule,
393
- MatBadgeModule,
394
- MatIconModule,
395
- MatToolbarModule,
396
- WindowTaskBarComponent,
397
- NgClass,
398
- ]
326
+ MatButtonModule,
327
+ MatBadgeModule,
328
+ MatIconModule,
329
+ MatToolbarModule,
330
+ WindowTaskBarComponent,
331
+ NgClass
332
+ ]
399
333
  })
400
334
  export class WindowTaskBarContainerComponent {
335
+ windowService &#x3D; inject&lt;WindowService&gt;(WindowService);
336
+
401
337
 
402
338
  public expand &#x3D; true;
403
339
 
404
- constructor(
405
- @Inject(WindowService)
406
- public windowService: WindowService,
407
- @Optional()
408
- @Inject(RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS)
409
- settings: WindowTaskBarContainerSettings | null &#x3D; null,
410
- ) {
340
+ constructor() {
341
+ const settings &#x3D; inject&lt;WindowTaskBarContainerSettings | null&gt;(RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS, { optional: true }) ?? null;
342
+
411
343
  if (settings) {
412
344
  if (settings.expand !&#x3D;&#x3D; undefined) {
413
345
  this.expand &#x3D; settings.expand;
@@ -420,24 +352,30 @@ export class WindowTaskBarContainerComponent {
420
352
  </div>
421
353
 
422
354
  <div class="tab-pane fade " id="templateData">
423
- <pre class="line-numbers"><code class="language-html">&lt;div *ngIf&#x3D;&quot;windowService.hasActiveWindows&quot; class&#x3D;&quot;rxap-container flex flex-col&quot;&gt;
424
- &lt;div class&#x3D;&quot;flex flex-row justify-end items-end&quot;&gt;
425
- &lt;button (click)&#x3D;&quot;expand &#x3D; !expand&quot;
426
- [matBadgeHidden]&#x3D;&quot;!windowService.hasActiveWindows&quot;
427
- [matBadge]&#x3D;&quot;windowService.activeWindowCount.toFixed(0)&quot;
428
- class&#x3D;&quot;pin&quot;
429
- color&#x3D;&quot;primary&quot;
430
- mat-icon-button
431
- matBadgePosition&#x3D;&quot;above before&quot;
432
- type&#x3D;&quot;button&quot;&gt;
433
- &lt;mat-icon *ngIf&#x3D;&quot;!expand&quot;&gt;keyboard_arrow_up&lt;/mat-icon&gt;
434
- &lt;mat-icon *ngIf&#x3D;&quot;expand&quot;&gt;keyboard_arrow_down&lt;/mat-icon&gt;
435
- &lt;/button&gt;
355
+ <pre class="line-numbers"><code class="language-html">@if (windowService.hasActiveWindows) {
356
+ &lt;div class&#x3D;&quot;rxap-container flex flex-col&quot;&gt;
357
+ &lt;div class&#x3D;&quot;flex flex-row justify-end items-end&quot;&gt;
358
+ &lt;button (click)&#x3D;&quot;expand &#x3D; !expand&quot;
359
+ [matBadgeHidden]&#x3D;&quot;!windowService.hasActiveWindows&quot;
360
+ [matBadge]&#x3D;&quot;windowService.activeWindowCount.toFixed(0)&quot;
361
+ class&#x3D;&quot;pin&quot;
362
+ color&#x3D;&quot;primary&quot;
363
+ mat-icon-button
364
+ matBadgePosition&#x3D;&quot;above before&quot;
365
+ type&#x3D;&quot;button&quot;&gt;
366
+ @if (!expand) {
367
+ &lt;mat-icon&gt;keyboard_arrow_up&lt;/mat-icon&gt;
368
+ }
369
+ @if (expand) {
370
+ &lt;mat-icon&gt;keyboard_arrow_down&lt;/mat-icon&gt;
371
+ }
372
+ &lt;/button&gt;
373
+ &lt;/div&gt;
374
+ &lt;mat-toolbar [ngClass]&#x3D;&quot;{ hidden: !expand }&quot; class&#x3D;&quot;tasks&quot;&gt;
375
+ &lt;rxap-window-task-bar&gt;&lt;/rxap-window-task-bar&gt;
376
+ &lt;/mat-toolbar&gt;
436
377
  &lt;/div&gt;
437
- &lt;mat-toolbar [ngClass]&#x3D;&quot;{ hidden: !expand }&quot; class&#x3D;&quot;tasks&quot;&gt;
438
- &lt;rxap-window-task-bar&gt;&lt;/rxap-window-task-bar&gt;
439
- &lt;/mat-toolbar&gt;
440
- &lt;/div&gt;
378
+ }
441
379
  </code></pre>
442
380
  </div>
443
381
 
@@ -487,7 +425,7 @@ export class WindowTaskBarContainerComponent {
487
425
  <script src="../js/libs/htmlparser.js"></script>
488
426
  <script src="../js/libs/deep-iterator.js"></script>
489
427
  <script>
490
- var COMPONENT_TEMPLATE = '<div><div *ngIf="windowService.hasActiveWindows" class="rxap-container flex flex-col"> <div class="flex flex-row justify-end items-end"> <button (click)="expand = !expand" [matBadgeHidden]="!windowService.hasActiveWindows" [matBadge]="windowService.activeWindowCount.toFixed(0)" class="pin" color="primary" mat-icon-button matBadgePosition="above before" type="button"> <mat-icon *ngIf="!expand">keyboard_arrow_up</mat-icon> <mat-icon *ngIf="expand">keyboard_arrow_down</mat-icon> </button> </div> <mat-toolbar [ngClass]="{ hidden: !expand }" class="tasks"> <rxap-window-task-bar></rxap-window-task-bar> </mat-toolbar></div></div>'
428
+ var COMPONENT_TEMPLATE = '<div>@if (windowService.hasActiveWindows) { <div class="rxap-container flex flex-col"> <div class="flex flex-row justify-end items-end"> <button (click)="expand = !expand" [matBadgeHidden]="!windowService.hasActiveWindows" [matBadge]="windowService.activeWindowCount.toFixed(0)" class="pin" color="primary" mat-icon-button matBadgePosition="above before" type="button"> @if (!expand) { <mat-icon>keyboard_arrow_up</mat-icon> } @if (expand) { <mat-icon>keyboard_arrow_down</mat-icon> } </button> </div> <mat-toolbar [ngClass]="{ hidden: !expand }" class="tasks"> <rxap-window-task-bar></rxap-window-task-bar> </mat-toolbar> </div>}</div>'
491
429
  var COMPONENTS = [{'name': 'DefaultWindowComponent', 'selector': 'rxap-default-window'},{'name': 'WindowActionBarComponent', 'selector': 'rxap-window-action-bar'},{'name': 'WindowContainerComponent', 'selector': 'rxap-window-container'},{'name': 'WindowContentComponent', 'selector': 'rxap-window-content'},{'name': 'WindowResizerComponent', 'selector': 'rxap-window-resizer'},{'name': 'WindowTaskBarComponent', 'selector': 'rxap-window-task-bar'},{'name': 'WindowTaskBarContainerComponent', 'selector': 'rxap-window-task-bar-container'},{'name': 'WindowTaskComponent', 'selector': 'rxap-window-task'},{'name': 'WindowToolBarComponent', 'selector': 'rxap-window-tool-bar'}];
492
430
  var DIRECTIVES = [{'name': 'WindowFooterDirective', 'selector': '[rxapWindowFooter]'},{'name': 'WindowTitleDirective', 'selector': '[rxapWindowTitle]'}];
493
431
  var ACTUAL_COMPONENT = {'name': 'WindowTaskBarContainerComponent'};