@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.
- package/CHANGELOG.md +39 -0
- package/compodoc/changelog.html +37 -0
- package/compodoc/classes/WindowRef.html +46 -47
- package/compodoc/components/WindowActionBarComponent.html +26 -64
- 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 +43 -166
- package/compodoc/components/WindowTaskBarContainerComponent.html +43 -105
- package/compodoc/components/WindowTaskComponent.html +71 -66
- package/compodoc/components/WindowToolBarComponent.html +33 -65
- package/compodoc/dependencies.html +11 -11
- package/compodoc/directives/WindowFooterDirective.html +6 -90
- package/compodoc/graph/dependencies.svg +15 -255
- package/compodoc/injectables/WindowService.html +23 -124
- package/compodoc/interfaces/WindowFooterTemplateContext.html +4 -16
- package/compodoc/interfaces/WindowTaskBarContainerSettings.html +14 -25
- 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 +2306 -3085
- 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 +22 -22
- 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 +69 -71
- 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 +25 -25
- 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 +68 -70
- 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 +24 -24
- 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 +151 -296
- package/fesm2022/rxap-window-system.mjs.map +1 -1
- package/package.json +30 -29
- package/types/rxap-window-system.d.ts +305 -0
- 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
- package/index.d.ts +0 -20
- package/lib/default-window/default-window.component.d.ts +0 -5
- package/lib/tokens.d.ts +0 -10
- package/lib/utilities.d.ts +0 -4
- package/lib/window-action-bar/window-action-bar.component.d.ts +0 -11
- package/lib/window-config.d.ts +0 -35
- package/lib/window-container/window-container.component.d.ts +0 -21
- package/lib/window-content/window-content.component.d.ts +0 -20
- package/lib/window-context.d.ts +0 -13
- package/lib/window-footer.directive.d.ts +0 -22
- package/lib/window-instance.service.d.ts +0 -12
- package/lib/window-ref.d.ts +0 -71
- package/lib/window-resizer/window-resizer.component.d.ts +0 -17
- package/lib/window-system.module.d.ts +0 -13
- package/lib/window-task-bar/window-task/window-task.component.d.ts +0 -9
- package/lib/window-task-bar/window-task-bar-container/window-task-bar-container.component.d.ts +0 -14
- package/lib/window-task-bar/window-task-bar.component.d.ts +0 -14
- package/lib/window-task-bar/window-task-bar.module.d.ts +0 -9
- package/lib/window-title.directive.d.ts +0 -21
- package/lib/window-tool-bar/window-tool-bar.component.d.ts +0 -8
- 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"
|
|
209
|
-
|
|
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="
|
|
234
|
+
<a name="activeCount"></a>
|
|
310
235
|
<span class="name">
|
|
311
|
-
<span class="modifier"
|
|
312
|
-
|
|
313
|
-
<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>
|
|
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="
|
|
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
|
-
<
|
|
347
|
-
|
|
348
|
-
|
|
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>
|
|
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<WindowService>(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="
|
|
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
|
-
|
|
413
|
-
ChangeDetectorRef,
|
|
414
|
-
Component,
|
|
415
|
-
Inject,
|
|
416
|
-
OnDestroy,
|
|
417
|
-
OnInit,
|
|
418
|
-
} from '@angular/core';
|
|
294
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
|
|
295
|
+
import { toSignal } from '@angular/core/rxjs-interop';
|
|
419
296
|
import { WindowService } from '../window.service';
|
|
420
|
-
import { Subscription } from 'rxjs';
|
|
421
|
-
import { tap } from 'rxjs/operators';
|
|
422
297
|
import { WindowTaskComponent } from './window-task/window-task.component';
|
|
423
|
-
import {
|
|
298
|
+
import { Showcase } from '@ng-prism/core';
|
|
424
299
|
|
|
300
|
+
|
|
301
|
+
@Showcase({
|
|
302
|
+
title: 'Window Task Bar',
|
|
303
|
+
category: 'Window System',
|
|
304
|
+
description: 'Task bar that lists all minimized windows of the `WindowService`. Without open windows it is empty.',
|
|
305
|
+
status: 'stable',
|
|
306
|
+
variants: [
|
|
307
|
+
{ name: 'Empty' },
|
|
308
|
+
],
|
|
309
|
+
})
|
|
425
310
|
@Component({
|
|
426
311
|
selector: 'rxap-window-task-bar',
|
|
427
312
|
templateUrl: './window-task-bar.component.html',
|
|
428
313
|
styleUrls: ['./window-task-bar.component.scss'],
|
|
429
314
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
430
|
-
imports: [
|
|
315
|
+
imports: [WindowTaskComponent]
|
|
431
316
|
})
|
|
432
|
-
export class WindowTaskBarComponent
|
|
433
|
-
|
|
434
|
-
public subscriptions = new Subscription();
|
|
317
|
+
export class WindowTaskBarComponent {
|
|
318
|
+
windowService = inject<WindowService>(WindowService);
|
|
435
319
|
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
public ngOnInit(): void {
|
|
443
|
-
this.subscriptions.add(this.windowService.activeCount$.pipe(
|
|
444
|
-
tap(() => 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 = 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"
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
331
|
+
<pre class="line-numbers"><code class="language-html">@let _activeCount = activeCount();
|
|
332
|
+
<div class="tasks grow-0 flex flex-row flex-wrap">
|
|
333
|
+
@for (window of windowService.allActiveWindows; track window) {
|
|
334
|
+
<rxap-window-task
|
|
335
|
+
[window]="window"
|
|
336
|
+
class="grow-0">
|
|
337
|
+
</rxap-window-task>
|
|
338
|
+
}
|
|
462
339
|
</div>
|
|
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
|
|
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(
|
|
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="
|
|
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="
|
|
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>
|
|
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<WindowService>(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="
|
|
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 '@angular/core';
|
|
306
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Component, InjectionToken, inject } from '@angular/core';
|
|
369
307
|
import { WindowService } from '../../window.service';
|
|
370
308
|
import { WindowTaskBarComponent } from '../window-task-bar.component';
|
|
371
309
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
372
310
|
import { MatIconModule } from '@angular/material/icon';
|
|
373
311
|
import { MatBadgeModule } from '@angular/material/badge';
|
|
374
312
|
import { MatButtonModule } from '@angular/material/button';
|
|
375
|
-
import {
|
|
376
|
-
NgClass,
|
|
377
|
-
NgIf,
|
|
378
|
-
} from '@angular/common';
|
|
313
|
+
import { NgClass } from '@angular/common';
|
|
379
314
|
|
|
380
315
|
export interface WindowTaskBarContainerSettings {
|
|
381
316
|
expand?: boolean;
|
|
@@ -388,26 +323,23 @@ export const RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS = new InjectionToken(&
|
|
|
388
323
|
templateUrl: './window-task-bar-container.component.html',
|
|
389
324
|
styleUrls: ['./window-task-bar-container.component.scss'],
|
|
390
325
|
imports: [
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
]
|
|
326
|
+
MatButtonModule,
|
|
327
|
+
MatBadgeModule,
|
|
328
|
+
MatIconModule,
|
|
329
|
+
MatToolbarModule,
|
|
330
|
+
WindowTaskBarComponent,
|
|
331
|
+
NgClass
|
|
332
|
+
]
|
|
399
333
|
})
|
|
400
334
|
export class WindowTaskBarContainerComponent {
|
|
335
|
+
windowService = inject<WindowService>(WindowService);
|
|
336
|
+
|
|
401
337
|
|
|
402
338
|
public expand = true;
|
|
403
339
|
|
|
404
|
-
constructor(
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
@Optional()
|
|
408
|
-
@Inject(RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS)
|
|
409
|
-
settings: WindowTaskBarContainerSettings | null = null,
|
|
410
|
-
) {
|
|
340
|
+
constructor() {
|
|
341
|
+
const settings = inject<WindowTaskBarContainerSettings | null>(RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS, { optional: true }) ?? null;
|
|
342
|
+
|
|
411
343
|
if (settings) {
|
|
412
344
|
if (settings.expand !== undefined) {
|
|
413
345
|
this.expand = 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"
|
|
424
|
-
<div class="flex flex-
|
|
425
|
-
<
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
355
|
+
<pre class="line-numbers"><code class="language-html">@if (windowService.hasActiveWindows) {
|
|
356
|
+
<div class="rxap-container flex flex-col">
|
|
357
|
+
<div class="flex flex-row justify-end items-end">
|
|
358
|
+
<button (click)="expand = !expand"
|
|
359
|
+
[matBadgeHidden]="!windowService.hasActiveWindows"
|
|
360
|
+
[matBadge]="windowService.activeWindowCount.toFixed(0)"
|
|
361
|
+
class="pin"
|
|
362
|
+
color="primary"
|
|
363
|
+
mat-icon-button
|
|
364
|
+
matBadgePosition="above before"
|
|
365
|
+
type="button">
|
|
366
|
+
@if (!expand) {
|
|
367
|
+
<mat-icon>keyboard_arrow_up</mat-icon>
|
|
368
|
+
}
|
|
369
|
+
@if (expand) {
|
|
370
|
+
<mat-icon>keyboard_arrow_down</mat-icon>
|
|
371
|
+
}
|
|
372
|
+
</button>
|
|
373
|
+
</div>
|
|
374
|
+
<mat-toolbar [ngClass]="{ hidden: !expand }" class="tasks">
|
|
375
|
+
<rxap-window-task-bar></rxap-window-task-bar>
|
|
376
|
+
</mat-toolbar>
|
|
436
377
|
</div>
|
|
437
|
-
|
|
438
|
-
<rxap-window-task-bar></rxap-window-task-bar>
|
|
439
|
-
</mat-toolbar>
|
|
440
|
-
</div>
|
|
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
|
|
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'};
|