|
1 | | -<mat-drawer-container class="static h-full"> |
2 | | - <mat-drawer class="fixed top-16 h-full" [(opened)]="drawerOpened" mode="side"> |
3 | | - <seed-vertical-navigation |
4 | | - class="mt-4 bg-gray-100 dark:bg-gray-700 print:hidden" |
5 | | - [appearance]="'default'" |
6 | | - [mode]="'side'" |
7 | | - [navigation]="columnsNavigationMenu" |
8 | | - [opened]="true" |
9 | | - [autoCollapse]="true" |
10 | | - name="columnssNavigation" |
11 | | - > |
12 | | - <!-- Navigation header hook --> |
13 | | - <ng-container verticalNavigationContentHeader> |
14 | | - <div class="static flex items-center justify-center p-4"> |
15 | | - <h3 class="font-xl font-bold">Columns</h3> |
| 1 | +<div class="absolute inset-0 flex min-w-0 flex-col overflow-hidden"> |
| 2 | + <mat-drawer-container class="h-full flex-auto"> |
| 3 | + <mat-drawer class="flex w-60 min-w-60 dark:bg-gray-900" #drawer [autoFocus]="false" mode="side" opened> |
| 4 | + <seed-vertical-navigation [inner]="true" [navigation]="columnsNavigationMenu" [opened]="true" mode="side" name="columnssNavigation"> |
| 5 | + <!-- Navigation header hook --> |
| 6 | + <ng-container verticalNavigationContentHeader> |
| 7 | + <div class="static mt-[24px] flex p-4 pl-6"> |
| 8 | + <h3 class="text-sm font-semibold uppercase tracking-wider text-primary-400">Columns</h3> |
| 9 | + </div> |
| 10 | + </ng-container> |
| 11 | + </seed-vertical-navigation> |
| 12 | + </mat-drawer> |
| 13 | + <mat-drawer-content class="h-full"> |
| 14 | + <seed-page |
| 15 | + [config]="{ |
| 16 | + title: pageTitle, |
| 17 | + titleIcon: 'fa-solid:sitemap', |
| 18 | + action: toggleHelp, |
| 19 | + actionIcon: 'fa-solid:circle-question', |
| 20 | + breadcrumbs: ['Organization Columns'], |
| 21 | + sideNavToggle: true, |
| 22 | + }" |
| 23 | + > |
| 24 | + @if (useTabs) { |
| 25 | + <nav [tabPanel]="tabPanel" mat-tab-nav-bar> |
| 26 | + @for (tab of tabs; track tab.label) { |
| 27 | + <a [active]="tab.route === currentType()" (click)="navigateTo(tab.route)" mat-tab-link>{{ tab.label }}</a> |
| 28 | + } |
| 29 | + </nav> |
| 30 | + } |
| 31 | + <mat-tab-nav-panel class="p-4" #tabPanel> |
| 32 | + <router-outlet></router-outlet> |
| 33 | + </mat-tab-nav-panel> |
| 34 | + </seed-page> |
| 35 | + </mat-drawer-content> |
| 36 | + <mat-drawer [(opened)]="helpOpened" mode="over" position="end"> |
| 37 | + @if (!helpComponent) { |
| 38 | + <div class="prose px-4" *transloco="let t"> |
| 39 | + <h2 class="mt-6 flex items-center border-b-2 font-extrabold tracking-tight"> |
| 40 | + {{ t('Help') }}<mat-icon class="mx-2 text-current icon-size-3" svgIcon="fa-solid:chevron-right"></mat-icon |
| 41 | + >{{ t('No Help Available Yet') }} |
| 42 | + </h2> |
| 43 | + <p>Available Help Text will appear in this space.</p> |
16 | 44 | </div> |
17 | | - </ng-container> |
18 | | - |
19 | | - <!-- Navigation footer hook --> |
20 | | - <ng-container verticalNavigationFooter> </ng-container> |
21 | | - </seed-vertical-navigation> |
22 | | - </mat-drawer> |
23 | | - <mat-drawer-content class="h-full p-4"> |
24 | | - <seed-page |
25 | | - [config]="{ |
26 | | - title: pageTitle, |
27 | | - titleIcon: 'fa-solid:sitemap', |
28 | | - action: toggleHelp, |
29 | | - actionIcon: 'fa-solid:circle-question', |
30 | | - }" |
31 | | - > |
32 | | - @if (useTabs) { |
33 | | - <nav [tabPanel]="tabPanel" mat-tab-nav-bar> |
34 | | - @for (tab of tabs; track tab.label) { |
35 | | - <a [active]="tab.route === currentType()" (click)="navigateTo(tab.route)" mat-tab-link>{{ tab.label }}</a> |
36 | | - } |
37 | | - </nav> |
38 | 45 | } |
39 | | - <mat-tab-nav-panel #tabPanel> |
40 | | - <router-outlet></router-outlet> |
41 | | - </mat-tab-nav-panel> |
42 | | - </seed-page> |
43 | | - </mat-drawer-content> |
44 | | - <mat-drawer [(opened)]="helpOpened" mode="over" position="end"> |
45 | | - @if (!helpComponent) { |
46 | | - <div class="prose px-4" *transloco="let t"> |
47 | | - <h2 class="mt-6 flex items-center border-b-2 font-extrabold tracking-tight"> |
48 | | - {{ t('Help') }}<mat-icon class="mx-2 text-current icon-size-3" svgIcon="fa-solid:chevron-right"></mat-icon |
49 | | - >{{ t('No Help Available Yet') }} |
50 | | - </h2> |
51 | | - <p>Available Help Text will appear in this space.</p> |
52 | | - </div> |
53 | | - } |
54 | | - @if (helpComponent) { |
55 | | - <ng-container *ngComponentOutlet="helpComponent" /> |
56 | | - } |
57 | | - </mat-drawer> |
58 | | -</mat-drawer-container> |
| 46 | + @if (helpComponent) { |
| 47 | + <ng-container *ngComponentOutlet="helpComponent" /> |
| 48 | + } |
| 49 | + </mat-drawer> |
| 50 | + </mat-drawer-container> |
| 51 | +</div> |
0 commit comments