//\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
// MAGISTRAL LAYOUT FUNCTIONS:
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/*
function Magistral_Exists(): boolean {
   return WIN.magistral_PageContentDIV != null
}
*/
function Magistral_Initialize() {
    Magistral.Initialize();
}
function Magistral_GetPageContentWidthDiff() {
    return Magistral.GetPageContentWidthDiff();
}
//--------------------------------------------------------------------------------------------------
function Magistral_SetDropDownMenuHtml(itemsHTML) {
    HArgChecking.PROVIDED(itemsHTML, 'Magistral_SetDropDownMenuHtml', 'innerHTML');
    WIN.magistral_DropdownMenuDIV.innerHTML = itemsHTML;
}
function Magistral_SetPageName(verticalName) {
    Magistral.SetPageName(verticalName);
}
function Magistral_SetPageNameHTML(verticalNameHTML) {
    Magistral.SetPageNameHTML(verticalNameHTML);
}
function Magistral_SetDropdownIcon(iconClassName, iconPath) {
    Magistral.SetDropdownIcon(iconClassName, iconPath);
}
function Magistral_SetDropdownIconClass(className) {
    Magistral.SetDropdownIconClass(className);
}
function Magistral_SetDropdownIconPath(iconPath) {
    Magistral.SetDropdownIconPath(iconPath);
}
function Magistral_SetDropdownIconHtml(html) {
    Magistral.SetDropdownIconHtml(html);
}
function Magistral_SetPageNameDropdownIcon(verticalName, iconClassName, iconPath) {
    Magistral.SetPageNameDropdownIcon(verticalName, iconClassName, iconPath);
}
function Magistral_SetPageNameIconClass(verticalName, className) {
    Magistral.SetPageNameIconClass(verticalName, className);
}
function Magistral_SetPageNameIconPath(verticalName, iconPath) {
    Magistral.SetPageNameIconPath(verticalName, iconPath);
}
function Magistral_ResetPageNameDropdownIcon() {
    Magistral.ResetPageNameDropdownIcon();
}
//--------------------------------------------------------------------------------------------------
function Magistral_LocationChanged() {
    Magistral.LocationChanged();
}
function Magistral_InitiateReloadPage() {
    return Magistral.InitiateReloadPage();
}
function Magistral_DeferredInitiateReloadPage(milliseconds = 0) {
    Magistral.DeferredInitiateReloadPage(milliseconds);
}
function Magistral_ClearSelectionUnscrollEtc() {
    Magistral.ClearSelectionUnscrollEtc();
}
function Magistral_ClearSelectionDeferredUnscrollEtc(milliseconds = 0) {
    Magistral.ClearSelectionDeferredUnscrollEtc(milliseconds);
}
function Magistral_SpecifyPageContent(selectionContent) {
    Magistral.SpecifyPageContent(selectionContent);
}
function Magistral_SpecifyModalPopup(selectionContent) {
    Magistral.SpecifyModalPopup(selectionContent);
}
//--------------------------------------------------------------------------------------------------
function Magistral_SetOperationFailure(errorMessage = null) {
    return Magistral.SetOperationFailure(errorMessage);
}
function Magistral_ResetOperationFailure() {
    Magistral.ResetOperationFailure();
}
function Magistral_HasProblemIndication() {
    return Magistral.HasProblemIndication();
}
function Magistral_HasErrorIndication() {
    return Magistral.HasErrorIndication();
}
function Magistral_HasAbandomentIndication() {
    return Magistral.HasAbandomentIndication();
}
//==================================================================================================
// MAGISTRAL LAYOUT MENU-ITEM FUNCTIONS (NAVIGATION ITEMS CONTROL):
//--------------------------------------------------------------------------------------------------
function Magistral_MI_SetTitle(id, title) {
    let funcName = 'Magistral_MI_SetTitle';
    HArgChecking.PROVIDED(id, funcName, 'id');
    HArgChecking.PROVIDED(title, funcName, 'title');
    var element = HElement.ById(id);
    element.title = title;
}
function Magistral_MI_Enable(id, enable = true) {
    HArgChecking.PROVIDED(id, 'Magistral_EnableMenuItem', 'id');
    var element = HElement.ById(id);
    element.disabled = HOps.BoolDefaultTrue(enable) ? null : 'disabled';
}
function Magistral_MI_SetVisible(id, visible = true) {
    HArgChecking.PROVIDED(id, 'Magistral_SetMenuItemVisible', 'id');
    HElement.ById(id).style.visibility = HOps.BoolDefaultTrue(visible) ? 'visible' : 'collapse';
}
function Magistral_MI_UseClass(id, className, use = true) {
    let funcName = 'Magistral_MI_UseClass';
    HArgChecking.PROVIDED(id, funcName, 'id');
    HArgChecking.PROVIDED(className, funcName, 'className');
    HElement.UseClass(HElement.ById(id), className, HOps.BoolDefaultTrue(use));
}
function Magistral_MI_SetInnerHtml(id, innerHTML) {
    let funcName = 'Magistral_MI_SetInnerHtml';
    HArgChecking.PROVIDED(id, funcName, 'id');
    HArgChecking.PROVIDED(innerHTML, funcName, 'innerHTML');
    HElement.ById(id).innerHTML = innerHTML;
}
//==================================================================================================
//# sourceMappingURL=Magistral.func.js.map