Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
};
this.dispatchEvent(event);
if (this.params.action) {
this.params.action();
}
};
MenuItemComponent.prototype.destroy = function () {
// console.log('MenuItemComponent->destroy() ' + this.instance);
_super.prototype.destroy.call(this);
};
// private instance = Math.random();
MenuItemComponent.TEMPLATE = "<div class="\"ag-menu-option\"">\n <span class="\"ag-menu-option-icon\""></span>\n <span class="\"ag-menu-option-text\""></span>\n <span class="\"ag-menu-option-shortcut\""></span>\n <span class="\"ag-menu-option-popup-pointer\""></span>\n </div>";
MenuItemComponent.EVENT_ITEM_SELECTED = 'itemSelected';
__decorate([
ag_grid_community_1.Autowired('gridOptionsWrapper'),
__metadata("design:type", ag_grid_community_1.GridOptionsWrapper)
], MenuItemComponent.prototype, "gridOptionsWrapper", void 0);
__decorate([
ag_grid_community_1.Autowired('tooltipManager'),
__metadata("design:type", ag_grid_community_1.TooltipManager)
], MenuItemComponent.prototype, "tooltipManager", void 0);
__decorate([
ag_grid_community_1.RefSelector('eIcon'),
__metadata("design:type", HTMLElement)
], MenuItemComponent.prototype, "eIcon", void 0);
__decorate([
ag_grid_community_1.RefSelector('eName'),
__metadata("design:type", HTMLElement)
], MenuItemComponent.prototype, "eName", void 0);
__decorate([
ag_grid_community_1.RefSelector('eShortcut'),
__metadata("design:type", HTMLElement)
function NameValueComp() {
return _super.call(this, NameValueComp.TEMPLATE) || this;
}
NameValueComp.prototype.setLabel = function (key, defaultValue) {
// we want to hide until the first value comes in
this.setDisplayed(false);
var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();
this.eLabel.innerHTML = localeTextFunc(key, defaultValue);
};
NameValueComp.prototype.setValue = function (value) {
this.eValue.innerHTML = value;
};
NameValueComp.TEMPLATE = "<div class="\"ag-name-value\""> \n <span></span>: \n <span class="\"ag-name-value-value\""></span>\n </div>";
__decorate([
ag_grid_community_1.Autowired('gridOptionsWrapper'),
__metadata("design:type", ag_grid_community_1.GridOptionsWrapper)
], NameValueComp.prototype, "gridOptionsWrapper", void 0);
__decorate([
ag_grid_community_1.RefSelector('eLabel'),
__metadata("design:type", HTMLElement)
], NameValueComp.prototype, "eLabel", void 0);
__decorate([
ag_grid_community_1.RefSelector('eValue'),
__metadata("design:type", HTMLElement)
], NameValueComp.prototype, "eValue", void 0);
return NameValueComp;
}(ag_grid_community_1.Component));
exports.NameValueComp = NameValueComp;
}
else if (a.headerName > b.headerName) {
return 1;
}
else {
return 0;
}
}
};
__decorate([
ag_grid_community_1.Autowired('columnController'),
__metadata("design:type", ag_grid_community_1.ColumnController)
], PivotColDefService.prototype, "columnController", void 0);
__decorate([
ag_grid_community_1.Autowired('gridOptionsWrapper'),
__metadata("design:type", ag_grid_community_1.GridOptionsWrapper)
], PivotColDefService.prototype, "gridOptionsWrapper", void 0);
PivotColDefService = __decorate([
ag_grid_community_1.Bean('pivotColDefService')
], PivotColDefService);
return PivotColDefService;
}());
exports.PivotColDefService = PivotColDefService;
}
detailNode.data = masterNode.data;
detailNode.level = masterNode.level + 1;
var defaultDetailRowHeight = 200;
var rowHeight = this.gridOptionsWrapper.getRowHeightForNode(detailNode).height;
detailNode.rowHeight = rowHeight ? rowHeight : defaultDetailRowHeight;
masterNode.detailNode = detailNode;
return detailNode;
}
};
ServerSideRowModel.prototype.isLoading = function () {
return this.rowNodeBlockLoader ? this.rowNodeBlockLoader.isLoading() : false;
};
__decorate([
ag_grid_community_1.Autowired('gridOptionsWrapper'),
__metadata("design:type", ag_grid_community_1.GridOptionsWrapper)
], ServerSideRowModel.prototype, "gridOptionsWrapper", void 0);
__decorate([
ag_grid_community_1.Autowired('eventService'),
__metadata("design:type", ag_grid_community_1.EventService)
], ServerSideRowModel.prototype, "eventService", void 0);
__decorate([
ag_grid_community_1.Autowired('columnController'),
__metadata("design:type", ag_grid_community_1.ColumnController)
], ServerSideRowModel.prototype, "columnController", void 0);
__decorate([
ag_grid_community_1.Autowired('filterManager'),
__metadata("design:type", ag_grid_community_1.FilterManager)
], ServerSideRowModel.prototype, "filterManager", void 0);
__decorate([
ag_grid_community_1.Autowired('sortController'),
__metadata("design:type", ag_grid_community_1.SortController)
if (_this.isAlive()) {
_this.statusBarService.registerStatusPanel(componentDetail.key, component);
ePanelComponent.appendChild(component.getGui());
_this.addDestroyFunc(destroyFunc);
}
else {
destroyFunc();
}
});
});
});
};
StatusBar.TEMPLATE = "<div class="\"ag-status-bar\"">\n <div class="\"ag-status-bar-left\""></div>\n <div class="\"ag-status-bar-center\""></div>\n <div class="\"ag-status-bar-right\""></div>\n </div>";
__decorate([
ag_grid_community_1.Autowired('gridOptionsWrapper'),
__metadata("design:type", ag_grid_community_1.GridOptionsWrapper)
], StatusBar.prototype, "gridOptionsWrapper", void 0);
__decorate([
ag_grid_community_1.Autowired('gridOptions'),
__metadata("design:type", Object)
], StatusBar.prototype, "gridOptions", void 0);
__decorate([
ag_grid_community_1.Autowired('userComponentFactory'),
__metadata("design:type", ag_grid_community_1.UserComponentFactory)
], StatusBar.prototype, "userComponentFactory", void 0);
__decorate([
ag_grid_community_1.Autowired('statusBarService'),
__metadata("design:type", statusBarService_1.StatusBarService)
], StatusBar.prototype, "statusBarService", void 0);
__decorate([
ag_grid_community_1.RefSelector('eStatusBarLeft'),
__metadata("design:type", HTMLElement)
], ClipboardService.prototype, "rowRenderer", void 0);
__decorate([
ag_grid_community_1.Autowired('columnController'),
__metadata("design:type", ag_grid_community_1.ColumnController)
], ClipboardService.prototype, "columnController", void 0);
__decorate([
ag_grid_community_1.Autowired('eventService'),
__metadata("design:type", ag_grid_community_1.EventService)
], ClipboardService.prototype, "eventService", void 0);
__decorate([
ag_grid_community_1.Autowired('cellNavigationService'),
__metadata("design:type", ag_grid_community_1.CellNavigationService)
], ClipboardService.prototype, "cellNavigationService", void 0);
__decorate([
ag_grid_community_1.Autowired('gridOptionsWrapper'),
__metadata("design:type", ag_grid_community_1.GridOptionsWrapper)
], ClipboardService.prototype, "gridOptionsWrapper", void 0);
__decorate([
ag_grid_community_1.Autowired('columnApi'),
__metadata("design:type", ag_grid_community_1.ColumnApi)
], ClipboardService.prototype, "columnApi", void 0);
__decorate([
ag_grid_community_1.Autowired('gridApi'),
__metadata("design:type", ag_grid_community_1.GridApi)
], ClipboardService.prototype, "gridApi", void 0);
__decorate([
ag_grid_community_1.Autowired('cellPositionUtils'),
__metadata("design:type", ag_grid_community_1.CellPositionUtils)
], ClipboardService.prototype, "cellPositionUtils", void 0);
__decorate([
ag_grid_community_1.Autowired('rowPositionUtils'),
__metadata("design:type", ag_grid_community_1.RowPositionUtils)
};
ChartDataPanel.prototype.destroy = function () {
_super.prototype.destroy.call(this);
this.destroyColumnComps();
};
ChartDataPanel.prototype.destroyColumnComps = function () {
ag_grid_community_1._.clearElement(this.getGui());
if (this.columnComps) {
ag_grid_community_1._.iterateObject(this.columnComps, function (key, renderedItem) { return renderedItem.destroy(); });
}
this.columnComps = {};
};
ChartDataPanel.TEMPLATE = "<div class="\"ag-chart-data-wrapper\""></div>";
__decorate([
ag_grid_community_1.Autowired('gridOptionsWrapper'),
__metadata("design:type", ag_grid_community_1.GridOptionsWrapper)
], ChartDataPanel.prototype, "gridOptionsWrapper", void 0);
__decorate([
ag_grid_community_1.PostConstruct,
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], ChartDataPanel.prototype, "init", null);
return ChartDataPanel;
}(ag_grid_community_1.Component));
exports.ChartDataPanel = ChartDataPanel;
};
ToolPanelWrapper.prototype.setToolPanelComponent = function (compInstance) {
this.toolPanelCompInstance = compInstance;
this.appendChild(compInstance);
};
ToolPanelWrapper.prototype.refresh = function () {
this.toolPanelCompInstance.refresh();
};
ToolPanelWrapper.TEMPLATE = "<div class="\"ag-tool-panel-wrapper\"/">";
__decorate([
ag_grid_community_1.Autowired("userComponentFactory"),
__metadata("design:type", ag_grid_community_1.UserComponentFactory)
], ToolPanelWrapper.prototype, "userComponentFactory", void 0);
__decorate([
ag_grid_community_1.Autowired("gridOptionsWrapper"),
__metadata("design:type", ag_grid_community_1.GridOptionsWrapper)
], ToolPanelWrapper.prototype, "gridOptionsWrapper", void 0);
__decorate([
ag_grid_community_1.PostConstruct,
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], ToolPanelWrapper.prototype, "setupResize", null);
return ToolPanelWrapper;
}(ag_grid_community_1.Component));
exports.ToolPanelWrapper = ToolPanelWrapper;</div>
ToolPanelFilterComp.TEMPLATE = "<div class="\"ag-filter-toolpanel-instance\"">\n <div class="\"ag-filter-toolpanel-header">\n <div></div>\n <span class="\"ag-header-cell-text\""></span>\n <span aria-hidden="\"true\"" class="\"ag-header-icon"></span>\n </div>\n <div class="\"ag-filter-toolpanel-body">\n </div>";
__decorate([
ag_grid_community_1.Autowired('gridApi'),
__metadata("design:type", ag_grid_community_1.GridApi)
], ToolPanelFilterComp.prototype, "gridApi", void 0);
__decorate([
ag_grid_community_1.Autowired('filterManager'),
__metadata("design:type", ag_grid_community_1.FilterManager)
], ToolPanelFilterComp.prototype, "filterManager", void 0);
__decorate([
ag_grid_community_1.Autowired('eventService'),
__metadata("design:type", ag_grid_community_1.EventService)
], ToolPanelFilterComp.prototype, "eventService", void 0);
__decorate([
ag_grid_community_1.Autowired('gridOptionsWrapper'),
__metadata("design:type", ag_grid_community_1.GridOptionsWrapper)
], ToolPanelFilterComp.prototype, "gridOptionsWrapper", void 0);
__decorate([
ag_grid_community_1.Autowired('columnController'),
__metadata("design:type", ag_grid_community_1.ColumnController)
], ToolPanelFilterComp.prototype, "columnController", void 0);
__decorate([
ag_grid_community_1.RefSelector('eFilterToolPanelHeader'),
__metadata("design:type", HTMLElement)
], ToolPanelFilterComp.prototype, "eFilterToolPanelHeader", void 0);
__decorate([
ag_grid_community_1.RefSelector('eFilterName'),
__metadata("design:type", HTMLElement)
], ToolPanelFilterComp.prototype, "eFilterName", void 0);
__decorate([
ag_grid_community_1.RefSelector('agFilterToolPanelBody'),
__metadata("design:type", HTMLElement)</div>
}
};
AggFuncService.prototype.clear = function () {
this.aggFuncsMap = {};
};
var AggFuncService_1;
AggFuncService.AGG_SUM = 'sum';
AggFuncService.AGG_FIRST = 'first';
AggFuncService.AGG_LAST = 'last';
AggFuncService.AGG_MIN = 'min';
AggFuncService.AGG_MAX = 'max';
AggFuncService.AGG_COUNT = 'count';
AggFuncService.AGG_AVG = 'avg';
__decorate([
ag_grid_community_1.Autowired('gridOptionsWrapper'),
__metadata("design:type", ag_grid_community_1.GridOptionsWrapper)
], AggFuncService.prototype, "gridOptionsWrapper", void 0);
__decorate([
ag_grid_community_1.PostConstruct,
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], AggFuncService.prototype, "init", null);
AggFuncService = AggFuncService_1 = __decorate([
ag_grid_community_1.Bean('aggFuncService')
], AggFuncService);
return AggFuncService;
}());
exports.AggFuncService = AggFuncService;