-
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
Showing
23 changed files
with
142 additions
and
50 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
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 |
---|---|---|
@@ -1,12 +1,18 @@ | ||
@use './layout/anchor/anchor'; | ||
@use './layout/anchorlist/anchorlist'; | ||
@use './layout/navbar/navbar'; | ||
@use './layout/sidenav/sidenav'; | ||
|
||
@mixin all-router-typography($typography-config) { | ||
@include anchor.typography($typography-config); | ||
@include anchorlist.typography($typography-config); | ||
@include navbar.typography($typography-config); | ||
@include sidenav.typography($typography-config); | ||
} | ||
|
||
@mixin all-router-theme($theme-config) { | ||
@include anchor.theme($theme-config); | ||
@include anchorlist.theme($theme-config); | ||
@include navbar.theme($theme-config); | ||
@include sidenav.theme($theme-config); | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/dbx-web/src/lib/router/layout/anchorlist/_anchorlist.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,10 @@ | ||
@use '../../../style/theming'; | ||
|
||
@mixin typography($typography-config) {} | ||
|
||
@mixin theme($theme-config) { | ||
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-router-anchorlist') { | ||
|
||
|
||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
packages/dbx-web/src/lib/router/layout/anchorlist/anchorlist.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,12 @@ | ||
<mat-nav-list class="dbx-anchor-list"> | ||
<ng-container *ngFor="let anchor of anchors; let last = last;"> | ||
<span dbx-anchor [anchor]="anchor"> | ||
<a mat-list-item> | ||
<mat-icon mat-list-icon *ngIf="anchor.icon">{{ anchor.icon }}</mat-icon> | ||
<!-- TODO: Add an icon from a letter if anchor.icon is unavailable. --> | ||
<div mat-line>{{ anchor.title }}</div> | ||
<mat-divider *ngIf="!last"></mat-divider> | ||
</a> | ||
</span> | ||
</ng-container> | ||
</mat-nav-list> |
17 changes: 17 additions & 0 deletions
17
packages/dbx-web/src/lib/router/layout/anchorlist/anchorlist.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,17 @@ | ||
import { Input, Component } from '@angular/core'; | ||
import { ClickableAnchorLink } from '@dereekb/dbx-core'; | ||
import { Maybe } from '@dereekb/util'; | ||
|
||
/** | ||
* Component that displays a list of ClickableAnchorLink values within a MatNavList. | ||
*/ | ||
@Component({ | ||
selector: 'dbx-anchor-list', | ||
templateUrl: './anchorlist.component.html' | ||
}) | ||
export class DbxAnchorListComponent { | ||
|
||
@Input() | ||
anchors?: Maybe<ClickableAnchorLink[]>; | ||
|
||
} |
29 changes: 29 additions & 0 deletions
29
packages/dbx-web/src/lib/router/layout/anchorlist/anchorlist.module.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,29 @@ | ||
import { MatListModule } from '@angular/material/list'; | ||
import { MatIconModule } from '@angular/material/icon'; | ||
import { CommonModule } from '@angular/common'; | ||
import { NgModule } from '@angular/core'; | ||
import { MatButtonModule } from '@angular/material/button'; | ||
import { MatTabsModule } from '@angular/material/tabs'; | ||
import { DbxAnchorModule } from '../anchor/anchor.module'; | ||
import { MatMenuModule } from '@angular/material/menu'; | ||
import { DbxAnchorListComponent } from './anchorlist.component'; | ||
|
||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
MatTabsModule, | ||
MatButtonModule, | ||
MatIconModule, | ||
MatListModule, | ||
MatMenuModule, | ||
DbxAnchorModule, | ||
], | ||
declarations: [ | ||
DbxAnchorListComponent | ||
], | ||
exports: [ | ||
DbxAnchorListComponent | ||
] | ||
}) | ||
export class DbxAnchorListModule { } |
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 @@ | ||
export * from './anchorlist.module'; | ||
export * from './anchorlist.component'; |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export * from './anchor'; | ||
export * from './anchorlist'; | ||
export * from './navbar'; | ||
export * from './sidenav'; | ||
export * from './layout.module'; |
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
10 changes: 10 additions & 0 deletions
10
packages/dbx-web/src/lib/router/layout/navbar/_navbar.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,10 @@ | ||
@use '../../../style/theming'; | ||
|
||
@mixin typography($typography-config) {} | ||
|
||
@mixin theme($theme-config) { | ||
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-router-navbar') { | ||
|
||
|
||
} | ||
} |
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
18 changes: 0 additions & 18 deletions
18
packages/dbx-web/src/lib/router/layout/sidenav/side.item.component.html
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
packages/dbx-web/src/lib/router/layout/sidenav/side.item.component.ts
This file was deleted.
Oops, something went wrong.
12 changes: 1 addition & 11 deletions
12
packages/dbx-web/src/lib/router/layout/sidenav/sidenav.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
2 changes: 1 addition & 1 deletion
2
packages/demo/src/app/modules/doc/modules/layout/container/layout.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
1 change: 1 addition & 0 deletions
1
packages/demo/src/app/modules/doc/modules/layout/container/section.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 @@ | ||
<p>docs home</p> |
6 changes: 6 additions & 0 deletions
6
packages/demo/src/app/modules/doc/modules/layout/container/section.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,6 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
templateUrl: './section.component.html' | ||
}) | ||
export class DocLayoutSectionComponent { } |
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