Newer
Older
import {
animate,
state,
style,
transition,
trigger,
} from "@angular/animations";
import {
ChangeDetectionStrategy,
Component,
} from "@angular/core";
import {AbstractMainToolbarPresentational} from "@app/components/presentationals/main-toolbar/abstract-main-toolbar/abstract-main-toolbar.presentational";
import {AppUtil} from "@app/shared/utils/app.util";
@Component({
selector: "dlcm-main-toolbar-mobile",
templateUrl: "./main-toolbar-mobile.presentational.html",
styleUrls: ["./main-toolbar-mobile.presentational.scss"],
changeDetection: ChangeDetectionStrategy.OnPush,
animations: [
trigger("menuAnimation", [
state("void", style({transform: "translateY(-100%)"})),
transition(":enter", animate("600ms ease")),
transition(":leave", animate("300ms ease")),
]),
],
})
export class MainToolbarMobilePresentational extends AbstractMainToolbarPresentational {
get appUtil(): typeof AppUtil {
return AppUtil;
}
constructor(private oauth: OAuth2Service) {
super(oauth);
}
}