-
Notifications
You must be signed in to change notification settings - Fork 22
Add 14 grid-lite samples from igniteui-wc-examples #3781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 59 commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
0b30955
feat(samples): new styling samples based on design systems
adrianptrv c08969d
feat(samples): add SASS selectors
adrianptrv c1ac555
fix(samples): new styling and structure changes based on comments
adrianptrv fa04339
fix(samples): lint errors
adrianptrv 93edff8
fix(samples): formatting
adrianptrv abe209d
feat(samples): add new calendar and input styling samples
adrianptrv 19acc1c
chore(input): formatting
adrianptrv c349d62
chore(samples): format code
adrianptrv cfae764
Merge branch 'master' into apetrov/new-design-system-samples
adrianptrv 560f234
fix(card & input): styling
adrianptrv 1a90106
Merge branch 'master' into apetrov/new-design-system-samples
adrianptrv 8683e05
Merge branch 'master' into apetrov/new-design-system-samples
adrianptrv b1b3f16
Merge branch 'master' into apetrov/new-design-system-samples
adrianptrv 964d98e
Merge branch 'master' into apetrov/new-design-system-samples
simeonoff 2354cf0
feat(cell-merging): adding editing to samples
ChronosSF 4f70c16
Merge branch 'master' into apetrov/new-design-system-samples
simeonoff c46e556
Merge pull request #3741 from IgniteUI/vnext
ChronosSF 1310445
Merge branch 'master' into apetrov/new-design-system-samples
simeonoff a0cb470
fix(live-editing): upping live-editing version to fix issue with tail…
ChronosSF f6add58
Merge branch 'master' into adding-editing-cellmerging-master
ChronosSF 0289ad0
Merge pull request #3743 from IgniteUI/sstoychev/fix-v-m
ChronosSF e06c4e1
Merge branch 'master' into adding-editing-cellmerging-master
ChronosSF 8830f04
Merge pull request #3738 from IgniteUI/adding-editing-cellmerging-master
ChronosSF f78d25f
Merge branch 'master' into apetrov/new-design-system-samples
simeonoff cd0d6d4
feat(carousel): add styling & tailwind sample
adrianptrv 849fd75
fix(carousel): format sample files
adrianptrv d2d6344
fix(styling): increase checkbox tick width + other minor fixes
adrianptrv a651b99
Merge pull request #3757 from IgniteUI/vnext
ChronosSF 56e14c2
Merge branch 'master' into apetrov/new-design-system-samples
simeonoff bf98b19
style(checkbox): update the checkbox style component css formatting
simeonoff cc053b0
Merge branch 'master' into apetrov/add-carousel-styling-sample
adrianptrv 2a67cd8
Merge pull request #3754 from IgniteUI/apetrov/add-carousel-styling-s…
simeonoff 051b080
Merge branch 'master' into apetrov/new-design-system-samples
simeonoff 4910751
fix(carousel): rename image + minor fixes
adrianptrv 7d008e6
fix(carousel): wording
adrianptrv 04e9ae6
Merge pull request #3760 from IgniteUI/apetrov/carousel-additional-fixes
simeonoff ecb4bba
Merge branch 'master' into apetrov/new-design-system-samples
adrianptrv 2e914ff
chore(igniteui-angular): update version to 20.1.6
adrianptrv 7680105
deps(igniteui-angular-i18n): bump to 20.1.6
simeonoff b82baa2
Merge pull request #3699 from IgniteUI/apetrov/new-design-system-samples
simeonoff e005744
feat(cd): adding dispatch workflow for cd
ChronosSF 890083c
chore(*): adding permissions
ChronosSF 9f5c55d
fix(cd): fixing secrets for deploy trigger pipe
ChronosSF 3d8cb55
Merge pull request #3765 from IgniteUI/sstoychev/cd-trigger-master
ChronosSF 7c3a60b
fix(cd): resolving issue with env var
ChronosSF 1db16f7
chore(cd): try with official actions
ChronosSF 9911771
chore(cd): try v8 with proper node
ChronosSF 906ec53
chore(cd): add fallback and check
ChronosSF 85f8a01
feat(cd): add deployment info artifact
ChronosSF 410923d
feat(*): adding artifact dl info
ChronosSF 451d732
feat(matrix): using matrix strategy for templated run
ChronosSF 0e690f9
fix(cd): Potential fix for code scanning alert no. 8
ChronosSF 47cd96c
Merge pull request #3775 from IgniteUI/sstoychev/matrix-yml-master
ChronosSF b0c2576
Initial plan
Copilot d219ca8
Add grid-lite samples - all 14 components created with routes
Copilot a3527ce
Fix build issues - install igc-grid-lite, fix event handlers, update …
Copilot 100d62d
Merge remote-tracking branch 'origin/vnext' into copilot/transfer-gri…
ChronosSF 956deee
fix(*): pushing updated lock
ChronosSF fa63c47
fix(grid-lite): applying proper paths and patterns
ChronosSF b0257de
Potential fix for code scanning alert no. 10: Insecure randomness
ChronosSF daa39fe
refactor(custom-lite-grid): update sample to include themes
simeonoff 9d6428f
fix(grid-lite): fixing grid lite samples and live-editing
ChronosSF File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -85,4 +85,4 @@ jobs: | |
| unit: false, | ||
| integration: true | ||
| } | ||
| }); | ||
| }); | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
21 changes: 3 additions & 18 deletions
21
src/app/data-display/chip/chip-styling/chip-styling.component.html
This file contains hidden or 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 |
|---|---|---|
| @@ -1,23 +1,8 @@ | ||
| <igx-chips-area (reorder)="chipsOrderChanged($event)"> | ||
| <igx-chips-area> | ||
| @for (chip of chipList; track chip) { | ||
| <igx-chip | ||
| [id]="chip.id" | ||
| [selectable]="true" | ||
| [selectIcon]="mySelectIcon" | ||
| [removable]="true" | ||
| [removeIcon]="myRemoveIcon" | ||
| (remove)="chipRemoved($event)" | ||
| [draggable]="true"> | ||
| <igx-icon igxPrefix>{{chip.icon}}</igx-icon> | ||
| <igx-chip [ngClass]="chip.class"> | ||
| <igx-icon igxPrefix name={{chip.icon}}></igx-icon> | ||
| {{chip.text}} | ||
| </igx-chip> | ||
| } | ||
| </igx-chips-area> | ||
|
|
||
| <ng-template #mySelectIcon> | ||
| <igx-icon>check_circle</igx-icon> | ||
| </ng-template> | ||
|
|
||
| <ng-template #myRemoveIcon> | ||
| <igx-icon>delete</igx-icon> | ||
| </ng-template> |
53 changes: 45 additions & 8 deletions
53
src/app/data-display/chip/chip-styling/chip-styling.component.scss
This file contains hidden or 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 |
|---|---|---|
| @@ -1,11 +1,48 @@ | ||
| @use "layout.scss"; | ||
| @use "igniteui-angular/theming" as *; | ||
|
|
||
| $custom-theme: chip-theme( | ||
| $background: #57a5cd, | ||
| $selected-background: #ecaa53, | ||
| $remove-icon-color: #d81414, | ||
| $border-radius: 5px, | ||
| ); | ||
|
|
||
| @include css-vars($custom-theme); | ||
| // CSS variables approach | ||
|
|
||
| igx-chip { | ||
| --text-color: #fff; | ||
| --hover-text-color: #fff; | ||
| --focus-text-color: #fff; | ||
| --border-radius: #{rem(5px)}; | ||
| } | ||
|
|
||
| .xcom { | ||
| --background: #000; | ||
| --hover-background: #000; | ||
| --focus-background: #323232; | ||
| } | ||
|
|
||
| .youtube { | ||
| --background: #cd201f; | ||
| --hover-background: #cd201f; | ||
| --focus-background: #9f1717; | ||
| } | ||
|
|
||
| .facebook { | ||
| --background: #3b5999; | ||
| --hover-background: #3b5999; | ||
| --focus-background: #2c4378; | ||
| } | ||
|
|
||
| .linkedin { | ||
| --background: #55acee; | ||
| --hover-background: #55acee; | ||
| --focus-background: #4682af; | ||
| } | ||
|
|
||
| // Sass theme approach | ||
|
|
||
| // $custom-chip-theme: chip-theme( | ||
| // $background: #cd201f, | ||
| // $text-color: #fff, | ||
| // $hover-background: #cd201f, | ||
| // $focus-background: #9f1717, | ||
| // $border-radius: rem(5px) | ||
| // ); | ||
|
|
||
| // @include css-vars($custom-chip-theme) | ||
|
|
89 changes: 44 additions & 45 deletions
89
src/app/data-display/chip/chip-styling/chip-styling.component.ts
This file contains hidden or 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 |
|---|---|---|
| @@ -1,52 +1,51 @@ | ||
| import { ChangeDetectorRef, Component, inject } from '@angular/core'; | ||
| import { IBaseChipEventArgs, IChipsAreaReorderEventArgs, IgxChipsAreaComponent, IgxChipComponent, IgxIconComponent, IgxPrefixDirective } from 'igniteui-angular'; | ||
|
|
||
| import { ChangeDetectorRef, Component, inject, OnInit } from '@angular/core'; | ||
| import { facebook, linkedin } from '@igniteui/material-icons-extended'; | ||
| import { | ||
| IgxChipsAreaComponent, | ||
| IgxChipComponent, | ||
| IgxIconComponent, | ||
| IgxPrefixDirective, | ||
| IgxIconService | ||
| } from 'igniteui-angular'; | ||
| import { NgClass } from '@angular/common'; | ||
|
|
||
| @Component({ | ||
| selector: 'app-chip', | ||
| styleUrls: ['./chip-styling.component.scss'], | ||
| templateUrl: './chip-styling.component.html', | ||
| imports: [IgxChipsAreaComponent, IgxChipComponent, IgxIconComponent, IgxPrefixDirective] | ||
| selector: 'app-chip', | ||
| styleUrls: ['./chip-styling.component.scss'], | ||
| templateUrl: './chip-styling.component.html', | ||
| imports: [IgxChipsAreaComponent, IgxChipComponent, IgxIconComponent, IgxPrefixDirective, NgClass] | ||
| }) | ||
|
|
||
| export class ChipStylingSampleComponent { | ||
| changeDetectionRef = inject(ChangeDetectorRef); | ||
|
|
||
| public chipList = [ | ||
| { | ||
| text: 'Country', | ||
| id: '1', | ||
| icon: 'place' | ||
| }, | ||
| { | ||
| text: 'City', | ||
| id: '2', | ||
| icon: 'location_city' | ||
| }, | ||
| { | ||
| text: 'Town', | ||
| id: '3', | ||
| icon: 'store' | ||
| }, | ||
| { | ||
| text: 'First Name', | ||
| id: '4', | ||
| icon: 'person_pin' | ||
| } | ||
| ]; | ||
|
|
||
|
|
||
| public chipRemoved(event: IBaseChipEventArgs) { | ||
| this.chipList = this.chipList.filter((item) => item.id !== event.owner.id); | ||
| this.changeDetectionRef.detectChanges(); | ||
| } | ||
| export class ChipStylingSampleComponent implements OnInit { | ||
| changeDetectionRef = inject(ChangeDetectorRef); | ||
| private iconService = inject(IgxIconService) | ||
| public ngOnInit() { | ||
| this.iconService.addSvgIconFromText('x', '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" class="bi bi-twitter-x" viewBox="0 0 16 16"><path d="M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z"/></svg>'); | ||
| this.iconService.addSvgIconFromText('youtube', '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" class="bi bi-youtube" viewBox="0 0 16 13"> <path d="M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.01 2.01 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.01 2.01 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31 31 0 0 1 0 7.68v-.123c.002-.215.01-.958.064-1.778l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.01 2.01 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A100 100 0 0 1 7.858 2zM6.4 5.209v4.818l4.157-2.408z"/> </svg>'); | ||
| this.iconService.addSvgIconFromText(facebook.name, facebook.value); | ||
| this.iconService.addSvgIconFromText(linkedin.name, linkedin.value); | ||
| } | ||
|
|
||
| public chipsOrderChanged(event: IChipsAreaReorderEventArgs) { | ||
| const newChipList = []; | ||
| for (const chip of event.chipsArray) { | ||
| const chipItem = this.chipList.filter((item) => item.id === chip.id)[0]; | ||
| newChipList.push(chipItem); | ||
| } | ||
| this.chipList = newChipList; | ||
| public chipList = [ | ||
| { | ||
| text: 'X.com', | ||
| class: 'xcom', | ||
| icon: 'x' | ||
| }, | ||
| { | ||
| text: 'Youtube', | ||
| class: 'youtube', | ||
| icon: 'youtube' | ||
| }, | ||
| { | ||
| text: 'Facebook', | ||
| class: 'facebook', | ||
| icon: 'facebook' | ||
| }, | ||
| { | ||
| text: 'LinkedIn', | ||
| class: 'linkedin', | ||
| icon: 'linkedin' | ||
| } | ||
| ]; | ||
| } | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -1,4 +1,23 @@ | ||
| @use "igniteui-angular/theming" as *; | ||
|
|
||
| :host { | ||
| ::ng-deep { | ||
| .igx-chip__item { | ||
| height: rem(20px); | ||
| font-size: rem(12px); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| igx-chip { | ||
| margin-right: 5px; | ||
| margin-top: 20px; | ||
| margin-right: rem(8px); | ||
| margin-top: rem(20px); | ||
| } | ||
|
|
||
| igx-chips-area { | ||
| margin-left: rem(20px); | ||
| } | ||
|
|
||
| igx-icon { | ||
| --size: #{rem(12px)}; | ||
| } |
37 changes: 21 additions & 16 deletions
37
src/app/data-entries/buttons/buttons-style/buttons-style.component.html
This file contains hidden or 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 |
|---|---|---|
| @@ -1,17 +1,22 @@ | ||
| <div class="buttons-sample"> | ||
| <div class="button-sample"> | ||
| <button igxButton="contained" igxRipple>Contained Button</button> | ||
| @for (item of range; let i = $index; track i) { | ||
| <div [class]="'buttons-sample-' + (i + 1)"> | ||
| <div class="button-sample"> | ||
| <button igxButton="contained">Solid</button> | ||
| </div> | ||
| <div class="button-sample"> | ||
| <button igxButton="outlined">Outlined</button> | ||
| </div> | ||
| <div class="button-sample dashed"> | ||
| <button igxButton="outlined">Dashed</button> | ||
| </div> | ||
| <div class="button-sample filled"> | ||
| <button igxButton="flat">Filled</button> | ||
| </div> | ||
| <div class="button-sample text"> | ||
| <button igxButton="flat">Text</button> | ||
| </div> | ||
| <div class="button-sample link"> | ||
| <button igxButton="flat">Link</button> | ||
| </div> | ||
| </div> | ||
| <div class="button-sample"> | ||
| <button igxButton="flat" igxRipple>Flat Button</button> | ||
| </div> | ||
| <div class="button-sample"> | ||
| <button igxButton="outlined" igxRipple>Outlined Button</button> | ||
| </div> | ||
| <div class="button-sample"> | ||
| <button igxButton="fab" igxRipple>Fab Button</button> | ||
| </div> | ||
| <div class="button-sample"> | ||
| <button igxButton="contained" [disabled]="'true'">Disabled</button> | ||
| </div> | ||
| </div> | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot We have icons for both youtube and x (twitter) in
material-icons-extended