Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.getContext().wireBean(menuList);
var menuItemsMapped = this.menuItemMapper.mapWithStockItems(this.menuItems, null);
menuList.addMenuItems(menuItemsMapped);
this.appendChild(menuList);
menuList.addEventListener(menuItemComponent_1.MenuItemComponent.EVENT_ITEM_SELECTED, this.destroy.bind(this));
};
ContextMenu.prototype.afterGuiAttached = function (params) {
if (params.hidePopup) {
this.addDestroyFunc(params.hidePopup);
}
// if the body scrolls, we want to hide the menu, as the menu will not appear in the right location anymore
this.addDestroyableEventListener(this.eventService, 'bodyScroll', this.destroy.bind(this));
};
__decorate([
ag_grid_community_1.Autowired('eventService'),
__metadata("design:type", ag_grid_community_1.EventService)
], ContextMenu.prototype, "eventService", void 0);
__decorate([
ag_grid_community_1.Autowired('menuItemMapper'),
__metadata("design:type", menuItemMapper_1.MenuItemMapper)
], ContextMenu.prototype, "menuItemMapper", void 0);
__decorate([
ag_grid_community_1.PostConstruct,
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], ContextMenu.prototype, "addMenuItems", null);
return ContextMenu;
}(ag_grid_community_1.Component));
for (var i = firstIndex; i <= lastIndex; i++) {
columns.push(allColumns[i]);
}
return columns;
};
__decorate([
ag_grid_community_1.Autowired('loggerFactory'),
__metadata("design:type", ag_grid_community_1.LoggerFactory)
], RangeController.prototype, "loggerFactory", void 0);
__decorate([
ag_grid_community_1.Autowired('rowModel'),
__metadata("design:type", Object)
], RangeController.prototype, "rowModel", void 0);
__decorate([
ag_grid_community_1.Autowired('eventService'),
__metadata("design:type", ag_grid_community_1.EventService)
], RangeController.prototype, "eventService", void 0);
__decorate([
ag_grid_community_1.Autowired('columnController'),
__metadata("design:type", ag_grid_community_1.ColumnController)
], RangeController.prototype, "columnController", void 0);
__decorate([
ag_grid_community_1.Autowired('mouseEventService'),
__metadata("design:type", ag_grid_community_1.MouseEventService)
], RangeController.prototype, "mouseEventService", void 0);
__decorate([
ag_grid_community_1.Autowired('gridOptionsWrapper'),
__metadata("design:type", ag_grid_community_1.GridOptionsWrapper)
], RangeController.prototype, "gridOptionsWrapper", void 0);
__decorate([
ag_grid_community_1.Autowired('columnApi'),
__metadata("design:type", ag_grid_community_1.ColumnApi)
], ClipboardService.prototype, "valueService", void 0);
__decorate([
ag_grid_community_1.Autowired('focusedCellController'),
__metadata("design:type", ag_grid_community_1.FocusedCellController)
], ClipboardService.prototype, "focusedCellController", void 0);
__decorate([
ag_grid_community_1.Autowired('rowRenderer'),
__metadata("design:type", ag_grid_community_1.RowRenderer)
], 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)
], EnterpriseMenu.prototype, "columnController", void 0);
__decorate([
ag_grid_community_1.Autowired('filterManager'),
__metadata("design:type", ag_grid_community_1.FilterManager)
], EnterpriseMenu.prototype, "filterManager", void 0);
__decorate([
ag_grid_community_1.Autowired('gridApi'),
__metadata("design:type", ag_grid_community_1.GridApi)
], EnterpriseMenu.prototype, "gridApi", void 0);
__decorate([
ag_grid_community_1.Autowired('gridOptionsWrapper'),
__metadata("design:type", ag_grid_community_1.GridOptionsWrapper)
], EnterpriseMenu.prototype, "gridOptionsWrapper", void 0);
__decorate([
ag_grid_community_1.Autowired('eventService'),
__metadata("design:type", ag_grid_community_1.EventService)
], EnterpriseMenu.prototype, "eventService", void 0);
__decorate([
ag_grid_community_1.Autowired('menuItemMapper'),
__metadata("design:type", menuItemMapper_1.MenuItemMapper)
], EnterpriseMenu.prototype, "menuItemMapper", void 0);
__decorate([
ag_grid_community_1.Autowired('rowModel'),
__metadata("design:type", Object)
], EnterpriseMenu.prototype, "rowModel", void 0);
__decorate([
ag_grid_community_1.PostConstruct,
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], EnterpriseMenu.prototype, "init", null);
return EnterpriseMenu;
this.forEachBlockInOrder(function (block) {
if (block.isGroupLevel()) {
var callback = function (rowNode) {
var nextCache = rowNode.childrenCache;
if (nextCache) {
nextCache.refreshCacheAfterSort(changedColumnsInSort, rowGroupColIds);
}
};
block.forEachNodeShallow(callback, new ag_grid_community_1.NumberSequence(), _this.getVirtualRowCount());
}
});
}
};
__decorate([
ag_grid_community_1.Autowired('eventService'),
__metadata("design:type", ag_grid_community_1.EventService)
], ServerSideCache.prototype, "eventService", void 0);
__decorate([
ag_grid_community_1.Autowired('gridOptionsWrapper'),
__metadata("design:type", ag_grid_community_1.GridOptionsWrapper)
], ServerSideCache.prototype, "gridOptionsWrapper", void 0);
__decorate([
__param(0, ag_grid_community_1.Qualifier('loggerFactory')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [ag_grid_community_1.LoggerFactory]),
__metadata("design:returntype", void 0)
], ServerSideCache.prototype, "setBeans", null);
__decorate([
ag_grid_community_1.PostConstruct,
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], SetFilter.prototype, "eSelectAllContainer", void 0);
__decorate([
ag_grid_community_1.RefSelector('eMiniFilter'),
__metadata("design:type", HTMLInputElement)
], SetFilter.prototype, "eMiniFilter", void 0);
__decorate([
ag_grid_community_1.RefSelector('ag-filter-loading'),
__metadata("design:type", HTMLInputElement)
], SetFilter.prototype, "eFilterLoading", void 0);
__decorate([
ag_grid_community_1.Autowired('valueFormatterService'),
__metadata("design:type", ag_grid_community_1.ValueFormatterService)
], SetFilter.prototype, "valueFormatterService", void 0);
__decorate([
ag_grid_community_1.Autowired('eventService'),
__metadata("design:type", ag_grid_community_1.EventService)
], SetFilter.prototype, "eventService", void 0);
return SetFilter;
}(ag_grid_community_1.ProvidedFilter));
exports.SetFilter = SetFilter;
return;
}
this.doCollapse();
};
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)</div>
keepRenderedRows: false,
animate: false
};
this.eventService.dispatchEvent(event_1);
}
};
ViewportRowModel.prototype.isRowPresent = function (rowNode) {
return false;
};
__decorate([
ag_grid_community_1.Autowired('gridOptionsWrapper'),
__metadata("design:type", ag_grid_community_1.GridOptionsWrapper)
], ViewportRowModel.prototype, "gridOptionsWrapper", void 0);
__decorate([
ag_grid_community_1.Autowired('eventService'),
__metadata("design:type", ag_grid_community_1.EventService)
], ViewportRowModel.prototype, "eventService", void 0);
__decorate([
ag_grid_community_1.Autowired('selectionController'),
__metadata("design:type", ag_grid_community_1.SelectionController)
], ViewportRowModel.prototype, "selectionController", void 0);
__decorate([
ag_grid_community_1.Autowired('context'),
__metadata("design:type", ag_grid_community_1.Context)
], ViewportRowModel.prototype, "context", void 0);
__decorate([
ag_grid_community_1.Autowired('gridApi'),
__metadata("design:type", ag_grid_community_1.GridApi)
], ViewportRowModel.prototype, "gridApi", void 0);
__decorate([
ag_grid_community_1.Autowired('columnApi'),
__metadata("design:type", ag_grid_community_1.ColumnApi)
var totalRowCount = 0;
this.gridApi.forEachNode(function (node) {
if (!node.group) {
totalRowCount++;
}
});
return totalRowCount;
};
TotalAndFilteredRowsComp.prototype.init = function () { };
__decorate([
ag_grid_community_1.Autowired('gridApi'),
__metadata("design:type", ag_grid_community_1.GridApi)
], TotalAndFilteredRowsComp.prototype, "gridApi", void 0);
__decorate([
ag_grid_community_1.Autowired('eventService'),
__metadata("design:type", ag_grid_community_1.EventService)
], TotalAndFilteredRowsComp.prototype, "eventService", void 0);
__decorate([
ag_grid_community_1.PostConstruct,
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], TotalAndFilteredRowsComp.prototype, "postConstruct", null);
return TotalAndFilteredRowsComp;
}(nameValueComp_1.NameValueComp));
exports.TotalAndFilteredRowsComp = TotalAndFilteredRowsComp;
HorizontalResizeComp.prototype.onResizing = function (delta) {
var direction = this.gridOptionsWrapper.isEnableRtl() ? -1 : 1;
var newWidth = Math.max(100, Math.floor(this.startingWidth - (delta * direction)));
this.elementToResize.style.width = newWidth + "px";
};
__decorate([
ag_grid_community_1.Autowired('horizontalResizeService'),
__metadata("design:type", ag_grid_community_1.HorizontalResizeService)
], HorizontalResizeComp.prototype, "horizontalResizeService", void 0);
__decorate([
ag_grid_community_1.Autowired('gridOptionsWrapper'),
__metadata("design:type", ag_grid_community_1.GridOptionsWrapper)
], HorizontalResizeComp.prototype, "gridOptionsWrapper", void 0);
__decorate([
ag_grid_community_1.Autowired('eventService'),
__metadata("design:type", ag_grid_community_1.EventService)
], HorizontalResizeComp.prototype, "eventService", void 0);
__decorate([
ag_grid_community_1.PostConstruct,
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], HorizontalResizeComp.prototype, "postConstruct", null);
return HorizontalResizeComp;
}(ag_grid_community_1.Component));
exports.HorizontalResizeComp = HorizontalResizeComp;