-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(StatusIconComponent): Convert to standalone (#1828)
- Loading branch information
1 parent
273bb3b
commit c7a408a
Showing
7 changed files
with
38 additions
and
52 deletions.
There are no files selected for viewing
10 changes: 2 additions & 8 deletions
10
src/app/classroom-monitor/status-icon/status-icon.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,9 +1,3 @@ | ||
<mat-icon | ||
class="{{ iconClass }}" | ||
tabindex="0" | ||
[attr.aria-label]="iconLabel" | ||
matTooltip="{{ iconTooltip }}" | ||
matTooltipPosition="above" | ||
> | ||
{{ iconName }} | ||
<mat-icon class="{{ class }}" tabindex="0" matTooltip="{{ tooltip }}" matTooltipPosition="above"> | ||
{{ name }} | ||
</mat-icon> |
20 changes: 7 additions & 13 deletions
20
src/app/classroom-monitor/status-icon/status-icon.component.ts
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,21 +1,15 @@ | ||
import { Component, Input } from '@angular/core'; | ||
import { MatIconModule } from '@angular/material/icon'; | ||
import { MatTooltipModule } from '@angular/material/tooltip'; | ||
|
||
@Component({ | ||
imports: [MatIconModule, MatTooltipModule], | ||
selector: 'status-icon', | ||
standalone: true, | ||
templateUrl: 'status-icon.component.html' | ||
}) | ||
export class StatusIconComponent { | ||
@Input() | ||
iconClass: string; | ||
|
||
@Input() | ||
iconLabel: string; | ||
|
||
@Input() | ||
iconName: string; | ||
|
||
@Input() | ||
iconTooltip: string; | ||
|
||
constructor() {} | ||
@Input() class: string; | ||
@Input() name: string; | ||
@Input() tooltip: string; | ||
} |
20 changes: 9 additions & 11 deletions
20
src/app/classroom-monitor/step-info/step-info.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,20 +1,18 @@ | ||
<div fxLayout="row" fxLayoutAlign="start center"> | ||
<node-icon [nodeId]="nodeId" size="18" fxHide.xs></node-icon> | ||
<node-icon [nodeId]="nodeId" size="18" fxHide.xs /> | ||
<span fxHide.xs> </span> | ||
<span>{{ stepTitle }}</span> | ||
<status-icon | ||
*ngIf="hasAlert" | ||
[iconClass]="alertIconClass" | ||
[iconName]="alertIconName" | ||
[iconLabel]="alertIconLabel" | ||
[iconTooltip]="alertIconLabel" | ||
></status-icon> | ||
[class]="alertIconClass" | ||
[name]="alertIconName" | ||
[tooltip]="alertIconLabel" | ||
/> | ||
<status-icon | ||
*ngIf="hasRubrics" | ||
iconClass="info" | ||
iconName="info" | ||
[iconLabel]="rubricIconLabel" | ||
[iconTooltip]="rubricIconLabel" | ||
></status-icon> | ||
class="info" | ||
name="info" | ||
[tooltip]="rubricIconLabel" | ||
/> | ||
<span *ngIf="hasNewWork" class="badge badge--info animate-fade" i18n>New</span> | ||
</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