import { Action } from '@ngrx/store' ; import { type } from "../util" ; export const ADD_ALERT = '[Layout] add alert' ; export const REMOVE_ALERT = '[Layout] remove alert' ; export const OPEN_MODAL = '[Layout] Open modal' ; export const CLOSE_MODAL = '[Layout] Close modal' ; export const OPEN_LEFT_SIDENAV = '[Layout] Open LeftSidenav' ; export const CLOSE_LEFT_SIDENAV = '[Layout] Close LeftSidenav' ; export const OPEN_RIGHT_SIDENAV = '[Layout] Open RightSidenav' ; export const CLOSE_RIGHT_SIDENAV = '[Layout] Close RightSidenav' ; export const RESIZE_WINDOW = '[Layout] Resize window' ; export class AddAlertAction implements Action { readonly type = ADD_ALERT ; constructor ( public payload ) { } } export class RemoveAlertAction implements Action { readonly type = REMOVE_ALERT ; constructor ( public payload ) { } } export class ResizeWndowAction implements Action { readonly type = RESIZE_WINDOW ; constructor ( public payload ) { } } export class OpenModalAction implements Action { readonly type = OPEN_MODAL ; constructor ( public payload ) { } } export class CloseModalAction implements Action { readonly type = CLOSE_MODAL ; constructor ( ) { } } export class OpenLeftSidenavAction implements Action { readonly type = OPEN_LEFT_SIDENAV ; constructor ( ) { } } export class CloseLeftSidenavAction implements Action { readonly type = CLOSE_LEFT_SIDENAV ; constructor ( ) { } } export class OpenRightSidenavAction implements Action { readonly type = OPEN_RIGHT_SIDENAV ; constructor ( ) { } } export class CloseRightSidenavAction implements Action { readonly type = CLOSE_RIGHT_SIDENAV ; constructor ( ) { } } export type LayoutActions = CloseModalAction | OpenModalAction | CloseLeftSidenavAction | OpenLeftSidenavAction | OpenRightSidenavAction | CloseRightSidenavAction | ResizeWndowAction | AddAlertAction | RemoveAlertAction ;