Calendar/wwwroot/js/configuration/CalendarConfig.d.ts
2026-02-03 00:02:25 +01:00

44 lines
1.5 KiB
TypeScript

import { ICalendarConfig } from './ICalendarConfig';
import { IGridSettings } from './GridSettings';
import { IDateViewSettings } from './DateViewSettings';
import { ITimeFormatConfig } from './TimeFormatConfig';
import { IWorkWeekSettings } from './WorkWeekSettings';
/**
* 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
*/
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;
selectedDate: Date;
constructor(config: ICalendarConfig, gridSettings: IGridSettings, dateViewSettings: IDateViewSettings, timeFormatConfig: ITimeFormatConfig, currentWorkWeek: string, selectedDate?: Date);
/**
* Get the current Configuration instance
* Used by web components that can't use dependency injection
*/
static getInstance(): Configuration;
getWorkWeekSettings(): IWorkWeekSettings;
setWorkWeek(workWeekId: string): void;
setSelectedDate(date: Date): void;
}
export { Configuration as CalendarConfig };