-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(edit-content) show and navigate categories #28831
- Loading branch information
Showing
28 changed files
with
806 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...mponents/dot-category-field-category-list/dot-category-field-category-list.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<div class="w-full category-list__header">Root</div> | ||
<div | ||
[ngClass]="{ 'no-overflow-x-yet': emptyColumns().length }" | ||
class="flex-1 category-list__category-list"> | ||
@for (column of categories(); let index = $index; track categories()[index]) { | ||
<!--dynamic columns--> | ||
<div #categoryColumn class="category-list__category-column"> | ||
@for (item of column; track item.inode) { | ||
<div | ||
class="flex align-content-center align-items-center category-list__item" | ||
[ngClass]="{ 'category-list__item--selected': item.checked }" | ||
(click)="itemClicked.emit({ index, item })"> | ||
<p-checkbox [(ngModel)]="itemsSelected" [value]="item.key" /> | ||
|
||
<label | ||
class="flex flex-grow-1 category-list__item-label" | ||
[ngClass]="{ 'cursor-pointer': item.childrenCount > 0 }" | ||
[for]="item.key" | ||
>{{ item.categoryName }}</label | ||
> | ||
|
||
@if (item.childrenCount > 0) { | ||
<i class="pi pi-chevron-right category-list__item-icon"></i> | ||
} | ||
</div> | ||
} | ||
</div> | ||
} | ||
|
||
<!--Fake empty columns--> | ||
<div *ngFor="let _ of emptyColumns()" class="flex-grow-1 category-list__category-column"></div> | ||
</div> |
Oops, something went wrong.