Skip to content

Commit 5415199

Browse files
committed
Merge branch 'vnext' of https://github.com/IgniteUI/igniteui-angular-samples into rivanova/additional-props-sample
2 parents c67633d + 6ee10c1 commit 5415199

File tree

126 files changed

+1499
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+1499
-12
lines changed

azure-devops/app-cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ steps:
2424
fetchTags: true
2525

2626
- task: NodeTool@0
27-
displayName: Use Node 20.x
27+
displayName: Use Node 22.x
2828
inputs:
29-
versionSpec: 20.x
29+
versionSpec: 22.x
3030

3131
- task: PowerShell@2
3232
displayName: 'Replace with licensed angular-extras'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ steps:
2424
fetchTags: true
2525

2626
- task: NodeTool@0
27-
displayName: Use Node 20.x
27+
displayName: Use Node 22.x
2828
inputs:
29-
versionSpec: 20.x
29+
versionSpec: 22.x
3030

3131
- task: PowerShell@2
3232
displayName: 'Replace with licensed angular-extras'

azure-devops/app-lob-cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ steps:
2424
fetchTags: true
2525

2626
- task: NodeTool@0
27-
displayName: Use Node 20.x
27+
displayName: Use Node 22.x
2828
inputs:
29-
versionSpec: 20.x
29+
versionSpec: 22.x
3030

3131
- task: PowerShell@2
3232
displayName: 'Replace with licensed angular-extras'

src/app/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { provideHttpClient, withInterceptorsFromDi } from "@angular/common/http";
1+
import { provideHttpClient, withFetch, withInterceptorsFromDi } from "@angular/common/http";
22
import { ApplicationConfig, importProvidersFrom } from "@angular/core";
33
import { FormsModule } from "@angular/forms";
44
import { BrowserModule, HammerModule, provideClientHydration, withEventReplay } from "@angular/platform-browser";
@@ -16,7 +16,7 @@ export const AppConfig: ApplicationConfig = {
1616
HammerModule,
1717
NgbModule
1818
),
19-
provideHttpClient(withInterceptorsFromDi()),
19+
provideHttpClient(withInterceptorsFromDi(), withFetch()),
2020
provideAnimations(),
2121
provideRouter(AppRoutes),
2222
OverflowService, provideClientHydration(withEventReplay())
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<igx-list>
2+
<igx-list-item [isHeader]="true">
3+
Team Members (4)
4+
</igx-list-item>
5+
@for (member of members; track member) {
6+
<igx-list-item>
7+
<div class="wrapper">
8+
<div>
9+
<igx-avatar icon="person" shape="circle" size="small"></igx-avatar>
10+
<igx-badge [icon]="member.icon" shape="square" class="badge-style !light-badge ![--background-color:#FF4E00] ![--border-radius:4px]"></igx-badge>
11+
</div>
12+
<div class="contact-container">
13+
<span class="contact-name">{{ member.name }}</span>
14+
</div>
15+
</div>
16+
</igx-list-item>
17+
}
18+
</igx-list>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@use "layout.scss";
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { Component } from '@angular/core';
2+
import { Member } from '../model/member.model';
3+
import { IgxListComponent, IgxListItemComponent, IgxAvatarComponent, IgxBadgeComponent } from 'igniteui-angular';
4+
5+
6+
@Component({
7+
selector: 'app-badge-tailwind-styling-sample',
8+
styleUrls: ['./badge-tailwind-styling-sample.component.scss'],
9+
templateUrl: './badge-tailwind-styling-sample.component.html',
10+
imports: [IgxListComponent, IgxListItemComponent, IgxAvatarComponent, IgxBadgeComponent]
11+
})
12+
export class BadgeTailwindStylingSampleComponent {
13+
public members: Member[] = [
14+
new Member('Terrance Orta', 'online'),
15+
new Member('Donna Price', 'online'),
16+
new Member('Lisa Landers', 'away'),
17+
new Member('Dorothy H. Spencer', 'offline')
18+
];
19+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.wrapper {
2+
display: flex;
3+
flex-direction: row;
4+
}
5+
6+
.contact-name {
7+
font-weight: 600;
8+
}
9+
10+
.contact-container{
11+
margin-left: 20px;
12+
}
13+
14+
.badge-style {
15+
position: absolute;
16+
bottom: 2.5px;
17+
left: 40px;
18+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<igx-chips-area (reorder)="chipsOrderChanged($event)">
2+
@for (chip of chipList; track chip) {
3+
<igx-chip
4+
class="!light-chip ![--background:#99BAA6]
5+
![--remove-icon-color:#C92828]"
6+
[id]="chip.id"
7+
[selectable]="true"
8+
[selectIcon]="mySelectIcon"
9+
[removable]="true"
10+
[removeIcon]="myRemoveIcon"
11+
(remove)="chipRemoved($event)"
12+
[draggable]="true">
13+
<igx-icon igxPrefix>{{chip.icon}}</igx-icon>
14+
{{chip.text}}
15+
</igx-chip>
16+
}
17+
</igx-chips-area>
18+
19+
<ng-template #mySelectIcon>
20+
<igx-icon>check_circle</igx-icon>
21+
</ng-template>
22+
23+
<ng-template #myRemoveIcon>
24+
<igx-icon>delete</igx-icon>
25+
</ng-template>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@use "layout.scss";

0 commit comments

Comments
 (0)