const MODAL = 'modal' ; const ROOT = 'root' ; const cssClasses = [ ] ; export namespace CSSUtils { export const CLASS_PREFIX = 'ns-' ; export const MODAL_ROOT_VIEW_CSS_CLASS = `${ CLASS_PREFIX }${ MODAL }` ; export const ROOT_VIEW_CSS_CLASS = `${ CLASS_PREFIX }${ ROOT }` ; export function getSystemCssClasses ( ) { return cssClasses ; } export function pushToSystemCssClasses ( value ) { cssClasses . push ( value ) ; return cssClasses . length ; } export function removeSystemCssClass ( value ) { const index = cssClasses . indexOf ( value ) ; let removedElement ; if ( index > - 1 ) { removedElement = cssClasses . splice ( index , 1 ) ; } return removedElement ; } export function getModalRootViewCssClass ( ) { return MODAL_ROOT_VIEW_CSS_CLASS ; } export function getRootViewCssClasses ( ) { return [ ROOT_VIEW_CSS_CLASS , ... cssClasses ] ; } export function pushToRootViewCssClasses ( value ) { return pushToSystemCssClasses ( value ) + 1 ; } export function removeFromRootViewCssClasses ( value ) { return removeSystemCssClass ( value ) ; } }