Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ag-grid-community/csv-export

Package Overview
Dependencies
Maintainers
3
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ag-grid-community/csv-export - npm Package Compare versions

Comparing version 25.3.0 to 26.0.0

2

dist/cjs/csvExport/csvCreator.d.ts

@@ -5,3 +5,3 @@ import { CsvCustomContent, CsvExportParams, GridOptionsWrapper, ICsvCreator } from "@ag-grid-community/core";

export declare class CsvCreator extends BaseCreator<CsvCustomContent, CsvSerializingSession, CsvExportParams> implements ICsvCreator {
private columnController;
private columnModel;
private valueService;

@@ -8,0 +8,0 @@ private gridSerializer;

@@ -69,6 +69,6 @@ "use strict";

CsvCreator.prototype.createSerializingSession = function (params) {
var _a = this, columnController = _a.columnController, valueService = _a.valueService, gridOptionsWrapper = _a.gridOptionsWrapper;
var _a = this, columnModel = _a.columnModel, valueService = _a.valueService, gridOptionsWrapper = _a.gridOptionsWrapper;
var _b = params, processCellCallback = _b.processCellCallback, processHeaderCallback = _b.processHeaderCallback, processGroupHeaderCallback = _b.processGroupHeaderCallback, processRowGroupCallback = _b.processRowGroupCallback, suppressQuotes = _b.suppressQuotes, columnSeparator = _b.columnSeparator;
return new csvSerializingSession_1.CsvSerializingSession({
columnController: columnController,
columnModel: columnModel,
valueService: valueService,

@@ -88,4 +88,4 @@ gridOptionsWrapper: gridOptionsWrapper,

__decorate([
core_1.Autowired('columnController')
], CsvCreator.prototype, "columnController", void 0);
core_1.Autowired('columnModel')
], CsvCreator.prototype, "columnModel", void 0);
__decorate([

@@ -92,0 +92,0 @@ core_1.Autowired('valueService')

@@ -10,6 +10,6 @@ import { BeanStub, ExportParams } from "@ag-grid-community/core";

private displayedGroupCreator;
private columnController;
private columnModel;
private rowModel;
private pinnedRowModel;
private selectionController;
private selectionService;
serialize<T>(gridSerializingSession: GridSerializingSession<T>, params?: ExportParams<T>): string;

@@ -16,0 +16,0 @@ private processRow;

@@ -51,3 +51,3 @@ "use strict";

var skipLowestSingleChildrenGroup = gridOptionsWrapper.isGroupRemoveLowestSingleChildren();
var isLeafNode = this.columnController.isPivotMode() ? node.leafGroup : !node.group;
var isLeafNode = this.columnModel.isPivotMode() ? node.leafGroup : !node.group;
var skipRowGroups = params.skipGroups || params.skipRowGroups;

@@ -121,3 +121,3 @@ var shouldSkipLowestGroup = skipLowestSingleChildrenGroup && node.leafGroup;

var groupInstanceIdCreator = new core_1.GroupInstanceIdCreator();
var displayedGroups = _this.displayedGroupCreator.createDisplayedGroups(columnsToExport, _this.columnController.getGridBalancedTree(), groupInstanceIdCreator, null);
var displayedGroups = _this.displayedGroupCreator.createDisplayedGroups(columnsToExport, _this.columnModel.getGridBalancedTree(), groupInstanceIdCreator, null);
_this.recursivelyAddHeaderGroups(displayedGroups, gridSerializingSession, params.processGroupHeaderCallback);

@@ -163,3 +163,3 @@ }

var processRow = _this.processRow.bind(_this, gridSerializingSession, params, columnsToExport);
if (_this.columnController.isPivotMode()) {
if (_this.columnModel.isPivotMode()) {
if (usingCsrm) {

@@ -180,3 +180,3 @@ rowModel.forEachPivotNode(processRow);

if (params.onlySelectedAllPages || onlySelectedNonStandardModel) {
var selectedNodes = _this.selectionController.getSelectedNodes();
var selectedNodes = _this.selectionService.getSelectedNodes();
selectedNodes.forEach(processRow);

@@ -212,5 +212,5 @@ }

if (allColumns === void 0) { allColumns = false; }
var isPivotMode = this.columnController.isPivotMode();
var isPivotMode = this.columnModel.isPivotMode();
if (columnKeys && columnKeys.length) {
return this.columnController.getGridColumns(columnKeys);
return this.columnModel.getGridColumns(columnKeys);
}

@@ -220,7 +220,7 @@ if (allColumns && !isPivotMode) {

var columns = this.gridOptionsWrapper.isTreeData()
? this.columnController.getGridColumns([core_1.Constants.GROUP_AUTO_COLUMN_ID])
? this.columnModel.getGridColumns([core_1.Constants.GROUP_AUTO_COLUMN_ID])
: [];
return columns.concat(this.columnController.getAllPrimaryColumns() || []);
return columns.concat(this.columnModel.getAllPrimaryColumns() || []);
}
return this.columnController.getAllDisplayedColumns();
return this.columnModel.getAllDisplayedColumns();
};

@@ -259,3 +259,3 @@ GridSerializer.prototype.recursivelyAddHeaderGroups = function (displayedGroups, gridSerializingSession, processGroupHeaderCallback) {

else {
name = _this.columnController.getDisplayNameForColumnGroup(columnGroup, 'header');
name = _this.columnModel.getDisplayNameForColumnGroup(columnGroup, 'header');
}

@@ -269,4 +269,4 @@ gridRowIterator.onColumn(name || '', columnIndex++, columnGroup.getLeafColumns().length - 1);

__decorate([
core_1.Autowired('columnController')
], GridSerializer.prototype, "columnController", void 0);
core_1.Autowired('columnModel')
], GridSerializer.prototype, "columnModel", void 0);
__decorate([

@@ -279,4 +279,4 @@ core_1.Autowired('rowModel')

__decorate([
core_1.Autowired('selectionController')
], GridSerializer.prototype, "selectionController", void 0);
core_1.Autowired('selectionService')
], GridSerializer.prototype, "selectionService", void 0);
GridSerializer = __decorate([

@@ -283,0 +283,0 @@ core_1.Bean("gridSerializer")

@@ -1,2 +0,2 @@

import { Column, ColumnController, GridOptionsWrapper, ProcessCellForExportParams, ProcessGroupHeaderForExportParams, ProcessHeaderForExportParams, ProcessRowGroupForExportParams, RowNode, ValueService } from "@ag-grid-community/core";
import { Column, ColumnModel, GridOptionsWrapper, ProcessCellForExportParams, ProcessGroupHeaderForExportParams, ProcessHeaderForExportParams, ProcessRowGroupForExportParams, RowNode, ValueService } from "@ag-grid-community/core";
import { GridSerializer } from "../gridSerializer";

@@ -14,3 +14,3 @@ export interface BaseCreatorBeans {

export interface GridSerializingParams {
columnController: ColumnController;
columnModel: ColumnModel;
valueService: ValueService;

@@ -17,0 +17,0 @@ gridOptionsWrapper: GridOptionsWrapper;

@@ -1,5 +0,5 @@

import { Column, ColumnController, GridOptionsWrapper, ProcessCellForExportParams, ProcessGroupHeaderForExportParams, ProcessHeaderForExportParams, ProcessRowGroupForExportParams, RowNode, ValueService } from "@ag-grid-community/core";
import { Column, ColumnModel, GridOptionsWrapper, ProcessCellForExportParams, ProcessGroupHeaderForExportParams, ProcessHeaderForExportParams, ProcessRowGroupForExportParams, RowNode, ValueService } from "@ag-grid-community/core";
import { GridSerializingParams, GridSerializingSession, RowAccumulator, RowSpanningAccumulator } from "../interfaces";
export declare abstract class BaseGridSerializingSession<T> implements GridSerializingSession<T> {
columnController: ColumnController;
columnModel: ColumnModel;
valueService: ValueService;

@@ -6,0 +6,0 @@ gridOptionsWrapper: GridOptionsWrapper;

@@ -7,4 +7,4 @@ "use strict";

this.groupColumns = [];
var columnController = config.columnController, valueService = config.valueService, gridOptionsWrapper = config.gridOptionsWrapper, processCellCallback = config.processCellCallback, processHeaderCallback = config.processHeaderCallback, processGroupHeaderCallback = config.processGroupHeaderCallback, processRowGroupCallback = config.processRowGroupCallback;
this.columnController = columnController;
var columnModel = config.columnModel, valueService = config.valueService, gridOptionsWrapper = config.gridOptionsWrapper, processCellCallback = config.processCellCallback, processHeaderCallback = config.processHeaderCallback, processGroupHeaderCallback = config.processGroupHeaderCallback, processRowGroupCallback = config.processRowGroupCallback;
this.columnModel = columnModel;
this.valueService = valueService;

@@ -34,3 +34,3 @@ this.gridOptionsWrapper = gridOptionsWrapper;

// or the first cell in the row, if we're doing full width rows
|| (index === 0 && this.gridOptionsWrapper.isGroupUseEntireRow(this.columnController.isPivotMode())));
|| (index === 0 && this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotMode())));
var valueForCell;

@@ -55,3 +55,3 @@ if (renderGroupSummaryCell) {

}
return this.columnController.getDisplayNameForColumn(column, 'csv', true);
return this.columnModel.getDisplayNameForColumn(column, 'csv', true);
};

@@ -58,0 +58,0 @@ BaseGridSerializingSession.prototype.createValueForGroupNode = function (node) {

@@ -5,3 +5,3 @@ import { CsvCustomContent, CsvExportParams, GridOptionsWrapper, ICsvCreator } from "@ag-grid-community/core";

export declare class CsvCreator extends BaseCreator<CsvCustomContent, CsvSerializingSession, CsvExportParams> implements ICsvCreator {
private columnController;
private columnModel;
private valueService;

@@ -8,0 +8,0 @@ private gridSerializer;

@@ -67,6 +67,6 @@ var __extends = (this && this.__extends) || (function () {

CsvCreator.prototype.createSerializingSession = function (params) {
var _a = this, columnController = _a.columnController, valueService = _a.valueService, gridOptionsWrapper = _a.gridOptionsWrapper;
var _a = this, columnModel = _a.columnModel, valueService = _a.valueService, gridOptionsWrapper = _a.gridOptionsWrapper;
var _b = params, processCellCallback = _b.processCellCallback, processHeaderCallback = _b.processHeaderCallback, processGroupHeaderCallback = _b.processGroupHeaderCallback, processRowGroupCallback = _b.processRowGroupCallback, suppressQuotes = _b.suppressQuotes, columnSeparator = _b.columnSeparator;
return new CsvSerializingSession({
columnController: columnController,
columnModel: columnModel,
valueService: valueService,

@@ -86,4 +86,4 @@ gridOptionsWrapper: gridOptionsWrapper,

__decorate([
Autowired('columnController')
], CsvCreator.prototype, "columnController", void 0);
Autowired('columnModel')
], CsvCreator.prototype, "columnModel", void 0);
__decorate([

@@ -90,0 +90,0 @@ Autowired('valueService')

@@ -10,6 +10,6 @@ import { BeanStub, ExportParams } from "@ag-grid-community/core";

private displayedGroupCreator;
private columnController;
private columnModel;
private rowModel;
private pinnedRowModel;
private selectionController;
private selectionService;
serialize<T>(gridSerializingSession: GridSerializingSession<T>, params?: ExportParams<T>): string;

@@ -16,0 +16,0 @@ private processRow;

@@ -49,3 +49,3 @@ var __extends = (this && this.__extends) || (function () {

var skipLowestSingleChildrenGroup = gridOptionsWrapper.isGroupRemoveLowestSingleChildren();
var isLeafNode = this.columnController.isPivotMode() ? node.leafGroup : !node.group;
var isLeafNode = this.columnModel.isPivotMode() ? node.leafGroup : !node.group;
var skipRowGroups = params.skipGroups || params.skipRowGroups;

@@ -119,3 +119,3 @@ var shouldSkipLowestGroup = skipLowestSingleChildrenGroup && node.leafGroup;

var groupInstanceIdCreator = new GroupInstanceIdCreator();
var displayedGroups = _this.displayedGroupCreator.createDisplayedGroups(columnsToExport, _this.columnController.getGridBalancedTree(), groupInstanceIdCreator, null);
var displayedGroups = _this.displayedGroupCreator.createDisplayedGroups(columnsToExport, _this.columnModel.getGridBalancedTree(), groupInstanceIdCreator, null);
_this.recursivelyAddHeaderGroups(displayedGroups, gridSerializingSession, params.processGroupHeaderCallback);

@@ -161,3 +161,3 @@ }

var processRow = _this.processRow.bind(_this, gridSerializingSession, params, columnsToExport);
if (_this.columnController.isPivotMode()) {
if (_this.columnModel.isPivotMode()) {
if (usingCsrm) {

@@ -178,3 +178,3 @@ rowModel.forEachPivotNode(processRow);

if (params.onlySelectedAllPages || onlySelectedNonStandardModel) {
var selectedNodes = _this.selectionController.getSelectedNodes();
var selectedNodes = _this.selectionService.getSelectedNodes();
selectedNodes.forEach(processRow);

@@ -210,5 +210,5 @@ }

if (allColumns === void 0) { allColumns = false; }
var isPivotMode = this.columnController.isPivotMode();
var isPivotMode = this.columnModel.isPivotMode();
if (columnKeys && columnKeys.length) {
return this.columnController.getGridColumns(columnKeys);
return this.columnModel.getGridColumns(columnKeys);
}

@@ -218,7 +218,7 @@ if (allColumns && !isPivotMode) {

var columns = this.gridOptionsWrapper.isTreeData()
? this.columnController.getGridColumns([Constants.GROUP_AUTO_COLUMN_ID])
? this.columnModel.getGridColumns([Constants.GROUP_AUTO_COLUMN_ID])
: [];
return columns.concat(this.columnController.getAllPrimaryColumns() || []);
return columns.concat(this.columnModel.getAllPrimaryColumns() || []);
}
return this.columnController.getAllDisplayedColumns();
return this.columnModel.getAllDisplayedColumns();
};

@@ -257,3 +257,3 @@ GridSerializer.prototype.recursivelyAddHeaderGroups = function (displayedGroups, gridSerializingSession, processGroupHeaderCallback) {

else {
name = _this.columnController.getDisplayNameForColumnGroup(columnGroup, 'header');
name = _this.columnModel.getDisplayNameForColumnGroup(columnGroup, 'header');
}

@@ -267,4 +267,4 @@ gridRowIterator.onColumn(name || '', columnIndex++, columnGroup.getLeafColumns().length - 1);

__decorate([
Autowired('columnController')
], GridSerializer.prototype, "columnController", void 0);
Autowired('columnModel')
], GridSerializer.prototype, "columnModel", void 0);
__decorate([

@@ -277,4 +277,4 @@ Autowired('rowModel')

__decorate([
Autowired('selectionController')
], GridSerializer.prototype, "selectionController", void 0);
Autowired('selectionService')
], GridSerializer.prototype, "selectionService", void 0);
GridSerializer = __decorate([

@@ -281,0 +281,0 @@ Bean("gridSerializer")

@@ -1,2 +0,2 @@

import { Column, ColumnController, GridOptionsWrapper, ProcessCellForExportParams, ProcessGroupHeaderForExportParams, ProcessHeaderForExportParams, ProcessRowGroupForExportParams, RowNode, ValueService } from "@ag-grid-community/core";
import { Column, ColumnModel, GridOptionsWrapper, ProcessCellForExportParams, ProcessGroupHeaderForExportParams, ProcessHeaderForExportParams, ProcessRowGroupForExportParams, RowNode, ValueService } from "@ag-grid-community/core";
import { GridSerializer } from "../gridSerializer";

@@ -14,3 +14,3 @@ export interface BaseCreatorBeans {

export interface GridSerializingParams {
columnController: ColumnController;
columnModel: ColumnModel;
valueService: ValueService;

@@ -17,0 +17,0 @@ gridOptionsWrapper: GridOptionsWrapper;

@@ -1,5 +0,5 @@

import { Column, ColumnController, GridOptionsWrapper, ProcessCellForExportParams, ProcessGroupHeaderForExportParams, ProcessHeaderForExportParams, ProcessRowGroupForExportParams, RowNode, ValueService } from "@ag-grid-community/core";
import { Column, ColumnModel, GridOptionsWrapper, ProcessCellForExportParams, ProcessGroupHeaderForExportParams, ProcessHeaderForExportParams, ProcessRowGroupForExportParams, RowNode, ValueService } from "@ag-grid-community/core";
import { GridSerializingParams, GridSerializingSession, RowAccumulator, RowSpanningAccumulator } from "../interfaces";
export declare abstract class BaseGridSerializingSession<T> implements GridSerializingSession<T> {
columnController: ColumnController;
columnModel: ColumnModel;
valueService: ValueService;

@@ -6,0 +6,0 @@ gridOptionsWrapper: GridOptionsWrapper;

@@ -5,4 +5,4 @@ import { _ } from "@ag-grid-community/core";

this.groupColumns = [];
var columnController = config.columnController, valueService = config.valueService, gridOptionsWrapper = config.gridOptionsWrapper, processCellCallback = config.processCellCallback, processHeaderCallback = config.processHeaderCallback, processGroupHeaderCallback = config.processGroupHeaderCallback, processRowGroupCallback = config.processRowGroupCallback;
this.columnController = columnController;
var columnModel = config.columnModel, valueService = config.valueService, gridOptionsWrapper = config.gridOptionsWrapper, processCellCallback = config.processCellCallback, processHeaderCallback = config.processHeaderCallback, processGroupHeaderCallback = config.processGroupHeaderCallback, processRowGroupCallback = config.processRowGroupCallback;
this.columnModel = columnModel;
this.valueService = valueService;

@@ -32,3 +32,3 @@ this.gridOptionsWrapper = gridOptionsWrapper;

// or the first cell in the row, if we're doing full width rows
|| (index === 0 && this.gridOptionsWrapper.isGroupUseEntireRow(this.columnController.isPivotMode())));
|| (index === 0 && this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotMode())));
var valueForCell;

@@ -53,3 +53,3 @@ if (renderGroupSummaryCell) {

}
return this.columnController.getDisplayNameForColumn(column, 'csv', true);
return this.columnModel.getDisplayNameForColumn(column, 'csv', true);
};

@@ -56,0 +56,0 @@ BaseGridSerializingSession.prototype.createValueForGroupNode = function (node) {

{
"name": "@ag-grid-community/csv-export",
"version": "25.3.0",
"version": "26.0.0",
"description": "Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components",

@@ -9,6 +9,6 @@ "main": "./dist/cjs/main.js",

"scripts": {
"build-cjs": "tsc -p tsconfig.json",
"build-es6": "tsc -p tsconfig.es6.json",
"build-cjs": "npx tsc -p tsconfig.json",
"build-es6": "npx tsc -p tsconfig.es6.json",
"package": "node ../../module-build/rollup/build.js",
"build": "npm run build-cjs && npm run build-es6 && tsc -p tsconfig.typings.json && npm run hash",
"build": "npm run build-cjs && npm run build-es6 && npx tsc -p tsconfig.typings.json && npm run hash",
"hash": "sh ../../scripts/hashDirectory.sh > .hash"

@@ -46,3 +46,3 @@ },

"dependencies": {
"@ag-grid-community/core": "~25.3.0"
"@ag-grid-community/core": "~26.0.0"
},

@@ -49,0 +49,0 @@ "devDependencies": {

@@ -5,3 +5,3 @@ import { CsvCustomContent, CsvExportParams, GridOptionsWrapper, ICsvCreator } from "@ag-grid-community/core";

export declare class CsvCreator extends BaseCreator<CsvCustomContent, CsvSerializingSession, CsvExportParams> implements ICsvCreator {
private columnController;
private columnModel;
private valueService;

@@ -8,0 +8,0 @@ private gridSerializer;

@@ -10,6 +10,6 @@ import { BeanStub, ExportParams } from "@ag-grid-community/core";

private displayedGroupCreator;
private columnController;
private columnModel;
private rowModel;
private pinnedRowModel;
private selectionController;
private selectionService;
serialize<T>(gridSerializingSession: GridSerializingSession<T>, params?: ExportParams<T>): string;

@@ -16,0 +16,0 @@ private processRow;

@@ -1,2 +0,2 @@

import { Column, ColumnController, GridOptionsWrapper, ProcessCellForExportParams, ProcessGroupHeaderForExportParams, ProcessHeaderForExportParams, ProcessRowGroupForExportParams, RowNode, ValueService } from "@ag-grid-community/core";
import { Column, ColumnModel, GridOptionsWrapper, ProcessCellForExportParams, ProcessGroupHeaderForExportParams, ProcessHeaderForExportParams, ProcessRowGroupForExportParams, RowNode, ValueService } from "@ag-grid-community/core";
import { GridSerializer } from "../gridSerializer";

@@ -14,3 +14,3 @@ export interface BaseCreatorBeans {

export interface GridSerializingParams {
columnController: ColumnController;
columnModel: ColumnModel;
valueService: ValueService;

@@ -17,0 +17,0 @@ gridOptionsWrapper: GridOptionsWrapper;

@@ -1,5 +0,5 @@

import { Column, ColumnController, GridOptionsWrapper, ProcessCellForExportParams, ProcessGroupHeaderForExportParams, ProcessHeaderForExportParams, ProcessRowGroupForExportParams, RowNode, ValueService } from "@ag-grid-community/core";
import { Column, ColumnModel, GridOptionsWrapper, ProcessCellForExportParams, ProcessGroupHeaderForExportParams, ProcessHeaderForExportParams, ProcessRowGroupForExportParams, RowNode, ValueService } from "@ag-grid-community/core";
import { GridSerializingParams, GridSerializingSession, RowAccumulator, RowSpanningAccumulator } from "../interfaces";
export declare abstract class BaseGridSerializingSession<T> implements GridSerializingSession<T> {
columnController: ColumnController;
columnModel: ColumnModel;
valueService: ValueService;

@@ -6,0 +6,0 @@ gridOptionsWrapper: GridOptionsWrapper;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc