Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ChartDatasource.prototype.getGroupLabels = function (rowNode, result) {
// add parent group keys by walking up the tree
if (rowNode.level === 0) {
return result;
}
var parentNode = rowNode.parent;
result.push(parentNode.key);
return this.getGroupLabels(parentNode, result);
};
__decorate([
ag_grid_community_1.Autowired('rowModel'),
__metadata("design:type", Object)
], ChartDatasource.prototype, "gridRowModel", void 0);
__decorate([
ag_grid_community_1.Autowired('valueService'),
__metadata("design:type", ag_grid_community_1.ValueService)
], ChartDatasource.prototype, "valueService", void 0);
__decorate([
ag_grid_community_1.Autowired('aggregationStage'),
__metadata("design:type", aggregationStage_1.AggregationStage)
], ChartDatasource.prototype, "aggregationStage", void 0);
__decorate([
ag_grid_community_1.Autowired('columnController'),
__metadata("design:type", ag_grid_community_1.ColumnController)
], ChartDatasource.prototype, "columnController", void 0);
return ChartDatasource;
}(ag_grid_community_1.BeanStub));
exports.ChartDatasource = ChartDatasource;
console.error("ag-Grid: unrecognised aggregation function " + aggFuncOrString);
return null;
}
return aggFunction(values);
};
__decorate([
ag_grid_community_1.Autowired('gridOptionsWrapper'),
__metadata("design:type", ag_grid_community_1.GridOptionsWrapper)
], AggregationStage.prototype, "gridOptionsWrapper", void 0);
__decorate([
ag_grid_community_1.Autowired('columnController'),
__metadata("design:type", ag_grid_community_1.ColumnController)
], AggregationStage.prototype, "columnController", void 0);
__decorate([
ag_grid_community_1.Autowired('valueService'),
__metadata("design:type", ag_grid_community_1.ValueService)
], AggregationStage.prototype, "valueService", void 0);
__decorate([
ag_grid_community_1.Autowired('pivotStage'),
__metadata("design:type", pivotStage_1.PivotStage)
], AggregationStage.prototype, "pivotStage", void 0);
__decorate([
ag_grid_community_1.Autowired('aggFuncService'),
__metadata("design:type", aggFuncService_1.AggFuncService)
], AggregationStage.prototype, "aggFuncService", void 0);
AggregationStage = __decorate([
ag_grid_community_1.Bean('aggregationStage')
], AggregationStage);
return AggregationStage;
}());
exports.AggregationStage = AggregationStage;
], GroupStage.prototype, "selectionController", void 0);
__decorate([
ag_grid_community_1.Autowired('gridOptionsWrapper'),
__metadata("design:type", ag_grid_community_1.GridOptionsWrapper)
], GroupStage.prototype, "gridOptionsWrapper", void 0);
__decorate([
ag_grid_community_1.Autowired('columnController'),
__metadata("design:type", ag_grid_community_1.ColumnController)
], GroupStage.prototype, "columnController", void 0);
__decorate([
ag_grid_community_1.Autowired('selectableService'),
__metadata("design:type", ag_grid_community_1.SelectableService)
], GroupStage.prototype, "selectableService", void 0);
__decorate([
ag_grid_community_1.Autowired('valueService'),
__metadata("design:type", ag_grid_community_1.ValueService)
], GroupStage.prototype, "valueService", void 0);
__decorate([
ag_grid_community_1.Autowired('eventService'),
__metadata("design:type", ag_grid_community_1.EventService)
], GroupStage.prototype, "eventService", void 0);
__decorate([
ag_grid_community_1.Autowired('context'),
__metadata("design:type", ag_grid_community_1.Context)
], GroupStage.prototype, "context", void 0);
__decorate([
ag_grid_community_1.PostConstruct,
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], GroupStage.prototype, "postConstruct", null);
GroupStage = __decorate([
};
__decorate([
ag_grid_community_1.Autowired('excelXmlFactory'),
__metadata("design:type", excelXmlFactory_1.ExcelXmlFactory)
], ExcelCreator.prototype, "excelXmlFactory", void 0);
__decorate([
ag_grid_community_1.Autowired('excelXlsxFactory'),
__metadata("design:type", excelXlsxFactory_1.ExcelXlsxFactory)
], ExcelCreator.prototype, "xlsxFactory", void 0);
__decorate([
ag_grid_community_1.Autowired('columnController'),
__metadata("design:type", ag_grid_community_1.ColumnController)
], ExcelCreator.prototype, "columnController", void 0);
__decorate([
ag_grid_community_1.Autowired('valueService'),
__metadata("design:type", ag_grid_community_1.ValueService)
], ExcelCreator.prototype, "valueService", void 0);
__decorate([
ag_grid_community_1.Autowired('gridOptions'),
__metadata("design:type", Object)
], ExcelCreator.prototype, "gridOptions", void 0);
__decorate([
ag_grid_community_1.Autowired('stylingService'),
__metadata("design:type", ag_grid_community_1.StylingService)
], ExcelCreator.prototype, "stylingService", void 0);
__decorate([
ag_grid_community_1.Autowired('downloader'),
__metadata("design:type", ag_grid_community_1.Downloader)
], ExcelCreator.prototype, "downloader", void 0);
__decorate([
ag_grid_community_1.Autowired('gridSerializer'),
__metadata("design:type", ag_grid_community_1.GridSerializer)
};
ServerSideBlock.prototype.getGroupField = function () {
return this.groupField;
};
ServerSideBlock.DefaultBlockSize = 100;
__decorate([
ag_grid_community_1.Autowired('rowRenderer'),
__metadata("design:type", ag_grid_community_1.RowRenderer)
], ServerSideBlock.prototype, "rowRenderer", void 0);
__decorate([
ag_grid_community_1.Autowired('columnController'),
__metadata("design:type", ag_grid_community_1.ColumnController)
], ServerSideBlock.prototype, "columnController", void 0);
__decorate([
ag_grid_community_1.Autowired('valueService'),
__metadata("design:type", ag_grid_community_1.ValueService)
], ServerSideBlock.prototype, "valueService", void 0);
__decorate([
ag_grid_community_1.Autowired('gridOptionsWrapper'),
__metadata("design:type", ag_grid_community_1.GridOptionsWrapper)
], ServerSideBlock.prototype, "gridOptionsWrapper", void 0);
__decorate([
ag_grid_community_1.PostConstruct,
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", void 0)
], ServerSideBlock.prototype, "init", null);
__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)
ag_grid_community_1._.iterateObject(mappedChildren, function (key, value) {
result_1[key] = _this.bucketChildren(value, pivotColumns, pivotIndex + 1, uniqueValues[key]);
});
return result_1;
}
};
PivotStage.prototype.getPivotColumnDefs = function () {
return this.pivotColumnDefs;
};
__decorate([
ag_grid_community_1.Autowired('rowModel'),
__metadata("design:type", Object)
], PivotStage.prototype, "rowModel", void 0);
__decorate([
ag_grid_community_1.Autowired('valueService'),
__metadata("design:type", ag_grid_community_1.ValueService)
], PivotStage.prototype, "valueService", void 0);
__decorate([
ag_grid_community_1.Autowired('columnController'),
__metadata("design:type", ag_grid_community_1.ColumnController)
], PivotStage.prototype, "columnController", void 0);
__decorate([
ag_grid_community_1.Autowired('eventService'),
__metadata("design:type", ag_grid_community_1.EventService)
], PivotStage.prototype, "eventService", void 0);
__decorate([
ag_grid_community_1.Autowired('pivotColDefService'),
__metadata("design:type", pivotColDefService_1.PivotColDefService)
], PivotStage.prototype, "pivotColDefService", void 0);
PivotStage = __decorate([
ag_grid_community_1.Bean('pivotStage')
], PivotStage);
ChartRangeDatasource.prototype.getValue = function (i, field) {
var rowNode = this.rowModel.getRow(this.startRow + i);
var col = this.colsMapped[field];
var res = this.valueService.getValue(col, rowNode);
return res;
};
ChartRangeDatasource.prototype.getRowCount = function () {
return this.rowCount;
};
__decorate([
ag_grid_community_1.Autowired('columnController'),
__metadata("design:type", ag_grid_community_1.ColumnController)
], ChartRangeDatasource.prototype, "columnController", void 0);
__decorate([
ag_grid_community_1.Autowired('valueService'),
__metadata("design:type", ag_grid_community_1.ValueService)
], ChartRangeDatasource.prototype, "valueService", void 0);
__decorate([
ag_grid_community_1.Autowired('rowModel'),
__metadata("design:type", Object)
], ChartRangeDatasource.prototype, "rowModel", void 0);
__decorate([
ag_grid_community_1.Autowired('paginationProxy'),
__metadata("design:type", ag_grid_community_1.PaginationProxy)
], ChartRangeDatasource.prototype, "paginationProxy", void 0);
__decorate([
ag_grid_community_1.Autowired('eventService'),
__metadata("design:type", ag_grid_community_1.EventService)
], ChartRangeDatasource.prototype, "eventService", void 0);
__decorate([
ag_grid_community_1.PostConstruct,
__metadata("design:type", Function),
ChartEverythingDatasource.prototype.getValue = function (i, field) {
var rowNode = this.rows[i];
var col = this.colsMapped[field];
var res = this.valueService.getValue(col, rowNode);
return res;
};
ChartEverythingDatasource.prototype.getRowCount = function () {
return this.rows.length;
};
__decorate([
ag_grid_community_1.Autowired('columnController'),
__metadata("design:type", ag_grid_community_1.ColumnController)
], ChartEverythingDatasource.prototype, "columnController", void 0);
__decorate([
ag_grid_community_1.Autowired('valueService'),
__metadata("design:type", ag_grid_community_1.ValueService)
], ChartEverythingDatasource.prototype, "valueService", void 0);
__decorate([
ag_grid_community_1.Autowired('rowModel'),
__metadata("design:type", ag_grid_community_1.ClientSideRowModel)
], ChartEverythingDatasource.prototype, "clientSideRowModel", void 0);
__decorate([
ag_grid_community_1.Autowired('paginationProxy'),
__metadata("design:type", ag_grid_community_1.PaginationProxy)
], ChartEverythingDatasource.prototype, "paginationProxy", void 0);
__decorate([
ag_grid_community_1.Autowired('eventService'),
__metadata("design:type", ag_grid_community_1.EventService)
], ChartEverythingDatasource.prototype, "eventService", void 0);
__decorate([
ag_grid_community_1.PostConstruct,
__metadata("design:type", Function),
this.setAggregationComponentValue('min', min, gotNumberResult);
this.setAggregationComponentValue('max', max, gotNumberResult);
this.setAggregationComponentValue('avg', (sum / numberCount), gotNumberResult);
};
AggregationComp.TEMPLATE = "<div class="\"ag-status-panel">\n \n \n \n \n \n </div>";
__decorate([
ag_grid_community_1.Autowired('eventService'),
__metadata("design:type", ag_grid_community_1.EventService)
], AggregationComp.prototype, "eventService", void 0);
__decorate([
ag_grid_community_1.Autowired('rangeController'),
__metadata("design:type", rangeController_1.RangeController)
], AggregationComp.prototype, "rangeController", void 0);
__decorate([
ag_grid_community_1.Autowired('valueService'),
__metadata("design:type", ag_grid_community_1.ValueService)
], AggregationComp.prototype, "valueService", void 0);
__decorate([
ag_grid_community_1.Autowired('cellNavigationService'),
__metadata("design:type", ag_grid_community_1.CellNavigationService)
], AggregationComp.prototype, "cellNavigationService", void 0);
__decorate([
ag_grid_community_1.Autowired('rowRenderer'),
__metadata("design:type", ag_grid_community_1.RowRenderer)
], AggregationComp.prototype, "rowRenderer", void 0);
__decorate([
ag_grid_community_1.Autowired('gridOptionsWrapper'),
__metadata("design:type", ag_grid_community_1.GridOptionsWrapper)
], AggregationComp.prototype, "gridOptionsWrapper", void 0);
__decorate([
ag_grid_community_1.Autowired('gridOptions'),
__metadata("design:type", Object)
} while (!isLastRow);
});
};
FillHandle.prototype.refresh = function (cellComp) {
var cellRange = this.rangeController.getCellRanges()[0];
var isColumnRange = !cellRange.startRow || !cellRange.endRow;
if (isColumnRange) {
this.destroy();
return;
}
_super.prototype.refresh.call(this, cellComp);
};
FillHandle.TEMPLATE = '<div class="ag-fill-handle"></div>';
__decorate([
ag_grid_community_1.Autowired('valueService'),
__metadata("design:type", ag_grid_community_1.ValueService)
], FillHandle.prototype, "valueService", void 0);
return FillHandle;
}(abstractSelectionHandle_1.AbstractSelectionHandle));
exports.FillHandle = FillHandle;