-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* [ACS-5601] Add badges to name column component * [ACS-5601] Add on click handler to column badges * [ACS-5601] Fix badge hover color * [ACS-5601] Restore modal configuration, prettier fixes * [ACS-5601] Add missing tooltip translation * [ACS-5601] Add process content services to extension service * [ACS-5601] Add adf dynamic component to custom name column * [ACS-5601] Add missing dosc and unit tests * [ACS-5601] Post rebase package lock update * [ACS-5601] CR fixes * [ACS-5601] Unit test fix * [ACS-5601] CR fix * [ACS-5601] Fix unit test, add contrast gray to badges * [ACS-5601] fix fail test and exclude one test * [ACS-5601] fix fail test and exclude one test --------- Co-authored-by: [email protected] <[email protected]>
- Loading branch information
1 parent
33c50bd
commit 6edbb57
Showing
14 changed files
with
268 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
{} | ||
{ | ||
"C286379": "https://alfresco.atlassian.net/browse/ACS-5601" | ||
} |
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
51 changes: 28 additions & 23 deletions
51
...ca-content/src/lib/components/dl-custom-components/name-column/name-column.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 |
---|---|---|
@@ -1,25 +1,30 @@ | ||
<div | ||
class="aca-custom-name-column" | ||
[ngClass]="{ | ||
'aca-name-column-container': isFile && isFileWriteLocked | ||
}" | ||
> | ||
<span | ||
role="link" | ||
tabindex=0 | ||
[attr.aria-label]=" | ||
(isFile ? 'CUSTOM_NAME_COLUMN.ACCESSIBILITY.FILE_LINK_ARIA_LABEL' : 'CUSTOM_NAME_COLUMN.ACCESSIBILITY.FOLDER_LINK_ARIA_LABEL') | ||
| translate: { name: displayText$ | async } | ||
" | ||
class="adf-datatable-cell-value" | ||
title="{{ node | adfNodeNameTooltip }}" | ||
(click)="onLinkClick($event)" | ||
(keyup.enter)="onLinkClick($event)" | ||
> | ||
{{ displayText$ | async }} | ||
</span> | ||
<div class="aca-custom-name-column"> | ||
<div [ngClass]="{ 'aca-name-column-container': isFile && isFileWriteLocked }"> | ||
<span | ||
role="link" | ||
tabindex="0" | ||
[attr.aria-label]=" | ||
(isFile ? 'CUSTOM_NAME_COLUMN.ACCESSIBILITY.FILE_LINK_ARIA_LABEL' : 'CUSTOM_NAME_COLUMN.ACCESSIBILITY.FOLDER_LINK_ARIA_LABEL') | ||
| translate : { name: displayText$ | async } | ||
" | ||
class="adf-datatable-cell-value" | ||
title="{{ node | adfNodeNameTooltip }}" | ||
(click)="onLinkClick($event)" | ||
(keyup.enter)="onLinkClick($event)" | ||
> | ||
{{ displayText$ | async }} | ||
</span> | ||
|
||
<ng-container *ngIf="isFile && isFileWriteLocked"> | ||
<aca-locked-by [node]="context.row.node"></aca-locked-by> | ||
</ng-container> | ||
<ng-container *ngIf="isFile && isFileWriteLocked"> | ||
<aca-locked-by [node]="context.row.node"></aca-locked-by> | ||
</ng-container> | ||
</div> | ||
<div class="aca-name-column-badges"> | ||
<ng-container *ngFor="let badge of badges"> | ||
<adf-dynamic-component *ngIf="badge.component; else iconBadge" [id]="badge.component" [data]="{ node }"></adf-dynamic-component> | ||
<ng-template #iconBadge> | ||
<adf-icon class="adf-datatable-cell-badge" [title]="badge.tooltip | translate" [value]="badge.icon" (click)="onBadgeClick(badge)"></adf-icon> | ||
</ng-template> | ||
</ng-container> | ||
</div> | ||
</div> |
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
Oops, something went wrong.