@lovebowls/leagueelements
Version:
League Elements package for LoveBowls
72 lines • 1.87 kB
TypeScript
export default LeagueMatch;
declare class LeagueMatch extends HTMLElement {
static get observedAttributes(): string[];
shadow: ShadowRoot;
_match: Object | null;
_teams: any[];
_open: boolean;
_isMobile: boolean;
_mode: string;
_error: string;
_attentionReason: any;
_boundOnKeydown: (e: any) => void;
_firstFocusableElement: any;
_lastFocusableElement: any;
/**
* @param {Object} value
*/
set match(value: Object);
get match(): Object;
/**
* @param {Array<string>} value
*/
set teams(value: Array<string>);
get teams(): Array<string>;
/**
* @param {boolean} value
*/
set open(value: boolean);
get open(): boolean;
/**
* @param {boolean} value
*/
set isMobile(value: boolean);
get isMobile(): boolean;
/**
* @param {'edit'|'new'} value
*/
set mode(value: "edit" | "new");
get mode(): "edit" | "new";
/**
* @param {string | null} value
*/
set attentionReason(value: string | null);
get attentionReason(): string | null;
attributeChangedCallback(name: any, oldValue: any, newValue: any): void;
connectedCallback(): void;
/**
* Show an error message in the modal.
* @param {string} msg
*/
showError(msg: string): void;
/**
* Clear the error message.
*/
clearError(): void;
/**
* Handle OK button click: validate and emit 'match-save' event.
* @private
*/
private _onOk;
/**
* Handle Cancel button click: emit 'match-cancel' event.
* @private
*/
private _onCancel;
render(): void;
_onKeydown(e: any): void;
_escapeHtml(str: any): string;
_focusFirstElement(): void;
_updateDisabledOptions(changedSelect: any, otherSelect: any): void;
}
//# sourceMappingURL=leagueMatch.d.ts.map