window.js

"use strict";
/***************************************************
* Licensed Materials - Property of HCL.
* (c)Copyright HCL America, Inc. 2023-2024
****************************************************/
Object.defineProperty(exports, "__esModule", { value: true });
exports.refreshWindow = exports.reloadWindow = exports.closeWindow = exports.windowWorkspace = exports.windowTile = exports.windowRestore = exports.windowNext = exports.windowMinimizeAll = exports.windowMinimize = exports.windowMaximizeAll = exports.windowMaximize = exports.windowCascade = exports._notes_vmx = exports._notes = void 0;
const tslib_1 = require("tslib");
/**
 * @file Window
 * @module window
 * @category Window
 */
const notesc_base = tslib_1.__importStar(require("../notes/window"));
const notesc_vmx = tslib_1.__importStar(require("../notes/voltmx/window"));
const API = tslib_1.__importStar(require("../rosetta/API"));
const notesc = () => API.isCurrentFrameworkVoltMX() ? notesc_vmx : notesc_base;
exports._notes = notesc_base;
exports._notes_vmx = notesc_vmx;
//-----------------------------
// Notes @Commands window
/**
 * Resizes all open Notes/Domino windows to less than 50% of their maximum window
 * size and layers them in a cascading stack. Because the layered stack is cascaded,
 * the title bar of each window is visible behind the stack's first window. To
 * display a window that is lower in the stack, you can make it first by clicking
 * its title bar.
 *
 * @throws {Error} no plans to implement
 */
function windowCascade() {
    return notesc().WindowCascade();
}
exports.windowCascade = windowCascade;
/**
 * Maximizes the current application window.
 * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/14.0.0/basic/H_WINDOWMAXIMIZE.html | hcltechsw.com}
 */
function windowMaximize() {
    return notesc().WindowMaximize();
}
exports.windowMaximize = windowMaximize;
/**
 * Maximizes all open Notes/Domino windows. Notes/Domino windows include the
 * Designer and Administration client windows as well as any of the Notes® Help
 * windows.
 *
 * @throws {Error} no plans to implement
 */
function windowMaximizeAll() {
    return notesc().WindowMaximizeAll();
}
exports.windowMaximizeAll = windowMaximizeAll;
/**
 * Minimizes the current application window.
 * @see For further information, see {@link https://help.hcltechsw.com/dom_designer/14.0.0/basic/H_WINDOWMINIMIZE.html | hcltechsw.com}
 */
function windowMinimize() {
    return notesc().WindowMinimize();
}
exports.windowMinimize = windowMinimize;
/**
 * Minimizes all open Notes/Domino windows. Notes/Domino windows include the
 * Designer and Administration client windows as well as any of the Notes® Help
 * windows.
 *
 * @throws {Error} no plans to implement
 */
function windowMinimizeAll() {
    return notesc().WindowMinimizeAll();
}
exports.windowMinimizeAll = windowMinimizeAll;
/**
 * Maximizes the Notes® window whose taskbar button follows the current window's
 * taskbar button or, if the windows are cascaded, moves the next window in the
 * stack to the beginning of the stack.
 *
 * @throws {Error} no plans to implement
 * @TODO this needs to be implemented
 */
function windowNext() {
    return notesc().WindowNext();
}
exports.windowNext = windowNext;
/**
 * Restores the active window to its former size (before it was maximized or
 * minimized).
 *
 * @throws {Error} no plans to implement
 */
function windowRestore() {
    return notesc().WindowRestore();
}
exports.windowRestore = windowRestore;
/**
 * Resizes all open Notes/Domino windows to display them all at once. The open
 * windows are tiled across the screen until they fill the background. If two
 * windows are currently open, Notes® displays them side-by-side. If four windows
 * are open, Notes® displays one in each of the four quadrants of the window.
 *
 * @throws {Error} method not implemented
 * @TODO this needs to be implemented
 */
function windowTile() {
    return notesc().WindowTile();
}
exports.windowTile = windowTile;
/**
 * Displays the Notes/Domino workspace as the active window.
 *
 * @throws {Error} no plans to implement
 */
function windowWorkspace() {
    return notesc().WindowWorkspace();
}
exports.windowWorkspace = windowWorkspace;
/**
 * Closes the current application window. Same as the FileCloseWindow command
 * @returns {void}
 */
function closeWindow() {
    return notesc().CloseWindow();
}
exports.closeWindow = closeWindow;
/**
 * Reloads or refreshes the contents of the current window or application
 * @returns {void}
 */
function reloadWindow() {
    return notesc().ReloadWindow();
}
exports.reloadWindow = reloadWindow;
/**
 * Reloads or refreshes the contents of the current window.
 * @throws {Error} method not implemented
 * @TODO this needs to be implemented
 */
function refreshWindow() {
    return notesc().RefreshWindow();
}
exports.refreshWindow = refreshWindow;
//# sourceMappingURL=window.js.map