import { OnInit, ElementRef } from '@angular/core'; import { TruWindowAddViewEventHandler, TruWindowActionEventHandler } from '@trudb/tru-common-lib'; import { WindowConfig } from '../../services/tru-desktop-service'; import * as i0 from "@angular/core"; export declare class TruDesktopWindow implements OnInit { private windowConfig; private truWindowAddViewEventHandler; private truWindowActionEventHandler; private elementRef; window: any; viewportCtrl: any; desktopCtrl: any; constructor(windowConfig: WindowConfig, truWindowAddViewEventHandler: TruWindowAddViewEventHandler, truWindowActionEventHandler: TruWindowActionEventHandler, elementRef: ElementRef); x: number; y: number; lastX: number; lastY: number; startX: number; startY: number; titleBar: any; canCloseFn: any; canNavigateFn: any; cancelEditingOnNavigation: boolean; viewportDimensions: any; mouseMove: (event: any) => boolean; mouseUp: (event: any) => void; /** * @tru.doc function * @name truDesktopWindowComponent.updateNavigationState * @module tru.desktop.window * * @description * Updates window navigation buttons based location of the active view in the views array. * */ updateNavigationState: () => void; /** * @tru.doc function * @name truDesktopWindowComponent.isWindowInViewport * @module tru.desktop.window * * @description * Determines if the window is within the viewport boundaries. * */ isWindowInViewport: () => void; /** * @tru.doc function * @name truDesktopWindowComponent.getWindow * @module tru.desktop.window * * @description * Gets the window object. * * @returns {object} window object. */ getWindow: () => any; /** * @tru.doc function * @name truDesktopWindowComponent.setWindowTitle * @module tru.desktop.window * * @description * Sets the window title. * * @param {string} value to display in the window title bar. */ setWindowTitle: (value: any) => void; getWindowTitle: () => any; /** * @tru.doc function * @name truDesktopWindowComponent.goToPreviousView * @module tru.desktop.window * * @description * Public method for navigating to the previous view. * */ goToPreviousView: () => void; /** * @tru.doc function * @name truDesktopWindowComponent.viewIsEditing * @module tru.desktop.window * * @description * Checks whether view is editing. * * @returns {boolean}. */ viewIsEditing: () => boolean; /** * @tru.doc function * @name truDesktopWindowComponent.canNavigate * @module tru.desktop.window * * @description * Checks whether navigation can occur.. * * @returns {boolean}. */ canNavigate: () => boolean; /** * @tru.doc function * @name truDesktopWindowComponent.removeForwardViews * @module tru.desktop.window * * @description * Removes all view(s) forward of the active view. * */ removeForwardViews: () => void; /** * @tru.doc function * @name truDesktopWindowComponent.addView * @module tru.desktop.window * * @description * Removes all inactive view(s) following the active view and inserts a new view. * */ addView: (viewConfigOverlay: any) => void; /** * @tru.doc function * @name truDesktopWindowComponent.getGlobals * @module tru.desktop.window * * @description * returns the global values. * */ getGlobals: () => any; /** * @tru.doc function * @name truDesktopWindowComponent.firstView * @module tru.desktop.window * * @description * */ firstView: () => void; /** * @tru.doc function * @name truDesktopWindowComponent.firstView * @module tru.desktop.window * * @description * */ lastView: () => void; resizeEventHandler: () => void; /** * @tru.doc event * @module tru.desktop.window * * @description * */ onKeydown(event: any): void; /** * @tru.doc watch * @module tru.desktop.window * * @description * Monitors the window's minimized state * */ disablePrevious: boolean; disableNext: boolean; activate: () => void; minimize: () => void; maximize: () => void; close: () => void; windowTitleMouseDown: (event: any) => void; previousView: () => void; nextView: () => void; save: () => void; revert: () => void; ngOnInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }