-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from andiesm813/andiesm813-2024-07-15
⭐ All AB Components 2024 ⭐ updates
- Loading branch information
Showing
11 changed files
with
217 additions
and
14 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
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
<igx-stepper titlePosition="bottom" verticalAnimationType="none" horizontalAnimationType="none" #stepper2 class="stepper"> | ||
<igx-step [isValid]="false"> | ||
<div igxStepContent class="column-layout step-content"> | ||
<igx-input-group type="border" class="input"> | ||
<input type="text" placeholder="This is the placeholder" igxInput /> | ||
<label igxLabel>Label</label> | ||
</igx-input-group> | ||
<igx-input-group type="border" class="input"> | ||
<input type="text" placeholder="This is the placeholder" igxInput /> | ||
<label igxLabel>Label</label> | ||
</igx-input-group> | ||
<div class="row-layout group"> | ||
<button igxButton="contained" igxRipple (click)="stepper2.next()" class="button"> | ||
Next | ||
</button> | ||
</div> | ||
</div> | ||
<p igxStepTitle>Address</p> | ||
</igx-step> | ||
<igx-step [isValid]="false"> | ||
<div igxStepContent class="column-layout step-content"> | ||
<p class="text"> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur soluta nulla asperiores, officia ullam recusandae voluptatem omnis perferendis vitae non magni magnam praesentium placeat nemo quas repudiandae. Nisi, quo ex! | ||
</p> | ||
<div class="row-layout group"> | ||
<button igxButton="contained" igxRipple (click)="stepper2.prev()" class="button"> | ||
Prev | ||
</button> | ||
<button igxButton="contained" igxRipple (click)="stepper2.next()" class="button"> | ||
Next | ||
</button> | ||
</div> | ||
</div> | ||
<p igxStepTitle>Item</p> | ||
</igx-step> | ||
<igx-step [optional]="true"> | ||
<div igxStepContent class="column-layout step-content"> | ||
<p class="text"> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur soluta nulla asperiores, officia ullam recusandae voluptatem omnis perferendis vitae non magni magnam praesentium placeat nemo quas repudiandae. Nisi, quo ex! | ||
</p> | ||
<div class="row-layout group"> | ||
<button igxButton="contained" igxRipple (click)="stepper2.prev()" class="button"> | ||
Prev | ||
</button> | ||
<button igxButton="contained" igxRipple (click)="stepper2.reset()" class="button"> | ||
Reset | ||
</button> | ||
</div> | ||
</div> | ||
<p igxStepTitle>Wrap</p> | ||
<p igxStepSubTitle>(Optional)</p> | ||
</igx-step> | ||
</igx-stepper> | ||
<igx-stepper orientation="vertical" titlePosition="bottom" verticalAnimationType="none" horizontalAnimationType="none" #stepper3 class="stepper"> | ||
<igx-step [isValid]="false"> | ||
<div igxStepContent class="column-layout step-content"> | ||
<igx-input-group type="border" class="input"> | ||
<input type="text" placeholder="This is the placeholder" igxInput /> | ||
<label igxLabel>Label</label> | ||
</igx-input-group> | ||
<igx-input-group type="border" class="input"> | ||
<input type="text" placeholder="This is the placeholder" igxInput /> | ||
<label igxLabel>Label</label> | ||
</igx-input-group> | ||
<div class="row-layout group"> | ||
<button igxButton="contained" igxRipple (click)="stepper3.next()" class="button"> | ||
Next | ||
</button> | ||
</div> | ||
</div> | ||
<p igxStepTitle>Address</p> | ||
</igx-step> | ||
<igx-step [isValid]="false"> | ||
<div igxStepContent class="column-layout step-content"> | ||
<p class="text"> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur soluta nulla asperiores, officia ullam recusandae voluptatem omnis perferendis vitae non magni magnam praesentium placeat nemo quas repudiandae. Nisi, quo ex! | ||
</p> | ||
<div class="row-layout group"> | ||
<button igxButton="contained" igxRipple (click)="stepper3.prev()" class="button"> | ||
Prev | ||
</button> | ||
<button igxButton="contained" igxRipple (click)="stepper3.next()" class="button"> | ||
Next | ||
</button> | ||
</div> | ||
</div> | ||
<p igxStepTitle>Item</p> | ||
</igx-step> | ||
<igx-step [optional]="true"> | ||
<div igxStepContent class="column-layout step-content"> | ||
<p class="text"> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur soluta nulla asperiores, officia ullam recusandae voluptatem omnis perferendis vitae non magni magnam praesentium placeat nemo quas repudiandae. Nisi, quo ex! | ||
</p> | ||
<div class="row-layout group"> | ||
<button igxButton="contained" igxRipple (click)="stepper3.prev()" class="button"> | ||
Prev | ||
</button> | ||
<button igxButton="contained" igxRipple (click)="stepper3.reset()" class="button"> | ||
Reset | ||
</button> | ||
</div> | ||
</div> | ||
<p igxStepTitle>Wrap</p> | ||
<p igxStepSubTitle>(Optional)</p> | ||
</igx-step> | ||
</igx-stepper> |
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
:host { | ||
height: 100%; | ||
display: flex; | ||
justify-content: flex-start; | ||
align-items: stretch; | ||
align-content: flex-start; | ||
gap: 24px; | ||
} | ||
.stepper { | ||
min-width: 0; | ||
min-height: 0; | ||
flex-grow: 1; | ||
flex-basis: 0; | ||
} | ||
.column-layout { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
.step-content { | ||
justify-content: flex-start; | ||
align-items: stretch; | ||
align-content: flex-start; | ||
gap: 10px; | ||
overflow: auto; | ||
position: relative; | ||
height: 100%; | ||
min-width: 100%; | ||
min-height: 100%; | ||
max-height: 100%; | ||
} | ||
.input { | ||
height: max-content; | ||
min-width: min-content; | ||
} | ||
.button { | ||
height: max-content; | ||
flex-shrink: 0; | ||
} | ||
.row-layout { | ||
display: flex; | ||
} | ||
.group { | ||
justify-content: flex-start; | ||
align-items: center; | ||
align-content: flex-start; | ||
gap: 0.5rem; | ||
position: relative; | ||
min-width: 50px; | ||
min-height: 50px; | ||
} | ||
.text { | ||
height: max-content; | ||
min-width: min-content; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { FormsModule } from '@angular/forms'; | ||
import { NoopAnimationsModule } from '@angular/platform-browser/animations'; | ||
|
||
import { IGX_STEPPER_DIRECTIVES, IGX_INPUT_GROUP_DIRECTIVES, IgxButtonDirective, IgxRippleDirective } from '@infragistics/igniteui-angular'; | ||
import { StepperComponent } from './stepper.component'; | ||
|
||
describe('StepperComponent', () => { | ||
let component: StepperComponent; | ||
let fixture: ComponentFixture<StepperComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ StepperComponent ], | ||
imports: [ NoopAnimationsModule, FormsModule, IGX_STEPPER_DIRECTIVES, IGX_INPUT_GROUP_DIRECTIVES, IgxButtonDirective, IgxRippleDirective ] | ||
}) | ||
.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(StepperComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Component } from '@angular/core'; | ||
import { IGX_INPUT_GROUP_DIRECTIVES, IGX_STEPPER_DIRECTIVES, IgxButtonDirective, IgxOverlayOutletDirective, IgxRippleDirective, IgxToggleActionDirective, IgxToggleDirective } from '@infragistics/igniteui-angular'; | ||
|
||
@Component({ | ||
selector: 'app-stepper', | ||
standalone: true, | ||
imports: [IGX_INPUT_GROUP_DIRECTIVES, IGX_STEPPER_DIRECTIVES, IgxToggleActionDirective, IgxOverlayOutletDirective, IgxButtonDirective, IgxRippleDirective, IgxToggleDirective], | ||
templateUrl: './stepper.component.html', | ||
styleUrls: ['./stepper.component.scss'] | ||
}) | ||
export class StepperComponent {} |