mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
#3354 Filialauswahl Tablet design anpassung
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<shared-breadcrumb class="my-4" [key]="activatedProcessId$ | async" [tags]="['catalog']">
|
||||
<shared-branch-selector *ngIf="showBranchSelector" [value]="selectedBranch$ | async" (valueChange)="patchProcessData($event)">
|
||||
</shared-branch-selector>
|
||||
<shared-branch-selector [value]="selectedBranch$ | async" (valueChange)="patchProcessData($event)"> </shared-branch-selector>
|
||||
</shared-breadcrumb>
|
||||
<router-outlet></router-outlet>
|
||||
|
||||
@@ -15,7 +15,7 @@ shared-branch-selector.shared-branch-selector-opend {
|
||||
}
|
||||
|
||||
::ng-deep page-catalog shared-branch-selector .shared-branch-selector-input-container {
|
||||
@apply rounded-r-[5px];
|
||||
@apply rounded-[5px];
|
||||
}
|
||||
|
||||
::ng-deep page-catalog shared-branch-selector .shared-branch-selector-input-container .shared-branch-selector-input-icon {
|
||||
@@ -30,6 +30,18 @@ shared-branch-selector.shared-branch-selector-opend {
|
||||
@apply pl-0 border-l-0;
|
||||
}
|
||||
|
||||
::ng-deep .tablet page-catalog shared-branch-selector.shared-branch-selector-opend {
|
||||
@apply w-[736px];
|
||||
}
|
||||
|
||||
::ng-deep .tablet page-catalog shared-breadcrumb:focus-within .shared-breadcrumb__suffix {
|
||||
@apply rounded-[5px];
|
||||
}
|
||||
|
||||
::ng-deep .tablet page-catalog shared-breadcrumb:focus-within .shared-breadcrumb__suffix::before {
|
||||
@apply hidden;
|
||||
}
|
||||
|
||||
::ng-deep page-catalog shared-branch-selector.shared-branch-selector-opend .shared-branch-selector-input-container {
|
||||
@apply rounded-br-none;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
||||
import { ApplicationService } from '@core/application';
|
||||
import { EnvironmentService } from '@core/environment';
|
||||
import { BranchDTO } from '@swagger/checkout';
|
||||
import { UiErrorModalComponent, UiModalService } from '@ui/modal';
|
||||
import { Observable } from 'rxjs';
|
||||
@@ -17,9 +16,7 @@ export class PageCatalogComponent implements OnInit {
|
||||
activatedProcessId$: Observable<string>;
|
||||
selectedBranch$: Observable<BranchDTO>;
|
||||
|
||||
showBranchSelector = this.environment.isDesktop();
|
||||
|
||||
constructor(public application: ApplicationService, private _uiModal: UiModalService, private environment: EnvironmentService) {}
|
||||
constructor(public application: ApplicationService, private _uiModal: UiModalService) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.activatedProcessId$ = this.application.activatedProcessId$.pipe(map((processId) => String(processId)));
|
||||
|
||||
@@ -38,6 +38,7 @@ import { BranchSelectorStore } from './branch-selector.store';
|
||||
],
|
||||
imports: [CommonModule, FormsModule, UiIconModule, UiAutocompleteModule, UiCommonModule],
|
||||
standalone: true,
|
||||
exportAs: 'sharedBranchSelector',
|
||||
})
|
||||
export class BranchSelectorComponent implements OnInit, AfterViewInit, ControlValueAccessor {
|
||||
@ViewChild(UiAutocompleteComponent, { read: UiAutocompleteComponent, static: false })
|
||||
|
||||
Reference in New Issue
Block a user