mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-28 10:02:15 +00:00
fix(console-v2): app detail layout, create layout stepper (#3680)
* app detail * app-detail layout * app layout, create layout component, cleanup * lint
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<div class="max-width-container">
|
||||
<div class="enlarged-container">
|
||||
<div class="create-layout-container">
|
||||
<button (click)="close()" mat-icon-button matTooltip="{{ 'ACTIONS.CLOSE' | translate }}">
|
||||
<mat-icon>close</mat-icon>
|
||||
</button>
|
||||
<span class="abort">{{ title }}</span
|
||||
><span class="abort-2" *ngIf="createSteps > 1"
|
||||
>{{ 'ACTIONS.STEP' | translate }} {{ currentCreateStep }} {{ 'ACTIONS.OF' | translate }} {{ createSteps }}</span
|
||||
>
|
||||
</div>
|
||||
|
||||
<div class="create-layout-content">
|
||||
<ng-content></ng-content>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,23 @@
|
||||
.create-layout-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 2rem;
|
||||
|
||||
.abort {
|
||||
font-size: 1.2rem;
|
||||
margin-left: 2rem;
|
||||
}
|
||||
|
||||
.abort-2 {
|
||||
margin-left: 2rem;
|
||||
white-space: nowrap;
|
||||
font-size: 12px;
|
||||
padding: 0.25rem 1rem;
|
||||
border: 1px solid rgba(#8795a1, 0.2);
|
||||
border-radius: 50vw;
|
||||
}
|
||||
}
|
||||
|
||||
.create-layout-content {
|
||||
padding-left: 4.5rem;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { CreateLayoutComponent } from './create-layout.component';
|
||||
|
||||
describe('CreateLayoutComponent', () => {
|
||||
let component: CreateLayoutComponent;
|
||||
let fixture: ComponentFixture<CreateLayoutComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ CreateLayoutComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(CreateLayoutComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,18 @@
|
||||
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'cnsl-create-layout',
|
||||
templateUrl: './create-layout.component.html',
|
||||
styleUrls: ['./create-layout.component.scss'],
|
||||
})
|
||||
export class CreateLayoutComponent {
|
||||
@Input() currentCreateStep: number = 1;
|
||||
@Input() createSteps: number = 1;
|
||||
@Input() title: string = '';
|
||||
@Output() closed: EventEmitter<void> = new EventEmitter();
|
||||
constructor() {}
|
||||
|
||||
close() {
|
||||
this.closed.emit();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
import { CreateLayoutComponent } from './create-layout.component';
|
||||
|
||||
@NgModule({
|
||||
declarations: [CreateLayoutComponent],
|
||||
imports: [CommonModule, MatIconModule, MatButtonModule, TranslateModule, MatTooltipModule],
|
||||
exports: [CreateLayoutComponent],
|
||||
})
|
||||
export class CreateLayoutModule {}
|
||||
Reference in New Issue
Block a user