-
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 #13 from andiesm813/andiesm813-2024-07-26
⭐ All AB Components 2024 ⭐ updates
- Loading branch information
Showing
22 changed files
with
677 additions
and
4 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
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,164 @@ | ||
<div class="column-layout group"> | ||
<igx-card class="card"> | ||
<igx-card-media height="120px" class="media-content"> | ||
<img src="/assets/SketchParser.png" class="image" /> | ||
</igx-card-media> | ||
<igx-card-header> | ||
<h3 igxCardHeaderTitle> | ||
Title goes here... | ||
</h3> | ||
<h5 igxCardHeaderSubtitle> | ||
Subtitle goes here... | ||
</h5> | ||
</igx-card-header> | ||
<igx-card-content class="body-content"> | ||
<p class="ig-typography__body-2 text"> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor labore et dolore magna aliqua. | ||
</p> | ||
</igx-card-content> | ||
<igx-card-actions class="actions-content"> | ||
<ng-container igxStart> | ||
<button igxButton="flat" igxRipple class="button"> | ||
Button | ||
</button> | ||
</ng-container> | ||
<ng-container igxEnd> | ||
<button igxRipple igxIconButton="flat"> | ||
<igx-icon> | ||
favorite | ||
</igx-icon> | ||
</button> | ||
<button igxRipple igxIconButton="flat"> | ||
<igx-icon> | ||
bookmark | ||
</igx-icon> | ||
</button> | ||
<button igxRipple igxIconButton="flat"> | ||
<igx-icon> | ||
share | ||
</igx-icon> | ||
</button> | ||
</ng-container> | ||
</igx-card-actions> | ||
</igx-card> | ||
<igx-card class="card"> | ||
<igx-card-header> | ||
<div igxCardThumbnail> | ||
<igx-avatar shape="circle"> | ||
<igx-icon> | ||
person | ||
</igx-icon> | ||
</igx-avatar> | ||
</div> | ||
<h3 igxCardHeaderTitle> | ||
Title goes here... | ||
</h3> | ||
<h5 igxCardHeaderSubtitle> | ||
Subtitle goes here... | ||
</h5> | ||
</igx-card-header> | ||
<igx-card-media height="120px" class="media-content"> | ||
<img src="/assets/SketchParser.png" class="image" /> | ||
</igx-card-media> | ||
<igx-card-content class="body-content"> | ||
<p class="ig-typography__body-2 text"> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor labore et dolore magna aliqua. | ||
</p> | ||
</igx-card-content> | ||
<igx-card-actions class="actions-content"> | ||
<ng-container igxStart> | ||
<button igxButton="flat" igxRipple class="button"> | ||
Button | ||
</button> | ||
</ng-container> | ||
<ng-container igxEnd> | ||
<button igxRipple igxIconButton="flat"> | ||
<igx-icon> | ||
favorite | ||
</igx-icon> | ||
</button> | ||
<button igxRipple igxIconButton="flat"> | ||
<igx-icon> | ||
bookmark | ||
</igx-icon> | ||
</button> | ||
<button igxRipple igxIconButton="flat"> | ||
<igx-icon> | ||
share | ||
</igx-icon> | ||
</button> | ||
</ng-container> | ||
</igx-card-actions> | ||
</igx-card> | ||
<igx-card [horizontal]="true" class="card"> | ||
<div class="group_1"> | ||
<igx-card-header> | ||
<div igxCardThumbnail> | ||
<igx-avatar shape="circle"> | ||
<igx-icon> | ||
person | ||
</igx-icon> | ||
</igx-avatar> | ||
</div> | ||
<h3 igxCardHeaderTitle> | ||
Title goes here... | ||
</h3> | ||
<h5 igxCardHeaderSubtitle> | ||
Subtitle goes here... | ||
</h5> | ||
</igx-card-header> | ||
<igx-card-content class="body-content"> | ||
<p class="ig-typography__body-2 text"> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor labore et dolore magna aliqua. | ||
</p> | ||
</igx-card-content> | ||
</div> | ||
<igx-card-media width="120px" class="media-content_1"> | ||
<img src="/assets/SketchParser.png" class="image" /> | ||
</igx-card-media> | ||
</igx-card> | ||
<igx-card [horizontal]="true" class="card"> | ||
<div class="group_2"> | ||
<div class="row-layout"> | ||
<igx-card-header> | ||
<div igxCardThumbnail> | ||
<igx-card-media width="80px" height="80px" class="media-content_2"> | ||
<img src="/assets/SketchParser.png" /> | ||
</igx-card-media> | ||
</div> | ||
<h3 igxCardHeaderTitle> | ||
Title goes here... | ||
</h3> | ||
<h5 igxCardHeaderSubtitle> | ||
Subtitle goes here... | ||
</h5> | ||
</igx-card-header> | ||
</div> | ||
<igx-card-content class="body-content"> | ||
<p class="ig-typography__body-2 text"> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod labore et dolore magna aliqua. | ||
</p> | ||
</igx-card-content> | ||
</div> | ||
<igx-divider [vertical]="true"></igx-divider> | ||
<igx-card-actions [vertical]="true" class="igx-card-actions--justify actions-content_1"> | ||
<ng-container igxEnd> | ||
<button igxRipple igxIconButton="flat"> | ||
<igx-icon> | ||
favorite | ||
</igx-icon> | ||
</button> | ||
<button igxRipple igxIconButton="flat"> | ||
<igx-icon> | ||
bookmark | ||
</igx-icon> | ||
</button> | ||
<button igxRipple igxIconButton="flat"> | ||
<igx-icon> | ||
share | ||
</igx-icon> | ||
</button> | ||
</ng-container> | ||
</igx-card-actions> | ||
</igx-card> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
:host { | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-start; | ||
align-items: stretch; | ||
align-content: flex-start; | ||
} | ||
.column-layout { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
.group { | ||
justify-content: flex-start; | ||
align-items: stretch; | ||
align-content: flex-start; | ||
gap: 16px; | ||
position: relative; | ||
width: 400px; | ||
min-width: 400px; | ||
max-width: 400px; | ||
flex-grow: 1; | ||
flex-basis: 0; | ||
} | ||
.card { | ||
height: max-content; | ||
min-width: 320px; | ||
} | ||
.group_1 { | ||
flex-grow: 1; | ||
} | ||
.group_2 { | ||
width: 100%; | ||
} | ||
.row-layout { | ||
display: flex; | ||
} | ||
.media-content { | ||
min-height: 120px; | ||
max-height: 120px; | ||
} | ||
.body-content { | ||
min-width: 50px; | ||
min-height: 50px; | ||
} | ||
.actions-content { | ||
min-width: 50px; | ||
min-height: 40px; | ||
} | ||
.media-content_1 { | ||
min-width: 120px; | ||
max-width: 120px; | ||
} | ||
.media-content_2 { | ||
min-width: 80px; | ||
min-height: 80px; | ||
max-width: 80px; | ||
max-height: 80px; | ||
} | ||
.actions-content_1 { | ||
align-items: end; | ||
min-width: 50px; | ||
min-height: 40px; | ||
} | ||
.image { | ||
height: 100%; | ||
min-height: 100%; | ||
max-height: 100%; | ||
} | ||
.text { | ||
height: max-content; | ||
min-width: min-content; | ||
} | ||
.button { | ||
height: max-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_CARD_DIRECTIVES, IgxButtonDirective, IgxRippleDirective, IgxIconButtonDirective, IgxIconComponent, IgxAvatarComponent, IgxDividerDirective } from '@infragistics/igniteui-angular'; | ||
import { CardsComponent } from './cards.component'; | ||
|
||
describe('CardsComponent', () => { | ||
let component: CardsComponent; | ||
let fixture: ComponentFixture<CardsComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ CardsComponent ], | ||
imports: [ NoopAnimationsModule, FormsModule, IGX_CARD_DIRECTIVES, IgxButtonDirective, IgxRippleDirective, IgxIconButtonDirective, IgxIconComponent, IgxAvatarComponent, IgxDividerDirective ] | ||
}) | ||
.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(CardsComponent); | ||
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_CARD_DIRECTIVES, IgxAvatarComponent, IgxButtonDirective, IgxDividerDirective, IgxIconButtonDirective, IgxIconComponent, IgxOverlayOutletDirective, IgxRippleDirective, IgxToggleActionDirective, IgxToggleDirective } from '@infragistics/igniteui-angular'; | ||
|
||
@Component({ | ||
selector: 'app-cards', | ||
standalone: true, | ||
imports: [IGX_CARD_DIRECTIVES, IgxToggleActionDirective, IgxOverlayOutletDirective, IgxIconButtonDirective, IgxButtonDirective, IgxRippleDirective, IgxToggleDirective, IgxIconComponent, IgxAvatarComponent, IgxDividerDirective], | ||
templateUrl: './cards.component.html', | ||
styleUrls: ['./cards.component.scss'] | ||
}) | ||
export class CardsComponent {} |
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,10 @@ | ||
<div class="column-layout group"> | ||
<p class="ig-typography__subtitle-2 text"> | ||
Chart With Default Palette | ||
</p> | ||
<igx-category-chart [dataSource]="dashboardDataTeamGrowth" chartType="area" computedPlotAreaMarginMode="series" class="category-chart"></igx-category-chart> | ||
<p class="ig-typography__subtitle-2 text"> | ||
Chart With Custom Palette | ||
</p> | ||
<igx-category-chart [dataSource]="dashboardDataTeamGrowth" chartType="area" computedPlotAreaMarginMode="series" class="category-chart_1"></igx-category-chart> | ||
</div> |
Oops, something went wrong.