
if (!window['Smart']) {
	window['Smart'] = { RenderMode: 'manual' };
}
else {
	window['Smart'].RenderMode = 'manual';
}
import './../source/modules/smart.window';

import { __decorate, __extends, __awaiter, __generator } from 'tslib';
import { EventEmitter, Output, Input, ElementRef, Directive, NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';

var BaseElement = /** @class */ (function () {
    function BaseElement(ref) {
        this.onCreate = new EventEmitter();
        this.onReady = new EventEmitter();
        this.onAttach = new EventEmitter();
        this.onDetach = new EventEmitter();
        var that = this;
        this.nativeElement = ref.nativeElement;
        that.nativeElement.onAttached = function () {
            that.onAttach.emit(that.nativeElement);
        };
        that.nativeElement.onDetached = function () {
            that.onDetach.emit(that.nativeElement);
        };
    }
    BaseElement.prototype.addEventListener = function (type, listener, options) {
        if (options === void 0) { options = false; }
        this.nativeElement.addEventListener(type, listener, options);
    };
    BaseElement.prototype.removeEventListener = function (type, listener, options) {
        if (options === void 0) { options = false; }
        this.nativeElement.removeEventListener(type, listener, options);
    };
    BaseElement.prototype.dispatchEvent = function (event) {
        return this.nativeElement.dispatchEvent(event);
    };
    BaseElement.prototype.blur = function () {
        this.nativeElement.blur();
    };
    BaseElement.prototype.click = function () {
        this.nativeElement.click();
    };
    BaseElement.prototype.focus = function (options) {
        this.nativeElement.focus(options);
    };
    Object.defineProperty(BaseElement.prototype, "locale", {
        /** @description Sets or gets the language. Used in conjunction with the property messages.  */
        get: function () {
            return this.nativeElement ? this.nativeElement.locale : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.locale = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(BaseElement.prototype, "localizeFormatFunction", {
        /** @description Callback used to customize the format of the messages that are returned from the Localization Module. */
        get: function () {
            return this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(BaseElement.prototype, "messages", {
        /** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale.  */
        get: function () {
            return this.nativeElement ? this.nativeElement.messages : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.messages = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(BaseElement.prototype, "rightToLeft", {
        /** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */
        get: function () {
            return this.nativeElement ? this.nativeElement.rightToLeft : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.rightToLeft = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(BaseElement.prototype, "theme", {
        /** @description Determines the theme. Theme defines the look of the element */
        get: function () {
            return this.nativeElement ? this.nativeElement.theme : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.theme = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    __decorate([
        Output()
    ], BaseElement.prototype, "onCreate", void 0);
    __decorate([
        Output()
    ], BaseElement.prototype, "onReady", void 0);
    __decorate([
        Output()
    ], BaseElement.prototype, "onAttach", void 0);
    __decorate([
        Output()
    ], BaseElement.prototype, "onDetach", void 0);
    __decorate([
        Input()
    ], BaseElement.prototype, "locale", null);
    __decorate([
        Input()
    ], BaseElement.prototype, "localizeFormatFunction", null);
    __decorate([
        Input()
    ], BaseElement.prototype, "messages", null);
    __decorate([
        Input()
    ], BaseElement.prototype, "rightToLeft", null);
    __decorate([
        Input()
    ], BaseElement.prototype, "theme", null);
    return BaseElement;
}());
var Smart = window.Smart;

var WindowComponent = /** @class */ (function (_super) {
    __extends(WindowComponent, _super);
    function WindowComponent(ref) {
        var _this = _super.call(this, ref) || this;
        _this.eventHandlers = [];
        /** @description This event is triggered just before the window starts opening.
        *  @param event. The custom event. 	*/
        _this.onOpening = new EventEmitter();
        /** @description This event is triggered when the window is opened( visible ).
        *  @param event. The custom event. 	*/
        _this.onOpen = new EventEmitter();
        /** @description This event is triggered just before the window starts closing.
        *  @param event. The custom event. 	*/
        _this.onClosing = new EventEmitter();
        /** @description This event is triggered when the window is closed( hidden )
        *  @param event. The custom event. 	*/
        _this.onClose = new EventEmitter();
        /** @description This event is triggered when the window is collapsed.
        *  @param event. The custom event. 	*/
        _this.onCollapse = new EventEmitter();
        /** @description This event is triggered when window's dragging is ended.
        *  @param event. The custom event. 	*/
        _this.onDragEnd = new EventEmitter();
        /** @description This event is triggered when window's dragging is started.
        *  @param event. The custom event. 	*/
        _this.onDragStart = new EventEmitter();
        /** @description This event is triggered when the window is expanded.
        *  @param event. The custom event. 	*/
        _this.onExpand = new EventEmitter();
        /** @description This event is triggered when the window is maximized.
        *  @param event. The custom event. 	*/
        _this.onMaximize = new EventEmitter();
        /** @description This event is triggered when the window is minimized.
        *  @param event. The custom event. 	*/
        _this.onMinimize = new EventEmitter();
        /** @description This event is triggered when window's resizing is ended.
        *  @param event. The custom event. 	*/
        _this.onResizeEnd = new EventEmitter();
        /** @description This event is triggered when window's resizing is started.
        *  @param event. The custom event. 	*/
        _this.onResizeStart = new EventEmitter();
        /** @description This event is triggered when the window is restored to it's previous state before maximization.
        *  @param event. The custom event. 	*/
        _this.onRestore = new EventEmitter();
        _this.nativeElement = ref.nativeElement;
        return _this;
    }
    /** @description Creates the component on demand.
     * @param properties An optional object of properties, which will be added to the template binded ones.
     */
    WindowComponent.prototype.createComponent = function (properties) {
        if (properties === void 0) { properties = {}; }
        this.nativeElement = document.createElement('smart-window');
        for (var propertyName in properties) {
            this.nativeElement[propertyName] = properties[propertyName];
        }
        return this.nativeElement;
    };
    Object.defineProperty(WindowComponent.prototype, "addNewTab", {
        /** @description Determines if 'Add New' Tab inside the Tabs element is visible. Applicable only to TabsWindow */
        get: function () {
            return this.nativeElement ? this.nativeElement.addNewTab : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.addNewTab = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "animation", {
        /** @description Sets or gets the animation mode. Animation is disabled when the property is set to 'none' */
        get: function () {
            return this.nativeElement ? this.nativeElement.animation : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.animation = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "autoCapitalize", {
        /** @description Determines whether and how the value should be automatically capitalized as it is entered/edited by the user. Applicable only to MultilinePromptWindow. */
        get: function () {
            return this.nativeElement ? this.nativeElement.autoCapitalize : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.autoCapitalize = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "autoExpand", {
        /** @description Determines whether element will auto expand when the input overflows vertically. Applicable only to MultilinePromptWindow. */
        get: function () {
            return this.nativeElement ? this.nativeElement.autoExpand : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.autoExpand = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "cancelLabel", {
        /** @description Determines the label for the 'cancel' button inside the Prompt Window. */
        get: function () {
            return this.nativeElement ? this.nativeElement.cancelLabel : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.cancelLabel = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "completeLabel", {
        /** @description Determines the label for the 'Complete' button insinde the Progress Window. */
        get: function () {
            return this.nativeElement ? this.nativeElement.completeLabel : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.completeLabel = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "confirmLabel", {
        /** @description Determines the label for the 'Confirm' button insinde the Prompt Window. */
        get: function () {
            return this.nativeElement ? this.nativeElement.confirmLabel : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.confirmLabel = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "collapsed", {
        /** @description Determines if the window is collapsed or not. When collapsed the only the header of the window is visible. */
        get: function () {
            return this.nativeElement ? this.nativeElement.collapsed : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.collapsed = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "closeOnMaskClick", {
        /** @description When a modal window is opened, thid property determines if clicking on the mask closes the window or not. */
        get: function () {
            return this.nativeElement ? this.nativeElement.closeOnMaskClick : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.closeOnMaskClick = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "dataSource", {
        /** @description Determines the data source that will be loaded to the TabsWindow. Applicable only to TabsWindow. */
        get: function () {
            return this.nativeElement ? this.nativeElement.dataSource : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.dataSource = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "disabled", {
        /** @description Enables or disables the window. */
        get: function () {
            return this.nativeElement ? this.nativeElement.disabled : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.disabled = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "disableSnap", {
        /** @description Enables or disables the window snapping feature. */
        get: function () {
            return this.nativeElement ? this.nativeElement.disableSnap : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.disableSnap = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "disableEscape", {
        /** @description By default the window is closing after the 'Escape' key is pressed. Set this property to true, if you want to disable that. */
        get: function () {
            return this.nativeElement ? this.nativeElement.disableEscape : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.disableEscape = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "disableKeyboard", {
        /** @description By default the window is handling keyboard keys like 'Arrows', 'Escape', etc. Set this property to true, if you want to disable that. */
        get: function () {
            return this.nativeElement ? this.nativeElement.disableKeyboard : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.disableKeyboard = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "displayMode", {
        /** @description Determines how the characters are displayed inside the input. Applicable to Prompt Window. */
        get: function () {
            return this.nativeElement ? this.nativeElement.displayMode : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.displayMode = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "dropPosition", {
        /** @description Applicable to TabsWindow when docked inside a DockingLayout Custom Element.  Determines where the window(it's tab items as well) can be dropped inside the DockingLayout.  The property is an array that accepts multiple positions. Note: Positions with prefix 'layout-' are applied to the Tab item children of the TabsWidnow owner that is being dragged. The rest of the positions indicate the allowed drop position inside the hovered target(TabsWindow). Used only by jqxDockingLayout custom elements. Determines the possible drop position inside the DockingLayout. The following values are allowed. */
        get: function () {
            return this.nativeElement ? this.nativeElement.dropPosition : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.dropPosition = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "formatFunction", {
        /** @description A callback function defining the new format for the label of the Progress Bar. Applicable only to ProgressWindow. */
        get: function () {
            return this.nativeElement ? this.nativeElement.formatFunction : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.formatFunction = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "footerPosition", {
        /** @description Determines the position of the footer of the window element. */
        get: function () {
            return this.nativeElement ? this.nativeElement.footerPosition : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.footerPosition = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "footerTemplate", {
        /** @description Determines the template for the Dialog section of the window. By default footerTemplate is null. */
        get: function () {
            return this.nativeElement ? this.nativeElement.footerTemplate : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.footerTemplate = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "headerButtons", {
        /** @description Set's the buttons that will be visible in the header section. */
        get: function () {
            return this.nativeElement ? this.nativeElement.headerButtons : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.headerButtons = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "headerTemplate", {
        /** @description Determines the template for the Dialog section of the window. By default headerTemplate is null. */
        get: function () {
            return this.nativeElement ? this.nativeElement.headerTemplate : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.headerTemplate = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "headerPosition", {
        /** @description Determines the position of the header of the window element. */
        get: function () {
            return this.nativeElement ? this.nativeElement.headerPosition : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.headerPosition = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "hint", {
        /** @description Sets additional helper text below the text box. The hint is visible only when the text box is focued. Applicable to Prompt Window. */
        get: function () {
            return this.nativeElement ? this.nativeElement.hint : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.hint = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "indeterminate", {
        /** @description Sets the value of the Progress bar to indeterminate state(null) and starts the animation. Applicable only to ProgressWindow. */
        get: function () {
            return this.nativeElement ? this.nativeElement.indeterminate : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.indeterminate = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "inverted", {
        /** @description Sets the filling direction of the Progress Bar. Applicable only to ProgressWindow. */
        get: function () {
            return this.nativeElement ? this.nativeElement.inverted : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.inverted = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "label", {
        /** @description The label of the window that appears in the header area. */
        get: function () {
            return this.nativeElement ? this.nativeElement.label : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.label = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "liveResize", {
        /** @description When enabled the resizing operation happens live. By default it's not enabled and during resizing a highlighter around the edges of the window appears to outline  the current size of the element. */
        get: function () {
            return this.nativeElement ? this.nativeElement.liveResize : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.liveResize = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "layout", {
        /** @description Applicable only to TabsWindow when used with a DockingLayout custom element.Used only by jqxDockingLayout. Determines the owner jqxDockingLayout  that the window belongs to. When the tabsWindow has been removed from a DockingLayout element, the property is used to indicate that it belongs to that particular Dockinglayout. Accepts a string, representing the ID of a jqxDockingLayout on the page, or an instance of jqxDokcingLayout. */
        get: function () {
            return this.nativeElement ? this.nativeElement.layout : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.layout = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "locale", {
        /** @description Sets or gets the language. Used in conjunction with the property messages.  */
        get: function () {
            return this.nativeElement ? this.nativeElement.locale : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.locale = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "locked", {
        /** @description Applicable only to TabsWindow when docked inside a DockingLayout Custom Element.Determines of the item can be resized or not. */
        get: function () {
            return this.nativeElement ? this.nativeElement.locked : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.locked = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "localizeFormatFunction", {
        /** @description Callback, related to localization module.  */
        get: function () {
            return this.nativeElement ? this.nativeElement.localizeFormatFunction : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.localizeFormatFunction = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "maximized", {
        /** @description Determines if the window is maximized or not. When maximized the window covers the whole viewport. */
        get: function () {
            return this.nativeElement ? this.nativeElement.maximized : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.maximized = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "messages", {
        /** @description Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale.  */
        get: function () {
            return this.nativeElement ? this.nativeElement.messages : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.messages = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "modal", {
        /** @description Determines if the window is modal or not. If true the user can only interact with the window and nothing else on the page. */
        get: function () {
            return this.nativeElement ? this.nativeElement.modal : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.modal = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "max", {
        /** @description Applicable to TabsWindow when docked inside a DockingLayout Custom Element. Determines the max size of the item. Applicable to Progress Window by allowing the user to specify the maximum of the ProgressBar. */
        get: function () {
            return this.nativeElement ? this.nativeElement.max : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.max = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "min", {
        /** @description Applicable to TabsWindow when docked inside DockingLayout Custom Element. Determines the min size of the item. Applicable to Progress Window by allowing the user to specify the minimu of the ProgressBar. */
        get: function () {
            return this.nativeElement ? this.nativeElement.min : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.min = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "minimized", {
        /** @description Determines if the window is minimized or not. When minimized the window is docked at the bottom left corner of the viewport. */
        get: function () {
            return this.nativeElement ? this.nativeElement.minimized : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.minimized = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "maxLength", {
        /** @description Sets or gets the maximum number of characters that the user can enter. Applicable to Prompt/MultilinePrompt Window. */
        get: function () {
            return this.nativeElement ? this.nativeElement.maxLength : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.maxLength = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "minLength", {
        /** @description Sets or gets the minimum number of characters that the user have to enter to trigger the auto complete functionality. Applicable to Prompt/MultilinePrompt Window. */
        get: function () {
            return this.nativeElement ? this.nativeElement.minLength : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.minLength = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "opened", {
        /** @description Determines if the window is visible or not. */
        get: function () {
            return this.nativeElement ? this.nativeElement.opened : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.opened = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "pinned", {
        /** @description Determines if the window is pinned or not. Pinned window is a window that can't be dragged but can be resized. */
        get: function () {
            return this.nativeElement ? this.nativeElement.pinned : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.pinned = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "placeholder", {
        /** @description Determines the input's placeholder. Applicable to Prompt Window. */
        get: function () {
            return this.nativeElement ? this.nativeElement.placeholder : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.placeholder = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "promptLabel", {
        /** @description Determines the label for the Input insinde the PromptWindow. */
        get: function () {
            return this.nativeElement ? this.nativeElement.promptLabel : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.promptLabel = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "readonly", {
        /** @description If the element is readonly, users cannot interact with it. */
        get: function () {
            return this.nativeElement ? this.nativeElement.readonly : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.readonly = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "resizeIndicator", {
        /** @description When applied a resize indicator is displayed in the bottom right corner of the window and resizing operation can be initiated only from its position. */
        get: function () {
            return this.nativeElement ? this.nativeElement.resizeIndicator : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.resizeIndicator = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "resizeMode", {
        /** @description Determines the resizing mode of the window.  Several modes are available:   none - resizing is disabled.  vertical - vertical resizing is allowed.  horizontal - horizontal resizing is allowed. both - horizontal and vertical resizing is allowed. top - the window can only be resized from the top side. bottom - the window is resizable only from the bottom side. left - the window can be resized only from the left side. right - the window can be resized only from the right side.  */
        get: function () {
            return this.nativeElement ? this.nativeElement.resizeMode : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.resizeMode = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "rightToLeft", {
        /** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */
        get: function () {
            return this.nativeElement ? this.nativeElement.rightToLeft : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.rightToLeft = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "required", {
        /** @description Specifies that the user must fill the input before submitting a form with the text box.Applicable to Prompt Window. */
        get: function () {
            return this.nativeElement ? this.nativeElement.required : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.required = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "requiredMessage", {
        /** @description Specifies the message that will appear if required is set and no value is provided in the input. Applicable to Prompt Window. */
        get: function () {
            return this.nativeElement ? this.nativeElement.requiredMessage : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.requiredMessage = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "selectAllOnFocus", {
        /** @description Determines whether the content of the input will be selected on focus or not. Applicable to Prompt Window. */
        get: function () {
            return this.nativeElement ? this.nativeElement.selectAllOnFocus : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.selectAllOnFocus = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "selectedIndex", {
        /** @description Sets or gets which tab is selected. Applicable only to TabsWindow. */
        get: function () {
            return this.nativeElement ? this.nativeElement.selectedIndex : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.selectedIndex = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "selectionMode", {
        /** @description Determines the way the user can switch between tabs. Applicable only to TabsWindow. */
        get: function () {
            return this.nativeElement ? this.nativeElement.selectionMode : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.selectionMode = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "selectionEnd", {
        /** @description Indicates the index of the last character in the current selection. Applicable only to MultilinePromptWindow. */
        get: function () {
            return this.nativeElement ? this.nativeElement.selectionEnd : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.selectionEnd = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "selectionStart", {
        /** @description Indicates the index to the first character in the current selection. Applicable only to MultilinePromptWindow. */
        get: function () {
            return this.nativeElement ? this.nativeElement.selectionStart : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.selectionStart = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "showProgressValue", {
        /** @description Enables/Disabled the label for the Progress Bar. Applicable only to Progress Window. */
        get: function () {
            return this.nativeElement ? this.nativeElement.showProgressValue : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.showProgressValue = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "siblings", {
        /** @description A getter that returns the siblings (that share the same parent) of a LayoutPanel item that is docked inside a DockingLayout. The siblings are also DockingLayout items ( LayoutPanels).Applicable only to TabsWindow when docked inside a DockingLayout. */
        get: function () {
            return this.nativeElement ? this.nativeElement.siblings : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.siblings = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "size", {
        /** @description Applicable to TabsWindow when nested inside a DockingLayout Custom Element. Determines the size of the item. */
        get: function () {
            return this.nativeElement ? this.nativeElement.size : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.size = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "spellCheck", {
        /** @description Specifies whether the element is to have its spelling and grammar checked or not. Applicable only to MultilinePromptWindow. */
        get: function () {
            return this.nativeElement ? this.nativeElement.spellCheck : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.spellCheck = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "tabCloseButtons", {
        /** @description Sets or gets whether close buttons are displayed inside the Tab Strip of the TabsWindow. Applicable only to TabsWindow. */
        get: function () {
            return this.nativeElement ? this.nativeElement.tabCloseButtons : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.tabCloseButtons = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "tabCloseButtonMode", {
        /** @description Determines if the close button is visible on select or always. Applicable only to TabsWindow. */
        get: function () {
            return this.nativeElement ? this.nativeElement.tabCloseButtonMode : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.tabCloseButtonMode = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "tabOverflow", {
        /** @description Sets or gets the Tabs scroll buttons behavior. Applicable only when tabLayout is 'scroll'. Applicable only to TabsWindow. */
        get: function () {
            return this.nativeElement ? this.nativeElement.tabOverflow : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.tabOverflow = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "tabPosition", {
        /** @description Detetmines Tab Strip is positioned of the TabsWindow. Applicable only to TabsWindow. */
        get: function () {
            return this.nativeElement ? this.nativeElement.tabPosition : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.tabPosition = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "tabScrollButtonsPosition", {
        /** @description Sets or gets the position of the scroll buttons inside the Tab header of the TabsWindow. Applicable only to TabsWindow. */
        get: function () {
            return this.nativeElement ? this.nativeElement.tabScrollButtonsPosition : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.tabScrollButtonsPosition = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "tabTextOrientation", {
        /** @description Sets or gets the orientation of the text in the tabs labels of the TabsWindow. Applicable only to TabsWindow. */
        get: function () {
            return this.nativeElement ? this.nativeElement.tabTextOrientation : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.tabTextOrientation = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "theme", {
        /** @description Determines the theme. Theme defines the look of the element */
        get: function () {
            return this.nativeElement ? this.nativeElement.theme : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.theme = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "unfocusable", {
        /** @description If is set to true, the element cannot be focused. */
        get: function () {
            return this.nativeElement ? this.nativeElement.unfocusable : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.unfocusable = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "value", {
        /** @description Determines the value of the TextBox/ProgressBar inside the Dialog/Prompt/Progress Window */
        get: function () {
            return this.nativeElement ? this.nativeElement.value : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.value = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "windowParent", {
        /** @description Determines the actual parent of the element. The window can size and move only in the area of that element. */
        get: function () {
            return this.nativeElement ? this.nativeElement.windowParent : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.windowParent = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(WindowComponent.prototype, "wrap", {
        /** @description Indicates how the input wraps text. Applicable only to MultilinePromptWindow. */
        get: function () {
            return this.nativeElement ? this.nativeElement.wrap : undefined;
        },
        set: function (value) {
            this.nativeElement ? this.nativeElement.wrap = value : undefined;
        },
        enumerable: true,
        configurable: true
    });
    /** @description Appends a tabitem to the end of the list of tab items inside element.
    * @param {Node} node. A TabItem element that should be added to the rest of the items as the last item.
    * @returns {Node}
  */
    WindowComponent.prototype.appendChild = function (node) {
        return __awaiter(this, void 0, void 0, function () {
            var getResultOnRender, result;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        getResultOnRender = function () {
                            return new Promise(function (resolve) {
                                _this.nativeElement.whenRendered(function () {
                                    var result = _this.nativeElement.appendChild(node);
                                    resolve(result);
                                });
                            });
                        };
                        return [4 /*yield*/, getResultOnRender()];
                    case 1:
                        result = _a.sent();
                        return [2 /*return*/, result];
                }
            });
        });
    };
    /** @description Sets the window to the top level so the user can interact with it.
    */
    WindowComponent.prototype.bringToFront = function () {
        var _this = this;
        if (this.nativeElement.isRendered) {
            this.nativeElement.bringToFront();
        }
        else {
            this.nativeElement.whenRendered(function () {
                _this.nativeElement.bringToFront();
            });
        }
    };
    /** @description Clears the content of the Window.
    */
    WindowComponent.prototype.clear = function () {
        var _this = this;
        if (this.nativeElement.isRendered) {
            this.nativeElement.clear();
        }
        else {
            this.nativeElement.whenRendered(function () {
                _this.nativeElement.clear();
            });
        }
    };
    /** @description Closes the window.
    */
    WindowComponent.prototype.close = function () {
        var _this = this;
        if (this.nativeElement.isRendered) {
            this.nativeElement.close();
        }
        else {
            this.nativeElement.whenRendered(function () {
                _this.nativeElement.close();
            });
        }
    };
    /** @description Collapses the window.
    * @returns {HTMLElement}
  */
    WindowComponent.prototype.collapse = function () {
        return __awaiter(this, void 0, void 0, function () {
            var getResultOnRender, result;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        getResultOnRender = function () {
                            return new Promise(function (resolve) {
                                _this.nativeElement.whenRendered(function () {
                                    var result = _this.nativeElement.collapse();
                                    resolve(result);
                                });
                            });
                        };
                        return [4 /*yield*/, getResultOnRender()];
                    case 1:
                        result = _a.sent();
                        return [2 /*return*/, result];
                }
            });
        });
    };
    /** @description Makes sure a tab item is visible by scrolling to it. Applicable only to TabsWindow.
    * @param {number} index. The index of the tab to scroll to.
    */
    WindowComponent.prototype.ensureVisible = function (index) {
        var _this = this;
        if (this.nativeElement.isRendered) {
            this.nativeElement.ensureVisible(index);
        }
        else {
            this.nativeElement.whenRendered(function () {
                _this.nativeElement.ensureVisible(index);
            });
        }
    };
    /** @description Expands the window after being collapsed.
    * @returns {any[]}
  */
    WindowComponent.prototype.expand = function () {
        return __awaiter(this, void 0, void 0, function () {
            var getResultOnRender, result;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        getResultOnRender = function () {
                            return new Promise(function (resolve) {
                                _this.nativeElement.whenRendered(function () {
                                    var result = _this.nativeElement.expand();
                                    resolve(result);
                                });
                            });
                        };
                        return [4 /*yield*/, getResultOnRender()];
                    case 1:
                        result = _a.sent();
                        return [2 /*return*/, result];
                }
            });
        });
    };
    /** @description Inserts a new tab and an associated content section. Applicable only to TabsWindow.
    * @param {number} index. The index to insert a new tab at.
    * @param {any} details. An Object with the fields "label", "labelSize", "content" and "group".
    */
    WindowComponent.prototype.insert = function (index, details) {
        var _this = this;
        if (this.nativeElement.isRendered) {
            this.nativeElement.insert(index, details);
        }
        else {
            this.nativeElement.whenRendered(function () {
                _this.nativeElement.insert(index, details);
            });
        }
    };
    /** @description Inserts the specified "smart-tab-item" node before the reference "smart-tab-item" node. Applicable only to TabsWindow.
    * @param {Node} newNode. The "smart-tab-item" node to insert.
    * @param {Node | null} referenceNode?. The "smart-tab-item" node before which newNode is inserted.
    * @returns {Node}
  */
    WindowComponent.prototype.insertBefore = function (newNode, referenceNode) {
        return __awaiter(this, void 0, void 0, function () {
            var getResultOnRender, result;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        getResultOnRender = function () {
                            return new Promise(function (resolve) {
                                _this.nativeElement.whenRendered(function () {
                                    var result = _this.nativeElement.insertBefore(newNode, referenceNode);
                                    resolve(result);
                                });
                            });
                        };
                        return [4 /*yield*/, getResultOnRender()];
                    case 1:
                        result = _a.sent();
                        return [2 /*return*/, result];
                }
            });
        });
    };
    /** @description Removes a tab and its associated content section. Applicable only to TabsWindow.
    * @param {number} index. The index of the tab to remove.
    */
    WindowComponent.prototype.removeAt = function (index) {
        var _this = this;
        if (this.nativeElement.isRendered) {
            this.nativeElement.removeAt(index);
        }
        else {
            this.nativeElement.whenRendered(function () {
                _this.nativeElement.removeAt(index);
            });
        }
    };
    /** @description Removes a child "smart-tab-item" node. Applicable only to TabsWindow.
    * @param {Node} node. The "smart-tab-item" node to remove.
    * @returns {Node}
  */
    WindowComponent.prototype.removeChild = function (node) {
        return __awaiter(this, void 0, void 0, function () {
            var getResultOnRender, result;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        getResultOnRender = function () {
                            return new Promise(function (resolve) {
                                _this.nativeElement.whenRendered(function () {
                                    var result = _this.nativeElement.removeChild(node);
                                    resolve(result);
                                });
                            });
                        };
                        return [4 /*yield*/, getResultOnRender()];
                    case 1:
                        result = _a.sent();
                        return [2 /*return*/, result];
                }
            });
        });
    };
    /** @description Maximizes the window to fill the area.
    */
    WindowComponent.prototype.maximize = function () {
        var _this = this;
        if (this.nativeElement.isRendered) {
            this.nativeElement.maximize();
        }
        else {
            this.nativeElement.whenRendered(function () {
                _this.nativeElement.maximize();
            });
        }
    };
    /** @description Minimizes the window.
    */
    WindowComponent.prototype.minimize = function () {
        var _this = this;
        if (this.nativeElement.isRendered) {
            this.nativeElement.minimize();
        }
        else {
            this.nativeElement.whenRendered(function () {
                _this.nativeElement.minimize();
            });
        }
    };
    /** @description Opens the window
    */
    WindowComponent.prototype.open = function () {
        var _this = this;
        if (this.nativeElement.isRendered) {
            this.nativeElement.open();
        }
        else {
            this.nativeElement.whenRendered(function () {
                _this.nativeElement.open();
            });
        }
    };
    /** @description Pins the window. Disables window dragging.
    */
    WindowComponent.prototype.pin = function () {
        var _this = this;
        if (this.nativeElement.isRendered) {
            this.nativeElement.pin();
        }
        else {
            this.nativeElement.whenRendered(function () {
                _this.nativeElement.pin();
            });
        }
    };
    /** @description Restores the window to it's previous size before maximization/minimization.
    */
    WindowComponent.prototype.restore = function () {
        var _this = this;
        if (this.nativeElement.isRendered) {
            this.nativeElement.restore();
        }
        else {
            this.nativeElement.whenRendered(function () {
                _this.nativeElement.restore();
            });
        }
    };
    /** @description Selects a tab.  Applicalbe only to TabsWindow elements.
    * @param {number} index. The index of the tab to select.
    */
    WindowComponent.prototype.select = function (index) {
        var _this = this;
        if (this.nativeElement.isRendered) {
            this.nativeElement.select(index);
        }
        else {
            this.nativeElement.whenRendered(function () {
                _this.nativeElement.select(index);
            });
        }
    };
    /** @description Unpins the window. Enables window dragging.
    */
    WindowComponent.prototype.unpin = function () {
        var _this = this;
        if (this.nativeElement.isRendered) {
            this.nativeElement.unpin();
        }
        else {
            this.nativeElement.whenRendered(function () {
                _this.nativeElement.unpin();
            });
        }
    };
    /** @description Updates a tab and its associated content section.  Applicalbe only to TabsWindow elements.
    * @param {number} index. The index of the tab to update.
    * @param {string} label. The new label of the tab. The value can be the id of an HTMLTemplateElement
    * @param {string | HTMLElement} content. The new content of the tab.
    */
    WindowComponent.prototype.update = function (index, label, content) {
        var _this = this;
        if (this.nativeElement.isRendered) {
            this.nativeElement.update(index, label, content);
        }
        else {
            this.nativeElement.whenRendered(function () {
                _this.nativeElement.update(index, label, content);
            });
        }
    };
    Object.defineProperty(WindowComponent.prototype, "isRendered", {
        get: function () {
            return this.nativeElement ? this.nativeElement.isRendered : false;
        },
        enumerable: true,
        configurable: true
    });
    WindowComponent.prototype.ngOnInit = function () {
    };
    WindowComponent.prototype.ngAfterViewInit = function () {
        var that = this;
        that.onCreate.emit(that.nativeElement);
        Smart.Render();
        this.nativeElement.classList.add('smart-angular');
        this.nativeElement.whenRendered(function () { that.onReady.emit(that.nativeElement); });
        this.listen();
    };
    WindowComponent.prototype.ngOnDestroy = function () {
        this.unlisten();
    };
    WindowComponent.prototype.ngOnChanges = function (changes) {
        if (this.nativeElement && this.nativeElement.isRendered) {
            for (var propName in changes) {
                if (changes.hasOwnProperty(propName)) {
                    this.nativeElement[propName] = changes[propName].currentValue;
                }
            }
        }
    };
    /** @description Add event listeners. */
    WindowComponent.prototype.listen = function () {
        var that = this;
        that.eventHandlers['openingHandler'] = function (event) { that.onOpening.emit(event); };
        that.nativeElement.addEventListener('opening', that.eventHandlers['openingHandler']);
        that.eventHandlers['openHandler'] = function (event) { that.onOpen.emit(event); };
        that.nativeElement.addEventListener('open', that.eventHandlers['openHandler']);
        that.eventHandlers['closingHandler'] = function (event) { that.onClosing.emit(event); };
        that.nativeElement.addEventListener('closing', that.eventHandlers['closingHandler']);
        that.eventHandlers['closeHandler'] = function (event) { that.onClose.emit(event); };
        that.nativeElement.addEventListener('close', that.eventHandlers['closeHandler']);
        that.eventHandlers['collapseHandler'] = function (event) { that.onCollapse.emit(event); };
        that.nativeElement.addEventListener('collapse', that.eventHandlers['collapseHandler']);
        that.eventHandlers['dragEndHandler'] = function (event) { that.onDragEnd.emit(event); };
        that.nativeElement.addEventListener('dragEnd', that.eventHandlers['dragEndHandler']);
        that.eventHandlers['dragStartHandler'] = function (event) { that.onDragStart.emit(event); };
        that.nativeElement.addEventListener('dragStart', that.eventHandlers['dragStartHandler']);
        that.eventHandlers['expandHandler'] = function (event) { that.onExpand.emit(event); };
        that.nativeElement.addEventListener('expand', that.eventHandlers['expandHandler']);
        that.eventHandlers['maximizeHandler'] = function (event) { that.onMaximize.emit(event); };
        that.nativeElement.addEventListener('maximize', that.eventHandlers['maximizeHandler']);
        that.eventHandlers['minimizeHandler'] = function (event) { that.onMinimize.emit(event); };
        that.nativeElement.addEventListener('minimize', that.eventHandlers['minimizeHandler']);
        that.eventHandlers['resizeEndHandler'] = function (event) { that.onResizeEnd.emit(event); };
        that.nativeElement.addEventListener('resizeEnd', that.eventHandlers['resizeEndHandler']);
        that.eventHandlers['resizeStartHandler'] = function (event) { that.onResizeStart.emit(event); };
        that.nativeElement.addEventListener('resizeStart', that.eventHandlers['resizeStartHandler']);
        that.eventHandlers['restoreHandler'] = function (event) { that.onRestore.emit(event); };
        that.nativeElement.addEventListener('restore', that.eventHandlers['restoreHandler']);
    };
    /** @description Remove event listeners. */
    WindowComponent.prototype.unlisten = function () {
        var that = this;
        if (that.eventHandlers['openingHandler']) {
            that.nativeElement.removeEventListener('opening', that.eventHandlers['openingHandler']);
        }
        if (that.eventHandlers['openHandler']) {
            that.nativeElement.removeEventListener('open', that.eventHandlers['openHandler']);
        }
        if (that.eventHandlers['closingHandler']) {
            that.nativeElement.removeEventListener('closing', that.eventHandlers['closingHandler']);
        }
        if (that.eventHandlers['closeHandler']) {
            that.nativeElement.removeEventListener('close', that.eventHandlers['closeHandler']);
        }
        if (that.eventHandlers['collapseHandler']) {
            that.nativeElement.removeEventListener('collapse', that.eventHandlers['collapseHandler']);
        }
        if (that.eventHandlers['dragEndHandler']) {
            that.nativeElement.removeEventListener('dragEnd', that.eventHandlers['dragEndHandler']);
        }
        if (that.eventHandlers['dragStartHandler']) {
            that.nativeElement.removeEventListener('dragStart', that.eventHandlers['dragStartHandler']);
        }
        if (that.eventHandlers['expandHandler']) {
            that.nativeElement.removeEventListener('expand', that.eventHandlers['expandHandler']);
        }
        if (that.eventHandlers['maximizeHandler']) {
            that.nativeElement.removeEventListener('maximize', that.eventHandlers['maximizeHandler']);
        }
        if (that.eventHandlers['minimizeHandler']) {
            that.nativeElement.removeEventListener('minimize', that.eventHandlers['minimizeHandler']);
        }
        if (that.eventHandlers['resizeEndHandler']) {
            that.nativeElement.removeEventListener('resizeEnd', that.eventHandlers['resizeEndHandler']);
        }
        if (that.eventHandlers['resizeStartHandler']) {
            that.nativeElement.removeEventListener('resizeStart', that.eventHandlers['resizeStartHandler']);
        }
        if (that.eventHandlers['restoreHandler']) {
            that.nativeElement.removeEventListener('restore', that.eventHandlers['restoreHandler']);
        }
    };
    WindowComponent.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    __decorate([
        Input()
    ], WindowComponent.prototype, "addNewTab", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "animation", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "autoCapitalize", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "autoExpand", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "cancelLabel", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "completeLabel", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "confirmLabel", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "collapsed", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "closeOnMaskClick", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "dataSource", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "disabled", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "disableSnap", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "disableEscape", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "disableKeyboard", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "displayMode", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "dropPosition", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "formatFunction", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "footerPosition", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "footerTemplate", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "headerButtons", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "headerTemplate", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "headerPosition", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "hint", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "indeterminate", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "inverted", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "label", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "liveResize", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "layout", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "locale", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "locked", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "localizeFormatFunction", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "maximized", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "messages", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "modal", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "max", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "min", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "minimized", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "maxLength", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "minLength", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "opened", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "pinned", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "placeholder", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "promptLabel", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "readonly", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "resizeIndicator", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "resizeMode", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "rightToLeft", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "required", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "requiredMessage", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "selectAllOnFocus", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "selectedIndex", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "selectionMode", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "selectionEnd", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "selectionStart", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "showProgressValue", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "siblings", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "size", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "spellCheck", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "tabCloseButtons", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "tabCloseButtonMode", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "tabOverflow", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "tabPosition", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "tabScrollButtonsPosition", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "tabTextOrientation", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "theme", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "unfocusable", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "value", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "windowParent", null);
    __decorate([
        Input()
    ], WindowComponent.prototype, "wrap", null);
    __decorate([
        Output()
    ], WindowComponent.prototype, "onOpening", void 0);
    __decorate([
        Output()
    ], WindowComponent.prototype, "onOpen", void 0);
    __decorate([
        Output()
    ], WindowComponent.prototype, "onClosing", void 0);
    __decorate([
        Output()
    ], WindowComponent.prototype, "onClose", void 0);
    __decorate([
        Output()
    ], WindowComponent.prototype, "onCollapse", void 0);
    __decorate([
        Output()
    ], WindowComponent.prototype, "onDragEnd", void 0);
    __decorate([
        Output()
    ], WindowComponent.prototype, "onDragStart", void 0);
    __decorate([
        Output()
    ], WindowComponent.prototype, "onExpand", void 0);
    __decorate([
        Output()
    ], WindowComponent.prototype, "onMaximize", void 0);
    __decorate([
        Output()
    ], WindowComponent.prototype, "onMinimize", void 0);
    __decorate([
        Output()
    ], WindowComponent.prototype, "onResizeEnd", void 0);
    __decorate([
        Output()
    ], WindowComponent.prototype, "onResizeStart", void 0);
    __decorate([
        Output()
    ], WindowComponent.prototype, "onRestore", void 0);
    WindowComponent = __decorate([
        Directive({
            selector: 'smart-window, [smart-window], smart-tabs-window, smart-prompt-window, smart-multilineprompt-window, smart-dialog-window,  smart-alert-window, smart-progress-window, smart-wait-window'
        })
    ], WindowComponent);
    return WindowComponent;
}(BaseElement));

var WindowModule = /** @class */ (function () {
    function WindowModule() {
    }
    WindowModule = __decorate([
        NgModule({
            declarations: [WindowComponent],
            schemas: [CUSTOM_ELEMENTS_SCHEMA],
            exports: [WindowComponent]
        })
    ], WindowModule);
    return WindowModule;
}());

/**
 * Generated bundle index. Do not edit.
 */

export { Smart, WindowComponent, WindowModule, BaseElement as ɵa };
//# sourceMappingURL=smart-webcomponents-angular-window.js.map
