45 lines
1.3 KiB
TypeScript
45 lines
1.3 KiB
TypeScript
/**
|
|
* AllDayCollapseService - Manages collapse/expand UI for all-day events
|
|
*
|
|
* STATELESS SERVICE - Reads expanded state from DOM via AllDayDomReader
|
|
* - No persistent state
|
|
* - Reads expanded state from DOM CSS class
|
|
* - Updates chevron button and overflow indicators
|
|
* - Controls event visibility based on row number
|
|
*/
|
|
import { AllDayHeightService } from './AllDayHeightService';
|
|
export declare class AllDayCollapseService {
|
|
private heightService;
|
|
constructor(heightService: AllDayHeightService);
|
|
/**
|
|
* Toggle between expanded and collapsed state
|
|
* Reads current state from DOM, toggles it, and updates UI
|
|
*/
|
|
toggleExpanded(): void;
|
|
/**
|
|
* Update all UI elements based on current DOM state
|
|
*/
|
|
private updateUI;
|
|
/**
|
|
* Update event visibility based on expanded state
|
|
*/
|
|
private updateEventVisibility;
|
|
/**
|
|
* Update chevron button visibility and state
|
|
*/
|
|
private updateChevronButton;
|
|
/**
|
|
* Update overflow indicators for collapsed state
|
|
* Shows "+X more" indicators in columns with overflow
|
|
*/
|
|
private updateOverflowIndicators;
|
|
/**
|
|
* Clear all overflow indicators
|
|
*/
|
|
private clearOverflowIndicators;
|
|
/**
|
|
* Initialize collapse/expand UI based on current DOM state
|
|
* Called after events are rendered
|
|
*/
|
|
initializeUI(): void;
|
|
}
|