@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
|
@@ -130,7 +130,6 @@
|
|
|
130
130
|
<h3>Implements</h3>
|
|
131
131
|
</p>
|
|
132
132
|
<p class="comment">
|
|
133
|
-
<code>OnInit</code>
|
|
134
133
|
<code>OnDestroy</code>
|
|
135
134
|
</p>
|
|
136
135
|
|
|
@@ -165,7 +164,6 @@
|
|
|
165
164
|
<td class="col-md-3">imports</td>
|
|
166
165
|
<td class="col-md-9">
|
|
167
166
|
<code>MatIconModule</code>
|
|
168
|
-
<code>AsyncPipe</code>
|
|
169
167
|
<code>NgClass</code>
|
|
170
168
|
</td>
|
|
171
169
|
</tr>
|
|
@@ -206,50 +204,38 @@
|
|
|
206
204
|
<td class="col-md-4">
|
|
207
205
|
<ul class="index-list">
|
|
208
206
|
<li>
|
|
209
|
-
<span class="modifier"></span>
|
|
210
207
|
<span class="modifier">Public</span>
|
|
211
|
-
|
|
208
|
+
<span class="modifier">Readonly</span>
|
|
209
|
+
<a href="#containerRef" >containerRef</a>
|
|
212
210
|
</li>
|
|
213
211
|
<li>
|
|
214
212
|
<span class="modifier">Public</span>
|
|
215
|
-
|
|
213
|
+
<span class="modifier">Readonly</span>
|
|
214
|
+
<a href="#height$" >height$</a>
|
|
216
215
|
</li>
|
|
217
|
-
</ul>
|
|
218
|
-
</td>
|
|
219
|
-
</tr>
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
<tr>
|
|
223
|
-
<td class="col-md-4">
|
|
224
|
-
<h6><b>Inputs</b></h6>
|
|
225
|
-
</td>
|
|
226
|
-
</tr>
|
|
227
|
-
<tr>
|
|
228
|
-
<td class="col-md-4">
|
|
229
|
-
<ul class="index-list">
|
|
230
216
|
<li>
|
|
231
|
-
|
|
217
|
+
<span class="modifier">Public</span>
|
|
218
|
+
<span class="modifier">Readonly</span>
|
|
219
|
+
<a href="#resizerRef" >resizerRef</a>
|
|
232
220
|
</li>
|
|
233
|
-
</ul>
|
|
234
|
-
</td>
|
|
235
|
-
</tr>
|
|
236
|
-
|
|
237
|
-
<tr>
|
|
238
|
-
<td class="col-md-4">
|
|
239
|
-
<h6><b>Outputs</b></h6>
|
|
240
|
-
</td>
|
|
241
|
-
</tr>
|
|
242
|
-
<tr>
|
|
243
|
-
<td class="col-md-4">
|
|
244
|
-
<ul class="index-list">
|
|
245
221
|
<li>
|
|
246
|
-
|
|
222
|
+
<span class="modifier">Public</span>
|
|
223
|
+
<span class="modifier">Readonly</span>
|
|
224
|
+
<a href="#resizing" >resizing</a>
|
|
247
225
|
</li>
|
|
248
226
|
<li>
|
|
249
|
-
|
|
227
|
+
<span class="modifier">Public</span>
|
|
228
|
+
<span class="modifier">Readonly</span>
|
|
229
|
+
<a href="#resizing$" >resizing$</a>
|
|
230
|
+
</li>
|
|
231
|
+
<li>
|
|
232
|
+
<span class="modifier">Public</span>
|
|
233
|
+
<span class="modifier">Readonly</span>
|
|
234
|
+
<a href="#width$" >width$</a>
|
|
250
235
|
</li>
|
|
251
236
|
<li>
|
|
252
|
-
|
|
237
|
+
<span class="modifier">Public</span>
|
|
238
|
+
<a href="#windowRef" >windowRef</a>
|
|
253
239
|
</li>
|
|
254
240
|
</ul>
|
|
255
241
|
</td>
|
|
@@ -257,6 +243,9 @@
|
|
|
257
243
|
|
|
258
244
|
|
|
259
245
|
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
260
249
|
</tbody>
|
|
261
250
|
</table>
|
|
262
251
|
</section>
|
|
@@ -267,183 +256,191 @@
|
|
|
267
256
|
<tbody>
|
|
268
257
|
<tr>
|
|
269
258
|
<td class="col-md-4">
|
|
270
|
-
<code>constructor(
|
|
259
|
+
<code>constructor()</code>
|
|
271
260
|
</td>
|
|
272
261
|
</tr>
|
|
273
262
|
<tr>
|
|
274
263
|
<td class="col-md-4">
|
|
275
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
264
|
+
<div class="io-line">Defined in <a href="" data-line="46" class="link-to-prism">src/lib/window-resizer/window-resizer.component.ts:46</a></div>
|
|
276
265
|
</td>
|
|
277
266
|
</tr>
|
|
278
267
|
|
|
279
|
-
<tr>
|
|
280
|
-
<td class="col-md-4">
|
|
281
|
-
<div>
|
|
282
|
-
<b>Parameters :</b>
|
|
283
|
-
<table class="params">
|
|
284
|
-
<thead>
|
|
285
|
-
<tr>
|
|
286
|
-
<td>Name</td>
|
|
287
|
-
<td>Type</td>
|
|
288
|
-
<td>Optional</td>
|
|
289
|
-
</tr>
|
|
290
|
-
</thead>
|
|
291
|
-
<tbody>
|
|
292
|
-
<tr>
|
|
293
|
-
<td>context</td>
|
|
294
|
-
|
|
295
|
-
<td>
|
|
296
|
-
<code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
297
|
-
</td>
|
|
298
|
-
|
|
299
|
-
<td>
|
|
300
|
-
No
|
|
301
|
-
</td>
|
|
302
|
-
|
|
303
|
-
</tr>
|
|
304
|
-
</tbody>
|
|
305
|
-
</table>
|
|
306
|
-
</div>
|
|
307
|
-
</td>
|
|
308
|
-
</tr>
|
|
309
268
|
</tbody>
|
|
310
269
|
</table>
|
|
311
270
|
</section>
|
|
312
271
|
|
|
313
|
-
<section data-compodoc="block-inputs">
|
|
314
|
-
<h3 id="inputs">Inputs</h3>
|
|
315
|
-
<table class="table table-sm table-bordered">
|
|
316
|
-
<tbody>
|
|
317
|
-
<tr>
|
|
318
|
-
<td class="col-md-4">
|
|
319
|
-
<a name="containerRef"></a>
|
|
320
|
-
<b>containerRef</b>
|
|
321
|
-
</td>
|
|
322
|
-
</tr>
|
|
323
|
-
<tr>
|
|
324
|
-
<td class="col-md-4">
|
|
325
|
-
<i>Type : </i> <code>ElementRef<any></code>
|
|
326
272
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
<section data-compodoc="block-properties">
|
|
278
|
+
|
|
279
|
+
<h3 id="inputs">
|
|
280
|
+
Properties
|
|
281
|
+
</h3>
|
|
282
|
+
<table class="table table-sm table-bordered">
|
|
283
|
+
<tbody>
|
|
284
|
+
<tr>
|
|
285
|
+
<td class="col-md-4">
|
|
286
|
+
<a name="containerRef"></a>
|
|
287
|
+
<span class="name">
|
|
288
|
+
<span class="modifier">Public</span>
|
|
289
|
+
<span class="modifier">Readonly</span>
|
|
290
|
+
<span ><b>containerRef</b></span>
|
|
291
|
+
<a href="#containerRef"><span class="icon ion-ios-link"></span></a>
|
|
292
|
+
</span>
|
|
293
|
+
</td>
|
|
294
|
+
</tr>
|
|
346
295
|
<tr>
|
|
347
296
|
<td class="col-md-4">
|
|
348
|
-
<
|
|
349
|
-
<b>height</b>
|
|
297
|
+
<i>Default value : </i><code>input.required<ElementRef<any>>()</code>
|
|
350
298
|
</td>
|
|
351
299
|
</tr>
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
300
|
+
<tr>
|
|
301
|
+
<td class="col-md-4">
|
|
302
|
+
<div class="io-line">Defined in <a href="" data-line="28" class="link-to-prism">src/lib/window-resizer/window-resizer.component.ts:28</a></div>
|
|
303
|
+
</td>
|
|
304
|
+
</tr>
|
|
355
305
|
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
306
|
+
|
|
307
|
+
</tbody>
|
|
308
|
+
</table>
|
|
309
|
+
<table class="table table-sm table-bordered">
|
|
310
|
+
<tbody>
|
|
311
|
+
<tr>
|
|
312
|
+
<td class="col-md-4">
|
|
313
|
+
<a name="height$"></a>
|
|
314
|
+
<span class="name">
|
|
315
|
+
<span class="modifier">Public</span>
|
|
316
|
+
<span class="modifier">Readonly</span>
|
|
317
|
+
<span ><b>height$</b></span>
|
|
318
|
+
<a href="#height$"><span class="icon ion-ios-link"></span></a>
|
|
319
|
+
</span>
|
|
320
|
+
</td>
|
|
321
|
+
</tr>
|
|
367
322
|
<tr>
|
|
368
323
|
<td class="col-md-4">
|
|
369
|
-
<
|
|
370
|
-
<b>resizing</b>
|
|
324
|
+
<i>Default value : </i><code>output<string>({ alias: 'height' })</code>
|
|
371
325
|
</td>
|
|
372
326
|
</tr>
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
327
|
+
<tr>
|
|
328
|
+
<td class="col-md-4">
|
|
329
|
+
<div class="io-line">Defined in <a href="" data-line="37" class="link-to-prism">src/lib/window-resizer/window-resizer.component.ts:37</a></div>
|
|
330
|
+
</td>
|
|
331
|
+
</tr>
|
|
376
332
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
333
|
+
|
|
334
|
+
</tbody>
|
|
335
|
+
</table>
|
|
336
|
+
<table class="table table-sm table-bordered">
|
|
337
|
+
<tbody>
|
|
338
|
+
<tr>
|
|
339
|
+
<td class="col-md-4">
|
|
340
|
+
<a name="resizerRef"></a>
|
|
341
|
+
<span class="name">
|
|
342
|
+
<span class="modifier">Public</span>
|
|
343
|
+
<span class="modifier">Readonly</span>
|
|
344
|
+
<span ><b>resizerRef</b></span>
|
|
345
|
+
<a href="#resizerRef"><span class="icon ion-ios-link"></span></a>
|
|
346
|
+
</span>
|
|
347
|
+
</td>
|
|
348
|
+
</tr>
|
|
388
349
|
<tr>
|
|
389
350
|
<td class="col-md-4">
|
|
390
|
-
<
|
|
391
|
-
<b>width</b>
|
|
351
|
+
<i>Default value : </i><code>viewChild.required<ElementRef<any>>('resizer')</code>
|
|
392
352
|
</td>
|
|
393
353
|
</tr>
|
|
354
|
+
<tr>
|
|
355
|
+
<td class="col-md-4">
|
|
356
|
+
<div class="io-line">Defined in <a href="" data-line="32" class="link-to-prism">src/lib/window-resizer/window-resizer.component.ts:32</a></div>
|
|
357
|
+
</td>
|
|
358
|
+
</tr>
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
</tbody>
|
|
362
|
+
</table>
|
|
363
|
+
<table class="table table-sm table-bordered">
|
|
364
|
+
<tbody>
|
|
365
|
+
<tr>
|
|
366
|
+
<td class="col-md-4">
|
|
367
|
+
<a name="resizing"></a>
|
|
368
|
+
<span class="name">
|
|
369
|
+
<span class="modifier">Public</span>
|
|
370
|
+
<span class="modifier">Readonly</span>
|
|
371
|
+
<span ><b>resizing</b></span>
|
|
372
|
+
<a href="#resizing"><span class="icon ion-ios-link"></span></a>
|
|
373
|
+
</span>
|
|
374
|
+
</td>
|
|
375
|
+
</tr>
|
|
394
376
|
<tr>
|
|
395
377
|
<td class="col-md-4">
|
|
396
|
-
<i>
|
|
397
|
-
|
|
378
|
+
<i>Default value : </i><code>signal<boolean | null>(null)</code>
|
|
398
379
|
</td>
|
|
399
380
|
</tr>
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
</tbody>
|
|
406
|
-
</table>
|
|
407
|
-
</section>
|
|
408
|
-
|
|
381
|
+
<tr>
|
|
382
|
+
<td class="col-md-4">
|
|
383
|
+
<div class="io-line">Defined in <a href="" data-line="44" class="link-to-prism">src/lib/window-resizer/window-resizer.component.ts:44</a></div>
|
|
384
|
+
</td>
|
|
385
|
+
</tr>
|
|
409
386
|
|
|
387
|
+
<tr>
|
|
388
|
+
<td class="col-md-4">
|
|
389
|
+
<div class="io-description"><p>null until the first resize action has started</p>
|
|
390
|
+
</div>
|
|
391
|
+
</td>
|
|
392
|
+
</tr>
|
|
410
393
|
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
<h3 id="inputs">
|
|
414
|
-
Properties
|
|
415
|
-
</h3>
|
|
394
|
+
</tbody>
|
|
395
|
+
</table>
|
|
416
396
|
<table class="table table-sm table-bordered">
|
|
417
397
|
<tbody>
|
|
418
398
|
<tr>
|
|
419
399
|
<td class="col-md-4">
|
|
420
|
-
<a name="
|
|
400
|
+
<a name="resizing$"></a>
|
|
421
401
|
<span class="name">
|
|
422
|
-
<span class="modifier"></span>
|
|
423
402
|
<span class="modifier">Public</span>
|
|
424
|
-
|
|
425
|
-
<
|
|
403
|
+
<span class="modifier">Readonly</span>
|
|
404
|
+
<span ><b>resizing$</b></span>
|
|
405
|
+
<a href="#resizing$"><span class="icon ion-ios-link"></span></a>
|
|
426
406
|
</span>
|
|
427
407
|
</td>
|
|
428
408
|
</tr>
|
|
429
409
|
<tr>
|
|
430
410
|
<td class="col-md-4">
|
|
431
|
-
<i>
|
|
432
|
-
|
|
411
|
+
<i>Default value : </i><code>output<boolean>({ alias: 'resizing' })</code>
|
|
433
412
|
</td>
|
|
434
413
|
</tr>
|
|
414
|
+
<tr>
|
|
415
|
+
<td class="col-md-4">
|
|
416
|
+
<div class="io-line">Defined in <a href="" data-line="39" class="link-to-prism">src/lib/window-resizer/window-resizer.component.ts:39</a></div>
|
|
417
|
+
</td>
|
|
418
|
+
</tr>
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
</tbody>
|
|
422
|
+
</table>
|
|
423
|
+
<table class="table table-sm table-bordered">
|
|
424
|
+
<tbody>
|
|
425
|
+
<tr>
|
|
426
|
+
<td class="col-md-4">
|
|
427
|
+
<a name="width$"></a>
|
|
428
|
+
<span class="name">
|
|
429
|
+
<span class="modifier">Public</span>
|
|
430
|
+
<span class="modifier">Readonly</span>
|
|
431
|
+
<span ><b>width$</b></span>
|
|
432
|
+
<a href="#width$"><span class="icon ion-ios-link"></span></a>
|
|
433
|
+
</span>
|
|
434
|
+
</td>
|
|
435
|
+
</tr>
|
|
435
436
|
<tr>
|
|
436
437
|
<td class="col-md-4">
|
|
437
|
-
<
|
|
438
|
-
<br />
|
|
439
|
-
<code>
|
|
440
|
-
@ViewChild('resizer', {static: true})<br />
|
|
441
|
-
</code>
|
|
438
|
+
<i>Default value : </i><code>output<string>({ alias: 'width' })</code>
|
|
442
439
|
</td>
|
|
443
440
|
</tr>
|
|
444
441
|
<tr>
|
|
445
442
|
<td class="col-md-4">
|
|
446
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
443
|
+
<div class="io-line">Defined in <a href="" data-line="35" class="link-to-prism">src/lib/window-resizer/window-resizer.component.ts:35</a></div>
|
|
447
444
|
</td>
|
|
448
445
|
</tr>
|
|
449
446
|
|
|
@@ -470,7 +467,7 @@
|
|
|
470
467
|
</tr>
|
|
471
468
|
<tr>
|
|
472
469
|
<td class="col-md-4">
|
|
473
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
470
|
+
<div class="io-line">Defined in <a href="" data-line="30" class="link-to-prism">src/lib/window-resizer/window-resizer.component.ts:30</a></div>
|
|
474
471
|
</td>
|
|
475
472
|
</tr>
|
|
476
473
|
|
|
@@ -483,18 +480,7 @@
|
|
|
483
480
|
|
|
484
481
|
|
|
485
482
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
486
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
487
|
-
ChangeDetectionStrategy,
|
|
488
|
-
Component,
|
|
489
|
-
ElementRef,
|
|
490
|
-
EventEmitter,
|
|
491
|
-
Inject,
|
|
492
|
-
Input,
|
|
493
|
-
OnDestroy,
|
|
494
|
-
OnInit,
|
|
495
|
-
Output,
|
|
496
|
-
ViewChild,
|
|
497
|
-
} from '@angular/core';
|
|
483
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { afterNextRender, ChangeDetectionStrategy, Component, ElementRef, OnDestroy, input, output, signal, viewChild, inject } from '@angular/core';
|
|
498
484
|
import {
|
|
499
485
|
fromEvent,
|
|
500
486
|
Subscription,
|
|
@@ -509,10 +495,7 @@ import {
|
|
|
509
495
|
} from 'rxjs/operators';
|
|
510
496
|
import { RXAP_WINDOW_CONTEXT } from '../tokens';
|
|
511
497
|
import { WindowRef } from '../window-ref';
|
|
512
|
-
import {
|
|
513
|
-
AsyncPipe,
|
|
514
|
-
NgClass,
|
|
515
|
-
} from '@angular/common';
|
|
498
|
+
import { NgClass } from '@angular/common';
|
|
516
499
|
import { MatIconModule } from '@angular/material/icon';
|
|
517
500
|
|
|
518
501
|
@Component({
|
|
@@ -520,36 +503,43 @@ import { MatIconModule } from '@angular/material/icon';
|
|
|
520
503
|
templateUrl: './window-resizer.component.html',
|
|
521
504
|
styleUrls: ['./window-resizer.component.scss'],
|
|
522
505
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
523
|
-
imports: [MatIconModule,
|
|
506
|
+
imports: [MatIconModule, NgClass]
|
|
524
507
|
})
|
|
525
|
-
export class WindowResizerComponent implements
|
|
508
|
+
export class WindowResizerComponent implements OnDestroy {
|
|
526
509
|
|
|
527
|
-
|
|
510
|
+
public readonly containerRef = input.required<ElementRef<any>>();
|
|
528
511
|
|
|
529
512
|
public windowRef: WindowRef<any>;
|
|
530
513
|
|
|
531
|
-
|
|
514
|
+
public readonly resizerRef = viewChild.required<ElementRef<any>>('resizer');
|
|
532
515
|
|
|
533
516
|
// eslint-disable-next-line @angular-eslint/no-output-rename
|
|
534
|
-
|
|
517
|
+
public readonly width$ = output<string>({ alias: 'width' });
|
|
535
518
|
// eslint-disable-next-line @angular-eslint/no-output-rename
|
|
536
|
-
|
|
519
|
+
public readonly height$ = output<string>({ alias: 'height' });
|
|
537
520
|
// eslint-disable-next-line @angular-eslint/no-output-rename
|
|
538
|
-
|
|
521
|
+
public readonly resizing$ = output<boolean>({ alias: 'resizing' });
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* null until the first resize action has started
|
|
525
|
+
*/
|
|
526
|
+
public readonly resizing = signal<boolean | null>(null);
|
|
539
527
|
|
|
540
528
|
private _subscription = new Subscription();
|
|
541
529
|
|
|
542
|
-
constructor(
|
|
543
|
-
|
|
544
|
-
|
|
530
|
+
constructor() {
|
|
531
|
+
const context = inject(RXAP_WINDOW_CONTEXT);
|
|
532
|
+
|
|
545
533
|
this.windowRef = context.windowRef;
|
|
534
|
+
|
|
535
|
+
afterNextRender(() => this.init());
|
|
546
536
|
}
|
|
547
537
|
|
|
548
538
|
ngOnDestroy(): void {
|
|
549
539
|
this._subscription.unsubscribe();
|
|
550
540
|
}
|
|
551
541
|
|
|
552
|
-
|
|
542
|
+
private init() {
|
|
553
543
|
|
|
554
544
|
let originalMouseX = 0;
|
|
555
545
|
let originalMouseY = 0;
|
|
@@ -557,18 +547,19 @@ export class WindowResizerComponent implements OnInit, OnDestroy {
|
|
|
557
547
|
let originalHeight = 0;
|
|
558
548
|
|
|
559
549
|
this._subscription.add(
|
|
560
|
-
fromEvent<MouseEvent>(this.resizerRef.nativeElement, 'mousedown').pipe(
|
|
550
|
+
fromEvent<MouseEvent>(this.resizerRef().nativeElement, 'mousedown').pipe(
|
|
561
551
|
tap(event => {
|
|
552
|
+
this.resizing.set(true);
|
|
562
553
|
this.resizing$.emit(true);
|
|
563
554
|
originalMouseX = event.pageX;
|
|
564
555
|
originalMouseY = event.pageY;
|
|
565
556
|
originalWidth = parseFloat(
|
|
566
|
-
getComputedStyle(this.containerRef.nativeElement, null)
|
|
557
|
+
getComputedStyle(this.containerRef().nativeElement, null)
|
|
567
558
|
.getPropertyValue('width')
|
|
568
559
|
.replace('px', ''),
|
|
569
560
|
);
|
|
570
561
|
originalHeight = parseFloat(
|
|
571
|
-
getComputedStyle(this.containerRef.nativeElement, null)
|
|
562
|
+
getComputedStyle(this.containerRef().nativeElement, null)
|
|
572
563
|
.getPropertyValue('height')
|
|
573
564
|
.replace('px', ''),
|
|
574
565
|
);
|
|
@@ -595,7 +586,10 @@ export class WindowResizerComponent implements OnInit, OnDestroy {
|
|
|
595
586
|
this.windowRef.setHeight(size.height);
|
|
596
587
|
this.windowRef.setWidth(size.width);
|
|
597
588
|
}),
|
|
598
|
-
finalize(() =>
|
|
589
|
+
finalize(() => {
|
|
590
|
+
this.resizing.set(false);
|
|
591
|
+
this.resizing$.emit(false);
|
|
592
|
+
}),
|
|
599
593
|
),
|
|
600
594
|
),
|
|
601
595
|
).subscribe(),
|
|
@@ -609,7 +603,7 @@ export class WindowResizerComponent implements OnInit, OnDestroy {
|
|
|
609
603
|
|
|
610
604
|
<div class="tab-pane fade " id="templateData">
|
|
611
605
|
<pre class="line-numbers"><code class="language-html"><div #resizer class="resizer">
|
|
612
|
-
<mat-icon [ngClass]="{ hidden: (
|
|
606
|
+
<mat-icon [ngClass]="{ hidden: resizing() === false }">texture</mat-icon>
|
|
613
607
|
</div>
|
|
614
608
|
</code></pre>
|
|
615
609
|
</div>
|
|
@@ -657,7 +651,7 @@ export class WindowResizerComponent implements OnInit, OnDestroy {
|
|
|
657
651
|
<script src="../js/libs/htmlparser.js"></script>
|
|
658
652
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
659
653
|
<script>
|
|
660
|
-
var COMPONENT_TEMPLATE = '<div><div #resizer class="resizer"> <mat-icon [ngClass]="{ hidden: (
|
|
654
|
+
var COMPONENT_TEMPLATE = '<div><div #resizer class="resizer"> <mat-icon [ngClass]="{ hidden: resizing() === false }">texture</mat-icon></div></div>'
|
|
661
655
|
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'}];
|
|
662
656
|
var DIRECTIVES = [{'name': 'WindowFooterDirective', 'selector': '[rxapWindowFooter]'},{'name': 'WindowTitleDirective', 'selector': '[rxapWindowTitle]'}];
|
|
663
657
|
var ACTUAL_COMPONENT = {'name': 'WindowResizerComponent'};
|