This repository has been archived by the owner on Jun 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45d3f52
commit e26cd53
Showing
37 changed files
with
563 additions
and
0 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
2 changes: 2 additions & 0 deletions
2
apps/docs/src/app/examples/chip/appearances/appearances.component.html
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,2 @@ | ||
<anglify-chip>Filled</anglify-chip> | ||
<anglify-chip appearance="outlined">Outlined</anglify-chip> |
5 changes: 5 additions & 0 deletions
5
apps/docs/src/app/examples/chip/appearances/appearances.component.scss
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,5 @@ | ||
:host { | ||
display: grid; | ||
grid-template-columns: repeat(2, auto); | ||
gap: 1rem; | ||
} |
10 changes: 10 additions & 0 deletions
10
apps/docs/src/app/examples/chip/appearances/appearances.component.ts
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 @@ | ||
import { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
|
||
@Component({ | ||
templateUrl: './appearances.component.html', | ||
styleUrls: ['./appearances.component.scss'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class AppearancesComponent {} | ||
|
||
export default AppearancesComponent; |
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,24 @@ | ||
import { ChipModule, IconModule, ItemGroupModule } from '@anglify/components'; | ||
import { CommonModule } from '@angular/common'; | ||
import { NgModule } from '@angular/core'; | ||
import { AppearancesComponent } from './appearances/appearances.component'; | ||
import { FilterComponent } from './filter/filter.component'; | ||
import { GroupsComponent } from './groups/groups.component'; | ||
import { MandatoryComponent } from './mandatory/mandatory.component'; | ||
import { MultipleMandatoryComponent } from './multiple-mandatory/multiple-mandatory.component'; | ||
import { MultipleComponent } from './multiple/multiple.component'; | ||
import { SlotsComponent } from './slots/slots.component'; | ||
|
||
@NgModule({ | ||
declarations: [ | ||
AppearancesComponent, | ||
SlotsComponent, | ||
GroupsComponent, | ||
MandatoryComponent, | ||
MultipleComponent, | ||
FilterComponent, | ||
MultipleMandatoryComponent, | ||
], | ||
imports: [CommonModule, ChipModule, IconModule, ItemGroupModule], | ||
}) | ||
export class ChipExamplesModule {} |
24 changes: 24 additions & 0 deletions
24
apps/docs/src/app/examples/chip/filter/filter.component.html
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,24 @@ | ||
<anglify-item-group multiple> | ||
<ng-template slot="item-group-item" let-active="active" let-toggle> | ||
<anglify-chip [active]="active" (click)="toggle()" filter> | ||
<ng-template slot="prepend"> | ||
<anglify-icon icon="mdi-home" left></anglify-icon> | ||
</ng-template> | ||
Filled | ||
</anglify-chip> | ||
</ng-template> | ||
<ng-template slot="item-group-item" let-active="active" let-toggle> | ||
<anglify-chip [active]="active" (click)="toggle()" filter>Filled</anglify-chip> | ||
</ng-template> | ||
<ng-template slot="item-group-item" let-active="active" let-toggle> | ||
<anglify-chip [active]="active" (click)="toggle()" filter appearance="outlined"> | ||
<ng-template slot="prepend"> | ||
<anglify-icon icon="mdi-home" left></anglify-icon> | ||
</ng-template> | ||
<ng-template slot="append"> | ||
<anglify-icon icon="mdi-close-circle" right></anglify-icon> | ||
</ng-template> | ||
Outlined | ||
</anglify-chip> | ||
</ng-template> | ||
</anglify-item-group> |
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,6 @@ | ||
:host { | ||
anglify-item-group { | ||
display: flex; | ||
gap: 1rem; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
apps/docs/src/app/examples/chip/filter/filter.component.ts
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 @@ | ||
import { Component, ChangeDetectionStrategy } from '@angular/core'; | ||
|
||
@Component({ | ||
templateUrl: './filter.component.html', | ||
styleUrls: ['./filter.component.scss'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class FilterComponent {} | ||
|
||
export default FilterComponent; |
19 changes: 19 additions & 0 deletions
19
apps/docs/src/app/examples/chip/groups/groups.component.html
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,19 @@ | ||
<anglify-item-group> | ||
<ng-template slot="item-group-item" let-active="active" let-toggle> | ||
<anglify-chip [active]="active" (click)="toggle()"> | ||
<ng-template slot="prepend"> | ||
<anglify-icon icon="mdi-home" left></anglify-icon> | ||
</ng-template> | ||
Chip 1 | ||
</anglify-chip> | ||
</ng-template> | ||
<ng-template slot="item-group-item" let-active="active" let-toggle> | ||
<anglify-chip [active]="active" (click)="toggle()">Chip 2</anglify-chip> | ||
</ng-template> | ||
<ng-template slot="item-group-item" let-active="active" let-toggle> | ||
<anglify-chip [active]="active" (click)="toggle()">Chip 3</anglify-chip> | ||
</ng-template> | ||
<ng-template slot="item-group-item" let-active="active" let-toggle> | ||
<anglify-chip [active]="active" (click)="toggle()">Chip 4</anglify-chip> | ||
</ng-template> | ||
</anglify-item-group> |
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,6 @@ | ||
:host { | ||
anglify-item-group { | ||
display: flex; | ||
gap: 1rem; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
apps/docs/src/app/examples/chip/groups/groups.component.ts
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 @@ | ||
import { Component, ChangeDetectionStrategy } from '@angular/core'; | ||
|
||
@Component({ | ||
templateUrl: './groups.component.html', | ||
styleUrls: ['./groups.component.scss'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class GroupsComponent {} | ||
|
||
export default GroupsComponent; |
14 changes: 14 additions & 0 deletions
14
apps/docs/src/app/examples/chip/mandatory/mandatory.component.html
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,14 @@ | ||
<anglify-item-group mandatory> | ||
<ng-template slot="item-group-item" let-active="active" let-toggle> | ||
<anglify-chip [active]="active" (click)="toggle()">Chip 1</anglify-chip> | ||
</ng-template> | ||
<ng-template slot="item-group-item" let-active="active" let-toggle> | ||
<anglify-chip [active]="active" (click)="toggle()">Chip 2</anglify-chip> | ||
</ng-template> | ||
<ng-template slot="item-group-item" let-active="active" let-toggle> | ||
<anglify-chip [active]="active" (click)="toggle()">Chip 3</anglify-chip> | ||
</ng-template> | ||
<ng-template slot="item-group-item" let-active="active" let-toggle> | ||
<anglify-chip [active]="active" (click)="toggle()">Chip 4</anglify-chip> | ||
</ng-template> | ||
</anglify-item-group> |
6 changes: 6 additions & 0 deletions
6
apps/docs/src/app/examples/chip/mandatory/mandatory.component.scss
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,6 @@ | ||
:host { | ||
anglify-item-group { | ||
display: flex; | ||
gap: 1rem; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
apps/docs/src/app/examples/chip/mandatory/mandatory.component.ts
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 @@ | ||
import { Component, ChangeDetectionStrategy } from '@angular/core'; | ||
|
||
@Component({ | ||
templateUrl: './mandatory.component.html', | ||
styleUrls: ['./mandatory.component.scss'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class MandatoryComponent {} | ||
|
||
export default MandatoryComponent; |
14 changes: 14 additions & 0 deletions
14
apps/docs/src/app/examples/chip/multiple-mandatory/multiple-mandatory.component.html
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,14 @@ | ||
<anglify-item-group multiple mandatory> | ||
<ng-template slot="item-group-item" let-active="active" let-toggle> | ||
<anglify-chip [active]="active" (click)="toggle()">Chip 1</anglify-chip> | ||
</ng-template> | ||
<ng-template slot="item-group-item" let-active="active" let-toggle> | ||
<anglify-chip [active]="active" (click)="toggle()">Chip 2</anglify-chip> | ||
</ng-template> | ||
<ng-template slot="item-group-item" let-active="active" let-toggle> | ||
<anglify-chip [active]="active" (click)="toggle()">Chip 3</anglify-chip> | ||
</ng-template> | ||
<ng-template slot="item-group-item" let-active="active" let-toggle> | ||
<anglify-chip [active]="active" (click)="toggle()">Chip 4</anglify-chip> | ||
</ng-template> | ||
</anglify-item-group> |
6 changes: 6 additions & 0 deletions
6
apps/docs/src/app/examples/chip/multiple-mandatory/multiple-mandatory.component.scss
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,6 @@ | ||
:host { | ||
anglify-item-group { | ||
display: flex; | ||
gap: 1rem; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
apps/docs/src/app/examples/chip/multiple-mandatory/multiple-mandatory.component.ts
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 @@ | ||
import { Component, ChangeDetectionStrategy } from '@angular/core'; | ||
|
||
@Component({ | ||
templateUrl: './multiple-mandatory.component.html', | ||
styleUrls: ['./multiple-mandatory.component.scss'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class MultipleMandatoryComponent {} | ||
|
||
export default MultipleMandatoryComponent; |
14 changes: 14 additions & 0 deletions
14
apps/docs/src/app/examples/chip/multiple/multiple.component.html
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,14 @@ | ||
<anglify-item-group multiple> | ||
<ng-template slot="item-group-item" let-active="active" let-toggle> | ||
<anglify-chip [active]="active" (click)="toggle()">Chip 1</anglify-chip> | ||
</ng-template> | ||
<ng-template slot="item-group-item" let-active="active" let-toggle> | ||
<anglify-chip [active]="active" (click)="toggle()">Chip 2</anglify-chip> | ||
</ng-template> | ||
<ng-template slot="item-group-item" let-active="active" let-toggle> | ||
<anglify-chip [active]="active" (click)="toggle()">Chip 3</anglify-chip> | ||
</ng-template> | ||
<ng-template slot="item-group-item" let-active="active" let-toggle> | ||
<anglify-chip [active]="active" (click)="toggle()">Chip 4</anglify-chip> | ||
</ng-template> | ||
</anglify-item-group> |
6 changes: 6 additions & 0 deletions
6
apps/docs/src/app/examples/chip/multiple/multiple.component.scss
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,6 @@ | ||
:host { | ||
anglify-item-group { | ||
display: flex; | ||
gap: 1rem; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
apps/docs/src/app/examples/chip/multiple/multiple.component.ts
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 @@ | ||
import { Component, ChangeDetectionStrategy } from '@angular/core'; | ||
|
||
@Component({ | ||
templateUrl: './multiple.component.html', | ||
styleUrls: ['./multiple.component.scss'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class MultipleComponent {} | ||
|
||
export default MultipleComponent; |
27 changes: 27 additions & 0 deletions
27
apps/docs/src/app/examples/chip/slots/slots.component.html
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,27 @@ | ||
<anglify-chip> | ||
<ng-template slot="prepend"> | ||
<anglify-icon icon="mdi-home" left></anglify-icon> | ||
</ng-template> | ||
Icon left | ||
</anglify-chip> | ||
|
||
<anglify-chip> | ||
<ng-template slot="append"> | ||
<anglify-icon icon="mdi-close-circle" right></anglify-icon> | ||
</ng-template> | ||
Icon right | ||
</anglify-chip> | ||
|
||
<anglify-chip appearance="outlined"> | ||
<ng-template slot="prepend"> | ||
<anglify-icon icon="mdi-home" left></anglify-icon> | ||
</ng-template> | ||
Icon left | ||
</anglify-chip> | ||
|
||
<anglify-chip appearance="outlined"> | ||
<ng-template slot="append"> | ||
<anglify-icon icon="mdi-close-circle" right></anglify-icon> | ||
</ng-template> | ||
Icon right | ||
</anglify-chip> |
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,5 @@ | ||
:host { | ||
display: grid; | ||
grid-template-columns: repeat(4, auto); | ||
gap: 1rem; | ||
} |
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 { ChangeDetectionStrategy, Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'anglify-slots', | ||
templateUrl: './slots.component.html', | ||
styleUrls: ['./slots.component.scss'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class SlotsComponent {} | ||
|
||
export default SlotsComponent; |
28 changes: 28 additions & 0 deletions
28
apps/docs/src/app/pages/component-pages/chip-page/chip-page.component.html
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,28 @@ | ||
<h1>Chip</h1> | ||
|
||
<h2>Examples</h2> | ||
|
||
<h3>Appearances</h3> | ||
<app-code-example component="chip" example="appearances"></app-code-example> | ||
|
||
<h3>Slots</h3> | ||
<app-code-example component="chip" example="slots"></app-code-example> | ||
|
||
<h3>Standard Group</h3> | ||
<app-code-example component="chip" example="groups"></app-code-example> | ||
|
||
<h3>Mandatory Chip</h3> | ||
<app-code-example component="chip" example="mandatory"></app-code-example> | ||
|
||
<h3>Multiple Selectable Chips</h3> | ||
<app-code-example component="chip" example="multiple"></app-code-example> | ||
|
||
<h3>Multiple Mandatory Selectable Chips</h3> | ||
<app-code-example component="chip" example="multiple-mandatory"></app-code-example> | ||
|
||
<h3>Filter</h3> | ||
<app-code-example component="chip" example="filter"></app-code-example> | ||
|
||
<h2>API</h2> | ||
<h3>Styling</h3> | ||
<app-styling-table forComponent="chip"></app-styling-table> |
Empty file.
8 changes: 8 additions & 0 deletions
8
apps/docs/src/app/pages/component-pages/chip-page/chip-page.component.ts
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,8 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'anglify-chip-page', | ||
templateUrl: './chip-page.component.html', | ||
styleUrls: ['./chip-page.component.scss'], | ||
}) | ||
export class ChipPageComponent {} |
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
Oops, something went wrong.