2 ~ Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
8 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
17 <div class="custom-modal {{input.size}}">
18 <div class="ng2-modal-content w-sdc-classic-top-line-modal">
19 <div class="ng2-modal-header modal-type-{{input.type}}">
20 <span class="title">{{ input.title }}</span>
21 <span class="close-button" (click)="close()"></span>
23 <div class="ng2-modal-body" >
24 <div class="multi-steps-wizard-component">
26 <div class="steps-header">
27 <div *ngFor="let step of steps; let i = index" class="step-title" [ngClass]="{'active':i == currentStepIndex}">
28 <div class="title-text">{{step.title}}</div>
30 <div class="inner-line" [@displayLineAnimation]="i <= currentStepIndex && i!=0" [hidden]="!i || i > currentStepIndex"></div>
32 <div class="circle" [ngClass]="{'full-circle': i < currentStepIndex}"></div>
35 <div class="dynamic-header-container">
36 <div #dynamicHeaderContainer></div>
39 <div #dynamicContentContainer></div>
43 <div class="ng2-modal-footer">
44 <button *ngFor="let button of input.buttons"
45 class="tlv-btn {{button.cssClass}}"
46 [disabled] = "button.getDisabled && button.getDisabled()"
47 (click) = "button.callback()">{{button.text}}</button>
48 <div class="navigation-buttons">
49 <button (click)="prevStep()"
50 class="navigation-button tlv-btn outline blue"
51 [disabled]="dynamicContent.instance.preventBack()">
52 <div class="navigation-icon sprite-new blue-arrow-back"></div>
55 <button (click)="nextStep()"
56 *ngIf="currentStepIndex < (steps.length - 1)"
57 [disabled]="dynamicContent.instance.preventNext()"
58 class="navigation-button tlv-btn blue">
60 <div class="navigation-icon sprite-new white-arrow-next"></div>
62 <button (click)="callback();modalService.closeCurrentModal();"
63 *ngIf="currentStepIndex == (steps.length - 1)"
64 [disabled]="dynamicContent.instance.preventNext()"
73 <div class="modal-background"></div>