@exhaustive-ui/mcp 22.2.0 → 22.3.0
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/data/components/autocomplete.md +41 -41
- package/data/components/avatar.md +8 -4
- package/data/components/badge.md +6 -6
- package/data/components/blockui.md +2 -2
- package/data/components/button.md +2 -2
- package/data/components/cascadeselect.md +28 -28
- package/data/components/checkbox.md +1 -1
- package/data/components/colorpicker.md +9 -9
- package/data/components/confirmdialog.md +8 -8
- package/data/components/confirmpopup.md +5 -5
- package/data/components/contextmenu.md +6 -6
- package/data/components/dataview.md +14 -14
- package/data/components/datepicker.md +53 -52
- package/data/components/dialog.md +14 -14
- package/data/components/dock.md +1 -1
- package/data/components/fileinput.md +18 -18
- package/data/components/fileupload.md +9 -9
- package/data/components/floatlabel.md +26 -26
- package/data/components/focustrap.md +8 -8
- package/data/components/galleria.md +8 -8
- package/data/components/iconfield.md +40 -40
- package/data/components/iftalabel.md +18 -18
- package/data/components/imagecompare.md +4 -4
- package/data/components/inputgroup.md +73 -73
- package/data/components/inputmask.md +9 -9
- package/data/components/inputnumber.md +46 -46
- package/data/components/inputotp.md +13 -13
- package/data/components/inputtext.md +8 -8
- package/data/components/megamenu.md +6 -6
- package/data/components/message.md +1 -1
- package/data/components/metergroup.md +8 -8
- package/data/components/multiselect.md +34 -34
- package/data/components/orderlist.md +10 -10
- package/data/components/organizationchart.md +8 -4
- package/data/components/paginator.md +2 -2
- package/data/components/panelmenu.md +7 -7
- package/data/components/password.md +8 -8
- package/data/components/picklist.md +10 -10
- package/data/components/popover.md +6 -6
- package/data/components/progressbar.md +5 -5
- package/data/components/progressspinner.md +4 -2
- package/data/components/radiobutton.md +15 -15
- package/data/components/scrollpanel.md +4 -4
- package/data/components/scrolltop.md +2 -2
- package/data/components/select.md +24 -24
- package/data/components/selectbutton.md +14 -14
- package/data/components/slider.md +1 -1
- package/data/components/speeddial.md +18 -18
- package/data/components/splitbutton.md +57 -57
- package/data/components/splitter.md +6 -0
- package/data/components/stepper.md +10 -10
- package/data/components/table.md +174 -140
- package/data/components/tabs.md +64 -64
- package/data/components/textarea.md +8 -8
- package/data/components/tieredmenu.md +6 -6
- package/data/components/toast.md +2 -2
- package/data/components/togglebutton.md +11 -11
- package/data/components/toggleswitch.md +9 -9
- package/data/components/toolbar.md +4 -4
- package/data/components/tree.md +2 -2
- package/data/components/treeselect.md +33 -33
- package/data/components/treetable.md +136 -105
- package/data/components.json +770 -435
- package/data/llms-full.txt +1230 -1113
- package/data/llms.txt +1 -0
- package/data/manifest.json +788 -269
- package/data/pages/naming.md +27 -0
- package/data/pages/tailwind.md +1 -1
- package/data/snapshot.json +3 -3
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
18
18
|
|
|
19
19
|
@Component({
|
|
20
20
|
template: `
|
|
21
|
-
<p-
|
|
21
|
+
<p-tree-table [value]="files" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
22
22
|
<ng-template #header>
|
|
23
23
|
<tr>
|
|
24
24
|
<th>Name</th>
|
|
@@ -30,7 +30,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
30
30
|
<tr [ttRow]="rowNode">
|
|
31
31
|
<td>
|
|
32
32
|
<div class="flex items-center gap-2">
|
|
33
|
-
<p-
|
|
33
|
+
<p-tree-table-toggler [rowNode]="rowNode" />
|
|
34
34
|
<span>{{ rowData.name }}</span>
|
|
35
35
|
</div>
|
|
36
36
|
</td>
|
|
@@ -38,7 +38,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
38
38
|
<td>{{ rowData.type }}</td>
|
|
39
39
|
</tr>
|
|
40
40
|
</ng-template>
|
|
41
|
-
</p-
|
|
41
|
+
</p-tree-table>
|
|
42
42
|
`,
|
|
43
43
|
standalone: true,
|
|
44
44
|
imports: [TreeTableModule],
|
|
@@ -64,7 +64,7 @@ import { Product } from '@/domain/product';
|
|
|
64
64
|
|
|
65
65
|
@Component({
|
|
66
66
|
template: `
|
|
67
|
-
<p-
|
|
67
|
+
<p-tree-table [value]="sales" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
68
68
|
<ng-template #header>
|
|
69
69
|
<tr>
|
|
70
70
|
<th rowspan="3">Brand</th>
|
|
@@ -85,7 +85,7 @@ import { Product } from '@/domain/product';
|
|
|
85
85
|
<tr [ttRow]="rowNode">
|
|
86
86
|
<td>
|
|
87
87
|
<div class="flex items-center gap-2">
|
|
88
|
-
<p-
|
|
88
|
+
<p-tree-table-toggler [rowNode]="rowNode" />
|
|
89
89
|
<span>{{ rowData.brand }}</span>
|
|
90
90
|
</div>
|
|
91
91
|
</td>
|
|
@@ -102,7 +102,7 @@ import { Product } from '@/domain/product';
|
|
|
102
102
|
<td>$2,126,925</td>
|
|
103
103
|
</tr>
|
|
104
104
|
</ng-template>
|
|
105
|
-
</p-
|
|
105
|
+
</p-tree-table>
|
|
106
106
|
`,
|
|
107
107
|
standalone: true,
|
|
108
108
|
imports: [TreeTableModule]
|
|
@@ -384,7 +384,7 @@ interface Column {
|
|
|
384
384
|
|
|
385
385
|
@Component({
|
|
386
386
|
template: `
|
|
387
|
-
<p-
|
|
387
|
+
<p-tree-table [value]="files" [columns]="cols" [resizableColumns]="true" columnResizeMode="expand" showGridlines>
|
|
388
388
|
<ng-template #header let-columns>
|
|
389
389
|
<tr>
|
|
390
390
|
@for (col of columns; track col) {
|
|
@@ -400,7 +400,7 @@ interface Column {
|
|
|
400
400
|
<td>
|
|
401
401
|
@if (first) {
|
|
402
402
|
<div class="flex items-center gap-2">
|
|
403
|
-
<p-
|
|
403
|
+
<p-tree-table-toggler [rowNode]="rowNode"></p-tree-table-toggler>
|
|
404
404
|
<span>{{ rowData[col.field] }}</span>
|
|
405
405
|
</div>
|
|
406
406
|
} @else {
|
|
@@ -410,7 +410,7 @@ interface Column {
|
|
|
410
410
|
}
|
|
411
411
|
</tr>
|
|
412
412
|
</ng-template>
|
|
413
|
-
</p-
|
|
413
|
+
</p-tree-table>
|
|
414
414
|
`,
|
|
415
415
|
standalone: true,
|
|
416
416
|
imports: [TreeTableModule],
|
|
@@ -449,7 +449,7 @@ interface Column {
|
|
|
449
449
|
|
|
450
450
|
@Component({
|
|
451
451
|
template: `
|
|
452
|
-
<p-
|
|
452
|
+
<p-tree-table [value]="files" [columns]="cols" [resizableColumns]="true" [tableStyle]="{ 'min-width': '50rem' }" showGridlines>
|
|
453
453
|
<ng-template #header let-columns>
|
|
454
454
|
<tr>
|
|
455
455
|
@for (col of columns; track col) {
|
|
@@ -465,7 +465,7 @@ interface Column {
|
|
|
465
465
|
<td>
|
|
466
466
|
@if (first) {
|
|
467
467
|
<div class="flex items-center gap-2">
|
|
468
|
-
<p-
|
|
468
|
+
<p-tree-table-toggler [rowNode]="rowNode"></p-tree-table-toggler>
|
|
469
469
|
<span>{{ rowData[col.field] }}</span>
|
|
470
470
|
</div>
|
|
471
471
|
} @else {
|
|
@@ -475,7 +475,7 @@ interface Column {
|
|
|
475
475
|
}
|
|
476
476
|
</tr>
|
|
477
477
|
</ng-template>
|
|
478
|
-
</p-
|
|
478
|
+
</p-tree-table>
|
|
479
479
|
`,
|
|
480
480
|
standalone: true,
|
|
481
481
|
imports: [TreeTableModule],
|
|
@@ -515,7 +515,7 @@ interface Column {
|
|
|
515
515
|
|
|
516
516
|
@Component({
|
|
517
517
|
template: `
|
|
518
|
-
<p-
|
|
518
|
+
<p-tree-table [value]="files" [columns]="cols" [resizableColumns]="true" [scrollable]="true" scrollHeight="200px" [tableStyle]="{ 'min-width': '50rem' }" showGridlines>
|
|
519
519
|
<ng-template #colgroup let-columns>
|
|
520
520
|
<colgroup>
|
|
521
521
|
@for (col of columns; track col) {
|
|
@@ -538,7 +538,7 @@ interface Column {
|
|
|
538
538
|
<td>
|
|
539
539
|
@if (first) {
|
|
540
540
|
<div class="flex items-center gap-2">
|
|
541
|
-
<p-
|
|
541
|
+
<p-tree-table-toggler [rowNode]="rowNode"></p-tree-table-toggler>
|
|
542
542
|
<span>{{ rowData[col.field] }}</span>
|
|
543
543
|
</div>
|
|
544
544
|
} @else {
|
|
@@ -548,7 +548,7 @@ interface Column {
|
|
|
548
548
|
}
|
|
549
549
|
</tr>
|
|
550
550
|
</ng-template>
|
|
551
|
-
</p-
|
|
551
|
+
</p-tree-table>
|
|
552
552
|
`,
|
|
553
553
|
standalone: true,
|
|
554
554
|
imports: [TreeTableModule],
|
|
@@ -589,10 +589,10 @@ interface Column {
|
|
|
589
589
|
|
|
590
590
|
@Component({
|
|
591
591
|
template: `
|
|
592
|
-
<p-
|
|
592
|
+
<p-tree-table [value]="files" [columns]="selectedColumns" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
593
593
|
<ng-template #caption>
|
|
594
594
|
<div style="text-align:left">
|
|
595
|
-
<p-
|
|
595
|
+
<p-multi-select [options]="cols" [(ngModel)]="selectedColumns" optionLabel="header" selectedItemsLabel="{0} columns selected" [style]="{ width: '20em' }" placeholder="Choose Columns" display="chip" />
|
|
596
596
|
</div>
|
|
597
597
|
</ng-template>
|
|
598
598
|
<ng-template #header let-columns>
|
|
@@ -610,7 +610,7 @@ interface Column {
|
|
|
610
610
|
<td>
|
|
611
611
|
@if (first) {
|
|
612
612
|
<div class="flex items-center gap-2">
|
|
613
|
-
<p-
|
|
613
|
+
<p-tree-table-toggler [rowNode]="rowNode"></p-tree-table-toggler>
|
|
614
614
|
<span>{{ rowData[col.field] }}</span>
|
|
615
615
|
</div>
|
|
616
616
|
} @else {
|
|
@@ -620,7 +620,7 @@ interface Column {
|
|
|
620
620
|
}
|
|
621
621
|
</tr>
|
|
622
622
|
</ng-template>
|
|
623
|
-
</p-
|
|
623
|
+
</p-tree-table>
|
|
624
624
|
`,
|
|
625
625
|
standalone: true,
|
|
626
626
|
imports: [MultiSelectModule, TreeTableModule, FormsModule],
|
|
@@ -661,7 +661,7 @@ interface Column {
|
|
|
661
661
|
|
|
662
662
|
@Component({
|
|
663
663
|
template: `
|
|
664
|
-
<p-
|
|
664
|
+
<p-tree-table [value]="files" [columns]="cols" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
665
665
|
<ng-template #header let-columns>
|
|
666
666
|
<tr>
|
|
667
667
|
@for (col of columns; track col) {
|
|
@@ -677,7 +677,7 @@ interface Column {
|
|
|
677
677
|
<td [class]="{ 'line-through': col.field === 'size' && rowData.size.endsWith('kb') }">
|
|
678
678
|
@if (first) {
|
|
679
679
|
<div class="flex items-center gap-2">
|
|
680
|
-
<p-
|
|
680
|
+
<p-tree-table-toggler [rowNode]="rowNode"></p-tree-table-toggler>
|
|
681
681
|
<span>{{ rowData[col.field] }}</span>
|
|
682
682
|
</div>
|
|
683
683
|
} @else {
|
|
@@ -687,7 +687,7 @@ interface Column {
|
|
|
687
687
|
}
|
|
688
688
|
</tr>
|
|
689
689
|
</ng-template>
|
|
690
|
-
</p-
|
|
690
|
+
</p-tree-table>
|
|
691
691
|
`,
|
|
692
692
|
standalone: true,
|
|
693
693
|
imports: [TreeTableModule],
|
|
@@ -727,7 +727,7 @@ interface Column {
|
|
|
727
727
|
|
|
728
728
|
@Component({
|
|
729
729
|
template: `
|
|
730
|
-
<p-
|
|
730
|
+
<p-tree-table [value]="files" [columns]="cols" dataKey="name" [(contextMenuSelection)]="selectedNode" [contextMenu]="cm" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
731
731
|
<ng-template #header let-columns>
|
|
732
732
|
<tr>
|
|
733
733
|
@for (col of columns; track col) {
|
|
@@ -743,7 +743,7 @@ interface Column {
|
|
|
743
743
|
<td>
|
|
744
744
|
@if (first) {
|
|
745
745
|
<div class="flex items-center gap-2">
|
|
746
|
-
<p-
|
|
746
|
+
<p-tree-table-toggler [rowNode]="rowNode"></p-tree-table-toggler>
|
|
747
747
|
<span>{{ rowData[col.field] }}</span>
|
|
748
748
|
</div>
|
|
749
749
|
} @else {
|
|
@@ -753,7 +753,7 @@ interface Column {
|
|
|
753
753
|
}
|
|
754
754
|
</tr>
|
|
755
755
|
</ng-template>
|
|
756
|
-
</p-
|
|
756
|
+
</p-tree-table>
|
|
757
757
|
`,
|
|
758
758
|
standalone: true,
|
|
759
759
|
imports: [TreeTableModule],
|
|
@@ -803,7 +803,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
803
803
|
|
|
804
804
|
@Component({
|
|
805
805
|
template: `
|
|
806
|
-
<p-
|
|
806
|
+
<p-tree-table [value]="files" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
807
807
|
<ng-template #header>
|
|
808
808
|
<tr>
|
|
809
809
|
<th>Name</th>
|
|
@@ -815,7 +815,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
815
815
|
<tr [ttRow]="rowNode">
|
|
816
816
|
<td>
|
|
817
817
|
<div class="flex items-center gap-2">
|
|
818
|
-
<p-
|
|
818
|
+
<p-tree-table-toggler [rowNode]="rowNode" />
|
|
819
819
|
<span>{{ rowData.name }}</span>
|
|
820
820
|
</div>
|
|
821
821
|
</td>
|
|
@@ -823,7 +823,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
823
823
|
<td>{{ rowData.type }}</td>
|
|
824
824
|
</tr>
|
|
825
825
|
</ng-template>
|
|
826
|
-
</p-
|
|
826
|
+
</p-tree-table>
|
|
827
827
|
`,
|
|
828
828
|
standalone: true,
|
|
829
829
|
imports: [TreeTableModule],
|
|
@@ -866,7 +866,7 @@ interface Column {
|
|
|
866
866
|
|
|
867
867
|
@Component({
|
|
868
868
|
template: `
|
|
869
|
-
<p-
|
|
869
|
+
<p-tree-table [value]="files" [columns]="cols" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
870
870
|
<ng-template #header let-columns>
|
|
871
871
|
<tr>
|
|
872
872
|
@for (col of columns; track col) {
|
|
@@ -882,7 +882,7 @@ interface Column {
|
|
|
882
882
|
<td>
|
|
883
883
|
@if (first) {
|
|
884
884
|
<div class="flex items-center gap-2">
|
|
885
|
-
<p-
|
|
885
|
+
<p-tree-table-toggler [rowNode]="rowNode"></p-tree-table-toggler>
|
|
886
886
|
<span>{{ rowData[col.field] }}</span>
|
|
887
887
|
</div>
|
|
888
888
|
} @else {
|
|
@@ -892,7 +892,7 @@ interface Column {
|
|
|
892
892
|
}
|
|
893
893
|
</tr>
|
|
894
894
|
</ng-template>
|
|
895
|
-
</p-
|
|
895
|
+
</p-tree-table>
|
|
896
896
|
`,
|
|
897
897
|
standalone: true,
|
|
898
898
|
imports: [TreeTableModule],
|
|
@@ -933,7 +933,7 @@ interface Column {
|
|
|
933
933
|
|
|
934
934
|
@Component({
|
|
935
935
|
template: `
|
|
936
|
-
<p-
|
|
936
|
+
<p-tree-table [value]="files" [columns]="cols" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
937
937
|
<ng-template pTemplate="header" let-columns>
|
|
938
938
|
<tr>
|
|
939
939
|
<th *ngFor="let col of columns">
|
|
@@ -944,17 +944,17 @@ interface Column {
|
|
|
944
944
|
<ng-template pTemplate="body" let-rowNode let-rowData="rowData" let-columns="columns">
|
|
945
945
|
<tr [ttRow]="rowNode">
|
|
946
946
|
<td *ngFor="let col of columns; let i = index" ttEditableColumn [ttEditableColumnDisabled]="i == 0" [ngClass]="{ 'p-toggler-column': i === 0 }">
|
|
947
|
-
<p-
|
|
948
|
-
<p-
|
|
947
|
+
<p-tree-table-toggler [rowNode]="rowNode" *ngIf="i === 0" />
|
|
948
|
+
<p-tree-table-cell-editor>
|
|
949
949
|
<ng-template pTemplate="input">
|
|
950
950
|
<input pInputText type="text" [(ngModel)]="rowData[col.field]" />
|
|
951
951
|
</ng-template>
|
|
952
952
|
<ng-template pTemplate="output">{{ rowData[col.field] }}</ng-template>
|
|
953
|
-
</p-
|
|
953
|
+
</p-tree-table-cell-editor>
|
|
954
954
|
</td>
|
|
955
955
|
</tr>
|
|
956
956
|
</ng-template>
|
|
957
|
-
</p-
|
|
957
|
+
</p-tree-table>
|
|
958
958
|
`,
|
|
959
959
|
standalone: true,
|
|
960
960
|
imports: [TreeTableModule, InputTextModule, FormsModule],
|
|
@@ -996,13 +996,13 @@ interface Column {
|
|
|
996
996
|
|
|
997
997
|
@Component({
|
|
998
998
|
template: `
|
|
999
|
-
<p-
|
|
999
|
+
<p-tree-table #tt [value]="files" [columns]="cols" [filterMode]="filterMode" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
1000
1000
|
<ng-template #caption>
|
|
1001
1001
|
<div class="flex justify-end items-center">
|
|
1002
|
-
<p-
|
|
1003
|
-
<p-
|
|
1002
|
+
<p-icon-field>
|
|
1003
|
+
<p-input-icon class="pi pi-search" />
|
|
1004
1004
|
<input type="text" pInputText placeholder="Global Search" (input)="tt.filterGlobal($event.target.value, 'contains')" />
|
|
1005
|
-
</p-
|
|
1005
|
+
</p-icon-field>
|
|
1006
1006
|
</div>
|
|
1007
1007
|
</ng-template>
|
|
1008
1008
|
<ng-template #header let-columns>
|
|
@@ -1027,7 +1027,7 @@ interface Column {
|
|
|
1027
1027
|
<td>
|
|
1028
1028
|
@if (first) {
|
|
1029
1029
|
<div class="flex items-center gap-2">
|
|
1030
|
-
<p-
|
|
1030
|
+
<p-tree-table-toggler [rowNode]="rowNode"></p-tree-table-toggler>
|
|
1031
1031
|
<span>{{ rowData[col.field] }}</span>
|
|
1032
1032
|
</div>
|
|
1033
1033
|
} @else {
|
|
@@ -1042,7 +1042,7 @@ interface Column {
|
|
|
1042
1042
|
<td [attr.colspan]="cols?.length">No data found.</td>
|
|
1043
1043
|
</tr>
|
|
1044
1044
|
</ng-template>
|
|
1045
|
-
</p-
|
|
1045
|
+
</p-tree-table>
|
|
1046
1046
|
`,
|
|
1047
1047
|
standalone: true,
|
|
1048
1048
|
imports: [IconFieldModule, InputIconModule, TreeTableModule, InputTextModule],
|
|
@@ -1083,7 +1083,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
1083
1083
|
<p-button label="Show" icon="pi pi-external-link" (onClick)="dialogVisible = true" />
|
|
1084
1084
|
<p-dialog [(visible)]="dialogVisible" header="Flex Scroll" [style]="{ width: '75vw' }" maximizable modal [contentStyle]="{ height: '300px' }">
|
|
1085
1085
|
<ng-template #content>
|
|
1086
|
-
<p-
|
|
1086
|
+
<p-tree-table [value]="files" [scrollable]="true" scrollHeight="flex" [tableStyle]="{ 'min-width': '50rem' }">
|
|
1087
1087
|
<ng-template #header>
|
|
1088
1088
|
<tr>
|
|
1089
1089
|
<th>Name</th>
|
|
@@ -1095,7 +1095,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
1095
1095
|
<tr [ttRow]="rowNode">
|
|
1096
1096
|
<td>
|
|
1097
1097
|
<div class="flex items-center gap-2">
|
|
1098
|
-
<p-
|
|
1098
|
+
<p-tree-table-toggler [rowNode]="rowNode" />
|
|
1099
1099
|
<span>{{ rowData.name }}</span>
|
|
1100
1100
|
</div>
|
|
1101
1101
|
</td>
|
|
@@ -1103,7 +1103,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
1103
1103
|
<td>{{ rowData.type }}</td>
|
|
1104
1104
|
</tr>
|
|
1105
1105
|
</ng-template>
|
|
1106
|
-
</p-
|
|
1106
|
+
</p-tree-table>
|
|
1107
1107
|
</ng-template>
|
|
1108
1108
|
<ng-template #footer>
|
|
1109
1109
|
<p-button label="Ok" icon="pi pi-check" (onClick)="dialogVisible = false" />
|
|
@@ -1139,7 +1139,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
1139
1139
|
|
|
1140
1140
|
@Component({
|
|
1141
1141
|
template: `
|
|
1142
|
-
<p-
|
|
1142
|
+
<p-tree-table [value]="files" [scrollable]="true" showGridlines [tableStyle]="{ 'min-width': '50rem' }">
|
|
1143
1143
|
<ng-template #header>
|
|
1144
1144
|
<tr>
|
|
1145
1145
|
<th>Name</th>
|
|
@@ -1151,7 +1151,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
1151
1151
|
<tr [ttRow]="rowNode">
|
|
1152
1152
|
<td>
|
|
1153
1153
|
<div class="flex items-center gap-2">
|
|
1154
|
-
<p-
|
|
1154
|
+
<p-tree-table-toggler [rowNode]="rowNode" />
|
|
1155
1155
|
<span>{{ rowData.name }}</span>
|
|
1156
1156
|
</div>
|
|
1157
1157
|
</td>
|
|
@@ -1159,7 +1159,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
1159
1159
|
<td>{{ rowData.type }}</td>
|
|
1160
1160
|
</tr>
|
|
1161
1161
|
</ng-template>
|
|
1162
|
-
</p-
|
|
1162
|
+
</p-tree-table>
|
|
1163
1163
|
`,
|
|
1164
1164
|
standalone: true,
|
|
1165
1165
|
imports: [TreeTableModule],
|
|
@@ -1193,7 +1193,7 @@ interface Column {
|
|
|
1193
1193
|
@Component({
|
|
1194
1194
|
template: `
|
|
1195
1195
|
<div class="card">
|
|
1196
|
-
<p-
|
|
1196
|
+
<p-tree-table
|
|
1197
1197
|
[value]="files"
|
|
1198
1198
|
[columns]="cols"
|
|
1199
1199
|
[paginator]="true"
|
|
@@ -1221,7 +1221,7 @@ interface Column {
|
|
|
1221
1221
|
<td>
|
|
1222
1222
|
@if (first) {
|
|
1223
1223
|
<div class="flex items-center gap-2">
|
|
1224
|
-
<p-
|
|
1224
|
+
<p-tree-table-toggler [rowNode]="rowNode"></p-tree-table-toggler>
|
|
1225
1225
|
<span>{{ rowData[col.field] }}</span>
|
|
1226
1226
|
</div>
|
|
1227
1227
|
} @else {
|
|
@@ -1231,7 +1231,7 @@ interface Column {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
</tr>
|
|
1233
1233
|
</ng-template>
|
|
1234
|
-
</p-
|
|
1234
|
+
</p-tree-table>
|
|
1235
1235
|
</div>
|
|
1236
1236
|
`,
|
|
1237
1237
|
standalone: true,
|
|
@@ -1322,7 +1322,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
1322
1322
|
@Component({
|
|
1323
1323
|
template: `
|
|
1324
1324
|
<div class="card">
|
|
1325
|
-
<p-
|
|
1325
|
+
<p-tree-table [value]="files" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }" [loading]="true">
|
|
1326
1326
|
<ng-template #header>
|
|
1327
1327
|
<tr>
|
|
1328
1328
|
<th>Name</th>
|
|
@@ -1334,7 +1334,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
1334
1334
|
<tr [ttRow]="rowNode">
|
|
1335
1335
|
<td>
|
|
1336
1336
|
<div class="flex items-center gap-2">
|
|
1337
|
-
<p-
|
|
1337
|
+
<p-tree-table-toggler [rowNode]="rowNode" />
|
|
1338
1338
|
<span>{{ rowData.name }}</span>
|
|
1339
1339
|
</div>
|
|
1340
1340
|
</td>
|
|
@@ -1342,7 +1342,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
1342
1342
|
<td>{{ rowData.type }}</td>
|
|
1343
1343
|
</tr>
|
|
1344
1344
|
</ng-template>
|
|
1345
|
-
</p-
|
|
1345
|
+
</p-tree-table>
|
|
1346
1346
|
</div>
|
|
1347
1347
|
`,
|
|
1348
1348
|
standalone: true,
|
|
@@ -1373,7 +1373,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
1373
1373
|
@Component({
|
|
1374
1374
|
template: `
|
|
1375
1375
|
<div class="card">
|
|
1376
|
-
<p-
|
|
1376
|
+
<p-tree-table [value]="files()" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
1377
1377
|
<ng-template #header>
|
|
1378
1378
|
<tr>
|
|
1379
1379
|
<th>Name</th>
|
|
@@ -1388,7 +1388,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
1388
1388
|
<td><p-skeleton /></td>
|
|
1389
1389
|
</tr>
|
|
1390
1390
|
</ng-template>
|
|
1391
|
-
</p-
|
|
1391
|
+
</p-tree-table>
|
|
1392
1392
|
</div>
|
|
1393
1393
|
`,
|
|
1394
1394
|
standalone: true,
|
|
@@ -1421,7 +1421,7 @@ interface Column {
|
|
|
1421
1421
|
|
|
1422
1422
|
@Component({
|
|
1423
1423
|
template: `
|
|
1424
|
-
<p-
|
|
1424
|
+
<p-tree-table [value]="files" [columns]="cols" [paginator]="true" [rows]="5" [rowsPerPageOptions]="[5, 10, 25]" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
1425
1425
|
<ng-template #header let-columns>
|
|
1426
1426
|
<tr>
|
|
1427
1427
|
@for (col of columns; track col) {
|
|
@@ -1437,7 +1437,7 @@ interface Column {
|
|
|
1437
1437
|
<td>
|
|
1438
1438
|
@if (first) {
|
|
1439
1439
|
<div class="flex items-center gap-2">
|
|
1440
|
-
<p-
|
|
1440
|
+
<p-tree-table-toggler [rowNode]="rowNode"></p-tree-table-toggler>
|
|
1441
1441
|
<span>{{ rowData[col.field] }}</span>
|
|
1442
1442
|
</div>
|
|
1443
1443
|
} @else {
|
|
@@ -1447,7 +1447,7 @@ interface Column {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
</tr>
|
|
1449
1449
|
</ng-template>
|
|
1450
|
-
</p-
|
|
1450
|
+
</p-tree-table>
|
|
1451
1451
|
`,
|
|
1452
1452
|
standalone: true,
|
|
1453
1453
|
imports: [TreeTableModule]
|
|
@@ -1504,7 +1504,7 @@ interface Column {
|
|
|
1504
1504
|
|
|
1505
1505
|
@Component({
|
|
1506
1506
|
template: `
|
|
1507
|
-
<p-
|
|
1507
|
+
<p-tree-table [value]="files" [columns]="cols" [paginator]="true" [rows]="10" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
1508
1508
|
<ng-template #header let-columns>
|
|
1509
1509
|
<tr>
|
|
1510
1510
|
@for (col of columns; track col) {
|
|
@@ -1520,7 +1520,7 @@ interface Column {
|
|
|
1520
1520
|
<td>
|
|
1521
1521
|
@if (first) {
|
|
1522
1522
|
<div class="flex items-center gap-2">
|
|
1523
|
-
<p-
|
|
1523
|
+
<p-tree-table-toggler [rowNode]="rowNode"></p-tree-table-toggler>
|
|
1524
1524
|
<span>{{ rowData[col.field] }}</span>
|
|
1525
1525
|
</div>
|
|
1526
1526
|
} @else {
|
|
@@ -1536,7 +1536,7 @@ interface Column {
|
|
|
1536
1536
|
<ng-template #paginatorright>
|
|
1537
1537
|
<p-button icon="pi pi-download" text />
|
|
1538
1538
|
</ng-template>
|
|
1539
|
-
</p-
|
|
1539
|
+
</p-tree-table>
|
|
1540
1540
|
`,
|
|
1541
1541
|
standalone: true,
|
|
1542
1542
|
imports: [ButtonModule, TreeTableModule]
|
|
@@ -1592,7 +1592,7 @@ interface Column {
|
|
|
1592
1592
|
|
|
1593
1593
|
@Component({
|
|
1594
1594
|
template: `
|
|
1595
|
-
<p-
|
|
1595
|
+
<p-tree-table [value]="files" [columns]="cols" [reorderableColumns]="true" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
1596
1596
|
<ng-template #header let-columns>
|
|
1597
1597
|
<tr>
|
|
1598
1598
|
@for (col of columns; track col) {
|
|
@@ -1608,7 +1608,7 @@ interface Column {
|
|
|
1608
1608
|
<td>
|
|
1609
1609
|
@if (first) {
|
|
1610
1610
|
<div class="flex items-center gap-2">
|
|
1611
|
-
<p-
|
|
1611
|
+
<p-tree-table-toggler [rowNode]="rowNode"></p-tree-table-toggler>
|
|
1612
1612
|
<span>{{ rowData[col.field] }}</span>
|
|
1613
1613
|
</div>
|
|
1614
1614
|
} @else {
|
|
@@ -1618,7 +1618,7 @@ interface Column {
|
|
|
1618
1618
|
}
|
|
1619
1619
|
</tr>
|
|
1620
1620
|
</ng-template>
|
|
1621
|
-
</p-
|
|
1621
|
+
</p-tree-table>
|
|
1622
1622
|
`,
|
|
1623
1623
|
standalone: true,
|
|
1624
1624
|
imports: [TreeTableModule],
|
|
@@ -1657,7 +1657,7 @@ interface Column {
|
|
|
1657
1657
|
|
|
1658
1658
|
@Component({
|
|
1659
1659
|
template: `
|
|
1660
|
-
<p-
|
|
1660
|
+
<p-tree-table [value]="files" [columns]="scrollableCols" [frozenColumns]="frozenCols" [scrollable]="true" scrollHeight="250px" frozenWidth="200px" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
1661
1661
|
<ng-template #colgroup let-columns>
|
|
1662
1662
|
<colgroup>
|
|
1663
1663
|
@for (col of columns; track col) {
|
|
@@ -1687,13 +1687,13 @@ interface Column {
|
|
|
1687
1687
|
<tr [ttRow]="rowNode" style="height: 57px">
|
|
1688
1688
|
<td>
|
|
1689
1689
|
<div class="flex items-center gap-2">
|
|
1690
|
-
<p-
|
|
1690
|
+
<p-tree-table-toggler [rowNode]="rowNode" />
|
|
1691
1691
|
<span class="font-bold">{{ rowData.name }}</span>
|
|
1692
1692
|
</div>
|
|
1693
1693
|
</td>
|
|
1694
1694
|
</tr>
|
|
1695
1695
|
</ng-template>
|
|
1696
|
-
</p-
|
|
1696
|
+
</p-tree-table>
|
|
1697
1697
|
`,
|
|
1698
1698
|
standalone: true,
|
|
1699
1699
|
imports: [TreeTableModule],
|
|
@@ -1743,7 +1743,7 @@ interface Column {
|
|
|
1743
1743
|
|
|
1744
1744
|
@Component({
|
|
1745
1745
|
template: `
|
|
1746
|
-
<p-
|
|
1746
|
+
<p-tree-table [value]="files" [columns]="cols" [scrollable]="true" scrollHeight="250px" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
1747
1747
|
<ng-template #colgroup let-columns>
|
|
1748
1748
|
<colgroup>
|
|
1749
1749
|
@for (col of columns; track col) {
|
|
@@ -1766,7 +1766,7 @@ interface Column {
|
|
|
1766
1766
|
<td>
|
|
1767
1767
|
@if (first) {
|
|
1768
1768
|
<div class="flex items-center gap-2">
|
|
1769
|
-
<p-
|
|
1769
|
+
<p-tree-table-toggler [rowNode]="rowNode"></p-tree-table-toggler>
|
|
1770
1770
|
<span>{{ rowData[col.field] }}</span>
|
|
1771
1771
|
</div>
|
|
1772
1772
|
} @else {
|
|
@@ -1776,7 +1776,7 @@ interface Column {
|
|
|
1776
1776
|
}
|
|
1777
1777
|
</tr>
|
|
1778
1778
|
</ng-template>
|
|
1779
|
-
</p-
|
|
1779
|
+
</p-tree-table>
|
|
1780
1780
|
`,
|
|
1781
1781
|
standalone: true,
|
|
1782
1782
|
imports: [TreeTableModule],
|
|
@@ -1815,7 +1815,7 @@ interface Column {
|
|
|
1815
1815
|
|
|
1816
1816
|
@Component({
|
|
1817
1817
|
template: `
|
|
1818
|
-
<p-
|
|
1818
|
+
<p-tree-table [value]="files" [columns]="cols" [scrollable]="true" scrollHeight="200px" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
1819
1819
|
<ng-template #header let-columns>
|
|
1820
1820
|
<tr>
|
|
1821
1821
|
@for (col of columns; track col) {
|
|
@@ -1831,7 +1831,7 @@ interface Column {
|
|
|
1831
1831
|
<td>
|
|
1832
1832
|
@if (first) {
|
|
1833
1833
|
<div class="flex items-center gap-2">
|
|
1834
|
-
<p-
|
|
1834
|
+
<p-tree-table-toggler [rowNode]="rowNode"></p-tree-table-toggler>
|
|
1835
1835
|
<span>{{ rowData[col.field] }}</span>
|
|
1836
1836
|
</div>
|
|
1837
1837
|
} @else {
|
|
@@ -1841,7 +1841,7 @@ interface Column {
|
|
|
1841
1841
|
}
|
|
1842
1842
|
</tr>
|
|
1843
1843
|
</ng-template>
|
|
1844
|
-
</p-
|
|
1844
|
+
</p-tree-table>
|
|
1845
1845
|
`,
|
|
1846
1846
|
standalone: true,
|
|
1847
1847
|
imports: [TreeTableModule],
|
|
@@ -1880,7 +1880,7 @@ interface Column {
|
|
|
1880
1880
|
|
|
1881
1881
|
@Component({
|
|
1882
1882
|
template: `
|
|
1883
|
-
<p-
|
|
1883
|
+
<p-tree-table [value]="files" [columns]="cols" selectionMode="checkbox" [(selectionKeys)]="selectionKeys" dataKey="key" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
1884
1884
|
<ng-template #header let-columns>
|
|
1885
1885
|
<tr>
|
|
1886
1886
|
@for (col of columns; track col) {
|
|
@@ -1896,8 +1896,8 @@ interface Column {
|
|
|
1896
1896
|
<td>
|
|
1897
1897
|
@if (first) {
|
|
1898
1898
|
<div class="flex items-center gap-2">
|
|
1899
|
-
<p-
|
|
1900
|
-
<p-
|
|
1899
|
+
<p-tree-table-toggler [rowNode]="rowNode" />
|
|
1900
|
+
<p-tree-table-checkbox [value]="rowNode" />
|
|
1901
1901
|
<span>{{ rowData[col.field] }}</span>
|
|
1902
1902
|
</div>
|
|
1903
1903
|
} @else {
|
|
@@ -1907,7 +1907,7 @@ interface Column {
|
|
|
1907
1907
|
}
|
|
1908
1908
|
</tr>
|
|
1909
1909
|
</ng-template>
|
|
1910
|
-
</p-
|
|
1910
|
+
</p-tree-table>
|
|
1911
1911
|
`,
|
|
1912
1912
|
standalone: true,
|
|
1913
1913
|
imports: [TreeTableModule],
|
|
@@ -1972,7 +1972,7 @@ interface NodeEvent {
|
|
|
1972
1972
|
|
|
1973
1973
|
@Component({
|
|
1974
1974
|
template: `
|
|
1975
|
-
<p-
|
|
1975
|
+
<p-tree-table
|
|
1976
1976
|
[value]="files"
|
|
1977
1977
|
[columns]="cols"
|
|
1978
1978
|
selectionMode="single"
|
|
@@ -1998,7 +1998,7 @@ interface NodeEvent {
|
|
|
1998
1998
|
<td>
|
|
1999
1999
|
@if (first) {
|
|
2000
2000
|
<div class="flex items-center gap-2">
|
|
2001
|
-
<p-
|
|
2001
|
+
<p-tree-table-toggler [rowNode]="rowNode"></p-tree-table-toggler>
|
|
2002
2002
|
<span>{{ rowData[col.field] }}</span>
|
|
2003
2003
|
</div>
|
|
2004
2004
|
} @else {
|
|
@@ -2008,7 +2008,7 @@ interface NodeEvent {
|
|
|
2008
2008
|
}
|
|
2009
2009
|
</tr>
|
|
2010
2010
|
</ng-template>
|
|
2011
|
-
</p-
|
|
2011
|
+
</p-tree-table>
|
|
2012
2012
|
`,
|
|
2013
2013
|
standalone: true,
|
|
2014
2014
|
imports: [TreeTableModule],
|
|
@@ -2058,7 +2058,7 @@ interface Column {
|
|
|
2058
2058
|
|
|
2059
2059
|
@Component({
|
|
2060
2060
|
template: `
|
|
2061
|
-
<p-
|
|
2061
|
+
<p-tree-table [value]="files" [columns]="cols" selectionMode="multiple" [(selection)]="selectedNodes" dataKey="name" [metaKeySelection]="metaKeySelection" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
2062
2062
|
<ng-template #header let-columns>
|
|
2063
2063
|
<tr>
|
|
2064
2064
|
@for (col of columns; track col) {
|
|
@@ -2074,7 +2074,7 @@ interface Column {
|
|
|
2074
2074
|
<td>
|
|
2075
2075
|
@if (first) {
|
|
2076
2076
|
<div class="flex items-center gap-2">
|
|
2077
|
-
<p-
|
|
2077
|
+
<p-tree-table-toggler [rowNode]="rowNode"></p-tree-table-toggler>
|
|
2078
2078
|
<span>{{ rowData[col.field] }}</span>
|
|
2079
2079
|
</div>
|
|
2080
2080
|
} @else {
|
|
@@ -2084,7 +2084,7 @@ interface Column {
|
|
|
2084
2084
|
}
|
|
2085
2085
|
</tr>
|
|
2086
2086
|
</ng-template>
|
|
2087
|
-
</p-
|
|
2087
|
+
</p-tree-table>
|
|
2088
2088
|
`,
|
|
2089
2089
|
standalone: true,
|
|
2090
2090
|
imports: [TreeTableModule],
|
|
@@ -2125,7 +2125,7 @@ interface Column {
|
|
|
2125
2125
|
|
|
2126
2126
|
@Component({
|
|
2127
2127
|
template: `
|
|
2128
|
-
<p-
|
|
2128
|
+
<p-tree-table [value]="files" [columns]="cols" selectionMode="single" [metaKeySelection]="metaKeySelection" [(selection)]="selectedNode" dataKey="name" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
2129
2129
|
<ng-template #header let-columns>
|
|
2130
2130
|
<tr>
|
|
2131
2131
|
@for (col of columns; track col) {
|
|
@@ -2141,7 +2141,7 @@ interface Column {
|
|
|
2141
2141
|
<td>
|
|
2142
2142
|
@if (first) {
|
|
2143
2143
|
<div class="flex items-center gap-2">
|
|
2144
|
-
<p-
|
|
2144
|
+
<p-tree-table-toggler [rowNode]="rowNode"></p-tree-table-toggler>
|
|
2145
2145
|
<span>{{ rowData[col.field] }}</span>
|
|
2146
2146
|
</div>
|
|
2147
2147
|
} @else {
|
|
@@ -2151,7 +2151,7 @@ interface Column {
|
|
|
2151
2151
|
}
|
|
2152
2152
|
</tr>
|
|
2153
2153
|
</ng-template>
|
|
2154
|
-
</p-
|
|
2154
|
+
</p-tree-table>
|
|
2155
2155
|
`,
|
|
2156
2156
|
standalone: true,
|
|
2157
2157
|
imports: [TreeTableModule],
|
|
@@ -2187,7 +2187,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
2187
2187
|
|
|
2188
2188
|
@Component({
|
|
2189
2189
|
template: `
|
|
2190
|
-
<p-
|
|
2190
|
+
<p-tree-table [value]="files" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }" [class]="selectedSize">
|
|
2191
2191
|
<ng-template #header>
|
|
2192
2192
|
<tr>
|
|
2193
2193
|
<th>Name</th>
|
|
@@ -2199,7 +2199,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
2199
2199
|
<tr [ttRow]="rowNode">
|
|
2200
2200
|
<td>
|
|
2201
2201
|
<div class="flex items-center gap-2">
|
|
2202
|
-
<p-
|
|
2202
|
+
<p-tree-table-toggler [rowNode]="rowNode" />
|
|
2203
2203
|
<span>{{ rowData.name }}</span>
|
|
2204
2204
|
</div>
|
|
2205
2205
|
</td>
|
|
@@ -2207,7 +2207,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
2207
2207
|
<td>{{ rowData.type }}</td>
|
|
2208
2208
|
</tr>
|
|
2209
2209
|
</ng-template>
|
|
2210
|
-
</p-
|
|
2210
|
+
</p-tree-table>
|
|
2211
2211
|
`,
|
|
2212
2212
|
standalone: true,
|
|
2213
2213
|
imports: [TreeTableModule],
|
|
@@ -2247,14 +2247,14 @@ interface Column {
|
|
|
2247
2247
|
|
|
2248
2248
|
@Component({
|
|
2249
2249
|
template: `
|
|
2250
|
-
<p-
|
|
2250
|
+
<p-tree-table [value]="files" [columns]="cols" sortMode="multiple" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
2251
2251
|
<ng-template #header let-columns>
|
|
2252
2252
|
<tr>
|
|
2253
2253
|
@for (col of columns; track col) {
|
|
2254
2254
|
<th [ttSortableColumn]="col.field">
|
|
2255
2255
|
<div class="flex items-center gap-2">
|
|
2256
2256
|
{{ col.header }}
|
|
2257
|
-
<p-
|
|
2257
|
+
<p-tree-table-sort-icon [field]="col.field" />
|
|
2258
2258
|
</div>
|
|
2259
2259
|
</th>
|
|
2260
2260
|
}
|
|
@@ -2266,7 +2266,7 @@ interface Column {
|
|
|
2266
2266
|
<td>
|
|
2267
2267
|
@if (first) {
|
|
2268
2268
|
<div class="flex items-center gap-2">
|
|
2269
|
-
<p-
|
|
2269
|
+
<p-tree-table-toggler [rowNode]="rowNode"></p-tree-table-toggler>
|
|
2270
2270
|
<span>{{ rowData[col.field] }}</span>
|
|
2271
2271
|
</div>
|
|
2272
2272
|
} @else {
|
|
@@ -2276,7 +2276,7 @@ interface Column {
|
|
|
2276
2276
|
}
|
|
2277
2277
|
</tr>
|
|
2278
2278
|
</ng-template>
|
|
2279
|
-
</p-
|
|
2279
|
+
</p-tree-table>
|
|
2280
2280
|
`,
|
|
2281
2281
|
standalone: true,
|
|
2282
2282
|
imports: [TreeTableModule],
|
|
@@ -2316,7 +2316,7 @@ interface Column {
|
|
|
2316
2316
|
|
|
2317
2317
|
@Component({
|
|
2318
2318
|
template: `
|
|
2319
|
-
<p-
|
|
2319
|
+
<p-tree-table
|
|
2320
2320
|
#tt
|
|
2321
2321
|
[value]="files"
|
|
2322
2322
|
(sortFunction)="customSort($event)"
|
|
@@ -2333,19 +2333,19 @@ interface Column {
|
|
|
2333
2333
|
<tr>
|
|
2334
2334
|
<th *ngFor="let col of columns" [ttSortableColumn]="col.field">
|
|
2335
2335
|
{{ col.header }}
|
|
2336
|
-
<p-
|
|
2336
|
+
<p-tree-table-sort-icon [field]="col.field" />
|
|
2337
2337
|
</th>
|
|
2338
2338
|
</tr>
|
|
2339
2339
|
</ng-template>
|
|
2340
2340
|
<ng-template pTemplate="body" let-rowNode let-rowData="rowData" let-columns="columns">
|
|
2341
2341
|
<tr [ttRow]="rowNode" [ttSelectableRow]="rowNode">
|
|
2342
2342
|
<td *ngFor="let col of columns; let i = index">
|
|
2343
|
-
<p-
|
|
2343
|
+
<p-tree-table-toggler [rowNode]="rowNode" *ngIf="i === 0" />
|
|
2344
2344
|
{{ rowData[col.field] }}
|
|
2345
2345
|
</td>
|
|
2346
2346
|
</tr>
|
|
2347
2347
|
</ng-template>
|
|
2348
|
-
</p-
|
|
2348
|
+
</p-tree-table>
|
|
2349
2349
|
`,
|
|
2350
2350
|
standalone: true,
|
|
2351
2351
|
imports: [TreeTableModule],
|
|
@@ -2420,14 +2420,14 @@ interface Column {
|
|
|
2420
2420
|
|
|
2421
2421
|
@Component({
|
|
2422
2422
|
template: `
|
|
2423
|
-
<p-
|
|
2423
|
+
<p-tree-table [value]="files" [columns]="cols" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
2424
2424
|
<ng-template #header let-columns>
|
|
2425
2425
|
<tr>
|
|
2426
2426
|
@for (col of columns; track col) {
|
|
2427
2427
|
<th [ttSortableColumn]="col.field">
|
|
2428
2428
|
<div class="flex items-center gap-2">
|
|
2429
2429
|
{{ col.header }}
|
|
2430
|
-
<p-
|
|
2430
|
+
<p-tree-table-sort-icon [field]="col.field" />
|
|
2431
2431
|
</div>
|
|
2432
2432
|
</th>
|
|
2433
2433
|
}
|
|
@@ -2439,7 +2439,7 @@ interface Column {
|
|
|
2439
2439
|
<td>
|
|
2440
2440
|
@if (first) {
|
|
2441
2441
|
<div class="flex items-center gap-2">
|
|
2442
|
-
<p-
|
|
2442
|
+
<p-tree-table-toggler [rowNode]="rowNode"></p-tree-table-toggler>
|
|
2443
2443
|
<span>{{ rowData[col.field] }}</span>
|
|
2444
2444
|
</div>
|
|
2445
2445
|
} @else {
|
|
@@ -2449,7 +2449,7 @@ interface Column {
|
|
|
2449
2449
|
}
|
|
2450
2450
|
</tr>
|
|
2451
2451
|
</ng-template>
|
|
2452
|
-
</p-
|
|
2452
|
+
</p-tree-table>
|
|
2453
2453
|
`,
|
|
2454
2454
|
standalone: true,
|
|
2455
2455
|
imports: [TreeTableModule],
|
|
@@ -2489,7 +2489,7 @@ interface Column {
|
|
|
2489
2489
|
|
|
2490
2490
|
@Component({
|
|
2491
2491
|
template: `
|
|
2492
|
-
<p-
|
|
2492
|
+
<p-tree-table [value]="files" [columns]="cols" [tableStyle]="{ 'min-width': '50rem' }">
|
|
2493
2493
|
<ng-template #caption><div class="text-xl font-bold">File Viewer</div> </ng-template>
|
|
2494
2494
|
<ng-template #header let-columns>
|
|
2495
2495
|
<tr>
|
|
@@ -2506,7 +2506,7 @@ interface Column {
|
|
|
2506
2506
|
<td>
|
|
2507
2507
|
@if (first) {
|
|
2508
2508
|
<div class="flex items-center gap-2">
|
|
2509
|
-
<p-
|
|
2509
|
+
<p-tree-table-toggler [rowNode]="rowNode" />
|
|
2510
2510
|
<span>{{ rowData[col.field] }}</span>
|
|
2511
2511
|
</div>
|
|
2512
2512
|
} @else if (last) {
|
|
@@ -2526,7 +2526,7 @@ interface Column {
|
|
|
2526
2526
|
<p-button icon="pi pi-refresh" label="Reload" severity="warn" />
|
|
2527
2527
|
</div>
|
|
2528
2528
|
</ng-template>
|
|
2529
|
-
</p-
|
|
2529
|
+
</p-tree-table>
|
|
2530
2530
|
`,
|
|
2531
2531
|
standalone: true,
|
|
2532
2532
|
imports: [ButtonModule, TreeTableModule],
|
|
@@ -2645,6 +2645,37 @@ TreeTable is used to display hierarchical data in tabular format.
|
|
|
2645
2645
|
| onEditCancel | event: TreeTableEditEvent | Callback to invoke when cell edit is cancelled with escape key. |
|
|
2646
2646
|
| selectionKeysChange | value: any | Callback to invoke when selectionKeys are changed. |
|
|
2647
2647
|
|
|
2648
|
+
### Templates
|
|
2649
|
+
|
|
2650
|
+
| Name | Type | Description |
|
|
2651
|
+
|------|------|-------------|
|
|
2652
|
+
| colgroup | TemplateRef<TreeTableColumnsTemplateContext> | Custom colgroup element. |
|
|
2653
|
+
| caption | TemplateRef<void> | Custom caption, rendered above the table. |
|
|
2654
|
+
| header | TemplateRef<TreeTableColumnsTemplateContext> | Custom header rows, rendered in the thead. |
|
|
2655
|
+
| body | TemplateRef<TreeTableBodyTemplateContext> | Custom row, rendered for each visible node. |
|
|
2656
|
+
| footer | TemplateRef<TreeTableColumnsTemplateContext> | Custom footer rows, rendered in the tfoot. |
|
|
2657
|
+
| summary | TemplateRef<void> | Custom summary, rendered below the table. |
|
|
2658
|
+
| emptymessage | TemplateRef<TreeTableEmptyMessageTemplateContext> | Custom content when there is no data. |
|
|
2659
|
+
| paginatorleft | TemplateRef<PaginatorTemplateContext> | Custom content on the left of the paginator. |
|
|
2660
|
+
| paginatorright | TemplateRef<PaginatorTemplateContext> | Custom content on the right of the paginator. |
|
|
2661
|
+
| paginatordropdownitem | TemplateRef<PaginatorDropdownItemTemplateContext> | Custom item of the rows per page dropdown of the paginator. |
|
|
2662
|
+
| frozenheader | TemplateRef<TreeTableColumnsTemplateContext> | Custom header rows of the frozen columns. |
|
|
2663
|
+
| frozenbody | TemplateRef<TreeTableBodyTemplateContext> | Custom row of the frozen columns. |
|
|
2664
|
+
| frozenfooter | TemplateRef<TreeTableColumnsTemplateContext> | Custom footer rows of the frozen columns. |
|
|
2665
|
+
| frozencolgroup | TemplateRef<TreeTableColumnsTemplateContext> | Custom colgroup element of the frozen columns. |
|
|
2666
|
+
| loadingicon | TemplateRef<void> | Custom loading icon. |
|
|
2667
|
+
| reorderindicatorupicon | TemplateRef<void> | Custom icon of the upper column reorder indicator. |
|
|
2668
|
+
| reorderindicatordownicon | TemplateRef<void> | Custom icon of the lower column reorder indicator. |
|
|
2669
|
+
| sorticon | TemplateRef<TreeTableSortIconTemplateContext> | Custom sort icon of a sortable column. |
|
|
2670
|
+
| checkboxicon | TemplateRef<TreeTableCheckboxIconTemplateContext> | Custom icon of the node checkboxes. |
|
|
2671
|
+
| headercheckboxicon | TemplateRef<TreeTableHeaderCheckboxIconTemplateContext> | Custom icon of the header checkbox. |
|
|
2672
|
+
| togglericon | TemplateRef<TreeTableTogglerIconTemplateContext> | Custom icon of the node toggler. |
|
|
2673
|
+
| paginatorfirstpagelinkicon | TemplateRef<void> | Custom icon of the first page button of the paginator. |
|
|
2674
|
+
| paginatorlastpagelinkicon | TemplateRef<void> | Custom icon of the last page button of the paginator. |
|
|
2675
|
+
| paginatorpreviouspagelinkicon | TemplateRef<void> | Custom icon of the previous page button of the paginator. |
|
|
2676
|
+
| paginatornextpagelinkicon | TemplateRef<void> | Custom icon of the next page button of the paginator. |
|
|
2677
|
+
| loader | TemplateRef<ScrollerLoaderTemplateContext> | Custom row of a node being loaded with lazy virtual scrolling. |
|
|
2678
|
+
|
|
2648
2679
|
### Methods
|
|
2649
2680
|
|
|
2650
2681
|
| Name | Parameters | Return Type | Description |
|