@lion/ui
Version:
A package of extendable web components
36 lines • 824 B
TypeScript
/**
* Abstraction around calendar day DOM structure,
* allows for writing readable, 'DOM structure agnostic' tests
*/
export class DayObject {
/**
* @param {HTMLElement} dayEl
*/
constructor(dayEl: HTMLElement);
el: HTMLElement;
/**
* Node references
*/
get calendarShadowRoot(): ParentNode | null | undefined;
get cellEl(): HTMLElement;
get buttonEl(): HTMLElement;
/**
* States
*/
get isDisabled(): boolean;
get isSelected(): boolean;
get isToday(): boolean;
get isCentral(): boolean;
get isFocused(): boolean;
get monthday(): number;
/**
* Text
*/
get weekdayNameShort(): string;
get weekdayNameLong(): string;
/**
* Other
*/
get cellIndex(): number;
}
//# sourceMappingURL=DayObject.d.ts.map