Skip to content

Commit

Permalink
Merge pull request #13 from andiesm813/andiesm813-2024-07-26
Browse files Browse the repository at this point in the history
⭐ All AB Components 2024 ⭐ updates
  • Loading branch information
andiesm813 authored Jul 26, 2024
2 parents 8fe37ba + 4097680 commit 5bb2fa5
Show file tree
Hide file tree
Showing 22 changed files with 677 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/app/all-components/all-components.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ <h5 igxCardHeaderSubtitle>
</h5>
</igx-card-header>
<igx-card-content class="body-content">
<p class="text">
<p class="ig-typography__body-2 text">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</p>
</igx-card-content>
Expand Down Expand Up @@ -322,7 +322,7 @@ <h5 igxCardHeaderSubtitle>
</igx-card-header>
</div>
<igx-card-content class="body-content">
<p class="text">
<p class="ig-typography__body-2 text">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</p>
</igx-card-content>
Expand Down Expand Up @@ -684,6 +684,10 @@ <h5 igxCardHeaderSubtitle>
<igx-simple-combo [data]="financialBoxOfficeRevenue" placeholder="Placeholder" displayKey="Franchise" class="user-input">
<label igxLabel>Combo</label>
</igx-simple-combo>
<igx-input-group type="border" class="user-input">
<input type="text" igxInput />
<label igxLabel>Label</label>
</igx-input-group>
</div>
<div class="column-layout group_15">
<igx-calendar [hasHeader]="true" headerOrientation="horizontal" class="calendar"></igx-calendar>
Expand Down
1 change: 0 additions & 1 deletion src/app/all-components/all-components.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
align-items: stretch;
align-content: stretch;
gap: 24px;
overflow: auto;
position: relative;
padding: 20px;
min-width: 50px;
Expand Down
2 changes: 1 addition & 1 deletion src/app/all-components/all-components.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { IgcFormsModule, IGX_ACCORDION_DIRECTIVES, IGX_BANNER_DIRECTIVES, IGX_BU
import { IgxCategoryChartModule } from 'igniteui-angular-charts';
import { defineComponents, IgcRatingComponent } from 'igniteui-webcomponents';
import { Subject, takeUntil } from 'rxjs';
import { EmployeesType } from '../models/northwind/employees-type';
import { BoxOfficeRevenueType } from '../models/financial/box-office-revenue-type';
import { EmployeesType } from '../models/northwind/employees-type';
import { FinancialService } from '../services/financial.service';
import { NorthwindService } from '../services/northwind.service';

Expand Down
18 changes: 18 additions & 0 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@ <h6 class="h6">
</igx-icon>
<span>Calendar</span>
</div>
<div igxDrawerItem igxRipple routerLink="/cards">
<igx-icon class="icon">
dashboard
</igx-icon>
<span>Cards</span>
</div>
<div igxDrawerItem igxRipple routerLink="/charts">
<igx-icon class="icon">
insert_chart
</igx-icon>
<span>Charts</span>
</div>
<div igxDrawerItem igxRipple routerLink="/forms">
<igx-icon class="icon">
dynamic_form
Expand All @@ -61,6 +73,12 @@ <h6 class="h6">
</igx-icon>
<span>Lists</span>
</div>
<div igxDrawerItem igxRipple routerLink="/mouse-events">
<igx-icon class="icon">
ads_click
</igx-icon>
<span>Mouse Events</span>
</div>
<div igxDrawerItem igxRipple routerLink="/radiogroup">
<igx-icon class="icon">
radio_button_checked
Expand Down
6 changes: 6 additions & 0 deletions src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ import { UncaughtErrorComponent } from './error-routing/error/uncaught-error.com
import { AllComponentsComponent } from './all-components/all-components.component';
import { AvatarsImagesComponent } from './avatars-images/avatars-images.component';
import { CalendarComponent } from './calendar/calendar.component';
import { CardsComponent } from './cards/cards.component';
import { ChartsComponent } from './charts/charts.component';
import { FormsComponent } from './forms/forms.component';
import { ListsComponent } from './lists/lists.component';
import { MouseEventsComponent } from './mouse-events/mouse-events.component';
import { RadiogroupComponent } from './radiogroup/radiogroup.component';
import { StepperComponent } from './stepper/stepper.component';

Expand All @@ -15,8 +18,11 @@ export const routes: Routes = [
{ path: 'all-components', component: AllComponentsComponent, data: { text: 'AllComponents' } },
{ path: 'avatars-images', component: AvatarsImagesComponent, data: { text: 'Avatars-Images' } },
{ path: 'calendar', component: CalendarComponent, data: { text: 'Calendar' } },
{ path: 'cards', component: CardsComponent, data: { text: 'Cards' } },
{ path: 'charts', component: ChartsComponent, data: { text: 'Charts' } },
{ path: 'forms', component: FormsComponent, data: { text: 'Forms' } },
{ path: 'lists', component: ListsComponent, data: { text: 'Lists' } },
{ path: 'mouse-events', component: MouseEventsComponent, data: { text: 'Mouse Events' } },
{ path: 'radiogroup', component: RadiogroupComponent, data: { text: 'Radiogroup' } },
{ path: 'stepper', component: StepperComponent, data: { text: 'Stepper' } },
{ path: '**', component: PageNotFoundComponent } // must always be last
Expand Down
164 changes: 164 additions & 0 deletions src/app/cards/cards.component.html
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>
76 changes: 76 additions & 0 deletions src/app/cards/cards.component.scss
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;
}
29 changes: 29 additions & 0 deletions src/app/cards/cards.component.spec.ts
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();
});
});
11 changes: 11 additions & 0 deletions src/app/cards/cards.component.ts
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 {}
10 changes: 10 additions & 0 deletions src/app/charts/charts.component.html
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>
Loading

0 comments on commit 5bb2fa5

Please sign in to comment.