import { Action } from '@ngrx/store' ; export const TOGGLE = '[Sidebar] Toggle' ; export const SET_HAS_SIDEBAR = '[Sidebar] Set Has Sidebar' ; export const SET_MODE = '[Sidebar] Set Mode' ; export const SET_COLLAPSIBLE = '[Sidebar] Set Collapsible' ; export const SET_OPENED = '[Sidebar] Set Opened' ; export const SET_TITLE = '[Sidebar] Set Title' ; export const SET_SELECTED_MODULE = '[Sidebar] Set Selected Module' ; export class Toggle implements Action { readonly type = TOGGLE ; } export class SetHasSidebar implements Action { readonly type = SET_HAS_SIDEBAR ; constructor ( public payload ) { } } export class SetMode implements Action { readonly type = SET_MODE ; constructor ( public payload ) { } } export class SetCollapsible implements Action { readonly type = SET_COLLAPSIBLE ; constructor ( public payload ) { } } export class SetOpened implements Action { readonly type = SET_OPENED ; constructor ( public payload ) { } } export class SetTitle implements Action { readonly type = SET_TITLE ; constructor ( public payload ) { } } export class SetSelectedModule implements Action { readonly type = SET_SELECTED_MODULE ; constructor ( public payload ) { } } export type SidebarActions = Toggle | SetHasSidebar | SetMode | SetCollapsible | SetOpened | SetTitle | SetSelectedModule ;