@rxap/tree 19.1.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.
- package/CHANGELOG.md +50 -0
- package/compodoc/changelog.html +48 -0
- package/compodoc/components/TreeComponent.html +822 -874
- package/compodoc/dependencies.html +14 -14
- package/compodoc/directives/TreeContentDirective.html +4 -74
- package/compodoc/injectables/DefaultTreeApplyFilterMethod.html +13 -26
- package/compodoc/injectables/TreeDataSource.html +77 -191
- package/compodoc/interfaces/TreeApplyFilterParameter.html +8 -21
- package/compodoc/interfaces/TreeDataSourceMetadata.html +8 -21
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +1767 -1976
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/DefaultTreeApplyFilterMethod.html +2 -2
- package/docs/html/classes/SearchForm.html +2 -2
- package/docs/html/classes/TreeComponent.html +13 -21
- package/docs/html/classes/TreeContentDirective.html +2 -2
- package/docs/html/classes/TreeDataSource.html +16 -16
- package/docs/html/functions/FormFactory.html +1 -1
- package/docs/html/functions/flatTree.html +1 -1
- package/docs/html/functions/isSelectionChange.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/ISearchForm.html +2 -2
- package/docs/html/interfaces/TreeApplyFilterParameter.html +2 -2
- package/docs/html/interfaces/TreeDataSourceMetadata.html +3 -3
- package/docs/html/modules.html +1 -1
- package/docs/html/variables/RXAP_TREE_CONTENT_EDITABLE_METHOD.html +1 -1
- package/docs/html/variables/RXAP_TREE_DATA_SOURCE_APPLY_FILTER_METHOD.html +1 -1
- package/docs/html/variables/RXAP_TREE_DATA_SOURCE_CHILDREN_REMOTE_METHOD.html +1 -1
- package/docs/html/variables/RXAP_TREE_DATA_SOURCE_ROOT_REMOTE_METHOD.html +1 -1
- package/docs/html/variables/SearchFormProviders.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/DefaultTreeApplyFilterMethod.md +5 -5
- package/docs/markdown/classes/SearchForm.md +5 -5
- package/docs/markdown/classes/TreeComponent.md +76 -126
- package/docs/markdown/classes/TreeContentDirective.md +4 -12
- package/docs/markdown/classes/TreeDataSource.md +89 -107
- package/docs/markdown/functions/FormFactory.md +2 -2
- package/docs/markdown/functions/flatTree.md +2 -2
- package/docs/markdown/functions/isSelectionChange.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/ISearchForm.md +4 -4
- package/docs/markdown/interfaces/TreeApplyFilterParameter.md +5 -5
- package/docs/markdown/interfaces/TreeDataSourceMetadata.md +8 -8
- package/docs/markdown/variables/RXAP_TREE_CONTENT_EDITABLE_METHOD.md +2 -2
- package/docs/markdown/variables/RXAP_TREE_DATA_SOURCE_APPLY_FILTER_METHOD.md +2 -2
- package/docs/markdown/variables/RXAP_TREE_DATA_SOURCE_CHILDREN_REMOTE_METHOD.md +2 -2
- package/docs/markdown/variables/RXAP_TREE_DATA_SOURCE_ROOT_REMOTE_METHOD.md +2 -2
- package/docs/markdown/variables/SearchFormProviders.md +2 -2
- package/docs/wiki/Class.DefaultTreeApplyFilterMethod.md +4 -4
- package/docs/wiki/Class.SearchForm.md +4 -4
- package/docs/wiki/Class.TreeComponent.md +75 -125
- package/docs/wiki/Class.TreeContentDirective.md +3 -11
- package/docs/wiki/Class.TreeDataSource.md +88 -106
- package/docs/wiki/Function.FormFactory.md +1 -1
- package/docs/wiki/Function.flatTree.md +1 -1
- package/docs/wiki/Function.isSelectionChange.md +1 -1
- package/docs/wiki/Interface.ISearchForm.md +3 -3
- package/docs/wiki/Interface.TreeApplyFilterParameter.md +4 -4
- package/docs/wiki/Interface.TreeDataSourceMetadata.md +7 -7
- package/docs/wiki/Variable.RXAP_TREE_CONTENT_EDITABLE_METHOD.md +1 -1
- package/docs/wiki/Variable.RXAP_TREE_DATA_SOURCE_APPLY_FILTER_METHOD.md +1 -1
- package/docs/wiki/Variable.RXAP_TREE_DATA_SOURCE_CHILDREN_REMOTE_METHOD.md +1 -1
- package/docs/wiki/Variable.RXAP_TREE_DATA_SOURCE_ROOT_REMOTE_METHOD.md +1 -1
- package/docs/wiki/Variable.SearchFormProviders.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-tree.mjs +176 -231
- package/fesm2022/rxap-tree.mjs.map +1 -1
- package/package.json +42 -41
- package/types/rxap-tree.d.ts +189 -0
- package/index.d.ts +0 -5
- package/lib/search.form.d.ts +0 -16
- package/lib/tokens.d.ts +0 -2
- package/lib/tree-content.directive.d.ts +0 -8
- package/lib/tree.component.d.ts +0 -63
- package/lib/tree.data-source.d.ts +0 -108
|
@@ -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>AfterContentInit</code>
|
|
135
|
-
</p>
|
|
136
129
|
|
|
137
130
|
|
|
138
131
|
<section data-compodoc="block-metadata">
|
|
@@ -149,6 +142,10 @@
|
|
|
149
142
|
|
|
150
143
|
|
|
151
144
|
|
|
145
|
+
<tr>
|
|
146
|
+
<td class="col-md-3">host</td>
|
|
147
|
+
<td class="col-md-9"><code>{<br>}</code></td>
|
|
148
|
+
</tr>
|
|
152
149
|
|
|
153
150
|
|
|
154
151
|
|
|
@@ -165,7 +162,6 @@
|
|
|
165
162
|
<td class="col-md-3">imports</td>
|
|
166
163
|
<td class="col-md-9">
|
|
167
164
|
<code>NgStyle</code>
|
|
168
|
-
<code>NgIf</code>
|
|
169
165
|
<code>MatProgressBarModule</code>
|
|
170
166
|
<code>MatTreeModule</code>
|
|
171
167
|
<code>MatIconModule</code>
|
|
@@ -178,7 +174,6 @@
|
|
|
178
174
|
<code>PortalModule</code>
|
|
179
175
|
<code>AsyncPipe</code>
|
|
180
176
|
<code>NgClass</code>
|
|
181
|
-
<code>NgForOf</code>
|
|
182
177
|
</td>
|
|
183
178
|
</tr>
|
|
184
179
|
|
|
@@ -218,32 +213,99 @@
|
|
|
218
213
|
<td class="col-md-4">
|
|
219
214
|
<ul class="index-list">
|
|
220
215
|
<li>
|
|
221
|
-
<span class="modifier"></span>
|
|
222
216
|
<span class="modifier">Public</span>
|
|
223
|
-
<span class="modifier">
|
|
217
|
+
<span class="modifier">Readonly</span>
|
|
224
218
|
<a href="#content" >content</a>
|
|
225
219
|
</li>
|
|
220
|
+
<li>
|
|
221
|
+
<span class="modifier">Public</span>
|
|
222
|
+
<span class="modifier">Readonly</span>
|
|
223
|
+
<a href="#contentEditableMethod" >contentEditableMethod</a>
|
|
224
|
+
</li>
|
|
225
|
+
<li>
|
|
226
|
+
<span class="modifier">Public</span>
|
|
227
|
+
<span class="modifier">Readonly</span>
|
|
228
|
+
<a href="#contentEditableMethodInput" >contentEditableMethodInput</a>
|
|
229
|
+
</li>
|
|
230
|
+
<li>
|
|
231
|
+
<span class="modifier">Public</span>
|
|
232
|
+
<span class="modifier">Readonly</span>
|
|
233
|
+
<a href="#dataSource" >dataSource</a>
|
|
234
|
+
</li>
|
|
235
|
+
<li>
|
|
236
|
+
<span class="modifier">Public</span>
|
|
237
|
+
<span class="modifier">Readonly</span>
|
|
238
|
+
<a href="#details" >details</a>
|
|
239
|
+
</li>
|
|
240
|
+
<li>
|
|
241
|
+
<span class="modifier">Public</span>
|
|
242
|
+
<span class="modifier">Readonly</span>
|
|
243
|
+
<a href="#dividerOffset" >dividerOffset</a>
|
|
244
|
+
</li>
|
|
245
|
+
<li>
|
|
246
|
+
<span class="modifier">Public</span>
|
|
247
|
+
<span class="modifier">Readonly</span>
|
|
248
|
+
<a href="#dividerOffsetInput" >dividerOffsetInput</a>
|
|
249
|
+
</li>
|
|
250
|
+
<li>
|
|
251
|
+
<span class="modifier">Public</span>
|
|
252
|
+
<span class="modifier">Readonly</span>
|
|
253
|
+
<a href="#getIcon" >getIcon</a>
|
|
254
|
+
</li>
|
|
226
255
|
<li>
|
|
227
256
|
<span class="modifier">Public</span>
|
|
228
257
|
<a href="#getLevel" >getLevel</a>
|
|
229
258
|
</li>
|
|
259
|
+
<li>
|
|
260
|
+
<span class="modifier">Public</span>
|
|
261
|
+
<span class="modifier">Readonly</span>
|
|
262
|
+
<a href="#getStyle" >getStyle</a>
|
|
263
|
+
</li>
|
|
264
|
+
<li>
|
|
265
|
+
<span class="modifier">Public</span>
|
|
266
|
+
<span class="modifier">Readonly</span>
|
|
267
|
+
<a href="#getType" >getType</a>
|
|
268
|
+
</li>
|
|
230
269
|
<li>
|
|
231
270
|
<span class="modifier">Public</span>
|
|
232
271
|
<a href="#hasChild" >hasChild</a>
|
|
233
272
|
</li>
|
|
273
|
+
<li>
|
|
274
|
+
<span class="modifier">Public</span>
|
|
275
|
+
<span class="modifier">Readonly</span>
|
|
276
|
+
<a href="#hasDetails" >hasDetails</a>
|
|
277
|
+
</li>
|
|
278
|
+
<li>
|
|
279
|
+
<span class="modifier">Public</span>
|
|
280
|
+
<span class="modifier">Readonly</span>
|
|
281
|
+
<a href="#hideLeafIcon" >hideLeafIcon</a>
|
|
282
|
+
</li>
|
|
283
|
+
<li>
|
|
284
|
+
<span class="modifier">Public</span>
|
|
285
|
+
<span class="modifier">Readonly</span>
|
|
286
|
+
<a href="#id" >id</a>
|
|
287
|
+
</li>
|
|
234
288
|
<li>
|
|
235
289
|
<span class="modifier">Public</span>
|
|
236
290
|
<a href="#isExpandable" >isExpandable</a>
|
|
237
291
|
</li>
|
|
238
292
|
<li>
|
|
239
293
|
<span class="modifier">Public</span>
|
|
240
|
-
|
|
294
|
+
<span class="modifier">Readonly</span>
|
|
295
|
+
<a href="#multiple" >multiple</a>
|
|
296
|
+
</li>
|
|
297
|
+
<li>
|
|
298
|
+
<span class="modifier">Public</span>
|
|
299
|
+
<span class="modifier">Readonly</span>
|
|
300
|
+
<a href="#multipleInput" >multipleInput</a>
|
|
241
301
|
</li>
|
|
242
302
|
<li>
|
|
243
|
-
<span class="modifier"></span>
|
|
244
|
-
<span class="modifier"></span>
|
|
245
303
|
<span class="modifier">Public</span>
|
|
246
304
|
<span class="modifier">Readonly</span>
|
|
305
|
+
<a href="#portal" >portal</a>
|
|
306
|
+
</li>
|
|
307
|
+
<li>
|
|
308
|
+
<span class="modifier">Readonly</span>
|
|
247
309
|
<a href="#searchForm" >searchForm</a>
|
|
248
310
|
</li>
|
|
249
311
|
<li>
|
|
@@ -252,8 +314,13 @@
|
|
|
252
314
|
<a href="#showTreeNavigation" >showTreeNavigation</a>
|
|
253
315
|
</li>
|
|
254
316
|
<li>
|
|
255
|
-
<span class="modifier"></span>
|
|
256
317
|
<span class="modifier">Public</span>
|
|
318
|
+
<span class="modifier">Readonly</span>
|
|
319
|
+
<a href="#toDisplay" >toDisplay</a>
|
|
320
|
+
</li>
|
|
321
|
+
<li>
|
|
322
|
+
<span class="modifier">Public</span>
|
|
323
|
+
<span class="modifier">Readonly</span>
|
|
257
324
|
<a href="#treeContainer" >treeContainer</a>
|
|
258
325
|
</li>
|
|
259
326
|
<li>
|
|
@@ -280,11 +347,9 @@
|
|
|
280
347
|
<a href="#onMousedown" >onMousedown</a>
|
|
281
348
|
</li>
|
|
282
349
|
<li>
|
|
283
|
-
<span class="modifier"></span>
|
|
284
350
|
<a href="#onMousemove" >onMousemove</a>
|
|
285
351
|
</li>
|
|
286
352
|
<li>
|
|
287
|
-
<span class="modifier"></span>
|
|
288
353
|
<a href="#onMouseup" >onMouseup</a>
|
|
289
354
|
</li>
|
|
290
355
|
<li>
|
|
@@ -307,39 +372,12 @@
|
|
|
307
372
|
<tr>
|
|
308
373
|
<td class="col-md-4">
|
|
309
374
|
<ul class="index-list">
|
|
310
|
-
<li>
|
|
311
|
-
<a href="#contentEditableMethod" >contentEditableMethod</a>
|
|
312
|
-
</li>
|
|
313
|
-
<li>
|
|
314
|
-
<a href="#dataSource" >dataSource</a>
|
|
315
|
-
</li>
|
|
316
|
-
<li>
|
|
317
|
-
<a href="#dividerOffset" >dividerOffset</a>
|
|
318
|
-
</li>
|
|
319
|
-
<li>
|
|
320
|
-
<a href="#getIcon" >getIcon</a>
|
|
321
|
-
</li>
|
|
322
|
-
<li>
|
|
323
|
-
<a href="#getStyle" >getStyle</a>
|
|
324
|
-
</li>
|
|
325
|
-
<li>
|
|
326
|
-
<a href="#getType" >getType</a>
|
|
327
|
-
</li>
|
|
328
|
-
<li>
|
|
329
|
-
<a href="#hasDetails" >hasDetails</a>
|
|
330
|
-
</li>
|
|
331
375
|
<li>
|
|
332
376
|
<a href="#hideLeafIcon" >hideLeafIcon</a>
|
|
333
377
|
</li>
|
|
334
378
|
<li>
|
|
335
379
|
<a href="#id" >id</a>
|
|
336
380
|
</li>
|
|
337
|
-
<li>
|
|
338
|
-
<a href="#multiple" >multiple</a>
|
|
339
|
-
</li>
|
|
340
|
-
<li>
|
|
341
|
-
<a href="#toDisplay" >toDisplay</a>
|
|
342
|
-
</li>
|
|
343
381
|
</ul>
|
|
344
382
|
</td>
|
|
345
383
|
</tr>
|
|
@@ -360,23 +398,6 @@
|
|
|
360
398
|
</tr>
|
|
361
399
|
|
|
362
400
|
|
|
363
|
-
<tr>
|
|
364
|
-
<td class="col-md-4">
|
|
365
|
-
<h6><b>HostListeners</b></h6>
|
|
366
|
-
</td>
|
|
367
|
-
</tr>
|
|
368
|
-
<tr>
|
|
369
|
-
<td class="col-md-4">
|
|
370
|
-
<ul class="index-list">
|
|
371
|
-
<li>
|
|
372
|
-
<a href="#mousemove" >mousemove</a>
|
|
373
|
-
</li>
|
|
374
|
-
<li>
|
|
375
|
-
<a href="#mouseup" >mouseup</a>
|
|
376
|
-
</li>
|
|
377
|
-
</ul>
|
|
378
|
-
</td>
|
|
379
|
-
</tr>
|
|
380
401
|
|
|
381
402
|
<tr>
|
|
382
403
|
<td class="col-md-4">
|
|
@@ -405,105 +426,15 @@
|
|
|
405
426
|
<tbody>
|
|
406
427
|
<tr>
|
|
407
428
|
<td class="col-md-4">
|
|
408
|
-
<code>constructor(
|
|
429
|
+
<code>constructor()</code>
|
|
409
430
|
</td>
|
|
410
431
|
</tr>
|
|
411
432
|
<tr>
|
|
412
433
|
<td class="col-md-4">
|
|
413
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
434
|
+
<div class="io-line">Defined in <a href="" data-line="106" class="link-to-prism">src/lib/tree.component.ts:106</a></div>
|
|
414
435
|
</td>
|
|
415
436
|
</tr>
|
|
416
437
|
|
|
417
|
-
<tr>
|
|
418
|
-
<td class="col-md-4">
|
|
419
|
-
<div>
|
|
420
|
-
<b>Parameters :</b>
|
|
421
|
-
<table class="params">
|
|
422
|
-
<thead>
|
|
423
|
-
<tr>
|
|
424
|
-
<td>Name</td>
|
|
425
|
-
<td>Type</td>
|
|
426
|
-
<td>Optional</td>
|
|
427
|
-
</tr>
|
|
428
|
-
</thead>
|
|
429
|
-
<tbody>
|
|
430
|
-
<tr>
|
|
431
|
-
<td>viewContainerRef</td>
|
|
432
|
-
|
|
433
|
-
<td>
|
|
434
|
-
<code>ViewContainerRef</code>
|
|
435
|
-
</td>
|
|
436
|
-
|
|
437
|
-
<td>
|
|
438
|
-
No
|
|
439
|
-
</td>
|
|
440
|
-
|
|
441
|
-
</tr>
|
|
442
|
-
<tr>
|
|
443
|
-
<td>cdr</td>
|
|
444
|
-
|
|
445
|
-
<td>
|
|
446
|
-
<code>ChangeDetectorRef</code>
|
|
447
|
-
</td>
|
|
448
|
-
|
|
449
|
-
<td>
|
|
450
|
-
No
|
|
451
|
-
</td>
|
|
452
|
-
|
|
453
|
-
</tr>
|
|
454
|
-
<tr>
|
|
455
|
-
<td>contentEditableMethod</td>
|
|
456
|
-
|
|
457
|
-
<td>
|
|
458
|
-
<code>Method<any | string | null> | null</code>
|
|
459
|
-
</td>
|
|
460
|
-
|
|
461
|
-
<td>
|
|
462
|
-
No
|
|
463
|
-
</td>
|
|
464
|
-
|
|
465
|
-
</tr>
|
|
466
|
-
<tr>
|
|
467
|
-
<td>renderer</td>
|
|
468
|
-
|
|
469
|
-
<td>
|
|
470
|
-
<code>Renderer2</code>
|
|
471
|
-
</td>
|
|
472
|
-
|
|
473
|
-
<td>
|
|
474
|
-
No
|
|
475
|
-
</td>
|
|
476
|
-
|
|
477
|
-
</tr>
|
|
478
|
-
<tr>
|
|
479
|
-
<td>elementRef</td>
|
|
480
|
-
|
|
481
|
-
<td>
|
|
482
|
-
<code>ElementRef<HTMLElement></code>
|
|
483
|
-
</td>
|
|
484
|
-
|
|
485
|
-
<td>
|
|
486
|
-
No
|
|
487
|
-
</td>
|
|
488
|
-
|
|
489
|
-
</tr>
|
|
490
|
-
<tr>
|
|
491
|
-
<td>searchForm</td>
|
|
492
|
-
|
|
493
|
-
<td>
|
|
494
|
-
<code><a href="../injectables/SearchForm.html" target="_self" >SearchForm | null</a></code>
|
|
495
|
-
</td>
|
|
496
|
-
|
|
497
|
-
<td>
|
|
498
|
-
No
|
|
499
|
-
</td>
|
|
500
|
-
|
|
501
|
-
</tr>
|
|
502
|
-
</tbody>
|
|
503
|
-
</table>
|
|
504
|
-
</div>
|
|
505
|
-
</td>
|
|
506
|
-
</tr>
|
|
507
438
|
</tbody>
|
|
508
439
|
</table>
|
|
509
440
|
</section>
|
|
@@ -514,19 +445,18 @@
|
|
|
514
445
|
<tbody>
|
|
515
446
|
<tr>
|
|
516
447
|
<td class="col-md-4">
|
|
517
|
-
<a name="
|
|
518
|
-
<b>
|
|
448
|
+
<a name="hideLeafIcon"></a>
|
|
449
|
+
<b>hideLeafIcon</b>
|
|
519
450
|
</td>
|
|
520
451
|
</tr>
|
|
521
452
|
<tr>
|
|
522
453
|
<td class="col-md-4">
|
|
523
|
-
<i>
|
|
524
|
-
|
|
454
|
+
<i>Default value : </i><code>false</code>
|
|
525
455
|
</td>
|
|
526
456
|
</tr>
|
|
527
457
|
<tr>
|
|
528
458
|
<td class="col-md-2" colspan="2">
|
|
529
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
459
|
+
<div class="io-line">Defined in <a href="" data-line="85" class="link-to-prism">src/lib/tree.component.ts:85</a></div>
|
|
530
460
|
</td>
|
|
531
461
|
</tr>
|
|
532
462
|
</tbody>
|
|
@@ -535,350 +465,183 @@
|
|
|
535
465
|
<tbody>
|
|
536
466
|
<tr>
|
|
537
467
|
<td class="col-md-4">
|
|
538
|
-
<a name="
|
|
539
|
-
<b>
|
|
540
|
-
</td>
|
|
541
|
-
</tr>
|
|
542
|
-
<tr>
|
|
543
|
-
<td class="col-md-4">
|
|
544
|
-
<i>Type : </i> <code><a href="../injectables/TreeDataSource.html" target="_self" >TreeDataSource<Data></a></code>
|
|
545
|
-
|
|
546
|
-
</td>
|
|
547
|
-
</tr>
|
|
548
|
-
<tr>
|
|
549
|
-
<td class="col-md-4">
|
|
550
|
-
<i>Required : </i> <b>true</b>
|
|
468
|
+
<a name="id"></a>
|
|
469
|
+
<b>id</b>
|
|
551
470
|
</td>
|
|
552
471
|
</tr>
|
|
553
472
|
<tr>
|
|
554
473
|
<td class="col-md-2" colspan="2">
|
|
555
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
474
|
+
<div class="io-line">Defined in <a href="" data-line="86" class="link-to-prism">src/lib/tree.component.ts:86</a></div>
|
|
556
475
|
</td>
|
|
557
476
|
</tr>
|
|
558
477
|
</tbody>
|
|
559
478
|
</table>
|
|
479
|
+
</section>
|
|
480
|
+
<section data-compodoc="block-outputs">
|
|
481
|
+
<h3 id="outputs">Outputs</h3>
|
|
560
482
|
<table class="table table-sm table-bordered">
|
|
561
483
|
<tbody>
|
|
562
484
|
<tr>
|
|
563
485
|
<td class="col-md-4">
|
|
564
|
-
<a name="
|
|
565
|
-
<b>
|
|
566
|
-
</td>
|
|
567
|
-
</tr>
|
|
568
|
-
<tr>
|
|
569
|
-
<td class="col-md-4">
|
|
570
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
571
|
-
|
|
572
|
-
</td>
|
|
573
|
-
</tr>
|
|
574
|
-
<tr>
|
|
575
|
-
<td class="col-md-4">
|
|
576
|
-
<i>Default value : </i><code>'256px'</code>
|
|
486
|
+
<a name="details"></a>
|
|
487
|
+
<b>details</b>
|
|
577
488
|
</td>
|
|
578
489
|
</tr>
|
|
579
490
|
<tr>
|
|
580
491
|
<td class="col-md-2" colspan="2">
|
|
581
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
492
|
+
<div class="io-line">Defined in <a href="" data-line="87" class="link-to-prism">src/lib/tree.component.ts:87</a></div>
|
|
582
493
|
</td>
|
|
583
494
|
</tr>
|
|
584
495
|
</tbody>
|
|
585
496
|
</table>
|
|
586
|
-
|
|
587
|
-
<tbody>
|
|
588
|
-
<tr>
|
|
589
|
-
<td class="col-md-4">
|
|
590
|
-
<a name="getIcon"></a>
|
|
591
|
-
<b>getIcon</b>
|
|
592
|
-
</td>
|
|
593
|
-
</tr>
|
|
594
|
-
<tr>
|
|
595
|
-
<td class="col-md-4">
|
|
596
|
-
<i>Type : </i> <code>NodeGetIconFunction<any></code>
|
|
497
|
+
</section>
|
|
597
498
|
|
|
598
|
-
</td>
|
|
599
|
-
</tr>
|
|
600
|
-
<tr>
|
|
601
|
-
<td class="col-md-2" colspan="2">
|
|
602
|
-
<div class="io-line">Defined in <a href="" data-line="100" class="link-to-prism">src/lib/tree.component.ts:100</a></div>
|
|
603
|
-
</td>
|
|
604
|
-
</tr>
|
|
605
|
-
</tbody>
|
|
606
|
-
</table>
|
|
607
|
-
<table class="table table-sm table-bordered">
|
|
608
|
-
<tbody>
|
|
609
|
-
<tr>
|
|
610
|
-
<td class="col-md-4">
|
|
611
|
-
<a name="getStyle"></a>
|
|
612
|
-
<b>getStyle</b>
|
|
613
|
-
</td>
|
|
614
|
-
</tr>
|
|
615
|
-
<tr>
|
|
616
|
-
<td class="col-md-4">
|
|
617
|
-
<i>Type : </i> <code>NodeGetStyleFunction<any></code>
|
|
618
499
|
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
<a
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
<
|
|
500
|
+
<section data-compodoc="block-methods">
|
|
501
|
+
|
|
502
|
+
<h3 id="methods">
|
|
503
|
+
Methods
|
|
504
|
+
</h3>
|
|
505
|
+
<table class="table table-sm table-bordered">
|
|
506
|
+
<tbody>
|
|
507
|
+
<tr>
|
|
508
|
+
<td class="col-md-4">
|
|
509
|
+
<a name="onContentEditableChange"></a>
|
|
510
|
+
<span class="name">
|
|
511
|
+
<span class="modifier">Public</span>
|
|
512
|
+
<span ><b>onContentEditableChange</b></span>
|
|
513
|
+
<a href="#onContentEditableChange"><span class="icon ion-ios-link"></span></a>
|
|
514
|
+
</span>
|
|
515
|
+
</td>
|
|
516
|
+
</tr>
|
|
517
|
+
<tr>
|
|
518
|
+
<td class="col-md-4">
|
|
519
|
+
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
520
|
+
<code>onContentEditableChange(value: string | null, node: Node<Data>)</code>
|
|
521
|
+
</td>
|
|
522
|
+
</tr>
|
|
639
523
|
|
|
640
|
-
</td>
|
|
641
|
-
</tr>
|
|
642
|
-
<tr>
|
|
643
|
-
<td class="col-md-2" colspan="2">
|
|
644
|
-
<div class="io-line">Defined in <a href="" data-line="102" class="link-to-prism">src/lib/tree.component.ts:102</a></div>
|
|
645
|
-
</td>
|
|
646
|
-
</tr>
|
|
647
|
-
</tbody>
|
|
648
|
-
</table>
|
|
649
|
-
<table class="table table-sm table-bordered">
|
|
650
|
-
<tbody>
|
|
651
|
-
<tr>
|
|
652
|
-
<td class="col-md-4">
|
|
653
|
-
<a name="hasDetails"></a>
|
|
654
|
-
<b>hasDetails</b>
|
|
655
|
-
</td>
|
|
656
|
-
</tr>
|
|
657
|
-
<tr>
|
|
658
|
-
<td class="col-md-4">
|
|
659
|
-
<i>Type : </i> <code>NodeHasDetailsFunction<any></code>
|
|
660
524
|
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
</tr>
|
|
668
|
-
</tbody>
|
|
669
|
-
</table>
|
|
670
|
-
<table class="table table-sm table-bordered">
|
|
671
|
-
<tbody>
|
|
672
|
-
<tr>
|
|
673
|
-
<td class="col-md-4">
|
|
674
|
-
<a name="hideLeafIcon"></a>
|
|
675
|
-
<b>hideLeafIcon</b>
|
|
676
|
-
</td>
|
|
677
|
-
</tr>
|
|
678
|
-
<tr>
|
|
679
|
-
<td class="col-md-4">
|
|
680
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
525
|
+
<tr>
|
|
526
|
+
<td class="col-md-4">
|
|
527
|
+
<div class="io-line">Defined in <a href="" data-line="181"
|
|
528
|
+
class="link-to-prism">src/lib/tree.component.ts:181</a></div>
|
|
529
|
+
</td>
|
|
530
|
+
</tr>
|
|
681
531
|
|
|
682
|
-
</td>
|
|
683
|
-
</tr>
|
|
684
|
-
<tr>
|
|
685
|
-
<td class="col-md-4">
|
|
686
|
-
<i>Default value : </i><code>false</code>
|
|
687
|
-
</td>
|
|
688
|
-
</tr>
|
|
689
|
-
<tr>
|
|
690
|
-
<td class="col-md-2" colspan="2">
|
|
691
|
-
<div class="io-line">Defined in <a href="" data-line="112" class="link-to-prism">src/lib/tree.component.ts:112</a></div>
|
|
692
|
-
</td>
|
|
693
|
-
</tr>
|
|
694
|
-
</tbody>
|
|
695
|
-
</table>
|
|
696
|
-
<table class="table table-sm table-bordered">
|
|
697
|
-
<tbody>
|
|
698
|
-
<tr>
|
|
699
|
-
<td class="col-md-4">
|
|
700
|
-
<a name="id"></a>
|
|
701
|
-
<b>id</b>
|
|
702
|
-
</td>
|
|
703
|
-
</tr>
|
|
704
|
-
<tr>
|
|
705
|
-
<td class="col-md-4">
|
|
706
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
707
532
|
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
<tr>
|
|
711
|
-
<td class="col-md-2" colspan="2">
|
|
712
|
-
<div class="io-line">Defined in <a href="" data-line="114" class="link-to-prism">src/lib/tree.component.ts:114</a></div>
|
|
713
|
-
</td>
|
|
714
|
-
</tr>
|
|
715
|
-
</tbody>
|
|
716
|
-
</table>
|
|
717
|
-
<table class="table table-sm table-bordered">
|
|
718
|
-
<tbody>
|
|
719
|
-
<tr>
|
|
720
|
-
<td class="col-md-4">
|
|
721
|
-
<a name="multiple"></a>
|
|
722
|
-
<b>multiple</b>
|
|
723
|
-
</td>
|
|
724
|
-
</tr>
|
|
725
|
-
<tr>
|
|
726
|
-
<td class="col-md-4">
|
|
727
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
533
|
+
<tr>
|
|
534
|
+
<td class="col-md-4">
|
|
728
535
|
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
<td class="col-md-4">
|
|
747
|
-
<a name="toDisplay"></a>
|
|
748
|
-
<b>toDisplay</b>
|
|
749
|
-
</td>
|
|
750
|
-
</tr>
|
|
751
|
-
<tr>
|
|
752
|
-
<td class="col-md-4">
|
|
753
|
-
<i>Type : </i> <code>NodeToDisplayFunction<any></code>
|
|
536
|
+
<div class="io-description">
|
|
537
|
+
<b>Parameters :</b>
|
|
538
|
+
|
|
539
|
+
<table class="params">
|
|
540
|
+
<thead>
|
|
541
|
+
<tr>
|
|
542
|
+
<td>Name</td>
|
|
543
|
+
<td>Type</td>
|
|
544
|
+
<td>Optional</td>
|
|
545
|
+
</tr>
|
|
546
|
+
</thead>
|
|
547
|
+
<tbody>
|
|
548
|
+
<tr>
|
|
549
|
+
<td>value</td>
|
|
550
|
+
<td>
|
|
551
|
+
<code>string | null</code>
|
|
552
|
+
</td>
|
|
754
553
|
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
<td class="col-md-2" colspan="2">
|
|
759
|
-
<div class="io-line">Defined in <a href="" data-line="98" class="link-to-prism">src/lib/tree.component.ts:98</a></div>
|
|
760
|
-
</td>
|
|
761
|
-
</tr>
|
|
762
|
-
</tbody>
|
|
763
|
-
</table>
|
|
764
|
-
</section>
|
|
765
|
-
<section data-compodoc="block-outputs">
|
|
766
|
-
<h3 id="outputs">Outputs</h3>
|
|
767
|
-
<table class="table table-sm table-bordered">
|
|
768
|
-
<tbody>
|
|
769
|
-
<tr>
|
|
770
|
-
<td class="col-md-4">
|
|
771
|
-
<a name="details"></a>
|
|
772
|
-
<b>details</b>
|
|
773
|
-
</td>
|
|
774
|
-
</tr>
|
|
775
|
-
<tr>
|
|
776
|
-
<td class="col-md-4">
|
|
777
|
-
<i>Type : </i> <code>EventEmitter</code>
|
|
554
|
+
<td>
|
|
555
|
+
No
|
|
556
|
+
</td>
|
|
778
557
|
|
|
779
|
-
</td>
|
|
780
|
-
</tr>
|
|
781
|
-
<tr>
|
|
782
|
-
<td class="col-md-2" colspan="2">
|
|
783
|
-
<div class="io-line">Defined in <a href="" data-line="116" class="link-to-prism">src/lib/tree.component.ts:116</a></div>
|
|
784
|
-
</td>
|
|
785
|
-
</tr>
|
|
786
|
-
</tbody>
|
|
787
|
-
</table>
|
|
788
|
-
</section>
|
|
789
558
|
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
<span class="name">
|
|
797
|
-
<span ><b>mousemove</b></span>
|
|
798
|
-
<a href="#mousemove"><span class="icon ion-ios-link"></span></a>
|
|
799
|
-
</span>
|
|
800
|
-
</td>
|
|
801
|
-
</tr>
|
|
802
|
-
<tr>
|
|
803
|
-
<td class="col-md-4">
|
|
804
|
-
<i>Arguments : </i><code>'$event' </code>
|
|
805
|
-
</td>
|
|
806
|
-
</tr>
|
|
807
|
-
<tr>
|
|
808
|
-
<td class="col-md-4">
|
|
809
|
-
<code>mousemove($event: MouseEvent)</code>
|
|
810
|
-
</td>
|
|
811
|
-
</tr>
|
|
559
|
+
</tr>
|
|
560
|
+
<tr>
|
|
561
|
+
<td>node</td>
|
|
562
|
+
<td>
|
|
563
|
+
<code>Node<Data></code>
|
|
564
|
+
</td>
|
|
812
565
|
|
|
566
|
+
<td>
|
|
567
|
+
No
|
|
568
|
+
</td>
|
|
813
569
|
|
|
814
|
-
<tr>
|
|
815
|
-
<td class="col-md-4">
|
|
816
|
-
<div class="io-line">Defined in <a href="" data-line="235"
|
|
817
|
-
class="link-to-prism">src/lib/tree.component.ts:235</a></div>
|
|
818
|
-
</td>
|
|
819
|
-
</tr>
|
|
820
570
|
|
|
571
|
+
</tr>
|
|
572
|
+
</tbody>
|
|
573
|
+
</table>
|
|
574
|
+
</div>
|
|
575
|
+
<div class="io-description">
|
|
576
|
+
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
821
577
|
|
|
578
|
+
</div>
|
|
579
|
+
<div class="io-description">
|
|
580
|
+
|
|
581
|
+
</div>
|
|
582
|
+
</td>
|
|
583
|
+
</tr>
|
|
822
584
|
</tbody>
|
|
823
585
|
</table>
|
|
824
586
|
<table class="table table-sm table-bordered">
|
|
825
587
|
<tbody>
|
|
826
588
|
<tr>
|
|
827
589
|
<td class="col-md-4">
|
|
828
|
-
<a name="
|
|
590
|
+
<a name="onMousedown"></a>
|
|
829
591
|
<span class="name">
|
|
830
|
-
<span ><b>
|
|
831
|
-
<a href="#
|
|
592
|
+
<span ><b>onMousedown</b></span>
|
|
593
|
+
<a href="#onMousedown"><span class="icon ion-ios-link"></span></a>
|
|
832
594
|
</span>
|
|
833
595
|
</td>
|
|
834
596
|
</tr>
|
|
835
597
|
<tr>
|
|
836
598
|
<td class="col-md-4">
|
|
837
|
-
<code>
|
|
599
|
+
<code>onMousedown()</code>
|
|
838
600
|
</td>
|
|
839
601
|
</tr>
|
|
840
602
|
|
|
841
603
|
|
|
842
604
|
<tr>
|
|
843
605
|
<td class="col-md-4">
|
|
844
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
845
|
-
class="link-to-prism">src/lib/tree.component.ts:
|
|
606
|
+
<div class="io-line">Defined in <a href="" data-line="186"
|
|
607
|
+
class="link-to-prism">src/lib/tree.component.ts:186</a></div>
|
|
846
608
|
</td>
|
|
847
609
|
</tr>
|
|
848
610
|
|
|
849
611
|
|
|
612
|
+
<tr>
|
|
613
|
+
<td class="col-md-4">
|
|
614
|
+
|
|
615
|
+
<div class="io-description">
|
|
616
|
+
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
617
|
+
|
|
618
|
+
</div>
|
|
619
|
+
</td>
|
|
620
|
+
</tr>
|
|
850
621
|
</tbody>
|
|
851
622
|
</table>
|
|
852
|
-
</section>
|
|
853
|
-
<section data-compodoc="block-methods">
|
|
854
|
-
|
|
855
|
-
<h3 id="methods">
|
|
856
|
-
Methods
|
|
857
|
-
</h3>
|
|
858
623
|
<table class="table table-sm table-bordered">
|
|
859
624
|
<tbody>
|
|
860
625
|
<tr>
|
|
861
626
|
<td class="col-md-4">
|
|
862
|
-
<a name="
|
|
627
|
+
<a name="onMousemove"></a>
|
|
863
628
|
<span class="name">
|
|
864
|
-
|
|
865
|
-
<span
|
|
866
|
-
<a href="#onContentEditableChange"><span class="icon ion-ios-link"></span></a>
|
|
629
|
+
<span ><b>onMousemove</b></span>
|
|
630
|
+
<a href="#onMousemove"><span class="icon ion-ios-link"></span></a>
|
|
867
631
|
</span>
|
|
868
632
|
</td>
|
|
869
633
|
</tr>
|
|
870
634
|
<tr>
|
|
871
635
|
<td class="col-md-4">
|
|
872
|
-
|
|
873
|
-
<code>onContentEditableChange(value: string | null, node: Node<Data>)</code>
|
|
636
|
+
<code>onMousemove($event: MouseEvent)</code>
|
|
874
637
|
</td>
|
|
875
638
|
</tr>
|
|
876
639
|
|
|
877
640
|
|
|
878
641
|
<tr>
|
|
879
642
|
<td class="col-md-4">
|
|
880
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
881
|
-
class="link-to-prism">src/lib/tree.component.ts:
|
|
643
|
+
<div class="io-line">Defined in <a href="" data-line="194"
|
|
644
|
+
class="link-to-prism">src/lib/tree.component.ts:194</a></div>
|
|
882
645
|
</td>
|
|
883
646
|
</tr>
|
|
884
647
|
|
|
@@ -899,21 +662,9 @@
|
|
|
899
662
|
</thead>
|
|
900
663
|
<tbody>
|
|
901
664
|
<tr>
|
|
902
|
-
<td
|
|
903
|
-
<td>
|
|
904
|
-
<code>string | null</code>
|
|
905
|
-
</td>
|
|
906
|
-
|
|
907
|
-
<td>
|
|
908
|
-
No
|
|
909
|
-
</td>
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
</tr>
|
|
913
|
-
<tr>
|
|
914
|
-
<td>node</td>
|
|
665
|
+
<td>$event</td>
|
|
915
666
|
<td>
|
|
916
|
-
<code>
|
|
667
|
+
<code>MouseEvent</code>
|
|
917
668
|
</td>
|
|
918
669
|
|
|
919
670
|
<td>
|
|
@@ -926,7 +677,7 @@
|
|
|
926
677
|
</table>
|
|
927
678
|
</div>
|
|
928
679
|
<div class="io-description">
|
|
929
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >
|
|
680
|
+
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
930
681
|
|
|
931
682
|
</div>
|
|
932
683
|
<div class="io-description">
|
|
@@ -940,24 +691,24 @@
|
|
|
940
691
|
<tbody>
|
|
941
692
|
<tr>
|
|
942
693
|
<td class="col-md-4">
|
|
943
|
-
<a name="
|
|
694
|
+
<a name="onMouseup"></a>
|
|
944
695
|
<span class="name">
|
|
945
|
-
<span ><b>
|
|
946
|
-
<a href="#
|
|
696
|
+
<span ><b>onMouseup</b></span>
|
|
697
|
+
<a href="#onMouseup"><span class="icon ion-ios-link"></span></a>
|
|
947
698
|
</span>
|
|
948
699
|
</td>
|
|
949
700
|
</tr>
|
|
950
701
|
<tr>
|
|
951
702
|
<td class="col-md-4">
|
|
952
|
-
<code>
|
|
703
|
+
<code>onMouseup()</code>
|
|
953
704
|
</td>
|
|
954
705
|
</tr>
|
|
955
706
|
|
|
956
707
|
|
|
957
708
|
<tr>
|
|
958
709
|
<td class="col-md-4">
|
|
959
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
960
|
-
class="link-to-prism">src/lib/tree.component.ts:
|
|
710
|
+
<div class="io-line">Defined in <a href="" data-line="190"
|
|
711
|
+
class="link-to-prism">src/lib/tree.component.ts:190</a></div>
|
|
961
712
|
</td>
|
|
962
713
|
</tr>
|
|
963
714
|
|
|
@@ -977,18 +728,19 @@
|
|
|
977
728
|
<tbody>
|
|
978
729
|
<tr>
|
|
979
730
|
<td class="col-md-4">
|
|
980
|
-
<a name="
|
|
731
|
+
<a name="openDetails"></a>
|
|
981
732
|
<span class="name">
|
|
982
733
|
<span class="modifier"></span>
|
|
983
|
-
|
|
984
|
-
<
|
|
734
|
+
<span class="modifier">Public</span>
|
|
735
|
+
<span ><b>openDetails</b></span>
|
|
736
|
+
<a href="#openDetails"><span class="icon ion-ios-link"></span></a>
|
|
985
737
|
</span>
|
|
986
738
|
</td>
|
|
987
739
|
</tr>
|
|
988
740
|
<tr>
|
|
989
741
|
<td class="col-md-4">
|
|
990
742
|
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
991
|
-
<code>
|
|
743
|
+
<code>openDetails(node: Node<Data>)</code>
|
|
992
744
|
</td>
|
|
993
745
|
</tr>
|
|
994
746
|
|
|
@@ -996,14 +748,14 @@
|
|
|
996
748
|
<td class="col-md-4">
|
|
997
749
|
<b>Decorators : </b>
|
|
998
750
|
<br />
|
|
999
|
-
<code>@
|
|
751
|
+
<code>@DebounceCall(100)<br /></code>
|
|
1000
752
|
</td>
|
|
1001
753
|
</tr>
|
|
1002
754
|
|
|
1003
755
|
<tr>
|
|
1004
756
|
<td class="col-md-4">
|
|
1005
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1006
|
-
class="link-to-prism">src/lib/tree.component.ts:
|
|
757
|
+
<div class="io-line">Defined in <a href="" data-line="166"
|
|
758
|
+
class="link-to-prism">src/lib/tree.component.ts:166</a></div>
|
|
1007
759
|
</td>
|
|
1008
760
|
</tr>
|
|
1009
761
|
|
|
@@ -1024,9 +776,9 @@
|
|
|
1024
776
|
</thead>
|
|
1025
777
|
<tbody>
|
|
1026
778
|
<tr>
|
|
1027
|
-
<td
|
|
779
|
+
<td>node</td>
|
|
1028
780
|
<td>
|
|
1029
|
-
<code>
|
|
781
|
+
<code>Node<Data></code>
|
|
1030
782
|
</td>
|
|
1031
783
|
|
|
1032
784
|
<td>
|
|
@@ -1053,200 +805,432 @@
|
|
|
1053
805
|
<tbody>
|
|
1054
806
|
<tr>
|
|
1055
807
|
<td class="col-md-4">
|
|
1056
|
-
<a name="
|
|
808
|
+
<a name="toggleTreeNavigation"></a>
|
|
809
|
+
<span class="name">
|
|
810
|
+
<span ><b>toggleTreeNavigation</b></span>
|
|
811
|
+
<a href="#toggleTreeNavigation"><span class="icon ion-ios-link"></span></a>
|
|
812
|
+
</span>
|
|
813
|
+
</td>
|
|
814
|
+
</tr>
|
|
815
|
+
<tr>
|
|
816
|
+
<td class="col-md-4">
|
|
817
|
+
<code>toggleTreeNavigation()</code>
|
|
818
|
+
</td>
|
|
819
|
+
</tr>
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
<tr>
|
|
823
|
+
<td class="col-md-4">
|
|
824
|
+
<div class="io-line">Defined in <a href="" data-line="208"
|
|
825
|
+
class="link-to-prism">src/lib/tree.component.ts:208</a></div>
|
|
826
|
+
</td>
|
|
827
|
+
</tr>
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
<tr>
|
|
831
|
+
<td class="col-md-4">
|
|
832
|
+
|
|
833
|
+
<div class="io-description">
|
|
834
|
+
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
835
|
+
|
|
836
|
+
</div>
|
|
837
|
+
</td>
|
|
838
|
+
</tr>
|
|
839
|
+
</tbody>
|
|
840
|
+
</table>
|
|
841
|
+
</section>
|
|
842
|
+
<section data-compodoc="block-properties">
|
|
843
|
+
|
|
844
|
+
<h3 id="inputs">
|
|
845
|
+
Properties
|
|
846
|
+
</h3>
|
|
847
|
+
<table class="table table-sm table-bordered">
|
|
848
|
+
<tbody>
|
|
849
|
+
<tr>
|
|
850
|
+
<td class="col-md-4">
|
|
851
|
+
<a name="content"></a>
|
|
852
|
+
<span class="name">
|
|
853
|
+
<span class="modifier">Public</span>
|
|
854
|
+
<span class="modifier">Readonly</span>
|
|
855
|
+
<span ><b>content</b></span>
|
|
856
|
+
<a href="#content"><span class="icon ion-ios-link"></span></a>
|
|
857
|
+
</span>
|
|
858
|
+
</td>
|
|
859
|
+
</tr>
|
|
860
|
+
<tr>
|
|
861
|
+
<td class="col-md-4">
|
|
862
|
+
<i>Default value : </i><code>contentChild(TreeContentDirective)</code>
|
|
863
|
+
</td>
|
|
864
|
+
</tr>
|
|
865
|
+
<tr>
|
|
866
|
+
<td class="col-md-4">
|
|
867
|
+
<div class="io-line">Defined in <a href="" data-line="84" class="link-to-prism">src/lib/tree.component.ts:84</a></div>
|
|
868
|
+
</td>
|
|
869
|
+
</tr>
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
</tbody>
|
|
873
|
+
</table>
|
|
874
|
+
<table class="table table-sm table-bordered">
|
|
875
|
+
<tbody>
|
|
876
|
+
<tr>
|
|
877
|
+
<td class="col-md-4">
|
|
878
|
+
<a name="contentEditableMethod"></a>
|
|
879
|
+
<span class="name">
|
|
880
|
+
<span class="modifier">Public</span>
|
|
881
|
+
<span class="modifier">Readonly</span>
|
|
882
|
+
<span ><b>contentEditableMethod</b></span>
|
|
883
|
+
<a href="#contentEditableMethod"><span class="icon ion-ios-link"></span></a>
|
|
884
|
+
</span>
|
|
885
|
+
</td>
|
|
886
|
+
</tr>
|
|
887
|
+
<tr>
|
|
888
|
+
<td class="col-md-4">
|
|
889
|
+
<i>Default value : </i><code>computed(() => this.contentEditableMethodInput() ?? this.injectedContentEditableMethod)</code>
|
|
890
|
+
</td>
|
|
891
|
+
</tr>
|
|
892
|
+
<tr>
|
|
893
|
+
<td class="col-md-4">
|
|
894
|
+
<div class="io-line">Defined in <a href="" data-line="76" class="link-to-prism">src/lib/tree.component.ts:76</a></div>
|
|
895
|
+
</td>
|
|
896
|
+
</tr>
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
</tbody>
|
|
900
|
+
</table>
|
|
901
|
+
<table class="table table-sm table-bordered">
|
|
902
|
+
<tbody>
|
|
903
|
+
<tr>
|
|
904
|
+
<td class="col-md-4">
|
|
905
|
+
<a name="contentEditableMethodInput"></a>
|
|
906
|
+
<span class="name">
|
|
907
|
+
<span class="modifier">Public</span>
|
|
908
|
+
<span class="modifier">Readonly</span>
|
|
909
|
+
<span ><b>contentEditableMethodInput</b></span>
|
|
910
|
+
<a href="#contentEditableMethodInput"><span class="icon ion-ios-link"></span></a>
|
|
911
|
+
</span>
|
|
912
|
+
</td>
|
|
913
|
+
</tr>
|
|
914
|
+
<tr>
|
|
915
|
+
<td class="col-md-4">
|
|
916
|
+
<i>Default value : </i><code>input<Method<any, string | null> | null>(null, { alias: 'contentEditableMethod' })</code>
|
|
917
|
+
</td>
|
|
918
|
+
</tr>
|
|
919
|
+
<tr>
|
|
920
|
+
<td class="col-md-4">
|
|
921
|
+
<div class="io-line">Defined in <a href="" data-line="74" class="link-to-prism">src/lib/tree.component.ts:74</a></div>
|
|
922
|
+
</td>
|
|
923
|
+
</tr>
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
</tbody>
|
|
927
|
+
</table>
|
|
928
|
+
<table class="table table-sm table-bordered">
|
|
929
|
+
<tbody>
|
|
930
|
+
<tr>
|
|
931
|
+
<td class="col-md-4">
|
|
932
|
+
<a name="dataSource"></a>
|
|
933
|
+
<span class="name">
|
|
934
|
+
<span class="modifier">Public</span>
|
|
935
|
+
<span class="modifier">Readonly</span>
|
|
936
|
+
<span ><b>dataSource</b></span>
|
|
937
|
+
<a href="#dataSource"><span class="icon ion-ios-link"></span></a>
|
|
938
|
+
</span>
|
|
939
|
+
</td>
|
|
940
|
+
</tr>
|
|
941
|
+
<tr>
|
|
942
|
+
<td class="col-md-4">
|
|
943
|
+
<i>Default value : </i><code>input.required<TreeDataSource<Data>>()</code>
|
|
944
|
+
</td>
|
|
945
|
+
</tr>
|
|
946
|
+
<tr>
|
|
947
|
+
<td class="col-md-4">
|
|
948
|
+
<div class="io-line">Defined in <a href="" data-line="73" class="link-to-prism">src/lib/tree.component.ts:73</a></div>
|
|
949
|
+
</td>
|
|
950
|
+
</tr>
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
</tbody>
|
|
954
|
+
</table>
|
|
955
|
+
<table class="table table-sm table-bordered">
|
|
956
|
+
<tbody>
|
|
957
|
+
<tr>
|
|
958
|
+
<td class="col-md-4">
|
|
959
|
+
<a name="details"></a>
|
|
960
|
+
<span class="name">
|
|
961
|
+
<span class="modifier">Public</span>
|
|
962
|
+
<span class="modifier">Readonly</span>
|
|
963
|
+
<span ><b>details</b></span>
|
|
964
|
+
<a href="#details"><span class="icon ion-ios-link"></span></a>
|
|
965
|
+
</span>
|
|
966
|
+
</td>
|
|
967
|
+
</tr>
|
|
968
|
+
<tr>
|
|
969
|
+
<td class="col-md-4">
|
|
970
|
+
<div class="io-line">Defined in <a href="" data-line="87" class="link-to-prism">src/lib/tree.component.ts:87</a></div>
|
|
971
|
+
</td>
|
|
972
|
+
</tr>
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
</tbody>
|
|
976
|
+
</table>
|
|
977
|
+
<table class="table table-sm table-bordered">
|
|
978
|
+
<tbody>
|
|
979
|
+
<tr>
|
|
980
|
+
<td class="col-md-4">
|
|
981
|
+
<a name="dividerOffset"></a>
|
|
982
|
+
<span class="name">
|
|
983
|
+
<span class="modifier">Public</span>
|
|
984
|
+
<span class="modifier">Readonly</span>
|
|
985
|
+
<span ><b>dividerOffset</b></span>
|
|
986
|
+
<a href="#dividerOffset"><span class="icon ion-ios-link"></span></a>
|
|
987
|
+
</span>
|
|
988
|
+
</td>
|
|
989
|
+
</tr>
|
|
990
|
+
<tr>
|
|
991
|
+
<td class="col-md-4">
|
|
992
|
+
<i>Default value : </i><code>linkedSignal(() => this.dividerOffsetInput())</code>
|
|
993
|
+
</td>
|
|
994
|
+
</tr>
|
|
995
|
+
<tr>
|
|
996
|
+
<td class="col-md-4">
|
|
997
|
+
<div class="io-line">Defined in <a href="" data-line="89" class="link-to-prism">src/lib/tree.component.ts:89</a></div>
|
|
998
|
+
</td>
|
|
999
|
+
</tr>
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
</tbody>
|
|
1003
|
+
</table>
|
|
1004
|
+
<table class="table table-sm table-bordered">
|
|
1005
|
+
<tbody>
|
|
1006
|
+
<tr>
|
|
1007
|
+
<td class="col-md-4">
|
|
1008
|
+
<a name="dividerOffsetInput"></a>
|
|
1009
|
+
<span class="name">
|
|
1010
|
+
<span class="modifier">Public</span>
|
|
1011
|
+
<span class="modifier">Readonly</span>
|
|
1012
|
+
<span ><b>dividerOffsetInput</b></span>
|
|
1013
|
+
<a href="#dividerOffsetInput"><span class="icon ion-ios-link"></span></a>
|
|
1014
|
+
</span>
|
|
1015
|
+
</td>
|
|
1016
|
+
</tr>
|
|
1017
|
+
<tr>
|
|
1018
|
+
<td class="col-md-4">
|
|
1019
|
+
<i>Default value : </i><code>input('256px', { alias: 'dividerOffset' })</code>
|
|
1020
|
+
</td>
|
|
1021
|
+
</tr>
|
|
1022
|
+
<tr>
|
|
1023
|
+
<td class="col-md-4">
|
|
1024
|
+
<div class="io-line">Defined in <a href="" data-line="88" class="link-to-prism">src/lib/tree.component.ts:88</a></div>
|
|
1025
|
+
</td>
|
|
1026
|
+
</tr>
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
</tbody>
|
|
1030
|
+
</table>
|
|
1031
|
+
<table class="table table-sm table-bordered">
|
|
1032
|
+
<tbody>
|
|
1033
|
+
<tr>
|
|
1034
|
+
<td class="col-md-4">
|
|
1035
|
+
<a name="getIcon"></a>
|
|
1036
|
+
<span class="name">
|
|
1037
|
+
<span class="modifier">Public</span>
|
|
1038
|
+
<span class="modifier">Readonly</span>
|
|
1039
|
+
<span ><b>getIcon</b></span>
|
|
1040
|
+
<a href="#getIcon"><span class="icon ion-ios-link"></span></a>
|
|
1041
|
+
</span>
|
|
1042
|
+
</td>
|
|
1043
|
+
</tr>
|
|
1044
|
+
<tr>
|
|
1045
|
+
<td class="col-md-4">
|
|
1046
|
+
<i>Default value : </i><code>input<NodeGetIconFunction<any>>()</code>
|
|
1047
|
+
</td>
|
|
1048
|
+
</tr>
|
|
1049
|
+
<tr>
|
|
1050
|
+
<td class="col-md-4">
|
|
1051
|
+
<div class="io-line">Defined in <a href="" data-line="78" class="link-to-prism">src/lib/tree.component.ts:78</a></div>
|
|
1052
|
+
</td>
|
|
1053
|
+
</tr>
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
</tbody>
|
|
1057
|
+
</table>
|
|
1058
|
+
<table class="table table-sm table-bordered">
|
|
1059
|
+
<tbody>
|
|
1060
|
+
<tr>
|
|
1061
|
+
<td class="col-md-4">
|
|
1062
|
+
<a name="getLevel"></a>
|
|
1063
|
+
<span class="name">
|
|
1064
|
+
<span class="modifier">Public</span>
|
|
1065
|
+
<span ><b>getLevel</b></span>
|
|
1066
|
+
<a href="#getLevel"><span class="icon ion-ios-link"></span></a>
|
|
1067
|
+
</span>
|
|
1068
|
+
</td>
|
|
1069
|
+
</tr>
|
|
1070
|
+
<tr>
|
|
1071
|
+
<td class="col-md-4">
|
|
1072
|
+
<i>Default value : </i><code>() => {...}</code>
|
|
1073
|
+
</td>
|
|
1074
|
+
</tr>
|
|
1075
|
+
<tr>
|
|
1076
|
+
<td class="col-md-4">
|
|
1077
|
+
<div class="io-line">Defined in <a href="" data-line="159" class="link-to-prism">src/lib/tree.component.ts:159</a></div>
|
|
1078
|
+
</td>
|
|
1079
|
+
</tr>
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
</tbody>
|
|
1083
|
+
</table>
|
|
1084
|
+
<table class="table table-sm table-bordered">
|
|
1085
|
+
<tbody>
|
|
1086
|
+
<tr>
|
|
1087
|
+
<td class="col-md-4">
|
|
1088
|
+
<a name="getStyle"></a>
|
|
1057
1089
|
<span class="name">
|
|
1058
|
-
<span class="modifier"
|
|
1059
|
-
|
|
1060
|
-
<
|
|
1090
|
+
<span class="modifier">Public</span>
|
|
1091
|
+
<span class="modifier">Readonly</span>
|
|
1092
|
+
<span ><b>getStyle</b></span>
|
|
1093
|
+
<a href="#getStyle"><span class="icon ion-ios-link"></span></a>
|
|
1061
1094
|
</span>
|
|
1062
1095
|
</td>
|
|
1063
1096
|
</tr>
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
<
|
|
1067
|
-
|
|
1068
|
-
</
|
|
1069
|
-
|
|
1097
|
+
<tr>
|
|
1098
|
+
<td class="col-md-4">
|
|
1099
|
+
<i>Default value : </i><code>input<NodeGetStyleFunction<any>>()</code>
|
|
1100
|
+
</td>
|
|
1101
|
+
</tr>
|
|
1102
|
+
<tr>
|
|
1103
|
+
<td class="col-md-4">
|
|
1104
|
+
<div class="io-line">Defined in <a href="" data-line="80" class="link-to-prism">src/lib/tree.component.ts:80</a></div>
|
|
1105
|
+
</td>
|
|
1106
|
+
</tr>
|
|
1070
1107
|
|
|
1108
|
+
|
|
1109
|
+
</tbody>
|
|
1110
|
+
</table>
|
|
1111
|
+
<table class="table table-sm table-bordered">
|
|
1112
|
+
<tbody>
|
|
1071
1113
|
<tr>
|
|
1072
1114
|
<td class="col-md-4">
|
|
1073
|
-
<
|
|
1074
|
-
<
|
|
1075
|
-
|
|
1115
|
+
<a name="getType"></a>
|
|
1116
|
+
<span class="name">
|
|
1117
|
+
<span class="modifier">Public</span>
|
|
1118
|
+
<span class="modifier">Readonly</span>
|
|
1119
|
+
<span ><b>getType</b></span>
|
|
1120
|
+
<a href="#getType"><span class="icon ion-ios-link"></span></a>
|
|
1121
|
+
</span>
|
|
1076
1122
|
</td>
|
|
1077
1123
|
</tr>
|
|
1078
|
-
|
|
1124
|
+
<tr>
|
|
1125
|
+
<td class="col-md-4">
|
|
1126
|
+
<i>Default value : </i><code>input<NodeGetTypeFunction<any>>()</code>
|
|
1127
|
+
</td>
|
|
1128
|
+
</tr>
|
|
1079
1129
|
<tr>
|
|
1080
1130
|
<td class="col-md-4">
|
|
1081
|
-
|
|
1082
|
-
class="link-to-prism">src/lib/tree.component.ts:230</a></div>
|
|
1131
|
+
<div class="io-line">Defined in <a href="" data-line="79" class="link-to-prism">src/lib/tree.component.ts:79</a></div>
|
|
1083
1132
|
</td>
|
|
1084
1133
|
</tr>
|
|
1085
1134
|
|
|
1086
1135
|
|
|
1087
|
-
<tr>
|
|
1088
|
-
<td class="col-md-4">
|
|
1089
|
-
|
|
1090
|
-
<div class="io-description">
|
|
1091
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
1092
|
-
|
|
1093
|
-
</div>
|
|
1094
|
-
</td>
|
|
1095
|
-
</tr>
|
|
1096
1136
|
</tbody>
|
|
1097
1137
|
</table>
|
|
1098
1138
|
<table class="table table-sm table-bordered">
|
|
1099
1139
|
<tbody>
|
|
1100
1140
|
<tr>
|
|
1101
1141
|
<td class="col-md-4">
|
|
1102
|
-
<a name="
|
|
1142
|
+
<a name="hasChild"></a>
|
|
1103
1143
|
<span class="name">
|
|
1104
|
-
<span class="modifier"></span>
|
|
1105
1144
|
<span class="modifier">Public</span>
|
|
1106
|
-
<span ><b>
|
|
1107
|
-
<a href="#
|
|
1145
|
+
<span ><b>hasChild</b></span>
|
|
1146
|
+
<a href="#hasChild"><span class="icon ion-ios-link"></span></a>
|
|
1108
1147
|
</span>
|
|
1109
1148
|
</td>
|
|
1110
1149
|
</tr>
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
<
|
|
1114
|
-
|
|
1115
|
-
</
|
|
1116
|
-
|
|
1150
|
+
<tr>
|
|
1151
|
+
<td class="col-md-4">
|
|
1152
|
+
<i>Default value : </i><code>() => {...}</code>
|
|
1153
|
+
</td>
|
|
1154
|
+
</tr>
|
|
1155
|
+
<tr>
|
|
1156
|
+
<td class="col-md-4">
|
|
1157
|
+
<div class="io-line">Defined in <a href="" data-line="163" class="link-to-prism">src/lib/tree.component.ts:163</a></div>
|
|
1158
|
+
</td>
|
|
1159
|
+
</tr>
|
|
1160
|
+
|
|
1117
1161
|
|
|
1162
|
+
</tbody>
|
|
1163
|
+
</table>
|
|
1164
|
+
<table class="table table-sm table-bordered">
|
|
1165
|
+
<tbody>
|
|
1118
1166
|
<tr>
|
|
1119
1167
|
<td class="col-md-4">
|
|
1120
|
-
<
|
|
1121
|
-
<
|
|
1122
|
-
|
|
1168
|
+
<a name="hasDetails"></a>
|
|
1169
|
+
<span class="name">
|
|
1170
|
+
<span class="modifier">Public</span>
|
|
1171
|
+
<span class="modifier">Readonly</span>
|
|
1172
|
+
<span ><b>hasDetails</b></span>
|
|
1173
|
+
<a href="#hasDetails"><span class="icon ion-ios-link"></span></a>
|
|
1174
|
+
</span>
|
|
1123
1175
|
</td>
|
|
1124
1176
|
</tr>
|
|
1125
|
-
|
|
1177
|
+
<tr>
|
|
1178
|
+
<td class="col-md-4">
|
|
1179
|
+
<i>Default value : </i><code>input<NodeHasDetailsFunction<any>>()</code>
|
|
1180
|
+
</td>
|
|
1181
|
+
</tr>
|
|
1126
1182
|
<tr>
|
|
1127
1183
|
<td class="col-md-4">
|
|
1128
|
-
|
|
1129
|
-
class="link-to-prism">src/lib/tree.component.ts:205</a></div>
|
|
1184
|
+
<div class="io-line">Defined in <a href="" data-line="83" class="link-to-prism">src/lib/tree.component.ts:83</a></div>
|
|
1130
1185
|
</td>
|
|
1131
1186
|
</tr>
|
|
1132
1187
|
|
|
1133
1188
|
|
|
1134
|
-
<tr>
|
|
1135
|
-
<td class="col-md-4">
|
|
1136
|
-
|
|
1137
|
-
<div class="io-description">
|
|
1138
|
-
<b>Parameters :</b>
|
|
1139
|
-
|
|
1140
|
-
<table class="params">
|
|
1141
|
-
<thead>
|
|
1142
|
-
<tr>
|
|
1143
|
-
<td>Name</td>
|
|
1144
|
-
<td>Type</td>
|
|
1145
|
-
<td>Optional</td>
|
|
1146
|
-
</tr>
|
|
1147
|
-
</thead>
|
|
1148
|
-
<tbody>
|
|
1149
|
-
<tr>
|
|
1150
|
-
<td>node</td>
|
|
1151
|
-
<td>
|
|
1152
|
-
<code>Node<Data></code>
|
|
1153
|
-
</td>
|
|
1154
|
-
|
|
1155
|
-
<td>
|
|
1156
|
-
No
|
|
1157
|
-
</td>
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
</tr>
|
|
1161
|
-
</tbody>
|
|
1162
|
-
</table>
|
|
1163
|
-
</div>
|
|
1164
|
-
<div class="io-description">
|
|
1165
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
1166
|
-
|
|
1167
|
-
</div>
|
|
1168
|
-
<div class="io-description">
|
|
1169
|
-
|
|
1170
|
-
</div>
|
|
1171
|
-
</td>
|
|
1172
|
-
</tr>
|
|
1173
1189
|
</tbody>
|
|
1174
1190
|
</table>
|
|
1175
1191
|
<table class="table table-sm table-bordered">
|
|
1176
1192
|
<tbody>
|
|
1177
1193
|
<tr>
|
|
1178
1194
|
<td class="col-md-4">
|
|
1179
|
-
<a name="
|
|
1195
|
+
<a name="hideLeafIcon"></a>
|
|
1180
1196
|
<span class="name">
|
|
1181
|
-
|
|
1182
|
-
|
|
1197
|
+
<span class="modifier">Public</span>
|
|
1198
|
+
<span class="modifier">Readonly</span>
|
|
1199
|
+
<span ><b>hideLeafIcon</b></span>
|
|
1200
|
+
<a href="#hideLeafIcon"><span class="icon ion-ios-link"></span></a>
|
|
1183
1201
|
</span>
|
|
1184
1202
|
</td>
|
|
1185
1203
|
</tr>
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
<code>
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1204
|
+
<tr>
|
|
1205
|
+
<td class="col-md-4">
|
|
1206
|
+
<i>Default value : </i><code>false</code>
|
|
1207
|
+
</td>
|
|
1208
|
+
</tr>
|
|
1193
1209
|
<tr>
|
|
1194
1210
|
<td class="col-md-4">
|
|
1195
|
-
|
|
1196
|
-
class="link-to-prism">src/lib/tree.component.ts:249</a></div>
|
|
1211
|
+
<div class="io-line">Defined in <a href="" data-line="85" class="link-to-prism">src/lib/tree.component.ts:85</a></div>
|
|
1197
1212
|
</td>
|
|
1198
1213
|
</tr>
|
|
1199
1214
|
|
|
1200
1215
|
|
|
1201
|
-
<tr>
|
|
1202
|
-
<td class="col-md-4">
|
|
1203
|
-
|
|
1204
|
-
<div class="io-description">
|
|
1205
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
1206
|
-
|
|
1207
|
-
</div>
|
|
1208
|
-
</td>
|
|
1209
|
-
</tr>
|
|
1210
1216
|
</tbody>
|
|
1211
1217
|
</table>
|
|
1212
|
-
</section>
|
|
1213
|
-
<section data-compodoc="block-properties">
|
|
1214
|
-
|
|
1215
|
-
<h3 id="inputs">
|
|
1216
|
-
Properties
|
|
1217
|
-
</h3>
|
|
1218
1218
|
<table class="table table-sm table-bordered">
|
|
1219
1219
|
<tbody>
|
|
1220
1220
|
<tr>
|
|
1221
1221
|
<td class="col-md-4">
|
|
1222
|
-
<a name="
|
|
1222
|
+
<a name="id"></a>
|
|
1223
1223
|
<span class="name">
|
|
1224
|
-
<span class="modifier"></span>
|
|
1225
1224
|
<span class="modifier">Public</span>
|
|
1226
|
-
<span class="modifier">
|
|
1227
|
-
<span ><b>
|
|
1228
|
-
<a href="#
|
|
1225
|
+
<span class="modifier">Readonly</span>
|
|
1226
|
+
<span ><b>id</b></span>
|
|
1227
|
+
<a href="#id"><span class="icon ion-ios-link"></span></a>
|
|
1229
1228
|
</span>
|
|
1230
1229
|
</td>
|
|
1231
1230
|
</tr>
|
|
1232
|
-
<tr>
|
|
1233
|
-
<td class="col-md-4">
|
|
1234
|
-
<i>Type : </i> <code><a href="../directives/TreeContentDirective.html" target="_self" >TreeContentDirective</a></code>
|
|
1235
|
-
|
|
1236
|
-
</td>
|
|
1237
|
-
</tr>
|
|
1238
|
-
<tr>
|
|
1239
|
-
<td class="col-md-4">
|
|
1240
|
-
<b>Decorators : </b>
|
|
1241
|
-
<br />
|
|
1242
|
-
<code>
|
|
1243
|
-
@ContentChild(TreeContentDirective, {static: true})<br />
|
|
1244
|
-
</code>
|
|
1245
|
-
</td>
|
|
1246
|
-
</tr>
|
|
1247
1231
|
<tr>
|
|
1248
1232
|
<td class="col-md-4">
|
|
1249
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1233
|
+
<div class="io-line">Defined in <a href="" data-line="86" class="link-to-prism">src/lib/tree.component.ts:86</a></div>
|
|
1250
1234
|
</td>
|
|
1251
1235
|
</tr>
|
|
1252
1236
|
|
|
@@ -1257,11 +1241,11 @@
|
|
|
1257
1241
|
<tbody>
|
|
1258
1242
|
<tr>
|
|
1259
1243
|
<td class="col-md-4">
|
|
1260
|
-
<a name="
|
|
1244
|
+
<a name="isExpandable"></a>
|
|
1261
1245
|
<span class="name">
|
|
1262
1246
|
<span class="modifier">Public</span>
|
|
1263
|
-
<span ><b>
|
|
1264
|
-
<a href="#
|
|
1247
|
+
<span ><b>isExpandable</b></span>
|
|
1248
|
+
<a href="#isExpandable"><span class="icon ion-ios-link"></span></a>
|
|
1265
1249
|
</span>
|
|
1266
1250
|
</td>
|
|
1267
1251
|
</tr>
|
|
@@ -1272,7 +1256,7 @@
|
|
|
1272
1256
|
</tr>
|
|
1273
1257
|
<tr>
|
|
1274
1258
|
<td class="col-md-4">
|
|
1275
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1259
|
+
<div class="io-line">Defined in <a href="" data-line="161" class="link-to-prism">src/lib/tree.component.ts:161</a></div>
|
|
1276
1260
|
</td>
|
|
1277
1261
|
</tr>
|
|
1278
1262
|
|
|
@@ -1283,22 +1267,23 @@
|
|
|
1283
1267
|
<tbody>
|
|
1284
1268
|
<tr>
|
|
1285
1269
|
<td class="col-md-4">
|
|
1286
|
-
<a name="
|
|
1270
|
+
<a name="multiple"></a>
|
|
1287
1271
|
<span class="name">
|
|
1288
1272
|
<span class="modifier">Public</span>
|
|
1289
|
-
|
|
1290
|
-
<
|
|
1273
|
+
<span class="modifier">Readonly</span>
|
|
1274
|
+
<span ><b>multiple</b></span>
|
|
1275
|
+
<a href="#multiple"><span class="icon ion-ios-link"></span></a>
|
|
1291
1276
|
</span>
|
|
1292
1277
|
</td>
|
|
1293
1278
|
</tr>
|
|
1294
1279
|
<tr>
|
|
1295
1280
|
<td class="col-md-4">
|
|
1296
|
-
<i>Default value : </i><code>() =>
|
|
1281
|
+
<i>Default value : </i><code>computed(() => this.dataSource().metadata?.selectMultiple ?? this.multipleInput())</code>
|
|
1297
1282
|
</td>
|
|
1298
1283
|
</tr>
|
|
1299
1284
|
<tr>
|
|
1300
1285
|
<td class="col-md-4">
|
|
1301
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1286
|
+
<div class="io-line">Defined in <a href="" data-line="82" class="link-to-prism">src/lib/tree.component.ts:82</a></div>
|
|
1302
1287
|
</td>
|
|
1303
1288
|
</tr>
|
|
1304
1289
|
|
|
@@ -1309,22 +1294,23 @@
|
|
|
1309
1294
|
<tbody>
|
|
1310
1295
|
<tr>
|
|
1311
1296
|
<td class="col-md-4">
|
|
1312
|
-
<a name="
|
|
1297
|
+
<a name="multipleInput"></a>
|
|
1313
1298
|
<span class="name">
|
|
1314
1299
|
<span class="modifier">Public</span>
|
|
1315
|
-
|
|
1316
|
-
<
|
|
1300
|
+
<span class="modifier">Readonly</span>
|
|
1301
|
+
<span ><b>multipleInput</b></span>
|
|
1302
|
+
<a href="#multipleInput"><span class="icon ion-ios-link"></span></a>
|
|
1317
1303
|
</span>
|
|
1318
1304
|
</td>
|
|
1319
1305
|
</tr>
|
|
1320
1306
|
<tr>
|
|
1321
1307
|
<td class="col-md-4">
|
|
1322
|
-
<i>Default value : </i><code>(
|
|
1308
|
+
<i>Default value : </i><code>input(false, { alias: 'multiple' })</code>
|
|
1323
1309
|
</td>
|
|
1324
1310
|
</tr>
|
|
1325
1311
|
<tr>
|
|
1326
1312
|
<td class="col-md-4">
|
|
1327
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1313
|
+
<div class="io-line">Defined in <a href="" data-line="81" class="link-to-prism">src/lib/tree.component.ts:81</a></div>
|
|
1328
1314
|
</td>
|
|
1329
1315
|
</tr>
|
|
1330
1316
|
|
|
@@ -1338,6 +1324,7 @@
|
|
|
1338
1324
|
<a name="portal"></a>
|
|
1339
1325
|
<span class="name">
|
|
1340
1326
|
<span class="modifier">Public</span>
|
|
1327
|
+
<span class="modifier">Readonly</span>
|
|
1341
1328
|
<span ><b>portal</b></span>
|
|
1342
1329
|
<a href="#portal"><span class="icon ion-ios-link"></span></a>
|
|
1343
1330
|
</span>
|
|
@@ -1345,18 +1332,12 @@
|
|
|
1345
1332
|
</tr>
|
|
1346
1333
|
<tr>
|
|
1347
1334
|
<td class="col-md-4">
|
|
1348
|
-
<i>
|
|
1349
|
-
|
|
1350
|
-
</td>
|
|
1351
|
-
</tr>
|
|
1352
|
-
<tr>
|
|
1353
|
-
<td class="col-md-4">
|
|
1354
|
-
<i>Default value : </i><code>null</code>
|
|
1335
|
+
<i>Default value : </i><code>signal<TemplatePortal | null>(null)</code>
|
|
1355
1336
|
</td>
|
|
1356
1337
|
</tr>
|
|
1357
1338
|
<tr>
|
|
1358
1339
|
<td class="col-md-4">
|
|
1359
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1340
|
+
<div class="io-line">Defined in <a href="" data-line="90" class="link-to-prism">src/lib/tree.component.ts:90</a></div>
|
|
1360
1341
|
</td>
|
|
1361
1342
|
</tr>
|
|
1362
1343
|
|
|
@@ -1369,9 +1350,6 @@
|
|
|
1369
1350
|
<td class="col-md-4">
|
|
1370
1351
|
<a name="searchForm"></a>
|
|
1371
1352
|
<span class="name">
|
|
1372
|
-
<span class="modifier"></span>
|
|
1373
|
-
<span class="modifier"></span>
|
|
1374
|
-
<span class="modifier">Public</span>
|
|
1375
1353
|
<span class="modifier">Readonly</span>
|
|
1376
1354
|
<span ><b>searchForm</b></span>
|
|
1377
1355
|
<a href="#searchForm"><span class="icon ion-ios-link"></span></a>
|
|
@@ -1380,22 +1358,12 @@
|
|
|
1380
1358
|
</tr>
|
|
1381
1359
|
<tr>
|
|
1382
1360
|
<td class="col-md-4">
|
|
1383
|
-
<i>
|
|
1384
|
-
|
|
1385
|
-
</td>
|
|
1386
|
-
</tr>
|
|
1387
|
-
<tr>
|
|
1388
|
-
<td class="col-md-4">
|
|
1389
|
-
<b>Decorators : </b>
|
|
1390
|
-
<br />
|
|
1391
|
-
<code>
|
|
1392
|
-
@Optional()<br />@Inject(RXAP_FORM_DEFINITION)<br />
|
|
1393
|
-
</code>
|
|
1361
|
+
<i>Default value : </i><code>inject<SearchForm | null>(RXAP_FORM_DEFINITION, { optional: true })</code>
|
|
1394
1362
|
</td>
|
|
1395
1363
|
</tr>
|
|
1396
1364
|
<tr>
|
|
1397
1365
|
<td class="col-md-4">
|
|
1398
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1366
|
+
<div class="io-line">Defined in <a href="" data-line="70" class="link-to-prism">src/lib/tree.component.ts:70</a></div>
|
|
1399
1367
|
</td>
|
|
1400
1368
|
</tr>
|
|
1401
1369
|
|
|
@@ -1422,7 +1390,7 @@
|
|
|
1422
1390
|
</tr>
|
|
1423
1391
|
<tr>
|
|
1424
1392
|
<td class="col-md-4">
|
|
1425
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1393
|
+
<div class="io-line">Defined in <a href="" data-line="93" class="link-to-prism">src/lib/tree.component.ts:93</a></div>
|
|
1426
1394
|
</td>
|
|
1427
1395
|
</tr>
|
|
1428
1396
|
|
|
@@ -1433,33 +1401,50 @@
|
|
|
1433
1401
|
<tbody>
|
|
1434
1402
|
<tr>
|
|
1435
1403
|
<td class="col-md-4">
|
|
1436
|
-
<a name="
|
|
1404
|
+
<a name="toDisplay"></a>
|
|
1437
1405
|
<span class="name">
|
|
1438
|
-
<span class="modifier"></span>
|
|
1439
1406
|
<span class="modifier">Public</span>
|
|
1440
|
-
|
|
1441
|
-
<
|
|
1407
|
+
<span class="modifier">Readonly</span>
|
|
1408
|
+
<span ><b>toDisplay</b></span>
|
|
1409
|
+
<a href="#toDisplay"><span class="icon ion-ios-link"></span></a>
|
|
1442
1410
|
</span>
|
|
1443
1411
|
</td>
|
|
1444
1412
|
</tr>
|
|
1445
1413
|
<tr>
|
|
1446
1414
|
<td class="col-md-4">
|
|
1447
|
-
<i>
|
|
1448
|
-
|
|
1415
|
+
<i>Default value : </i><code>input<NodeToDisplayFunction<any>>()</code>
|
|
1449
1416
|
</td>
|
|
1450
1417
|
</tr>
|
|
1418
|
+
<tr>
|
|
1419
|
+
<td class="col-md-4">
|
|
1420
|
+
<div class="io-line">Defined in <a href="" data-line="77" class="link-to-prism">src/lib/tree.component.ts:77</a></div>
|
|
1421
|
+
</td>
|
|
1422
|
+
</tr>
|
|
1423
|
+
|
|
1424
|
+
|
|
1425
|
+
</tbody>
|
|
1426
|
+
</table>
|
|
1427
|
+
<table class="table table-sm table-bordered">
|
|
1428
|
+
<tbody>
|
|
1429
|
+
<tr>
|
|
1430
|
+
<td class="col-md-4">
|
|
1431
|
+
<a name="treeContainer"></a>
|
|
1432
|
+
<span class="name">
|
|
1433
|
+
<span class="modifier">Public</span>
|
|
1434
|
+
<span class="modifier">Readonly</span>
|
|
1435
|
+
<span ><b>treeContainer</b></span>
|
|
1436
|
+
<a href="#treeContainer"><span class="icon ion-ios-link"></span></a>
|
|
1437
|
+
</span>
|
|
1438
|
+
</td>
|
|
1439
|
+
</tr>
|
|
1451
1440
|
<tr>
|
|
1452
1441
|
<td class="col-md-4">
|
|
1453
|
-
<
|
|
1454
|
-
<br />
|
|
1455
|
-
<code>
|
|
1456
|
-
@ViewChild('treeContainer', {static: true})<br />
|
|
1457
|
-
</code>
|
|
1442
|
+
<i>Default value : </i><code>viewChild.required<ElementRef>('treeContainer')</code>
|
|
1458
1443
|
</td>
|
|
1459
1444
|
</tr>
|
|
1460
1445
|
<tr>
|
|
1461
1446
|
<td class="col-md-4">
|
|
1462
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1447
|
+
<div class="io-line">Defined in <a href="" data-line="91" class="link-to-prism">src/lib/tree.component.ts:91</a></div>
|
|
1463
1448
|
</td>
|
|
1464
1449
|
</tr>
|
|
1465
1450
|
|
|
@@ -1486,7 +1471,7 @@
|
|
|
1486
1471
|
</tr>
|
|
1487
1472
|
<tr>
|
|
1488
1473
|
<td class="col-md-4">
|
|
1489
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1474
|
+
<div class="io-line">Defined in <a href="" data-line="72" class="link-to-prism">src/lib/tree.component.ts:72</a></div>
|
|
1490
1475
|
</td>
|
|
1491
1476
|
</tr>
|
|
1492
1477
|
|
|
@@ -1515,7 +1500,7 @@
|
|
|
1515
1500
|
</tr>
|
|
1516
1501
|
<tr>
|
|
1517
1502
|
<td class="col-md-4">
|
|
1518
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1503
|
+
<div class="io-line">Defined in <a href="" data-line="151" class="link-to-prism">src/lib/tree.component.ts:151</a></div>
|
|
1519
1504
|
</td>
|
|
1520
1505
|
</tr>
|
|
1521
1506
|
|
|
@@ -1537,7 +1522,7 @@
|
|
|
1537
1522
|
</tr>
|
|
1538
1523
|
<tr>
|
|
1539
1524
|
<td class="col-md-4">
|
|
1540
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1525
|
+
<div class="io-line">Defined in <a href="" data-line="155" class="link-to-prism">src/lib/tree.component.ts:155</a></div>
|
|
1541
1526
|
</td>
|
|
1542
1527
|
</tr>
|
|
1543
1528
|
|
|
@@ -1553,33 +1538,8 @@
|
|
|
1553
1538
|
TemplatePortal,
|
|
1554
1539
|
} from '@angular/cdk/portal';
|
|
1555
1540
|
import { FlatTreeControl } from '@angular/cdk/tree';
|
|
1556
|
-
import {
|
|
1557
|
-
|
|
1558
|
-
NgClass,
|
|
1559
|
-
NgForOf,
|
|
1560
|
-
NgIf,
|
|
1561
|
-
NgStyle,
|
|
1562
|
-
} from '@angular/common';
|
|
1563
|
-
import {
|
|
1564
|
-
AfterContentInit,
|
|
1565
|
-
ChangeDetectionStrategy,
|
|
1566
|
-
ChangeDetectorRef,
|
|
1567
|
-
Component,
|
|
1568
|
-
ContentChild,
|
|
1569
|
-
ElementRef,
|
|
1570
|
-
EventEmitter,
|
|
1571
|
-
HostListener,
|
|
1572
|
-
Inject,
|
|
1573
|
-
Input,
|
|
1574
|
-
isDevMode,
|
|
1575
|
-
OnInit,
|
|
1576
|
-
Optional,
|
|
1577
|
-
Output,
|
|
1578
|
-
Renderer2,
|
|
1579
|
-
signal,
|
|
1580
|
-
ViewChild,
|
|
1581
|
-
ViewContainerRef,
|
|
1582
|
-
} from '@angular/core';
|
|
1541
|
+
import { AsyncPipe, NgClass, NgStyle } from '@angular/common';
|
|
1542
|
+
import { afterNextRender, ChangeDetectionStrategy, Component, computed, effect, ElementRef, isDevMode, linkedSignal, signal, untracked, ViewContainerRef, input, output, contentChild, viewChild, inject } from '@angular/core';
|
|
1583
1543
|
import { MatButtonModule } from '@angular/material/button';
|
|
1584
1544
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
1585
1545
|
import { MatDividerModule } from '@angular/material/divider';
|
|
@@ -1620,55 +1580,50 @@ import { TreeDataSource } from './tree.data-source';
|
|
|
1620
1580
|
styleUrls: ['./tree.component.scss'],
|
|
1621
1581
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1622
1582
|
imports: [
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1583
|
+
NgStyle,
|
|
1584
|
+
MatProgressBarModule,
|
|
1585
|
+
MatTreeModule,
|
|
1586
|
+
MatIconModule,
|
|
1587
|
+
IconDirective,
|
|
1588
|
+
MatCheckboxModule,
|
|
1589
|
+
MatButtonModule,
|
|
1590
|
+
ContenteditableDirective,
|
|
1591
|
+
MatProgressSpinnerModule,
|
|
1592
|
+
MatDividerModule,
|
|
1593
|
+
PortalModule,
|
|
1594
|
+
AsyncPipe,
|
|
1595
|
+
NgClass
|
|
1596
|
+
],
|
|
1597
|
+
host: {
|
|
1598
|
+
'(mouseup)': 'onMouseup()',
|
|
1599
|
+
'(mousemove)': 'onMousemove($event)',
|
|
1600
|
+
},
|
|
1639
1601
|
})
|
|
1640
|
-
export class TreeComponent<Data extends WithIdentifier & WithChildren = any>
|
|
1641
|
-
|
|
1602
|
+
export class TreeComponent<Data extends WithIdentifier & WithChildren = any> {
|
|
1603
|
+
private readonly viewContainerRef = inject<ViewContainerRef>(ViewContainerRef);
|
|
1604
|
+
private readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);
|
|
1605
|
+
readonly searchForm = inject<SearchForm | null>(RXAP_FORM_DEFINITION, { optional: true });
|
|
1606
|
+
|
|
1642
1607
|
public treeControl: FlatTreeControl<Node<Data>>;
|
|
1643
|
-
|
|
1644
|
-
public
|
|
1645
|
-
|
|
1646
|
-
public contentEditableMethod
|
|
1647
|
-
|
|
1648
|
-
public
|
|
1649
|
-
|
|
1650
|
-
public
|
|
1651
|
-
|
|
1652
|
-
public
|
|
1653
|
-
|
|
1654
|
-
public
|
|
1655
|
-
|
|
1656
|
-
public
|
|
1657
|
-
|
|
1658
|
-
public
|
|
1659
|
-
|
|
1660
|
-
public
|
|
1661
|
-
|
|
1662
|
-
public hideLeafIcon = false;
|
|
1663
|
-
@Input()
|
|
1664
|
-
public id?: string;
|
|
1665
|
-
@Output()
|
|
1666
|
-
public details = new EventEmitter();
|
|
1667
|
-
@Input()
|
|
1668
|
-
public dividerOffset = '256px';
|
|
1669
|
-
public portal: TemplatePortal | null = null;
|
|
1670
|
-
@ViewChild('treeContainer', {static: true})
|
|
1671
|
-
public treeContainer!: ElementRef;
|
|
1608
|
+
public readonly dataSource = input.required<TreeDataSource<Data>>();
|
|
1609
|
+
public readonly contentEditableMethodInput = input<Method<any, string | null> | null>(null, { alias: 'contentEditableMethod' });
|
|
1610
|
+
private readonly injectedContentEditableMethod = inject<Method<any, string | null> | null>(RXAP_TREE_CONTENT_EDITABLE_METHOD, { optional: true });
|
|
1611
|
+
public readonly contentEditableMethod = computed(() => this.contentEditableMethodInput() ?? this.injectedContentEditableMethod);
|
|
1612
|
+
public readonly toDisplay = input<NodeToDisplayFunction<any>>();
|
|
1613
|
+
public readonly getIcon = input<NodeGetIconFunction<any>>();
|
|
1614
|
+
public readonly getType = input<NodeGetTypeFunction<any>>();
|
|
1615
|
+
public readonly getStyle = input<NodeGetStyleFunction<any>>();
|
|
1616
|
+
public readonly multipleInput = input(false, { alias: 'multiple' });
|
|
1617
|
+
public readonly multiple = computed(() => this.dataSource().metadata?.selectMultiple ?? this.multipleInput());
|
|
1618
|
+
public readonly hasDetails = input<NodeHasDetailsFunction<any>>();
|
|
1619
|
+
public readonly content = contentChild(TreeContentDirective);
|
|
1620
|
+
public readonly hideLeafIcon = input(false);
|
|
1621
|
+
public readonly id = input<string>();
|
|
1622
|
+
public readonly details = output();
|
|
1623
|
+
public readonly dividerOffsetInput = input('256px', { alias: 'dividerOffset' });
|
|
1624
|
+
public readonly dividerOffset = linkedSignal(() => this.dividerOffsetInput());
|
|
1625
|
+
public readonly portal = signal<TemplatePortal | null>(null);
|
|
1626
|
+
public readonly treeContainer = viewChild.required<ElementRef>('treeContainer');
|
|
1672
1627
|
|
|
1673
1628
|
public readonly showTreeNavigation = signal(true);
|
|
1674
1629
|
|
|
@@ -1685,30 +1640,55 @@ export class TreeComponent<Data extends WithIdentifier & WithChildren &#x
|
|
|
1685
1640
|
*/
|
|
1686
1641
|
private _treeContainerWidth: number | null = null;
|
|
1687
1642
|
|
|
1688
|
-
constructor(
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1643
|
+
constructor() {
|
|
1644
|
+
this.treeControl = new FlatTreeControl(this.getLevel, this.isExpandable);
|
|
1645
|
+
|
|
1646
|
+
effect(() => {
|
|
1647
|
+
const dataSource = this.dataSource();
|
|
1648
|
+
const toDisplay = this.toDisplay();
|
|
1649
|
+
const getIcon = this.getIcon();
|
|
1650
|
+
const hasDetails = this.hasDetails();
|
|
1651
|
+
const getStyle = this.getStyle();
|
|
1652
|
+
const getType = this.getType();
|
|
1653
|
+
untracked(() => {
|
|
1654
|
+
dataSource.searchForm = this.searchForm;
|
|
1655
|
+
dataSource.setTreeControl(this.treeControl);
|
|
1656
|
+
dataSource.setToDisplay(toDisplay);
|
|
1657
|
+
dataSource.setGetIcon(getIcon);
|
|
1658
|
+
dataSource.setHasDetails(hasDetails);
|
|
1659
|
+
dataSource.setGetStyle(getStyle);
|
|
1660
|
+
dataSource.setGetType(getType);
|
|
1661
|
+
});
|
|
1662
|
+
});
|
|
1663
|
+
|
|
1664
|
+
effect((onCleanup) => {
|
|
1665
|
+
const selected = this.dataSource().selected;
|
|
1666
|
+
const subscription = untracked(() => selected.changed
|
|
1667
|
+
.pipe(
|
|
1668
|
+
map(($event) => $event.source.selected),
|
|
1669
|
+
startWith(selected.selected),
|
|
1670
|
+
tap((nodes) => nodes.forEach((node) => this.openDetails(node))),
|
|
1671
|
+
)
|
|
1672
|
+
.subscribe());
|
|
1673
|
+
onCleanup(() => subscription.unsubscribe());
|
|
1674
|
+
});
|
|
1675
|
+
|
|
1676
|
+
afterNextRender(() => {
|
|
1677
|
+
const cachedOffset = localStorage.getItem(this.cacheId);
|
|
1678
|
+
if (cachedOffset && cachedOffset.match(/^(\d+\.)?\d+px$/)) {
|
|
1679
|
+
this.dividerOffset.set(cachedOffset);
|
|
1680
|
+
} else if (isDevMode()) {
|
|
1681
|
+
console.log('Divider offset cache is not available or invalid: ' + cachedOffset);
|
|
1682
|
+
}
|
|
1683
|
+
});
|
|
1704
1684
|
}
|
|
1705
1685
|
|
|
1706
1686
|
public get nodeDisplayEditable(): boolean {
|
|
1707
|
-
return !!this.contentEditableMethod;
|
|
1687
|
+
return !!this.contentEditableMethod();
|
|
1708
1688
|
}
|
|
1709
1689
|
|
|
1710
1690
|
public get cacheId() {
|
|
1711
|
-
return [ 'rxap', 'tree', this.id ].join('/');
|
|
1691
|
+
return [ 'rxap', 'tree', this.id() ].join('/');
|
|
1712
1692
|
}
|
|
1713
1693
|
|
|
1714
1694
|
public getLevel = (node: Node<Data>) => node.depth;
|
|
@@ -1717,58 +1697,24 @@ export class TreeComponent<Data extends WithIdentifier & WithChildren &#x
|
|
|
1717
1697
|
|
|
1718
1698
|
public hasChild = (_: number, nodeData: Node<Data>) => nodeData.hasChildren;
|
|
1719
1699
|
|
|
1720
|
-
public ngOnInit() {
|
|
1721
|
-
this.dataSource.searchForm = this.searchForm;
|
|
1722
|
-
this.dataSource.setTreeControl(this.treeControl);
|
|
1723
|
-
this.dataSource.setToDisplay(this.toDisplay);
|
|
1724
|
-
this.dataSource.setGetIcon(this.getIcon);
|
|
1725
|
-
this.dataSource.setHasDetails(this.hasDetails);
|
|
1726
|
-
this.dataSource.setGetStyle(this.getStyle);
|
|
1727
|
-
this.dataSource.setGetType(this.getType);
|
|
1728
|
-
this.multiple = this.dataSource.metadata.selectMultiple ?? this.multiple;
|
|
1729
|
-
|
|
1730
|
-
if (this.dataSource.selected.hasValue()) {
|
|
1731
|
-
this.dataSource.selected.selected.forEach((node) =>
|
|
1732
|
-
this.openDetails(node),
|
|
1733
|
-
);
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1736
|
-
const cachedOffset = localStorage.getItem(this.cacheId);
|
|
1737
|
-
if (cachedOffset && cachedOffset.match(/^(\d+\.)?\d+px$/)) {
|
|
1738
|
-
this.setDividerOffset(cachedOffset);
|
|
1739
|
-
} else if (isDevMode()) {
|
|
1740
|
-
console.log('Divider offset cache is not available or invalid: ' + cachedOffset);
|
|
1741
|
-
}
|
|
1742
|
-
}
|
|
1743
|
-
|
|
1744
|
-
public ngAfterContentInit(): void {
|
|
1745
|
-
this.dataSource.selected.changed
|
|
1746
|
-
.pipe(
|
|
1747
|
-
map(($event) => $event.source.selected),
|
|
1748
|
-
startWith(this.dataSource.selected.selected),
|
|
1749
|
-
tap((selected) => selected.forEach((node) => this.openDetails(node))),
|
|
1750
|
-
)
|
|
1751
|
-
.subscribe();
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
1700
|
@DebounceCall(100)
|
|
1755
1701
|
public openDetails(node: Node<Data>): void {
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1702
|
+
const content = this.content();
|
|
1703
|
+
if (content) {
|
|
1704
|
+
this.portal.set(new TemplatePortal<any>(
|
|
1705
|
+
content.template,
|
|
1759
1706
|
this.viewContainerRef,
|
|
1760
1707
|
{
|
|
1761
1708
|
$implicit: node.item,
|
|
1762
1709
|
node,
|
|
1763
1710
|
},
|
|
1764
|
-
);
|
|
1765
|
-
this.cdr.markForCheck();
|
|
1711
|
+
));
|
|
1766
1712
|
}
|
|
1767
1713
|
this.details.emit(node.item);
|
|
1768
1714
|
}
|
|
1769
1715
|
|
|
1770
1716
|
public onContentEditableChange(value: string | null, node: Node<Data>) {
|
|
1771
|
-
return this.contentEditableMethod?.call(value, node.item, node);
|
|
1717
|
+
return this.contentEditableMethod()?.call(value, node.item, node);
|
|
1772
1718
|
}
|
|
1773
1719
|
|
|
1774
1720
|
|
|
@@ -1776,16 +1722,14 @@ export class TreeComponent<Data extends WithIdentifier & WithChildren &#x
|
|
|
1776
1722
|
this._moveDivider = true;
|
|
1777
1723
|
}
|
|
1778
1724
|
|
|
1779
|
-
@HostListener('mouseup')
|
|
1780
1725
|
onMouseup() {
|
|
1781
1726
|
this._moveDivider = false;
|
|
1782
1727
|
}
|
|
1783
1728
|
|
|
1784
|
-
@HostListener('mousemove', [ '$event' ])
|
|
1785
1729
|
onMousemove($event: MouseEvent) {
|
|
1786
1730
|
if (this._moveDivider) {
|
|
1787
1731
|
if (!this._treeContainerWidth) {
|
|
1788
|
-
this._treeContainerWidth = this.treeContainer.nativeElement.clientWidth as number;
|
|
1732
|
+
this._treeContainerWidth = this.treeContainer().nativeElement.clientWidth as number;
|
|
1789
1733
|
}
|
|
1790
1734
|
const rect = this.elementRef.nativeElement.getBoundingClientRect();
|
|
1791
1735
|
this._treeContainerWidth = Math.min(Math.max($event.clientX - (
|
|
@@ -1801,10 +1745,7 @@ export class TreeComponent<Data extends WithIdentifier & WithChildren &#x
|
|
|
1801
1745
|
}
|
|
1802
1746
|
|
|
1803
1747
|
private setDividerOffset(offset: string) {
|
|
1804
|
-
this.dividerOffset
|
|
1805
|
-
this.renderer.setStyle(this.treeContainer.nativeElement, 'max-width', offset);
|
|
1806
|
-
this.renderer.setStyle(this.treeContainer.nativeElement, 'min-width', offset);
|
|
1807
|
-
this.renderer.setStyle(this.treeContainer.nativeElement, 'flex-basis', offset);
|
|
1748
|
+
this.dividerOffset.set(offset);
|
|
1808
1749
|
localStorage.setItem(this.cacheId, offset);
|
|
1809
1750
|
}
|
|
1810
1751
|
}
|
|
@@ -1815,120 +1756,127 @@ export class TreeComponent<Data extends WithIdentifier & WithChildren &#x
|
|
|
1815
1756
|
<pre class="line-numbers"><code class="language-html"><div class="grow flex flex-col gap-2 justify-start items-start">
|
|
1816
1757
|
<button (click)="toggleTreeNavigation()" class="!justify-start" mat-button type="button">
|
|
1817
1758
|
<span class="flex flex-row justify-start items-center gap-6">
|
|
1818
|
-
|
|
1759
|
+
@if (showTreeNavigation()) {
|
|
1819
1760
|
<mat-icon>arrow_back</mat-icon>
|
|
1820
1761
|
<span i18n>Hide tree navigation</span>
|
|
1821
|
-
|
|
1822
|
-
|
|
1762
|
+
}
|
|
1763
|
+
@if (!showTreeNavigation()) {
|
|
1823
1764
|
<mat-icon>arrow_forward</mat-icon>
|
|
1824
1765
|
<span i18n>Show tree navigation</span>
|
|
1825
|
-
|
|
1766
|
+
}
|
|
1826
1767
|
</span>
|
|
1827
1768
|
</button>
|
|
1828
1769
|
<div class="flex flex-row grow w-full">
|
|
1829
1770
|
<div #treeContainer [ngClass]="{ 'hidden': !showTreeNavigation() }"
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1771
|
+
[ngStyle]="{ maxWidth: dividerOffset(), minWidth: dividerOffset(), flexBasis: dividerOffset() }"
|
|
1772
|
+
class="w-fit grow-0 overflow-y-auto">
|
|
1773
|
+
@if (!dataSource() || (dataSource().loading$ | async)) {
|
|
1774
|
+
<mat-progress-bar mode="indeterminate"></mat-progress-bar>
|
|
1775
|
+
}
|
|
1833
1776
|
<ng-content select="[searchHeader]"></ng-content>
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
<
|
|
1872
|
-
<
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
<
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1777
|
+
@if (dataSource()) {
|
|
1778
|
+
<mat-tree [dataSource]="dataSource()" [treeControl]="treeControl">
|
|
1779
|
+
<!-- Node without children -->
|
|
1780
|
+
<mat-tree-node *matTreeNodeDef="let node" matTreeNodePadding>
|
|
1781
|
+
<div class="flex flex-row justify-start items-center gap-2">
|
|
1782
|
+
<mat-icon [ngClass]="{ 'hidden': hideLeafIcon() }">subdirectory_arrow_right</mat-icon>
|
|
1783
|
+
@if (node.icon?.length) {
|
|
1784
|
+
@for (icon of node.icon; track icon) {
|
|
1785
|
+
<mat-icon [rxapIcon]="$any(icon)"></mat-icon>
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
@if (multiple()) {
|
|
1789
|
+
<mat-checkbox
|
|
1790
|
+
(change)="node.toggleSelect()"
|
|
1791
|
+
[checked]="node.selected"
|
|
1792
|
+
[disabled]="!node.hasDetails"
|
|
1793
|
+
[ngStyle]="node.style"
|
|
1794
|
+
class="grow-0 truncate">
|
|
1795
|
+
{{ node.display }}
|
|
1796
|
+
</mat-checkbox>
|
|
1797
|
+
}
|
|
1798
|
+
@if (!multiple()) {
|
|
1799
|
+
<button
|
|
1800
|
+
(click)="node.select()"
|
|
1801
|
+
[color]="node.selected ? 'primary' : undefined"
|
|
1802
|
+
[disabled]="!node.hasDetails"
|
|
1803
|
+
[ngStyle]="node.style"
|
|
1804
|
+
class="grow-0 truncate"
|
|
1805
|
+
mat-button
|
|
1806
|
+
type="button"
|
|
1807
|
+
>
|
|
1808
|
+
{{ node.display }}
|
|
1809
|
+
</button>
|
|
1810
|
+
}
|
|
1811
|
+
</div>
|
|
1812
|
+
</mat-tree-node>
|
|
1813
|
+
<!-- Node with children -->
|
|
1814
|
+
<mat-tree-node *matTreeNodeDef="let node; when: hasChild" matTreeNodePadding>
|
|
1815
|
+
<button [attr.aria-label]="'toggle ' + node.filename" mat-icon-button matTreeNodeToggle type="button">
|
|
1816
|
+
<mat-icon class="mat-icon-rtl-mirror">
|
|
1817
|
+
{{ treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}
|
|
1818
|
+
</mat-icon>
|
|
1819
|
+
</button>
|
|
1820
|
+
<div class="flex flex-row justify-start items-center gap-2">
|
|
1821
|
+
@if (node.icon?.length) {
|
|
1822
|
+
@for (icon of node.icon; track icon) {
|
|
1823
|
+
<mat-icon [rxapIcon]="$any(icon)"></mat-icon>
|
|
1824
|
+
}
|
|
1825
|
+
} @else {
|
|
1826
|
+
<div></div>
|
|
1827
|
+
}
|
|
1828
|
+
@if (node.hasDetails) {
|
|
1829
|
+
<button
|
|
1830
|
+
(click)="node.select()"
|
|
1831
|
+
[color]="node.selected ? 'primary' : undefined"
|
|
1832
|
+
[ngStyle]="node.style"
|
|
1833
|
+
class="grow-0 truncate"
|
|
1834
|
+
mat-button
|
|
1835
|
+
type="button"
|
|
1836
|
+
>
|
|
1837
|
+
{{ node.display }}
|
|
1838
|
+
</button>
|
|
1839
|
+
} @else {
|
|
1840
|
+
<span
|
|
1841
|
+
(change)="onContentEditableChange($event, node)"
|
|
1842
|
+
[disabled]="!nodeDisplayEditable"
|
|
1843
|
+
[ngStyle]="node.style"
|
|
1844
|
+
class="grow-0 truncate"
|
|
1845
|
+
rxapContenteditable>
|
|
1846
|
+
{{ node.display }}
|
|
1847
|
+
</span>
|
|
1848
|
+
}
|
|
1849
|
+
@if (node.isLoading$ | async) {
|
|
1850
|
+
<mat-progress-spinner
|
|
1851
|
+
[diameter]="16"
|
|
1852
|
+
class="grow-0 pl-4"
|
|
1853
|
+
mode="indeterminate"
|
|
1854
|
+
></mat-progress-spinner>
|
|
1855
|
+
}
|
|
1856
|
+
</div>
|
|
1857
|
+
</mat-tree-node>
|
|
1858
|
+
</mat-tree>
|
|
1859
|
+
} @else {
|
|
1860
|
+
Load data source
|
|
1861
|
+
}
|
|
1915
1862
|
</div>
|
|
1916
1863
|
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1864
|
+
@if (showTreeNavigation()) {
|
|
1865
|
+
<div (mousedown)="onMousedown()"
|
|
1866
|
+
class="divider cursor-ew-resize px-3 grow-0">
|
|
1867
|
+
<mat-divider [vertical]="true" class="h-full"></mat-divider>
|
|
1868
|
+
</div>
|
|
1869
|
+
}
|
|
1921
1870
|
|
|
1922
1871
|
<div class="grow">
|
|
1923
|
-
|
|
1872
|
+
@if (portal(); as portal) {
|
|
1924
1873
|
<ng-template [cdkPortalOutlet]="portal"></ng-template>
|
|
1925
|
-
|
|
1874
|
+
}
|
|
1926
1875
|
<ng-content></ng-content>
|
|
1927
1876
|
</div>
|
|
1928
1877
|
</div>
|
|
1929
1878
|
</div>
|
|
1930
1879
|
|
|
1931
|
-
<ng-template #loading>Load data source</ng-template>
|
|
1932
1880
|
</code></pre>
|
|
1933
1881
|
</div>
|
|
1934
1882
|
|
|
@@ -1964,7 +1912,7 @@ export class TreeComponent<Data extends WithIdentifier & WithChildren &#x
|
|
|
1964
1912
|
<script src="../js/libs/htmlparser.js"></script>
|
|
1965
1913
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
1966
1914
|
<script>
|
|
1967
|
-
var COMPONENT_TEMPLATE = '<div><div class="grow flex flex-col gap-2 justify-start items-start"> <button (click)="toggleTreeNavigation()" class="!justify-start" mat-button type="button"> <span class="flex flex-row justify-start items-center gap-6">
|
|
1915
|
+
var COMPONENT_TEMPLATE = '<div><div class="grow flex flex-col gap-2 justify-start items-start"> <button (click)="toggleTreeNavigation()" class="!justify-start" mat-button type="button"> <span class="flex flex-row justify-start items-center gap-6"> @if (showTreeNavigation()) { <mat-icon>arrow_back</mat-icon> <span i18n>Hide tree navigation</span> } @if (!showTreeNavigation()) { <mat-icon>arrow_forward</mat-icon> <span i18n>Show tree navigation</span> } </span> </button> <div class="flex flex-row grow w-full"> <div #treeContainer [ngClass]="{ \'hidden\': !showTreeNavigation() }" [ngStyle]="{ maxWidth: dividerOffset(), minWidth: dividerOffset(), flexBasis: dividerOffset() }" class="w-fit grow-0 overflow-y-auto"> @if (!dataSource() || (dataSource().loading$ | async)) { <mat-progress-bar mode="indeterminate"></mat-progress-bar> } <ng-content select="[searchHeader]"></ng-content> @if (dataSource()) { <mat-tree [dataSource]="dataSource()" [treeControl]="treeControl"> <!-- Node without children --> <mat-tree-node *matTreeNodeDef="let node" matTreeNodePadding> <div class="flex flex-row justify-start items-center gap-2"> <mat-icon [ngClass]="{ \'hidden\': hideLeafIcon() }">subdirectory_arrow_right</mat-icon> @if (node.icon?.length) { @for (icon of node.icon; track icon) { <mat-icon [rxapIcon]="$any(icon)"></mat-icon> } } @if (multiple()) { <mat-checkbox (change)="node.toggleSelect()" [checked]="node.selected" [disabled]="!node.hasDetails" [ngStyle]="node.style" class="grow-0 truncate"> {{ node.display }} </mat-checkbox> } @if (!multiple()) { <button (click)="node.select()" [color]="node.selected ? \'primary\' : undefined" [disabled]="!node.hasDetails" [ngStyle]="node.style" class="grow-0 truncate" mat-button type="button" > {{ node.display }} </button> } </div> </mat-tree-node> <!-- Node with children --> <mat-tree-node *matTreeNodeDef="let node; when: hasChild" matTreeNodePadding> <button [attr.aria-label]="\'toggle \' + node.filename" mat-icon-button matTreeNodeToggle type="button"> <mat-icon class="mat-icon-rtl-mirror"> {{ treeControl.isExpanded(node) ? \'expand_more\' : \'chevron_right\' }} </mat-icon> </button> <div class="flex flex-row justify-start items-center gap-2"> @if (node.icon?.length) { @for (icon of node.icon; track icon) { <mat-icon [rxapIcon]="$any(icon)"></mat-icon> } } @else { <div></div> } @if (node.hasDetails) { <button (click)="node.select()" [color]="node.selected ? \'primary\' : undefined" [ngStyle]="node.style" class="grow-0 truncate" mat-button type="button" > {{ node.display }} </button> } @else { <span (change)="onContentEditableChange($event, node)" [disabled]="!nodeDisplayEditable" [ngStyle]="node.style" class="grow-0 truncate" rxapContenteditable> {{ node.display }} </span> } @if (node.isLoading$ | async) { <mat-progress-spinner [diameter]="16" class="grow-0 pl-4" mode="indeterminate" ></mat-progress-spinner> } </div> </mat-tree-node> </mat-tree> } @else { Load data source } </div> @if (showTreeNavigation()) { <div (mousedown)="onMousedown()" class="divider cursor-ew-resize px-3 grow-0"> <mat-divider [vertical]="true" class="h-full"></mat-divider> </div> } <div class="grow"> @if (portal(); as portal) { <ng-template [cdkPortalOutlet]="portal"></ng-template> } <ng-content></ng-content> </div> </div></div></div>'
|
|
1968
1916
|
var COMPONENTS = [{'name': 'TreeComponent', 'selector': 'rxap-tree'}];
|
|
1969
1917
|
var DIRECTIVES = [{'name': 'TreeContentDirective', 'selector': 'ng-template[rxapTreeContent]'}];
|
|
1970
1918
|
var ACTUAL_COMPONENT = {'name': 'TreeComponent'};
|