parent
c439e11eb3
commit
8aa250dbd3
@ -1,4 +0,0 @@ |
||||
<ng-content select="[slot=trigger]"></ng-content> |
||||
<div class="op-popout--wrapper"> |
||||
<ng-content select="[slot=trigger]"></ng-content> |
||||
</div> |
@ -1,30 +0,0 @@ |
||||
import { |
||||
Component, |
||||
HostBinding, |
||||
Input, |
||||
} from '@angular/core'; |
||||
|
||||
export enum OpPopoutAlignment { |
||||
Down = 'down', |
||||
Up = 'up', |
||||
} |
||||
|
||||
@Component({ |
||||
selector: 'op-popout', |
||||
templateUrl: './popout.component.html', |
||||
}) |
||||
export class OpPopoutComponent { |
||||
@HostBinding('class.op-popout') className = true; |
||||
|
||||
@HostBinding('class.op-popout_opened') get openedClassName() { |
||||
return this.opened; |
||||
} |
||||
|
||||
@HostBinding('class') get alignmentClassName() { |
||||
return { [`op-popout_align-${this.alignment}`]: true }; |
||||
} |
||||
|
||||
@Input() alignment: OpPopoutAlignment = OpPopoutAlignment.Down; |
||||
|
||||
public opened = false; |
||||
} |
@ -1,16 +0,0 @@ |
||||
.op-popout |
||||
display: inline-flex |
||||
|
||||
&--wrapper |
||||
position: absolute |
||||
display: none |
||||
left: 0 |
||||
|
||||
&_opened &--wrapper |
||||
display: flex |
||||
|
||||
&_align-down &--wrapper |
||||
top: 100% |
||||
|
||||
&_align-up &--wrapper |
||||
bottom: 100% |
@ -1,20 +0,0 @@ |
||||
<div class="op-popout--headline"> |
||||
<h1>Select project(s)</h1> |
||||
<button |
||||
class="op-link" |
||||
type="button" |
||||
(click)="clearSelection()" |
||||
></button> |
||||
</div> |
||||
|
||||
<label> |
||||
<span class="hidden-for-sighted">Search</span> |
||||
<input |
||||
type="text" |
||||
(input)="search()" |
||||
/> |
||||
</label> |
||||
|
||||
<ul> |
||||
<li>Project A</li> |
||||
</ul> |
@ -1,18 +0,0 @@ |
||||
import { |
||||
Component, |
||||
HostBinding, |
||||
} from '@angular/core'; |
||||
|
||||
@Component({ |
||||
selector: 'op-project-list-select', |
||||
templateUrl: './project-list-select.component.html', |
||||
}) |
||||
export class OpProjectListSelectComponent { |
||||
@HostBinding('class.op-project-list-select') className = true; |
||||
|
||||
public clearSelection() { |
||||
} |
||||
|
||||
public search() { |
||||
} |
||||
} |
Loading…
Reference in new issue