// Helpers for HTML element accessed by its identifier:
class HById {
    static ElementOf(id) {
        let elem = document.getElementById(id);
        if (!elem)
            throw 'Element not found by id: "' + id + '".';
        let element = elem;
        if (!element)
            throw 'Element "' + id + '"is not of "' + HOps.ObjectTypeName(elem) + '" type.';
        return element;
    }
    static GetElementOf(id) {
        return HElement.GetById(id);
    }
    static InputElement(id) {
        return HById.ElementOf(id);
    }
    static GetInputElement(id) {
        return HById.GetElementOf(id);
    }
    static Focus(id) {
        HElement.ById(id).focus();
    }
    static Click(id) {
        HElement.ById(id).click();
    }
} // HById
//# sourceMappingURL=HById.js.map