-
Notifications
You must be signed in to change notification settings - Fork 31
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
Showing
31 changed files
with
700 additions
and
70 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...ects/design-angular-kit/src/lib/components/core/dropdown/dropdown/dropdown.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
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
34 changes: 34 additions & 0 deletions
34
projects/design-angular-kit/src/lib/components/navigation/megamenu/megamenu.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,34 @@ | ||
<div class="megamenu pb-5 pt-3 py-lg-0"> | ||
<div class="row"> | ||
@if (mode === 'left-section') { | ||
<div class="col-xs-12 col-lg-4 px-0"> | ||
<div class="row"> | ||
<div class="col-12 it-vertical it-description pb-lg-3"> | ||
<div class="description-content ps-4 ps-sm-5 ms-3"> | ||
<ng-content select="[megamenuLeftZone]"></ng-content> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
} | ||
<div class="col-12" [class.col-lg-8]="mode !== 'normal'"> | ||
@if (header) { | ||
<div class="it-heading-link-wrapper"> | ||
<ng-content select="[megamenuHeadingLink]"></ng-content> | ||
</div> | ||
} | ||
<div class="row"> | ||
<ng-content select="[megamenuLinkList]"></ng-content> | ||
</div> | ||
</div> | ||
@if (footer || mode === 'right-section') { | ||
<div [class.col-xs-12]="mode === 'right-section'" [class.col-lg-4]="mode === 'right-section'" [class.px-0]="mode === 'right-section'"> | ||
<div [class.it-footer-link-wrapper]="footer" [class.it-footer-link-wrapper-vertical]="mode === 'right-section'"> | ||
<div class="d-flex flex-column justify-content-around" [class.flex-lg-row]="mode !== 'right-section'"> | ||
<ng-content select="[megamenuFooter]"></ng-content> | ||
</div> | ||
</div> | ||
</div> | ||
} | ||
</div> | ||
</div> |
5 changes: 5 additions & 0 deletions
5
projects/design-angular-kit/src/lib/components/navigation/megamenu/megamenu.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 @@ | ||
::ng-deep .theme-light-desk { | ||
.nav-link::before { | ||
background-color: #06c; | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
projects/design-angular-kit/src/lib/components/navigation/megamenu/megamenu.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,30 @@ | ||
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; | ||
import { NgTemplateOutlet } from '@angular/common'; | ||
import { inputToBoolean } from '../../../utils/coercion'; | ||
|
||
@Component({ | ||
standalone: true, | ||
selector: 'it-megamenu', | ||
templateUrl: './megamenu.component.html', | ||
styleUrls: ['./megamenu.component.scss'], | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
imports: [NgTemplateOutlet], | ||
}) | ||
export class ItMegamenuComponent { | ||
/** | ||
* Megamenu mode | ||
*/ | ||
@Input() mode: 'right-section' | 'left-section' | 'normal' = 'normal'; | ||
|
||
/** | ||
* To show Megamenu header | ||
* @default false | ||
*/ | ||
@Input({ transform: inputToBoolean }) header?: boolean; | ||
|
||
/** | ||
* To show Megamenu footer | ||
* @default false | ||
*/ | ||
@Input({ transform: inputToBoolean }) footer?: boolean; | ||
} |
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
Oops, something went wrong.