29 lines
877 B
TypeScript
29 lines
877 B
TypeScript
|
|
import { Configuration } from './CalendarConfig';
|
||
|
|
import { IEventBus } from '../types/CalendarTypes';
|
||
|
|
/**
|
||
|
|
* ConfigManager - Configuration loader and CSS property manager
|
||
|
|
* Loads JSON and creates Configuration instance
|
||
|
|
* Listens to events and manages CSS custom properties for dynamic styling
|
||
|
|
*/
|
||
|
|
export declare class ConfigManager {
|
||
|
|
private eventBus;
|
||
|
|
private config;
|
||
|
|
constructor(eventBus: IEventBus, config: Configuration);
|
||
|
|
/**
|
||
|
|
* Setup event listeners for dynamic CSS updates
|
||
|
|
*/
|
||
|
|
private setupEventListeners;
|
||
|
|
/**
|
||
|
|
* Sync grid-related CSS variables from configuration
|
||
|
|
*/
|
||
|
|
private syncGridCSSVariables;
|
||
|
|
/**
|
||
|
|
* Sync workweek-related CSS variables
|
||
|
|
*/
|
||
|
|
private syncWorkweekCSSVariables;
|
||
|
|
/**
|
||
|
|
* Load configuration from JSON and create Configuration instance
|
||
|
|
*/
|
||
|
|
static load(): Promise<Configuration>;
|
||
|
|
}
|