activity-grid
Version:
A customizable activity grid component similar to GitHub's contribution graph
44 lines (43 loc) • 1.39 kB
TypeScript
import { ActivityData } from './types';
export declare class ActivityGrid extends HTMLElement {
private readonly gridRenderer;
set data(value: ActivityData[]);
get data(): ActivityData[];
private _data;
set colors(value: string[]);
get colors(): string[];
private _colors;
set colorTheme(value: string);
get colorTheme(): string;
private _colorTheme;
set darkMode(value: boolean);
get darkMode(): boolean;
private _darkMode;
set emptyColor(value: string | null);
get emptyColor(): string;
private _emptyColor;
set skipWeekends(value: boolean);
get skipWeekends(): boolean;
private _skipWeekends;
set startWeekOnMonday(value: boolean);
get startWeekOnMonday(): boolean;
private _startWeekOnMonday;
set endDate(value: string);
get endDate(): string;
private _endDate;
set startDate(value: string);
get startDate(): string;
private _startDate;
private cells;
constructor();
connectedCallback(): void;
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
static get observedAttributes(): string[];
private createDefaultStartDate;
private generateGridCells;
private validateActivityData;
private validateColor;
private calculateLevel;
private updateGrid;
private attachEventListeners;
}