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;
});
|