all files / common/base/ pivot-common.js

100% Statements 35/35
50% Branches 1/2
100% Functions 4/4
100% Lines 35/35
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42   219× 219× 219× 219× 219× 219× 219× 219× 219× 219× 219× 219× 219× 219× 219× 219× 219× 219× 219× 219× 219× 219× 219× 219× 219×   210× 210× 210×          
define(["require", "exports", "../actions/keyboard", "../actions/event-base", "../actions/node-state-modified", "../actions/dataSource-update", "../popups/error-dialog", "../popups/filter-dialog"], function (require, exports, keyboard_1, event_base_1, node_state_modified_1, dataSource_update_1, error_dialog_1, filter_dialog_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var PivotCommon = (function () {
        function PivotCommon(control) {
            this.currentTreeItems = [];
            this.savedTreeFilterPos = {};
            this.currentTreeItemsPos = {};
            this.searchTreeItems = [];
            this.isDataOverflow = false;
            this.isDateField = false;
            this.element = control.element;
            this.moduleName = control.moduleName;
            this.dataSourceSettings = control.dataSourceSettings;
            this.engineModule = control.pivotEngine;
            this.enableRtl = control.enableRtl;
            this.enableHtmlSanitizer = control.enableHtmlSanitizer;
            this.isAdaptive = control.isAdaptive;
            this.renderMode = control.renderMode;
            this.parentID = control.id;
            this.localeObj = control.localeObj;
            this.dataType = control.dataType;
            this.cssClass = control.cssClass;
            this.nodeStateModified = new node_state_modified_1.NodeStateModified(this);
            this.dataSourceUpdate = new dataSource_update_1.DataSourceUpdate(this);
            this.eventBase = new event_base_1.EventBase(this);
            this.filterDialog = new filter_dialog_1.FilterDialog(this);
            this.errorDialog = new error_dialog_1.ErrorDialog(this);
            this.keyboardModule = new keyboard_1.CommonKeyboardInteraction(this);
            return this;
        }
        PivotCommon.prototype.destroy = function () {
            Eif (this.keyboardModule) {
                this.keyboardModule.destroy();
                this.keyboardModule = null;
            }
        };
        return PivotCommon;
    }());
    exports.PivotCommon = PivotCommon;
});