|
| 1 | +<div *ngIf="bShow$"> |
| 2 | + <div *ngIf="bIsVertical$" class="psdk-vertical-stepper"> |
| 3 | + <div *ngFor="let mainStep of arNavigationSteps$; let i = index" class="psdk-vertical-step"> |
| 4 | + <div class="psdk-vertical-step-header"> |
| 5 | + <div class="{{ _getVIconClass(mainStep.visited_status) }}"> |
| 6 | + <div class="psdk-vertical-step-icon-content"> |
| 7 | + <span>{{ i + 1 }}</span> |
| 8 | + </div> |
| 9 | + </div> |
| 10 | + <div class="{{ _getVLabelClass(mainStep.visited_status) }}"> |
| 11 | + {{ mainStep.name }} |
| 12 | + </div> |
| 13 | + </div> |
| 14 | + <div class="{{ _getVBodyClass(i) }}"> |
| 15 | + <ng-container *ngIf="mainStep?.steps"> |
| 16 | + <ul style="padding-inline-start: 0rem; margin-left: -7px"> |
| 17 | + <li *ngFor="let subStep of mainStep.steps" class="psdk-sub-step-list"> |
| 18 | + <div style="display: inline-flex"> |
| 19 | + <img *ngIf="subStep.visited_status == 'current'" class="psdk-current-svg-icon" src="{{ svgCurrent$ }}" /> |
| 20 | + <img *ngIf="subStep.visited_status != 'current'" class="psdk-not-current-svg-icon" src="{{ svgNotCurrent$ }}" /> |
| 21 | + <label *ngIf="subStep.visited_status == 'current'" class="psdk-sub-step-current">{{ subStep.name }}</label> |
| 22 | + <label *ngIf="subStep.visited_status != 'current'" class="psdk-sub-step-not-current">{{ subStep.name }}</label> |
| 23 | + </div> |
| 24 | + <div *ngIf="subStep.visited_status == 'current'"> |
| 25 | + <component-mapper |
| 26 | + name="AssignmentCard" |
| 27 | + [props]="{ pConn$, formGroup$, arChildren$, arMainButtons$, arSecondaryButtons$ }" |
| 28 | + [parent]="this" |
| 29 | + [outputEvents]="{ actionButtonClick: onActionButtonClick }" |
| 30 | + ></component-mapper> |
| 31 | + </div> |
| 32 | + </li> |
| 33 | + </ul> |
| 34 | + </ng-container> |
| 35 | + |
| 36 | + <ng-container *ngIf="!mainStep?.steps && mainStep.visited_status == 'current'"> |
| 37 | + <component-mapper |
| 38 | + name="AssignmentCard" |
| 39 | + [props]="{ pConn$, formGroup$, arChildren$, arMainButtons$, arSecondaryButtons$ }" |
| 40 | + [parent]="this" |
| 41 | + [outputEvents]="{ actionButtonClick: onActionButtonClick }" |
| 42 | + ></component-mapper> |
| 43 | + </ng-container> |
| 44 | + </div> |
| 45 | + </div> |
| 46 | + </div> |
| 47 | + |
| 48 | + <div *ngIf="!bIsVertical$" class="psdk-horizontal-stepper"> |
| 49 | + <div class="psdk-horizontal-stepper-header-container"> |
| 50 | + <ng-container *ngFor="let mainStep of arNavigationSteps$; let i = index"> |
| 51 | + <div class="psdk-horizontal-step-header"> |
| 52 | + <div class="{{ _getHIconClass(mainStep.visited_status) }}"> |
| 53 | + <div class="psdk-horizontal-step-icon-content"> |
| 54 | + <span>{{ i + 1 }}</span> |
| 55 | + </div> |
| 56 | + </div> |
| 57 | + <div id="multi-step-label" class="{{ _getHLabelClass(mainStep.visited_status) }}"> |
| 58 | + <div class="psdk-horizontal-step-text-label"> |
| 59 | + {{ mainStep.name }} |
| 60 | + </div> |
| 61 | + </div> |
| 62 | + </div> |
| 63 | + <div *ngIf="_showHLine(i)" class="psdk-horizontal-step-line"></div> |
| 64 | + </ng-container> |
| 65 | + </div> |
| 66 | + <div *ngFor="let mainStep of arNavigationSteps$" class="psdk-horizontal-stepper-body"> |
| 67 | + <ng-container *ngIf="mainStep?.steps"> |
| 68 | + <ul style="padding-inline-start: 0rem; margin-left: 35px"> |
| 69 | + <li *ngFor="let subStep of mainStep.steps" class="psdk-sub-step-list"> |
| 70 | + <div style="display: inline-flex"> |
| 71 | + <img *ngIf="subStep.visited_status == 'current'" class="psdk-current-svg-icon" src="{{ svgCurrent$ }}" /> |
| 72 | + <img *ngIf="subStep.visited_status != 'current'" class="psdk-not-current-svg-icon" src="{{ svgNotCurrent$ }}" /> |
| 73 | + <label *ngIf="subStep.visited_status == 'current'" class="psdk-sub-step-current">{{ subStep.name }}</label> |
| 74 | + <label *ngIf="subStep.visited_status != 'current'" class="psdk-sub-step-not-current">{{ subStep.name }}</label> |
| 75 | + </div> |
| 76 | + <div *ngIf="subStep.visited_status == 'current'"> |
| 77 | + <component-mapper |
| 78 | + name="AssignmentCard" |
| 79 | + [props]="{ pConn$, formGroup$, arChildren$, arMainButtons$, arSecondaryButtons$ }" |
| 80 | + [parent]="this" |
| 81 | + [outputEvents]="{ actionButtonClick: onActionButtonClick }" |
| 82 | + ></component-mapper> |
| 83 | + </div> |
| 84 | + </li> |
| 85 | + </ul> |
| 86 | + </ng-container> |
| 87 | + |
| 88 | + <ng-container *ngIf="!mainStep?.steps && mainStep.visited_status == 'current'"> |
| 89 | + <component-mapper |
| 90 | + name="AssignmentCard" |
| 91 | + [props]="{ pConn$, formGroup$, arChildren$, arMainButtons$, arSecondaryButtons$ }" |
| 92 | + [parent]="this" |
| 93 | + [outputEvents]="{ actionButtonClick: onActionButtonClick }" |
| 94 | + ></component-mapper> |
| 95 | + </ng-container> |
| 96 | + </div> |
| 97 | + </div> |
| 98 | +</div> |
0 commit comments