UNPKG

jqwidgets-scripts-custom

Version:

jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.

1,586 lines 56.9 kB
require('../../jqwidgets/jqxcore');
require('../../jqwidgets/jqxdata');
require('../../jqwidgets/jqxdata.export');
require('../../jqwidgets/jqxdate');
require('../../jqwidgets/jqxbuttons');
require('../../jqwidgets/jqxmenu');
require('../../jqwidgets/jqxtooltip');
require('../../jqwidgets/jqxscrollbar');
require('../../jqwidgets/jqxradiobutton');
require('../../jqwidgets/jqxcheckbox');
require('../../jqwidgets/jqxwindow');
require('../../jqwidgets/jqxlistbox');
require('../../jqwidgets/jqxcolorpicker');
require('../../jqwidgets/jqxcombobox');
require('../../jqwidgets/jqxdropdownlist');
require('../../jqwidgets/jqxnumberinput');
require('../../jqwidgets/jqxinput');
require('../../jqwidgets/globalization/globalize');
require('../../jqwidgets/jqxcalendar');
require('../../jqwidgets/jqxdatetimeinput');
require('../../jqwidgets/jqxscheduler');
require('../../jqwidgets/jqxscheduler.api');
(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core')) :
    typeof define === 'function' && define.amd ? define('jqwidgets-ng/jqxscheduler', ['exports', '@angular/core'], factory) :
    (factory((global['jqwidgets-ng'] = global['jqwidgets-ng'] || {}, global['jqwidgets-ng'].jqxscheduler = {}),global.ng.core));
}(this, (function (exports,core) { 'use strict';

    /*! *****************************************************************************
    Copyright (c) Microsoft Corporation. All rights reserved.
    Licensed under the Apache License, Version 2.0 (the "License"); you may not use
    this file except in compliance with the License. You may obtain a copy of the
    License at http://www.apache.org/licenses/LICENSE-2.0

    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
    MERCHANTABLITY OR NON-INFRINGEMENT.

    See the Apache Version 2.0 License for specific language governing permissions
    and limitations under the License.
    ***************************************************************************** */
    function __read(o, n) {
        var m = typeof Symbol === "function" && o[Symbol.iterator];
        if (!m)
            return o;
        var i = m.call(o), r, ar = [], e;
        try {
            while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
                ar.push(r.value);
        }
        catch (error) {
            e = { error: error };
        }
        finally {
            try {
                if (r && !r.done && (m = i["return"]))
                    m.call(i);
            }
            finally {
                if (e)
                    throw e.error;
            }
        }
        return ar;
    }
    function __spread() {
        for (var ar = [], i = 0; i < arguments.length; i++)
            ar = ar.concat(__read(arguments[i]));
        return ar;
    }

    /**
     * @fileoverview added by tsickle
     * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
     */
    var jqxSchedulerComponent = /** @class */ (function () {
        function jqxSchedulerComponent(containerElement) {
            this.autoCreate = true;
            this.properties = ['appointmentOpacity', 'appointmentsMinHeight', 'appointmentDataFields', 'appointmentTooltips', 'columnsHeight', 'contextMenu', 'contextMenuOpen', 'contextMenuClose', 'contextMenuItemClick', 'contextMenuCreate', 'changedAppointments', 'disabled', 'date', 'dayNameFormat', 'enableHover', 'editDialog', 'editDialogDateTimeFormatString', 'editDialogDateFormatString', 'editDialogOpen', 'editDialogCreate', 'editDialogKeyDown', 'editDialogClose', 'exportSettings', 'height', 'legendPosition', 'legendHeight', 'localization', 'min', 'max', 'ready', 'renderAppointment', 'rendering', 'rendered', 'rtl', 'resources', 'rowsHeight', 'showToolbar', 'showLegend', 'scrollBarSize', 'source', 'statuses', 'touchRowsHeight', 'theme', 'touchAppointmentsMinHeight', 'touchScrollBarSize', 'timeZone', 'touchDayNameFormat', 'toolBarRangeFormat', 'toolBarRangeFormatAbbr', 'toolbarHeight', 'views', 'view', 'width'];
            // jqxSchedulerComponent events
            this.onAppointmentChange = new core.EventEmitter();
            this.onAppointmentClick = new core.EventEmitter();
            this.onAppointmentDoubleClick = new core.EventEmitter();
            this.onAppointmentDelete = new core.EventEmitter();
            this.onAppointmentAdd = new core.EventEmitter();
            this.onBindingComplete = new core.EventEmitter();
            this.onCellClick = new core.EventEmitter();
            this.onCellDoubleClick = new core.EventEmitter();
            this.onContextMenuOpen = new core.EventEmitter();
            this.onContextMenuClose = new core.EventEmitter();
            this.onContextMenuItemClick = new core.EventEmitter();
            this.onContextMenuCreate = new core.EventEmitter();
            this.onDateChange = new core.EventEmitter();
            this.onEditRecurrenceDialogOpen = new core.EventEmitter();
            this.onEditRecurrenceDialogClose = new core.EventEmitter();
            this.onEditDialogCreate = new core.EventEmitter();
            this.onEditDialogOpen = new core.EventEmitter();
            this.onEditDialogClose = new core.EventEmitter();
            this.onViewChange = new core.EventEmitter();
            this.elementRef = containerElement;
        }
        /**
         * @return {?}
         */
        jqxSchedulerComponent.prototype.ngOnInit = /**
         * @return {?}
         */
            function () {
                if (this.autoCreate) {
                    this.createComponent();
                }
            };
        /**
         * @param {?} changes
         * @return {?}
         */
        jqxSchedulerComponent.prototype.ngOnChanges = /**
         * @param {?} changes
         * @return {?}
         */
            function (changes) {
                if (this.host) {
                    for (var i = 0; i < this.properties.length; i++) {
                        /** @type {?} */
                        var attrName = 'attr' + this.properties[i].substring(0, 1).toUpperCase() + this.properties[i].substring(1);
                        /** @type {?} */
                        var areEqual = false;
                        if (this[attrName] !== undefined) {
                            if (typeof this[attrName] === 'object') {
                                if (this[attrName] instanceof Array) {
                                    areEqual = this.arraysEqual(this[attrName], this.host.jqxScheduler(this.properties[i]));
                                }
                                if (areEqual) {
                                    return false;
                                }
                                this.host.jqxScheduler(this.properties[i], this[attrName]);
                                continue;
                            }
                            if (this[attrName] !== this.host.jqxScheduler(this.properties[i])) {
                                this.host.jqxScheduler(this.properties[i], this[attrName]);
                            }
                        }
                    }
                }
            };
        /**
         * @param {?} attrValue
         * @param {?} hostValue
         * @return {?}
         */
        jqxSchedulerComponent.prototype.arraysEqual = /**
         * @param {?} attrValue
         * @param {?} hostValue
         * @return {?}
         */
            function (attrValue, hostValue) {
                if ((attrValue && !hostValue) || (!attrValue && hostValue)) {
                    return false;
                }
                if (attrValue.length != hostValue.length) {
                    return false;
                }
                for (var i = 0; i < attrValue.length; i++) {
                    if (attrValue[i] !== hostValue[i]) {
                        return false;
                    }
                }
                return true;
            };
        /**
         * @return {?}
         */
        jqxSchedulerComponent.prototype.manageAttributes = /**
         * @return {?}
         */
            function () {
                /** @type {?} */
                var options = {};
                for (var i = 0; i < this.properties.length; i++) {
                    /** @type {?} */
                    var attrName = 'attr' + this.properties[i].substring(0, 1).toUpperCase() + this.properties[i].substring(1);
                    if (this[attrName] !== undefined) {
                        options[this.properties[i]] = this[attrName];
                    }
                }
                return options;
            };
        /**
         * @param {?} parentEl
         * @param {?} childEl
         * @return {?}
         */
        jqxSchedulerComponent.prototype.moveClasses = /**
         * @param {?} parentEl
         * @param {?} childEl
         * @return {?}
         */
            function (parentEl, childEl) {
                var _a;
                /** @type {?} */
                var classes = parentEl.classList;
                if (classes.length > 0) {
                    (_a = childEl.classList).add.apply(_a, __spread(classes));
                }
                parentEl.className = '';
            };
        /**
         * @param {?} parentEl
         * @param {?} childEl
         * @return {?}
         */
        jqxSchedulerComponent.prototype.moveStyles = /**
         * @param {?} parentEl
         * @param {?} childEl
         * @return {?}
         */
            function (parentEl, childEl) {
                /** @type {?} */
                var style = parentEl.style.cssText;
                childEl.style.cssText = style;
                parentEl.style.cssText = '';
            };
        /**
         * @param {?=} options
         * @return {?}
         */
        jqxSchedulerComponent.prototype.createComponent = /**
         * @param {?=} options
         * @return {?}
         */
            function (options) {
                if (this.host) {
                    return;
                }
                if (options) {
                    JQXLite.extend(options, this.manageAttributes());
                }
                else {
                    options = this.manageAttributes();
                }
                this.host = JQXLite(this.elementRef.nativeElement.firstChild);
                this.moveClasses(this.elementRef.nativeElement, this.host[0]);
                this.moveStyles(this.elementRef.nativeElement, this.host[0]);
                this.__wireEvents__();
                this.widgetObject = jqwidgets.createInstance(this.host, 'jqxScheduler', options);
            };
        /**
         * @param {?=} options
         * @return {?}
         */
        jqxSchedulerComponent.prototype.createWidget = /**
         * @param {?=} options
         * @return {?}
         */
            function (options) {
                this.createComponent(options);
            };
        /**
         * @return {?}
         */
        jqxSchedulerComponent.prototype.__updateRect__ = /**
         * @return {?}
         */
            function () {
                if (this.host)
                    this.host.css({ width: this.attrWidth, height: this.attrHeight });
            };
        /**
         * @param {?} options
         * @return {?}
         */
        jqxSchedulerComponent.prototype.setOptions = /**
         * @param {?} options
         * @return {?}
         */
            function (options) {
                this.host.jqxScheduler('setOptions', options);
            };
        // jqxSchedulerComponent properties
        // jqxSchedulerComponent properties
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.appointmentOpacity =
            // jqxSchedulerComponent properties
            /**
             * @param {?=} arg
             * @return {?}
             */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('appointmentOpacity', arg);
                }
                else {
                    return this.host.jqxScheduler('appointmentOpacity');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.appointmentsMinHeight = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('appointmentsMinHeight', arg);
                }
                else {
                    return this.host.jqxScheduler('appointmentsMinHeight');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.appointmentDataFields = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('appointmentDataFields', arg);
                }
                else {
                    return this.host.jqxScheduler('appointmentDataFields');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.appointmentTooltips = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('appointmentTooltips', arg);
                }
                else {
                    return this.host.jqxScheduler('appointmentTooltips');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.columnsHeight = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('columnsHeight', arg);
                }
                else {
                    return this.host.jqxScheduler('columnsHeight');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.contextMenu = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('contextMenu', arg);
                }
                else {
                    return this.host.jqxScheduler('contextMenu');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.contextMenuOpen = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('contextMenuOpen', arg);
                }
                else {
                    return this.host.jqxScheduler('contextMenuOpen');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.contextMenuClose = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('contextMenuClose', arg);
                }
                else {
                    return this.host.jqxScheduler('contextMenuClose');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.contextMenuItemClick = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('contextMenuItemClick', arg);
                }
                else {
                    return this.host.jqxScheduler('contextMenuItemClick');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.contextMenuCreate = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('contextMenuCreate', arg);
                }
                else {
                    return this.host.jqxScheduler('contextMenuCreate');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.changedAppointments = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('changedAppointments', arg);
                }
                else {
                    return this.host.jqxScheduler('changedAppointments');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.disabled = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('disabled', arg);
                }
                else {
                    return this.host.jqxScheduler('disabled');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.date = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('date', arg);
                }
                else {
                    return this.host.jqxScheduler('date');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.dayNameFormat = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('dayNameFormat', arg);
                }
                else {
                    return this.host.jqxScheduler('dayNameFormat');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.enableHover = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('enableHover', arg);
                }
                else {
                    return this.host.jqxScheduler('enableHover');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.editDialog = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('editDialog', arg);
                }
                else {
                    return this.host.jqxScheduler('editDialog');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.editDialogDateTimeFormatString = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('editDialogDateTimeFormatString', arg);
                }
                else {
                    return this.host.jqxScheduler('editDialogDateTimeFormatString');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.editDialogDateFormatString = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('editDialogDateFormatString', arg);
                }
                else {
                    return this.host.jqxScheduler('editDialogDateFormatString');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.editDialogOpen = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('editDialogOpen', arg);
                }
                else {
                    return this.host.jqxScheduler('editDialogOpen');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.editDialogCreate = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('editDialogCreate', arg);
                }
                else {
                    return this.host.jqxScheduler('editDialogCreate');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.editDialogKeyDown = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('editDialogKeyDown', arg);
                }
                else {
                    return this.host.jqxScheduler('editDialogKeyDown');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.editDialogClose = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('editDialogClose', arg);
                }
                else {
                    return this.host.jqxScheduler('editDialogClose');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.exportSettings = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('exportSettings', arg);
                }
                else {
                    return this.host.jqxScheduler('exportSettings');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.height = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('height', arg);
                }
                else {
                    return this.host.jqxScheduler('height');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.legendPosition = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('legendPosition', arg);
                }
                else {
                    return this.host.jqxScheduler('legendPosition');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.legendHeight = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('legendHeight', arg);
                }
                else {
                    return this.host.jqxScheduler('legendHeight');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.localization = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('localization', arg);
                }
                else {
                    return this.host.jqxScheduler('localization');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.min = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('min', arg);
                }
                else {
                    return this.host.jqxScheduler('min');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.max = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('max', arg);
                }
                else {
                    return this.host.jqxScheduler('max');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.ready = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('ready', arg);
                }
                else {
                    return this.host.jqxScheduler('ready');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.renderAppointment = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('renderAppointment', arg);
                }
                else {
                    return this.host.jqxScheduler('renderAppointment');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.rendering = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('rendering', arg);
                }
                else {
                    return this.host.jqxScheduler('rendering');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.rendered = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('rendered', arg);
                }
                else {
                    return this.host.jqxScheduler('rendered');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.rtl = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('rtl', arg);
                }
                else {
                    return this.host.jqxScheduler('rtl');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.resources = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('resources', arg);
                }
                else {
                    return this.host.jqxScheduler('resources');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.rowsHeight = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('rowsHeight', arg);
                }
                else {
                    return this.host.jqxScheduler('rowsHeight');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.showToolbar = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('showToolbar', arg);
                }
                else {
                    return this.host.jqxScheduler('showToolbar');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.showLegend = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('showLegend', arg);
                }
                else {
                    return this.host.jqxScheduler('showLegend');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.scrollBarSize = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('scrollBarSize', arg);
                }
                else {
                    return this.host.jqxScheduler('scrollBarSize');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.source = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('source', arg);
                }
                else {
                    return this.host.jqxScheduler('source');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.statuses = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('statuses', arg);
                }
                else {
                    return this.host.jqxScheduler('statuses');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.touchRowsHeight = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('touchRowsHeight', arg);
                }
                else {
                    return this.host.jqxScheduler('touchRowsHeight');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.theme = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('theme', arg);
                }
                else {
                    return this.host.jqxScheduler('theme');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.touchAppointmentsMinHeight = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('touchAppointmentsMinHeight', arg);
                }
                else {
                    return this.host.jqxScheduler('touchAppointmentsMinHeight');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.touchScrollBarSize = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('touchScrollBarSize', arg);
                }
                else {
                    return this.host.jqxScheduler('touchScrollBarSize');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.timeZone = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('timeZone', arg);
                }
                else {
                    return this.host.jqxScheduler('timeZone');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.touchDayNameFormat = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('touchDayNameFormat', arg);
                }
                else {
                    return this.host.jqxScheduler('touchDayNameFormat');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.toolBarRangeFormat = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('toolBarRangeFormat', arg);
                }
                else {
                    return this.host.jqxScheduler('toolBarRangeFormat');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.toolBarRangeFormatAbbr = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('toolBarRangeFormatAbbr', arg);
                }
                else {
                    return this.host.jqxScheduler('toolBarRangeFormatAbbr');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.toolbarHeight = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('toolbarHeight', arg);
                }
                else {
                    return this.host.jqxScheduler('toolbarHeight');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.views = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('views', arg);
                }
                else {
                    return this.host.jqxScheduler('views');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.view = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('view', arg);
                }
                else {
                    return this.host.jqxScheduler('view');
                }
            };
        /**
         * @param {?=} arg
         * @return {?}
         */
        jqxSchedulerComponent.prototype.width = /**
         * @param {?=} arg
         * @return {?}
         */
            function (arg) {
                if (arg !== undefined) {
                    this.host.jqxScheduler('width', arg);
                }
                else {
                    return this.host.jqxScheduler('width');
                }
            };
        // jqxSchedulerComponent functions
        // jqxSchedulerComponent functions
        /**
         * @param {?} item
         * @return {?}
         */
        jqxSchedulerComponent.prototype.addAppointment =
            // jqxSchedulerComponent functions
            /**
             * @param {?} item
             * @return {?}
             */
            function (item) {
                this.host.jqxScheduler('addAppointment', item);
            };
        /**
         * @return {?}
         */
        jqxSchedulerComponent.prototype.beginAppointmentsUpdate = /**
         * @return {?}
         */
            function () {
                this.host.jqxScheduler('beginAppointmentsUpdate');
            };
        /**
         * @return {?}
         */
        jqxSchedulerComponent.prototype.clearAppointmentsSelection = /**
         * @return {?}
         */
            function () {
                this.host.jqxScheduler('clearAppointmentsSelection');
            };
        /**
         * @return {?}
         */
        jqxSchedulerComponent.prototype.clearSelection = /**
         * @return {?}
         */
            function () {
                this.host.jqxScheduler('clearSelection');
            };
        /**
         * @return {?}
         */
        jqxSchedulerComponent.prototype.closeMenu = /**
         * @return {?}
         */
            function () {
                this.host.jqxScheduler('closeMenu');
            };
        /**
         * @return {?}
         */
        jqxSchedulerComponent.prototype.closeDialog = /**
         * @return {?}
         */
            function () {
                this.host.jqxScheduler('closeDialog');
            };
        /**
         * @param {?} appointmenId
         * @return {?}
         */
        jqxSchedulerComponent.prototype.deleteAppointment = /**
         * @param {?} appointmenId
         * @return {?}
         */
            function (appointmenId) {
                this.host.jqxScheduler('deleteAppointment', appointmenId);
            };
        /**
         * @return {?}
         */
        jqxSchedulerComponent.prototype.destroy = /**
         * @return {?}
         */
            function () {
                this.host.jqxScheduler('destroy');
            };
        /**
         * @return {?}
         */
        jqxSchedulerComponent.prototype.endAppointmentsUpdate = /**
         * @return {?}
         */
            function () {
                this.host.jqxScheduler('endAppointmentsUpdate');
            };
        /**
         * @param {?} id
         * @return {?}
         */
        jqxSchedulerComponent.prototype.ensureAppointmentVisible = /**
         * @param {?} id
         * @return {?}
         */
            function (id) {
                this.host.jqxScheduler('ensureAppointmentVisible', id);
            };
        /**
         * @param {?} item
         * @param {?} resourceId
         * @return {?}
         */
        jqxSchedulerComponent.prototype.ensureVisible = /**
         * @param {?} item
         * @param {?} resourceId
         * @return {?}
         */
            function (item, resourceId) {
                this.host.jqxScheduler('ensureVisible', item, resourceId);
            };
        /**
         * @param {?} format
         * @return {?}
         */
        jqxSchedulerComponent.prototype.exportData = /**
         * @param {?} format
         * @return {?}
         */
            function (format) {
                return this.host.jqxScheduler('exportData', format);
            };
        /**
         * @return {?}
         */
        jqxSchedulerComponent.prototype.focus = /**
         * @return {?}
         */
            function () {
                this.host.jqxScheduler('focus');
            };
        /**
         * @param {?} appointmentId
         * @param {?} name
         * @return {?}
         */
        jqxSchedulerComponent.prototype.getAppointmentProperty = /**
         * @param {?} appointmentId
         * @param {?} name
         * @return {?}
         */
            function (appointmentId, name) {
                return this.host.jqxScheduler('getAppointmentProperty', appointmentId, name);
            };
        /**
         * @return {?}
         */
        jqxSchedulerComponent.prototype.getSelection = /**
         * @return {?}
         */
            function () {
                return this.host.jqxScheduler('getSelection');
            };
        /**
         * @return {?}
         */
        jqxSchedulerComponent.prototype.getAppointments = /**
         * @return {?}
         */
            function () {
                return this.host.jqxScheduler('getAppointments');
            };
        /**
         * @return {?}
         */
        jqxSchedulerComponent.prototype.getDataAppointments = /**
         * @return {?}
         */
            function () {
                return this.host.jqxScheduler('getDataAppointments');
            };
        /**
         * @param {?} resourcesId
         * @return {?}
         */
        jqxSchedulerComponent.prototype.hideAppointmentsByResource = /**
         * @param {?} resourcesId
         * @return {?}
         */
            function (resourcesId) {
                this.host.jqxScheduler('hideAppointmentsByResource', resourcesId);
            };
        /**
         * @param {?} left
         * @param {?} top
         * @return {?}
         */
        jqxSchedulerComponent.prototype.openMenu = /**
         * @param {?} left
         * @param {?} top
         * @return {?}
         */
            function (left, top) {
                this.host.jqxScheduler('openMenu', left, top);
            };
        /**
         * @param {?} left
         * @param {?} top
         * @return {?}
         */
        jqxSchedulerComponent.prototype.openDialog = /**
         * @param {?} left
         * @param {?} top
         * @return {?}
         */
            function (left, top) {
                this.host.jqxScheduler('openDialog', left, top);
            };
        /**
         * @param {?} appointmentId
         * @return {?}
         */
        jqxSchedulerComponent.prototype.selectAppointment = /**
         * @param {?} appointmentId
         * @return {?}
         */
            function (appointmentId) {
                this.host.jqxScheduler('selectAppointment', appointmentId);
            };
        /**
         * @param {?} appointmentId
         * @param {?} name
         * @param {?} value
         * @return {?}
         */
        jqxSchedulerComponent.prototype.setAppointmentProperty = /**
         * @param {?} appointmentId
         * @param {?} name
         * @param {?} value
         * @return {?}
         */
            function (appointmentId, name, value) {
                this.host.jqxScheduler('setAppointmentProperty', appointmentId, name, value);
            };
        /**
         * @param {?} date
         * @param {?} allday
         * @param {?} resourceId
         * @return {?}
         */
        jqxSchedulerComponent.prototype.selectCell = /**
         * @param {?} date
         * @param {?} allday
         * @param {?} resourceId
         * @return {?}
         */
            function (date, allday, resourceId) {
                this.host.jqxScheduler('selectCell', date, allday, resourceId);
            };
        /**
         * @param {?} resourceId
         * @return {?}
         */
        jqxSchedulerComponent.prototype.showAppointmentsByResource = /**
         * @param {?} resourceId
         * @return {?}
         */
            function (resourceId) {
                this.host.jqxScheduler('showAppointmentsByResource', resourceId);
            };
        /**
         * @return {?}
         */
        jqxSchedulerComponent.prototype.scrollWidth = /**
         * @return {?}
         */
            function () {
                return this.host.jqxScheduler('scrollWidth');
            };
        /**
         * @return {?}
         */
        jqxSchedulerComponent.prototype.scrollHeight = /**
         * @return {?}
         */
            function () {
                return this.host.jqxScheduler('scrollHeight');
            };
        /**
         * @param {?} left
         * @return {?}
         */
        jqxSchedulerComponent.prototype.scrollLeft = /**
         * @param {?} left
         * @return {?}
         */
            function (left) {
                this.host.jqxScheduler('scrollLeft', left);
            };
        /**
         * @param {?} top
         * @return {?}
         */
        jqxSchedulerComponent.prototype.scrollTop = /**
         * @param {?} top
         * @return {?}
         */
            function (top) {
                this.host.jqxScheduler('scrollTop', top);
            };
        /**
         * @return {?}
         */
        jqxSchedulerComponent.prototype.__wireEvents__ = /**
         * @return {?}
         */
            function () {
                var _this = this;
                this.host.on('appointmentChange', function (eventData) { _this.onAppointmentChange.emit(eventData); });
                this.host.on('appointmentClick', function (eventData) { _this.onAppointmentClick.emit(eventData); });
                this.host.on('appointmentDoubleClick', function (eventData) { _this.onAppointmentDoubleClick.emit(eventData); });
                this.host.on('appointmentDelete', function (eventData) { _this.onAppointmentDelete.emit(eventData); });
                this.host.on('appointmentAdd', function (eventData) { _this.onAppointmentAdd.emit(eventData); });
                this.host.on('bindingComplete', function (eventData) { _this.onBindingComplete.emit(eventData); });
                this.host.on('cellClick', function (eventData) { _this.onCellClick.emit(eventData); });
                this.host.on('cellDoubleClick', function (eventData) { _this.onCellDoubleClick.emit(eventData); });
                this.host.on('contextMenuOpen', function (eventData) { _this.onContextMenuOpen.emit(eventData); });
                this.host.on('contextMenuClose', function (eventData) { _this.onContextMenuClose.emit(eventData); });
                this.host.on('contextMenuItemClick', function (eventData) { _this.onContextMenuItemClick.emit(eventData); });
                this.host.on('contextMenuCreate', function (eventData) { _this.onContextMenuCreate.emit(eventData); });
                this.host.on('dateChange', function (eventData) { _this.onDateChange.emit(eventData); });
                this.host.on('editRecurrenceDialogOpen', function (eventData) { _this.onEditRecurrenceDialogOpen.emit(eventData); });
                this.host.on('editRecurrenceDialogClose', function (eventData) { _this.onEditRecurrenceDialogClose.emit(eventData); });
                this.host.on('editDialogCreate', function (eventData) { _this.onEditDialogCreate.emit(eventData); });
                this.host.on('editDialogOpen', function (eventData) { _this.onEditDialogOpen.emit(eventData); });
                this.host.on('editDialogClose', function (eventData) { _this.onEditDialogClose.emit(eventData); });
                this.host.on('viewChange', function (eventData) { _this.onViewChange.emit(eventData); });
            };
        jqxSchedulerComponent.decorators = [
            { type: core.Component, args: [{
                        selector: 'jqxScheduler',
                        template: '<div><ng-content></ng-content></div>'
                    }] }
        ];
        /** @nocollapse */
        jqxSchedulerComponent.ctorParameters = function () {
            return [
                { type: core.ElementRef }
            ];
        };
        jqxSchedulerComponent.propDecorators = {
            attrAppointmentOpacity: [{ type: core.Input, args: ['appointmentOpacity',] }],
            attrAppointmentsMinHeight: [{ type: core.Input, args: ['appointmentsMinHeight',] }],
            attrAppointmentDataFields: [{ type: core.Input, args: ['appointmentDataFields',] }],
            attrAppointmentTooltips: [{ type: core.Input, args: ['appointmentTooltips',] }],
            attrColumnsHeight: [{ type: core.Input, args: ['columnsHeight',] }],
            attrContextMenu: [{ type: core.Input, args: ['contextMenu',] }],
            attrContextMenuOpen: [{ type: core.Input, args: ['contextMenuOpen',] }],
            attrContextMenuClose: [{ type: core.Input, args: ['contextMenuClose',] }],
            attrContextMenuItemClick: [{ type: core.Input, args: ['contextMenuItemClick',] }],
            attrContextMenuCreate: [{ type: core.Input, args: ['contextMenuCreate',] }],
            attrChangedAppointments: [{ type: core.Input, args: ['changedAppointments',] }],
            attrDisabled: [{ type: core.Input, args: ['disabled',] }],
            attrDate: [{ type: core.Input, args: ['date',] }],
            attrDayNameFormat: [{ type: core.Input, args: ['dayNameFormat',] }],
            attrEnableHover: [{ type: core.Input, args: ['enableHover',] }],
            attrEditDialog: [{ type: core.Input, args: ['editDialog',] }],
            attrEditDialogDateTimeFormatString: [{ type: core.Input, args: ['editDialogDateTimeFormatString',] }],
            attrEditDialogDateFormatString: [{ type: core.Input, args: ['editDialogDateFormatString',] }],
            attrEditDialogOpen: [{ type: core.Input, args: ['editDialogOpen',] }],
            attrEditDialogCreate: [{ type: core.Input, args: ['editDialogCreate',] }],
            attrEditDialogKeyDown: [{ type: core.Input, args: ['editDialogKeyDown',] }],
            attrEditDialogClose: [{ type: core.Input, args: ['editDialogClose',] }],
            attrExportSettings: [{ type: core.Input, args: ['exportSettings',] }],
            attrLegendPosition: [{ type: core.Input, args: ['legendPosition',] }],
            attrLegendHeight: [{ type: core.Input, args: ['legendHeight',] }],
            attrLocalization: [{ type: core.Input, args: ['localization',] }],
            attrMin: [{ type: core.Input, args: ['min',] }],
            attrMax: [{ type: core.Input, args: ['max',] }],
            attrReady: [{ type: core.Input, args: ['ready',] }],
            attrRenderAppointment: [{ type: core.Input, args: ['renderAppointment',] }],
            attrRendering: [{ type: core.Input, args: ['rendering',] }],
            attrRendered: [{ type: core.Input, args: ['rendered',] }],
            attrRtl: [{ type: core.Input, args: ['rtl',] }],
            attrResources: [{ type: core.Input, args: ['resources',] }],
            attrRowsHeight: [{ type: core.Input, args: ['rowsHeight',] }],
            attrShowToolbar: [{ type: core.Input, args: ['showToolbar',] }],
            attrShowLegend: [{ type: core.Input, args: ['showLegend',] }],
            attrScrollBarSize: [{ type: core.Input, args: ['scrollBarSize',] }],
            attrSource: [{ type: core.Input, args: ['source',] }],
            attrStatuses: [{ type: core.Input, args: ['statuses',] }],
            attrTouchRowsHeight: [{ type: core.Input, args: ['touchRowsHeight',] }],
            attrTheme: [{ type: core.Input, args: ['theme',] }],
            attrTouchAppointmentsMinHeight: [{ type: core.Input, args: ['touchAppointmentsMinHeight',] }],
            attrTouchScrollBarSize: [{ type: core.Input, args: ['touchScrollBarSize',] }],
            attrTimeZone: [{ type: core.Input, args: ['timeZone',] }],
            attrTouchDayNameFormat: [{ type: core.Input, args: ['touchDayNameFormat',] }],
            attrToolBarRangeFormat: [{ type: core.Input, args: ['toolBarRangeFormat',] }],
            attrToolBarRangeFormatAbbr: [{ type: core.Input, args: ['toolBarRangeFormatAbbr',] }],
            attrToolbarHeight: [{ type: core.Input, args: ['toolbarHeight',] }],
            attrViews: [{ type: core.Input, args: ['views',] }],
            attrView: [{ type: core.Input, args: ['view',] }],
            attrWidth: [{ type: core.Input, args: ['width',] }],
            attrHeight: [{ type: core.Input, args: ['height',] }],
            autoCreate: [{ type: core.Input, args: ['auto-create',] }],
            onAppointmentChange: [{ type: core.Output }],
            onAppointmentClick: [{ type: core.Output }],
            onAppointmentDoubleClick: [{ type: core.Output }],
            onAppointmentDelete: [{ type: core.Output }],
            onAppointmentAdd: [{ type: core.Output }],
            onBindingComplete: [{ type: core.Output }],
            onCellClick: [{ type: core.Output }],
            onCellDoubleClick: [{ type: core.Output }],
            onContextMenuOpen: [{ type: core.Output }],
            onContextMenuClose: [{ type: core.Output }],
            onContextMenuItemClick: [{ type: core.Output }],
            onContextMenuCreate: [{ type: core.Output }],
            onDateChange: [{ type: core.Output }],
            onEditRecurrenceDialogOpen: [{ type: core.Output }],
            onEditRecurrenceDialogClose: [{ type: core.Output }],
            onEditDialogCreate: [{ type: core.Output }],
            onEditDialogOpen: [{ type: core.Output }],
            onEditDialogClose: [{ type: core.Output }],
            onViewChange: [{ type: core.Output }]
        };
        return jqxSchedulerComponent;
    }()); //jqxSchedulerComponent

    /**
     * @fileoverview added by tsickle
     * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
     */
    var jqxSchedulerModule = /** @class */ (function () {
        function jqxSchedulerModule() {
        }
        jqxSchedulerModule.decorators = [
            { type: core.NgModule, args: [{
                        imports: [],
                        declarations: [jqxSchedulerComponent],
                        exports: [jqxSchedulerComponent]
                    },] }
        ];
        return jqxSchedulerModule;
    }());

    /**
     * @fileoverview added by tsickle
     * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
     */

    /**
     * @fileoverview added by tsickle
     * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
     */

    exports.jqxSchedulerComponent = jqxSchedulerComponent;
    exports.jqxSchedulerModule = jqxSchedulerModule;

    Object.defineProperty(exports, '__esModule', { value: true });

})));