| 1 | <div |
| 2 | class="relative z-10" |
| 3 | role="dialog" |
| 4 | aria-labelledby="slide-over-title" |
| 5 | aria-modal="true"> |
| 6 | <div class="absolute inset-0 overflow-hidden"> |
| 7 | <div |
| 8 | class="pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10 sm:pl-16"> |
| 9 | <div class="pointer-events-auto w-screen max-w-3xl"> |
| 10 | <div |
| 11 | class="flex flex-col overflow-y-auto h-full shadow-xl shadow-gray-400"> |
| 12 | <div class="relative flex-1 bg-[#fcfcfc]"> |
| 13 | <div |
| 14 | class="bg-gray-100 flex flex-col justify-between h-24 md:h-36 lg:h-44 xl:h-52"> |
| 15 | <!-- Top header --> |
| 16 | <div |
| 17 | class="flex sticky top-0 z-50" |
| 18 | [ngClass]=" |
| 19 | state.config.showNavigation |
| 20 | ? 'justify-between' |
| 21 | : 'justify-end' |
| 22 | "> |
| 23 | <!-- Navigation --> |
| 24 | <div *ngIf="state.config.showNavigation" class="p-2"> |
| 25 | <ng-container [ngSwitch]="state.config.navigationType"> |
| 26 | <ng-container *ngSwitchCase="'STEPPER'"> |
| 27 | <button mat-icon-button (click)="onNavigate('PREVIOUS')"> |
| 28 | <mat-icon |
| 29 | class="align-top text-gray-500 hover:text-brand-highlight" |
| 30 | svgIcon="chevron-up"></mat-icon> |
| 31 | </button> |
| 32 | <button mat-icon-button (click)="onNavigate('NEXT')"> |
| 33 | <mat-icon |
| 34 | class="align-top text-gray-500 hover:text-brand-highlight" |
| 35 | svgIcon="chevron-down"></mat-icon> |
| 36 | </button> |
| 37 | </ng-container> |
| 38 | <ng-container *ngSwitchCase="'GO_BACK'"> |
| 39 | <button mat-icon-button (click)="onGoBack()"> |
| 40 | <mat-icon |
| 41 | class="align-top text-gray-500 hover:text-brand-highlight" |
| 42 | svgIcon="chevron-left"></mat-icon> |
| 43 | </button> |
| 44 | </ng-container> |
| 45 | </ng-container> |
| 46 | </div> |
| 47 | <!-- Navigation --> |
| 48 | |
| 49 | <!-- Actions --> |
| 50 | <div class="p-2"> |
| 51 | <button mat-icon-button (click)="onClose()"> |
| 52 | <mat-icon |
| 53 | class="align-top text-gray-500 hover:text-brand-highlight" |
| 54 | >close</mat-icon |
| 55 | > |
| 56 | </button> |
| 57 | </div> |
| 58 | <!-- Actions --> |
| 59 | </div> |
| 60 | <!-- Top header --> |
| 61 | </div> |
| 62 | |
| 63 | <!-- Slide over content --> |
| 64 | <div class="flex-1"> |
| 65 | <ng-container |
| 66 | *ngComponentOutlet=" |
| 67 | component; |
| 68 | injector: dynamicComponentInjector |
| 69 | "></ng-container> |
| 70 | </div> |
| 71 | <!-- Slide over content --> |
| 72 | </div> |
| 73 | </div> |
| 74 | </div> |
| 75 | </div> |
| 76 | </div> |
| 77 | </div> |