UNPKG

@lovebowls/leagueelements

Version:

League Elements package for LoveBowls

55 lines 1.92 kB
export default LeagueMatchesAttention; /** * Custom element to display matches requiring attention with paging. * * @element league-matches-attention * @attr {string} data - JSON stringified array of match objects * @attr {boolean} [is-mobile] - Whether to use mobile styles * @attr {string} [team-mapping] - JSON stringified array of {value, label} objects mapping team values to display names * * Emits 'league-matches-attention-event' with detail { type: 'matchClick', match } */ declare class LeagueMatchesAttention extends HTMLElement { static get observedAttributes(): string[]; shadow: ShadowRoot; matches: any[]; currentPage: number; itemsPerPage: number; teamMapping: {}; connectedCallback(): void; attributeChangedCallback(name: any, oldValue: any, newValue: any): void; _setTeamMapping(mappingData: any): void; getTeamDisplayName(teamId: any): any; /** * Loads and parses the matches data. * @param {string|Array} data */ loadData(data: string | any[]): Promise<void>; /** * Shows an error message in the component. * @param {string} message */ showError(message: string): void; /** * Returns the filtered list of matches requiring attention, sorted by priority. * @returns {Array} */ _getMatchesRequiringAttention(): any[]; /** * Returns a set of match keys that are in scheduling conflict. * @returns {Set<string>} */ _getConflictingMatchKeys(): Set<string>; _hasNextPage(): boolean; /** * Renders the list of matches requiring attention for the current page. * @returns {string} */ renderAttentionMatches(): string; _fillTemplate(template: any): any; render(): void; setupEventListeners(): void; setPage(pageNumber: any): void; escapeHtml(unsafe?: string): string; } //# sourceMappingURL=LeagueMatchesAttention.d.ts.map