46 lines
1.6 KiB
TypeScript
46 lines
1.6 KiB
TypeScript
import { ICalendarConfig } from './ICalendarConfig';
|
|
import { IGridSettings } from './GridSettings';
|
|
import { IDateViewSettings } from './DateViewSettings';
|
|
import { ITimeFormatConfig } from './TimeFormatConfig';
|
|
import { IWorkWeekSettings } from './WorkWeekSettings';
|
|
import { CalendarView } from '../types/CalendarTypes';
|
|
/**
|
|
* All-day event layout constants
|
|
*/
|
|
export declare const ALL_DAY_CONSTANTS: {
|
|
readonly EVENT_HEIGHT: 22;
|
|
readonly EVENT_GAP: 2;
|
|
readonly CONTAINER_PADDING: 4;
|
|
readonly MAX_COLLAPSED_ROWS: 4;
|
|
readonly SINGLE_ROW_HEIGHT: number;
|
|
};
|
|
/**
|
|
* Work week presets - Configuration data
|
|
*/
|
|
export declare const WORK_WEEK_PRESETS: {
|
|
[key: string]: IWorkWeekSettings;
|
|
};
|
|
/**
|
|
* Configuration - DTO container for all configuration
|
|
* Pure data object loaded from JSON via ConfigManager
|
|
*/
|
|
export declare class Configuration {
|
|
private static _instance;
|
|
config: ICalendarConfig;
|
|
gridSettings: IGridSettings;
|
|
dateViewSettings: IDateViewSettings;
|
|
timeFormatConfig: ITimeFormatConfig;
|
|
currentWorkWeek: string;
|
|
currentView: CalendarView;
|
|
selectedDate: Date;
|
|
apiEndpoint: string;
|
|
constructor(config: ICalendarConfig, gridSettings: IGridSettings, dateViewSettings: IDateViewSettings, timeFormatConfig: ITimeFormatConfig, currentWorkWeek: string, currentView: CalendarView, selectedDate?: Date);
|
|
/**
|
|
* Get the current Configuration instance
|
|
* Used by web components that can't use dependency injection
|
|
*/
|
|
static getInstance(): Configuration;
|
|
setSelectedDate(date: Date): void;
|
|
getWorkWeekSettings(): IWorkWeekSettings;
|
|
}
|
|
export { Configuration as CalendarConfig };
|