-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(stepper): implementa definições do AnimaliaDS
Implementa definições de estilo e acessibilidade definidos pelo AnimaliaDS Fixes DTHFUI-7810
- Loading branch information
Showing
21 changed files
with
1,394 additions
and
361 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
50 changes: 29 additions & 21 deletions
50
projects/ui/src/lib/components/po-stepper/po-stepper-circle/po-stepper-circle.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,22 +1,30 @@ | ||
<div class="po-stepper-circle" [style.height.px]="size" [style.width.px]="size" [tabindex]="isDisabled ? -1 : 0"> | ||
<po-icon | ||
*ngIf="!isActive" | ||
class="po-stepper-circle-content" | ||
[class.po-icon]="icons || isDone" | ||
[p-icon]=" | ||
icons && isError | ||
? 'ICON_EXCLAMATION' | ||
: icons && (isActive || isDefault || isDisabled) | ||
? 'ICON_INFO' | ||
: isDone | ||
? 'ICON_OK' | ||
: '' | ||
" | ||
[class.po-stepper-circle-content-lg]="isLargeStep" | ||
[class.po-stepper-circle-content-md]="isMediumStep" | ||
> | ||
{{ !icons && !isDone ? content : '' }} | ||
</po-icon> | ||
|
||
<div *ngIf="isActive || isError" class="po-stepper-circle-active"></div> | ||
<div | ||
class="po-stepper-circle" | ||
[ngClass]="{ 'po-stepper-circle-border': !isActive && !isError, 'po-stepper-circle-done': isDone }" | ||
[style.height.px]="size" | ||
[style.width.px]="size" | ||
> | ||
<ng-container *ngIf="isActive || isError; else defaultContent"> | ||
<div class="po-stepper-circle-active"> | ||
<po-icon | ||
class="po-stepper-circle-content" | ||
[class.po-icon]="true" | ||
[p-icon]="iconActive ? iconActive : 'ICON_EDIT'" | ||
[class.po-stepper-circle-content-lg]="isLargeStep" | ||
[class.po-stepper-circle-content-md]="isMediumStep" | ||
></po-icon> | ||
</div> | ||
</ng-container> | ||
<ng-template #defaultContent> | ||
<po-icon | ||
*ngIf="!isActive" | ||
class="po-stepper-circle-content" | ||
[class.po-icon]="icons || isDone" | ||
[p-icon]="isDone ? iconDone || 'ICON_OK' : iconDefault ? iconDefault : icons ? 'ICON_INFO' : ''" | ||
[class.po-stepper-circle-content-lg]="isLargeStep" | ||
[class.po-stepper-circle-content-md]="isMediumStep" | ||
> | ||
{{ !icons && !isDone && !iconDefault ? content : '' }} | ||
</po-icon> | ||
</ng-template> | ||
</div> |
Oops, something went wrong.