/** 
 | 
 * @file          Common Calendar GanttChart panel 
 | 
 * @author        Wong Jia Hui (jiahui.wong@3ds.com) 
 | 
 */ 
 | 
import { GanttChartSOP } from '../../../libappsop/ganttchartsop'; 
 | 
import { PanelSOP } from '../../../libappsop/panelsop'; 
 | 
import { FormCommonCalendar } from './form.commoncalendar'; 
 | 
  
 | 
export class PanelCommonEventsGanttChart extends PanelSOP { 
 | 
  public static readonly title = 'Common Calendar Events (Gantt)'; 
 | 
  public gcCommonCalendarEvent = new GanttChartCommonEvent(); 
 | 
  
 | 
  public constructor() { 
 | 
    super(`${FormCommonCalendar.componentName}.pnlCommonCalendar.tabGanttChart`); 
 | 
  } 
 | 
  
 | 
  /** 
 | 
   * @override Additionally wait for gantt chart to be present. 
 | 
   */ 
 | 
  public async clickTab(): Promise<void> { 
 | 
    await super.clickTab(); 
 | 
    await this.gcCommonCalendarEvent.waitUntilPresent(); 
 | 
  } 
 | 
} 
 | 
  
 | 
export class GanttChartCommonEvent extends GanttChartSOP { 
 | 
  public static readonly title = 'Common Calendar Events'; 
 | 
  public constructor() { 
 | 
    super(FormCommonCalendar.componentName, 'gcCalendar'); 
 | 
  } 
 | 
} 
 | 
  
 | 
const ganttChartCommonEventContextMenuItem = { 
 | 
  CreateEventRow: { ContextMenu: 'cmRowWithoutSubscription', Name: 'mnuRowCreateEventWS', Label: 'Create event' }, 
 | 
}; 
 | 
  
 | 
export { ganttChartCommonEventContextMenuItem as GanttChartCommonEventContextMenuItem }; 
 |