Socket
Socket
Sign inDemoInstall

@ag-grid-community/csv-export

Package Overview
Dependencies
1
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 31.0.2 to 31.0.3

2

dist/cjs/es5/version.d.ts

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

export declare const VERSION = "31.0.2";
export declare const VERSION = "31.0.3";

@@ -5,2 +5,2 @@ "use strict";

// DO NOT UPDATE MANUALLY: Generated from script during build time
exports.VERSION = '31.0.2';
exports.VERSION = '31.0.3';

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

export declare const VERSION = "31.0.2";
export declare const VERSION = "31.0.3";

@@ -5,2 +5,2 @@ "use strict";

// DO NOT UPDATE MANUALLY: Generated from script during build time
exports.VERSION = '31.0.2';
exports.VERSION = '31.0.3';
/**
* @ag-grid-community/csv-export - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v31.0.2
* @ag-grid-community/csv-export - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v31.0.3
* @link https://www.ag-grid.com/

@@ -792,3 +792,3 @@ * @license MIT

// DO NOT UPDATE MANUALLY: Generated from script during build time
var VERSION = '31.0.2';
var VERSION = '31.0.3';

@@ -795,0 +795,0 @@ var CsvExportModule = {

/**
* @ag-grid-community/csv-export - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v31.0.2
* @ag-grid-community/csv-export - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v31.0.3
* @link https://www.ag-grid.com/

@@ -7,6 +7,6 @@ * @license MIT

/**
* @ag-grid-community/csv-export - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v31.0.2
* @ag-grid-community/csv-export - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v31.0.3
* @link https://www.ag-grid.com/
* @license MIT
*/
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t,o=require("@ag-grid-community/core"),r=function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.getFileName=function(e){var t=this.getDefaultFileExtension();return null!=e&&e.length||(e=this.getDefaultFileName()),-1===e.indexOf(".")?"".concat(e,".").concat(t):e},e.prototype.getData=function(e){var t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)},e.prototype.getDefaultFileName=function(){return"export.".concat(this.getDefaultFileExtension())},e}(),n=function(){function e(e){this.groupColumns=[];var t=e.columnModel,o=e.valueService,r=e.gridOptionsService,n=e.valueFormatterService,i=e.valueParserService,u=e.processCellCallback,s=e.processHeaderCallback,a=e.processGroupHeaderCallback,l=e.processRowGroupCallback;this.columnModel=t,this.valueService=o,this.gridOptionsService=r,this.valueFormatterService=n,this.valueParserService=i,this.processCellCallback=u,this.processHeaderCallback=s,this.processGroupHeaderCallback=a,this.processRowGroupCallback=l}return e.prototype.prepare=function(e){this.groupColumns=e.filter((function(e){return!!e.getColDef().showRowGroup}))},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:""},e.prototype.extractRowCellValue=function(e,t,o,r,n){var i=this.gridOptionsService.get("groupHideOpenParents")&&!n.footer||!this.shouldRenderGroupSummaryCell(n,e,t)?this.valueService.getValue(e,n):this.createValueForGroupNode(e,n);return this.processCell({accumulatedRowIndex:o,rowNode:n,column:e,value:i,processCellCallback:this.processCellCallback,type:r})},e.prototype.shouldRenderGroupSummaryCell=function(e,t,o){var r;if(!(e&&e.group))return!1;if(-1!==this.groupColumns.indexOf(t)){if(null!=(null===(r=e.groupData)||void 0===r?void 0:r[t.getId()]))return!0;if(this.gridOptionsService.isRowModelType("serverSide")&&e.group)return!0;if(e.footer&&-1===e.level){var n=t.getColDef();return null==n||!0===n.showRowGroup||n.showRowGroup===this.columnModel.getRowGroupColumns()[0].getId()}}var i=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotMode());return 0===o&&i},e.prototype.getHeaderName=function(e,t){return e?e(this.gridOptionsService.addGridCommonParams({column:t})):this.columnModel.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e,t){var o=this;if(this.processRowGroupCallback)return this.processRowGroupCallback(this.gridOptionsService.addGridCommonParams({column:e,node:t}));var r=this.gridOptionsService.get("treeData"),n=this.gridOptionsService.get("suppressGroupMaintainValueType"),i=function(t){var i,u;if(r||n)return t.key;var s=null===(i=t.groupData)||void 0===i?void 0:i[e.getId()];return s&&t.rowGroupColumn&&!1!==t.rowGroupColumn.getColDef().useValueFormatterForExport&&null!==(u=o.valueFormatterService.formatValue(t.rowGroupColumn,t,s))&&void 0!==u?u:s},u=t.footer,s=[i(t)];if(!this.gridOptionsService.isGroupMultiAutoColumn())for(;t.parent;)t=t.parent,s.push(i(t));var a=s.reverse().join(" -> ");return u?"Total ".concat(a):a},e.prototype.processCell=function(e){var t,o=this,r=e.accumulatedRowIndex,n=e.rowNode,i=e.column,u=e.value,s=e.processCellCallback,a=e.type;return s?{value:null!==(t=s(this.gridOptionsService.addGridCommonParams({accumulatedRowIndex:r,column:i,node:n,value:u,type:a,parseValue:function(e){return o.valueParserService.parseValue(i,n,e,o.valueService.getValue(i,n))},formatValue:function(e){var t;return null!==(t=o.valueFormatterService.formatValue(i,n,e))&&void 0!==t?t:e}})))&&void 0!==t?t:""}:!1!==i.getColDef().useValueFormatterForExport?{value:null!=u?u:"",valueFormatted:this.valueFormatterService.formatValue(i,n,u)}:{value:null!=u?u:""}},e}(),i=function(){function e(){}return e.download=function(e,t){var o=document.defaultView||window;if(o){var r=document.createElement("a"),n=o.URL.createObjectURL(t);r.setAttribute("href",n),r.setAttribute("download",e),r.style.display="none",document.body.appendChild(r),r.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:o})),document.body.removeChild(r),o.setTimeout((function(){o.URL.revokeObjectURL(n)}),0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},e}(),u=(e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)},function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}),s=function(e){function t(t){var o=e.call(this,t)||this;o.isFirstLine=!0,o.result="";var r=t.suppressQuotes,n=t.columnSeparator;return o.suppressQuotes=r,o.columnSeparator=n,o}return u(t,e),t.prototype.addCustomContent=function(e){var t=this;e&&("string"==typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach((function(e){t.beginNewLine(),e.forEach((function(e,o){0!==o&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(e.data.value||""),e.mergeAcross&&t.appendEmptyCells(e.mergeAcross)}))})))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,o,r){0!=o&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(r)},t.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,o){var r;0!=t&&(this.result+=this.columnSeparator);var n=this.extractRowCellValue(e,t,t,"csv",o);this.result+=this.putInQuotes(null!==(r=n.valueFormatted)&&void 0!==r?r:n.value)},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null==e?'""':("string"==typeof e?t=e:"function"==typeof e.toString?t=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"');var t},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}(n),a=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),l=function(e,t,o,r){var n,i=arguments.length,u=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(u=(i<3?n(u):i>3?n(t,o,u):n(t,o))||u);return i>3&&u&&Object.defineProperty(t,o,u),u},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsService:this.gridOptionsService})},t.prototype.getMergedParams=function(e){var t=this.gridOptionsService.get("defaultCsvExportParams");return Object.assign({},t,e)},t.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParams(e),o=this.getData(t),r=new Blob(["\ufeff",o],{type:"text/plain"});return i.download(this.getFileName(t.fileName),r),o},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e,t){void 0===t&&(t=!1);var o=t?Object.assign({},e):this.getMergedParams(e);return this.getData(o)},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this,o=t.columnModel,r=t.valueService,n=t.gridOptionsService,i=t.valueFormatterService,u=t.valueParserService,a=e,l=a.processCellCallback,p=a.processHeaderCallback,c=a.processGroupHeaderCallback,d=a.processRowGroupCallback,f=a.suppressQuotes,v=a.columnSeparator;return new s({columnModel:o,valueService:r,gridOptionsService:n,valueFormatterService:i,valueParserService:u,processCellCallback:l||void 0,processHeaderCallback:p||void 0,processGroupHeaderCallback:c||void 0,processRowGroupCallback:d||void 0,suppressQuotes:f||!1,columnSeparator:v||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsService.get("suppressCsvExport")},l([o.Autowired("columnModel")],t.prototype,"columnModel",void 0),l([o.Autowired("valueService")],t.prototype,"valueService",void 0),l([o.Autowired("gridSerializer")],t.prototype,"gridSerializer",void 0),l([o.Autowired("gridOptionsService")],t.prototype,"gridOptionsService",void 0),l([o.Autowired("valueFormatterService")],t.prototype,"valueFormatterService",void 0),l([o.Autowired("valueParserService")],t.prototype,"valueParserService",void 0),l([o.PostConstruct],t.prototype,"postConstruct",null),t=l([o.Bean("csvCreator")],t)}(r),c=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),d=function(e,t,o,r){var n,i=arguments.length,u=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(u=(i<3?n(u):i>3?n(t,o,u):n(t,o))||u);return i>3&&u&&Object.defineProperty(t,o,u),u};exports.RowType=void 0,(t=exports.RowType||(exports.RowType={}))[t.HEADER_GROUPING=0]="HEADER_GROUPING",t[t.HEADER=1]="HEADER",t[t.BODY=2]="BODY";var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.serialize=function(e,t){void 0===t&&(t={});var r=t.allColumns,n=t.columnKeys,i=t.skipRowGroups,u=this.getColumnsToExport(r,i,n);return o._.compose(this.prepareSession(u),this.prependContent(t),this.exportColumnGroups(t,u),this.exportHeaders(t,u),this.processPinnedTopRows(t,u),this.processRows(t,u),this.processPinnedBottomRows(t,u),this.appendContent(t))(e).parse()},t.prototype.processRow=function(e,t,o,r){var n=t.shouldRowBeSkipped||function(){return!1},i=this.gridOptionsService.get("groupRemoveSingleChildren"),u=this.gridOptionsService.get("groupRemoveLowestSingleChildren"),s=null!=t.rowPositions||!!t.onlySelected,a=this.gridOptionsService.get("groupHideOpenParents")&&!s,l=this.columnModel.isPivotMode()?r.leafGroup:!r.group,p=!!r.footer;t.skipRowGroups;var c=u&&r.leafGroup,d=1===r.allChildrenCount&&(i||c);if(!(!l&&!p&&(t.skipRowGroups||d||a)||t.onlySelected&&!r.isSelected()||t.skipPinnedTop&&"top"===r.rowPinned||t.skipPinnedBottom&&"bottom"===r.rowPinned)&&((!(-1===r.level)||l||p)&&!n(this.gridOptionsService.addGridCommonParams({node:r})))){var f=e.onNewBodyRow(r);if(o.forEach((function(e,t){f.onColumn(e,t,r)})),t.getCustomContentBelowRow){var v=t.getCustomContentBelowRow(this.gridOptionsService.addGridCommonParams({node:r}));v&&e.addCustomContent(v)}}},t.prototype.appendContent=function(e){return function(t){var o=e.appendContent;return o&&t.addCustomContent(o),t}},t.prototype.prependContent=function(e){return function(t){var o=e.prependContent;return o&&t.addCustomContent(o),t}},t.prototype.prepareSession=function(e){return function(t){return t.prepare(e),t}},t.prototype.exportColumnGroups=function(e,t){var r=this;return function(n){if(!e.skipColumnGroupHeaders){var i=new o.GroupInstanceIdCreator,u=r.displayedGroupCreator.createDisplayedGroups(t,i,null);r.recursivelyAddHeaderGroups(u,n,e.processGroupHeaderCallback)}return n}},t.prototype.exportHeaders=function(e,t){return function(o){if(!e.skipColumnHeaders){var r=o.onNewHeaderRow();t.forEach((function(e,t){r.onColumn(e,t,void 0)}))}return o}},t.prototype.processPinnedTopRows=function(e,t){var o=this;return function(r){var n=o.processRow.bind(o,r,e,t);return e.rowPositions?e.rowPositions.filter((function(e){return"top"===e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return o.pinnedRowModel.getPinnedTopRow(e.rowIndex)})).forEach(n):o.pinnedRowModel.forEachPinnedTopRow(n),r}},t.prototype.processRows=function(e,t){var o=this;return function(r){var n=o.rowModel,i=n.getType(),u="clientSide"===i,s="serverSide"===i,a=!u&&e.onlySelected,l=o.processRow.bind(o,r,e,t),p=e.exportedRows,c=void 0===p?"filteredAndSorted":p;if(e.rowPositions)e.rowPositions.filter((function(e){return null==e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return n.getRow(e.rowIndex)})).forEach(l);else if(o.columnModel.isPivotMode())u?n.forEachPivotNode(l,!0):s?n.forEachNodeAfterFilterAndSort(l,!0):n.forEachNode(l);else if(e.onlySelectedAllPages||a){var d=o.selectionService.getSelectedNodes();o.replicateSortedOrder(d),d.forEach(l)}else"all"===c?n.forEachNode(l):u||s?n.forEachNodeAfterFilterAndSort(l,!0):n.forEachNode(l);return r}},t.prototype.replicateSortedOrder=function(e){var t=this,o=this.sortController.getSortOptions(),r=function(e,n){var i,u,s,a;return null!=e.rowIndex&&null!=n.rowIndex?e.rowIndex-n.rowIndex:e.level===n.level?(null===(i=e.parent)||void 0===i?void 0:i.id)===(null===(u=n.parent)||void 0===u?void 0:u.id)?t.rowNodeSorter.compareRowNodes(o,{rowNode:e,currentPos:null!==(s=e.rowIndex)&&void 0!==s?s:-1},{rowNode:n,currentPos:null!==(a=n.rowIndex)&&void 0!==a?a:-1}):r(e.parent,n.parent):e.level>n.level?r(e.parent,n):r(e,n.parent)};e.sort(r)},t.prototype.processPinnedBottomRows=function(e,t){var o=this;return function(r){var n=o.processRow.bind(o,r,e,t);return e.rowPositions?e.rowPositions.filter((function(e){return"bottom"===e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return o.pinnedRowModel.getPinnedBottomRow(e.rowIndex)})).forEach(n):o.pinnedRowModel.forEachPinnedBottomRow(n),r}},t.prototype.getColumnsToExport=function(e,t,r){void 0===e&&(e=!1),void 0===t&&(t=!1);var n=this.columnModel.isPivotMode();if(r&&r.length)return this.columnModel.getGridColumns(r);var i=this.gridOptionsService.get("treeData"),u=[];return u=e&&!n?this.columnModel.getAllGridColumns():this.columnModel.getAllDisplayedColumns(),t&&!i&&(u=u.filter((function(e){return e.getColId()!==o.GROUP_AUTO_COLUMN_ID}))),u},t.prototype.recursivelyAddHeaderGroups=function(e,t,r){var n=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return n.push(e)}))})),e.length>0&&e[0]instanceof o.ColumnGroup&&this.doAddHeaderHeader(t,e,r),n&&n.length>0&&this.recursivelyAddHeaderGroups(n,t,r)},t.prototype.doAddHeaderHeader=function(e,t,r){var n=this,i=e.onNewHeaderGroupingRow(),u=0;t.forEach((function(e){var t,s=e;t=r?r(n.gridOptionsService.addGridCommonParams({columnGroup:s})):n.columnModel.getDisplayNameForColumnGroup(s,"header");var a=s.getLeafColumns().reduce((function(e,t,r,n){var i=o._.last(e);return"open"===t.getColumnGroupShow()?i&&null==i[1]||(i=[r],e.push(i)):i&&null==i[1]&&(i[1]=r-1),r===n.length-1&&i&&null==i[1]&&(i[1]=r),e}),[]);i.onColumn(s,t||"",u++,s.getLeafColumns().length-1,a)}))},d([o.Autowired("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),d([o.Autowired("columnModel")],t.prototype,"columnModel",void 0),d([o.Autowired("rowModel")],t.prototype,"rowModel",void 0),d([o.Autowired("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),d([o.Autowired("selectionService")],t.prototype,"selectionService",void 0),d([o.Autowired("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),d([o.Autowired("sortController")],t.prototype,"sortController",void 0),t=d([o.Bean("gridSerializer")],t)}(o.BeanStub),v={version:"31.0.2",moduleName:o.ModuleNames.CsvExportModule,beans:[p,f]},h=function(){function e(){}return e.createHeader=function(e){void 0===e&&(e={});var t=["version"];e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone");var o=t.map((function(t){return"".concat(t,'="').concat(e[t],'"')})).join(" ");return"".concat("<?","xml ").concat(o," ").concat("?>")},e.createXml=function(e,t){var o=this,r="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach((function(e){Object.keys(e.map).forEach((function(n){r+=o.returnAttributeIfPopulated(e.prefix+n,e.map[n],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(n){r+=o.returnAttributeIfPopulated(n,e.properties.rawMap[n],t)})));var n="<"+e.name+r;return e.children||null!=e.textNode?null!=e.textNode?n+">"+e.textNode+"</"+e.name+">\r\n":(n+=">\r\n",e.children&&e.children.forEach((function(e){n+=o.createXml(e,t)})),n+"</"+e.name+">\r\n"):n+"/>\r\n"},e.returnAttributeIfPopulated=function(e,t,o){if(!t&&""!==t&&0!==t)return"";var r=t;return"boolean"==typeof t&&o&&(r=o(t))," ".concat(e,'="').concat(r,'"')},e}(),m=function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},w=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),g=function(){function e(){}return e.addFolders=function(e){e.forEach(this.addFolder.bind(this))},e.addFolder=function(e){this.folders.push({path:e,created:new Date,isBase64:!1})},e.addFile=function(e,t,o){void 0===o&&(o=!1),this.files.push({path:e,created:new Date,content:t,isBase64:o})},e.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),o=this.buildUint8Array(t);return this.clearStream(),new Blob([o],{type:e})},e.clearStream=function(){this.folders=[],this.files=[]},e.buildFileStream=function(e){var t,o;void 0===e&&(e="");var r=this.folders.concat(this.files),n=r.length,i="",u=0,s=0;try{for(var a=m(r),l=a.next();!l.done;l=a.next()){var p=l.value,c=this.getHeader(p,u),d=c.fileHeader,f=c.folderHeader,v=c.content;u+=d.length+v.length,s+=f.length,e+=d+v,i+=f}}catch(e){t={error:e}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(t)throw t.error}}return e+i+this.buildFolderEnd(n,s,u)},e.getHeader=function(e,t){var r=e.content,n=e.path,i=e.created,u=e.isBase64,s=o._.utf8_encode,a=o._.decToHex,l=s(n),p=l!==n,c=this.convertTime(i),d=this.convertDate(i),f="";if(p){var v=a(1,1)+a(this.getFromCrc32Table(l),4)+l;f="up"+a(v.length,2)+v}var h=r?this.getConvertedContent(r,u):{size:0,content:""},m=h.size,w=h.content,g="\n\0"+(p?"\0\b":"\0\0")+"\0\0"+a(c,2)+a(d,2)+a(m?this.getFromCrc32Table(w):0,4)+a(m,4)+a(m,4)+a(l.length,2)+a(f.length,2);return{fileHeader:"PK\x03\x04"+g+l+f,folderHeader:"PK\x01\x02\x14\0"+g+"\0\0\0\0\0\0"+(r?"\0\0\0\0":"\x10\0\0\0")+a(t,4)+l+f,content:w||""}},e.getConvertedContent=function(e,t){return void 0===t&&(t=!1),t&&(e=e.split(";base64,")[1]),{size:(e=t?atob(e):e).length,content:e}},e.buildFolderEnd=function(e,t,r){var n=o._.decToHex;return"PK\x05\x06\0\0\0\0"+n(e,2)+n(e,2)+n(t,4)+n(r,4)+"\0\0"},e.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),o=0;o<t.length;o++)t[o]=e.charCodeAt(o);return t},e.getFromCrc32Table=function(e){if(!e.length)return 0;for(var t=e.length,o=new Uint8Array(t),r=0;r<t;r++)o[r]=e.charCodeAt(r);var n=-1,i=0;for(r=0;r<t;r++)i=o[r],n=n>>>8^w[255&(n^i)];return-1^n},e.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2},e.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()},e.folders=[],e.files=[],e}();exports.BaseCreator=r,exports.BaseGridSerializingSession=n,exports.CsvCreator=p,exports.CsvExportModule=v,exports.Downloader=i,exports.GridSerializer=f,exports.XmlFactory=h,exports.ZipContainer=g;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t,o=require("@ag-grid-community/core"),r=function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.getFileName=function(e){var t=this.getDefaultFileExtension();return null!=e&&e.length||(e=this.getDefaultFileName()),-1===e.indexOf(".")?"".concat(e,".").concat(t):e},e.prototype.getData=function(e){var t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)},e.prototype.getDefaultFileName=function(){return"export.".concat(this.getDefaultFileExtension())},e}(),n=function(){function e(e){this.groupColumns=[];var t=e.columnModel,o=e.valueService,r=e.gridOptionsService,n=e.valueFormatterService,i=e.valueParserService,u=e.processCellCallback,s=e.processHeaderCallback,a=e.processGroupHeaderCallback,l=e.processRowGroupCallback;this.columnModel=t,this.valueService=o,this.gridOptionsService=r,this.valueFormatterService=n,this.valueParserService=i,this.processCellCallback=u,this.processHeaderCallback=s,this.processGroupHeaderCallback=a,this.processRowGroupCallback=l}return e.prototype.prepare=function(e){this.groupColumns=e.filter((function(e){return!!e.getColDef().showRowGroup}))},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:""},e.prototype.extractRowCellValue=function(e,t,o,r,n){var i=this.gridOptionsService.get("groupHideOpenParents")&&!n.footer||!this.shouldRenderGroupSummaryCell(n,e,t)?this.valueService.getValue(e,n):this.createValueForGroupNode(e,n);return this.processCell({accumulatedRowIndex:o,rowNode:n,column:e,value:i,processCellCallback:this.processCellCallback,type:r})},e.prototype.shouldRenderGroupSummaryCell=function(e,t,o){var r;if(!(e&&e.group))return!1;if(-1!==this.groupColumns.indexOf(t)){if(null!=(null===(r=e.groupData)||void 0===r?void 0:r[t.getId()]))return!0;if(this.gridOptionsService.isRowModelType("serverSide")&&e.group)return!0;if(e.footer&&-1===e.level){var n=t.getColDef();return null==n||!0===n.showRowGroup||n.showRowGroup===this.columnModel.getRowGroupColumns()[0].getId()}}var i=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotMode());return 0===o&&i},e.prototype.getHeaderName=function(e,t){return e?e(this.gridOptionsService.addGridCommonParams({column:t})):this.columnModel.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e,t){var o=this;if(this.processRowGroupCallback)return this.processRowGroupCallback(this.gridOptionsService.addGridCommonParams({column:e,node:t}));var r=this.gridOptionsService.get("treeData"),n=this.gridOptionsService.get("suppressGroupMaintainValueType"),i=function(t){var i,u;if(r||n)return t.key;var s=null===(i=t.groupData)||void 0===i?void 0:i[e.getId()];return s&&t.rowGroupColumn&&!1!==t.rowGroupColumn.getColDef().useValueFormatterForExport&&null!==(u=o.valueFormatterService.formatValue(t.rowGroupColumn,t,s))&&void 0!==u?u:s},u=t.footer,s=[i(t)];if(!this.gridOptionsService.isGroupMultiAutoColumn())for(;t.parent;)t=t.parent,s.push(i(t));var a=s.reverse().join(" -> ");return u?"Total ".concat(a):a},e.prototype.processCell=function(e){var t,o=this,r=e.accumulatedRowIndex,n=e.rowNode,i=e.column,u=e.value,s=e.processCellCallback,a=e.type;return s?{value:null!==(t=s(this.gridOptionsService.addGridCommonParams({accumulatedRowIndex:r,column:i,node:n,value:u,type:a,parseValue:function(e){return o.valueParserService.parseValue(i,n,e,o.valueService.getValue(i,n))},formatValue:function(e){var t;return null!==(t=o.valueFormatterService.formatValue(i,n,e))&&void 0!==t?t:e}})))&&void 0!==t?t:""}:!1!==i.getColDef().useValueFormatterForExport?{value:null!=u?u:"",valueFormatted:this.valueFormatterService.formatValue(i,n,u)}:{value:null!=u?u:""}},e}(),i=function(){function e(){}return e.download=function(e,t){var o=document.defaultView||window;if(o){var r=document.createElement("a"),n=o.URL.createObjectURL(t);r.setAttribute("href",n),r.setAttribute("download",e),r.style.display="none",document.body.appendChild(r),r.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:o})),document.body.removeChild(r),o.setTimeout((function(){o.URL.revokeObjectURL(n)}),0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},e}(),u=(e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)},function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}),s=function(e){function t(t){var o=e.call(this,t)||this;o.isFirstLine=!0,o.result="";var r=t.suppressQuotes,n=t.columnSeparator;return o.suppressQuotes=r,o.columnSeparator=n,o}return u(t,e),t.prototype.addCustomContent=function(e){var t=this;e&&("string"==typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach((function(e){t.beginNewLine(),e.forEach((function(e,o){0!==o&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(e.data.value||""),e.mergeAcross&&t.appendEmptyCells(e.mergeAcross)}))})))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,o,r){0!=o&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(r)},t.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,o){var r;0!=t&&(this.result+=this.columnSeparator);var n=this.extractRowCellValue(e,t,t,"csv",o);this.result+=this.putInQuotes(null!==(r=n.valueFormatted)&&void 0!==r?r:n.value)},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null==e?'""':("string"==typeof e?t=e:"function"==typeof e.toString?t=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"');var t},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}(n),a=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),l=function(e,t,o,r){var n,i=arguments.length,u=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(u=(i<3?n(u):i>3?n(t,o,u):n(t,o))||u);return i>3&&u&&Object.defineProperty(t,o,u),u},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsService:this.gridOptionsService})},t.prototype.getMergedParams=function(e){var t=this.gridOptionsService.get("defaultCsvExportParams");return Object.assign({},t,e)},t.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParams(e),o=this.getData(t),r=new Blob(["\ufeff",o],{type:"text/plain"});return i.download(this.getFileName(t.fileName),r),o},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e,t){void 0===t&&(t=!1);var o=t?Object.assign({},e):this.getMergedParams(e);return this.getData(o)},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this,o=t.columnModel,r=t.valueService,n=t.gridOptionsService,i=t.valueFormatterService,u=t.valueParserService,a=e,l=a.processCellCallback,p=a.processHeaderCallback,c=a.processGroupHeaderCallback,d=a.processRowGroupCallback,f=a.suppressQuotes,v=a.columnSeparator;return new s({columnModel:o,valueService:r,gridOptionsService:n,valueFormatterService:i,valueParserService:u,processCellCallback:l||void 0,processHeaderCallback:p||void 0,processGroupHeaderCallback:c||void 0,processRowGroupCallback:d||void 0,suppressQuotes:f||!1,columnSeparator:v||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsService.get("suppressCsvExport")},l([o.Autowired("columnModel")],t.prototype,"columnModel",void 0),l([o.Autowired("valueService")],t.prototype,"valueService",void 0),l([o.Autowired("gridSerializer")],t.prototype,"gridSerializer",void 0),l([o.Autowired("gridOptionsService")],t.prototype,"gridOptionsService",void 0),l([o.Autowired("valueFormatterService")],t.prototype,"valueFormatterService",void 0),l([o.Autowired("valueParserService")],t.prototype,"valueParserService",void 0),l([o.PostConstruct],t.prototype,"postConstruct",null),t=l([o.Bean("csvCreator")],t)}(r),c=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),d=function(e,t,o,r){var n,i=arguments.length,u=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(u=(i<3?n(u):i>3?n(t,o,u):n(t,o))||u);return i>3&&u&&Object.defineProperty(t,o,u),u};exports.RowType=void 0,(t=exports.RowType||(exports.RowType={}))[t.HEADER_GROUPING=0]="HEADER_GROUPING",t[t.HEADER=1]="HEADER",t[t.BODY=2]="BODY";var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.serialize=function(e,t){void 0===t&&(t={});var r=t.allColumns,n=t.columnKeys,i=t.skipRowGroups,u=this.getColumnsToExport(r,i,n);return o._.compose(this.prepareSession(u),this.prependContent(t),this.exportColumnGroups(t,u),this.exportHeaders(t,u),this.processPinnedTopRows(t,u),this.processRows(t,u),this.processPinnedBottomRows(t,u),this.appendContent(t))(e).parse()},t.prototype.processRow=function(e,t,o,r){var n=t.shouldRowBeSkipped||function(){return!1},i=this.gridOptionsService.get("groupRemoveSingleChildren"),u=this.gridOptionsService.get("groupRemoveLowestSingleChildren"),s=null!=t.rowPositions||!!t.onlySelected,a=this.gridOptionsService.get("groupHideOpenParents")&&!s,l=this.columnModel.isPivotMode()?r.leafGroup:!r.group,p=!!r.footer;t.skipRowGroups;var c=u&&r.leafGroup,d=1===r.allChildrenCount&&(i||c);if(!(!l&&!p&&(t.skipRowGroups||d||a)||t.onlySelected&&!r.isSelected()||t.skipPinnedTop&&"top"===r.rowPinned||t.skipPinnedBottom&&"bottom"===r.rowPinned)&&((!(-1===r.level)||l||p)&&!n(this.gridOptionsService.addGridCommonParams({node:r})))){var f=e.onNewBodyRow(r);if(o.forEach((function(e,t){f.onColumn(e,t,r)})),t.getCustomContentBelowRow){var v=t.getCustomContentBelowRow(this.gridOptionsService.addGridCommonParams({node:r}));v&&e.addCustomContent(v)}}},t.prototype.appendContent=function(e){return function(t){var o=e.appendContent;return o&&t.addCustomContent(o),t}},t.prototype.prependContent=function(e){return function(t){var o=e.prependContent;return o&&t.addCustomContent(o),t}},t.prototype.prepareSession=function(e){return function(t){return t.prepare(e),t}},t.prototype.exportColumnGroups=function(e,t){var r=this;return function(n){if(!e.skipColumnGroupHeaders){var i=new o.GroupInstanceIdCreator,u=r.displayedGroupCreator.createDisplayedGroups(t,i,null);r.recursivelyAddHeaderGroups(u,n,e.processGroupHeaderCallback)}return n}},t.prototype.exportHeaders=function(e,t){return function(o){if(!e.skipColumnHeaders){var r=o.onNewHeaderRow();t.forEach((function(e,t){r.onColumn(e,t,void 0)}))}return o}},t.prototype.processPinnedTopRows=function(e,t){var o=this;return function(r){var n=o.processRow.bind(o,r,e,t);return e.rowPositions?e.rowPositions.filter((function(e){return"top"===e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return o.pinnedRowModel.getPinnedTopRow(e.rowIndex)})).forEach(n):o.pinnedRowModel.forEachPinnedTopRow(n),r}},t.prototype.processRows=function(e,t){var o=this;return function(r){var n=o.rowModel,i=n.getType(),u="clientSide"===i,s="serverSide"===i,a=!u&&e.onlySelected,l=o.processRow.bind(o,r,e,t),p=e.exportedRows,c=void 0===p?"filteredAndSorted":p;if(e.rowPositions)e.rowPositions.filter((function(e){return null==e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return n.getRow(e.rowIndex)})).forEach(l);else if(o.columnModel.isPivotMode())u?n.forEachPivotNode(l,!0):s?n.forEachNodeAfterFilterAndSort(l,!0):n.forEachNode(l);else if(e.onlySelectedAllPages||a){var d=o.selectionService.getSelectedNodes();o.replicateSortedOrder(d),d.forEach(l)}else"all"===c?n.forEachNode(l):u||s?n.forEachNodeAfterFilterAndSort(l,!0):n.forEachNode(l);return r}},t.prototype.replicateSortedOrder=function(e){var t=this,o=this.sortController.getSortOptions(),r=function(e,n){var i,u,s,a;return null!=e.rowIndex&&null!=n.rowIndex?e.rowIndex-n.rowIndex:e.level===n.level?(null===(i=e.parent)||void 0===i?void 0:i.id)===(null===(u=n.parent)||void 0===u?void 0:u.id)?t.rowNodeSorter.compareRowNodes(o,{rowNode:e,currentPos:null!==(s=e.rowIndex)&&void 0!==s?s:-1},{rowNode:n,currentPos:null!==(a=n.rowIndex)&&void 0!==a?a:-1}):r(e.parent,n.parent):e.level>n.level?r(e.parent,n):r(e,n.parent)};e.sort(r)},t.prototype.processPinnedBottomRows=function(e,t){var o=this;return function(r){var n=o.processRow.bind(o,r,e,t);return e.rowPositions?e.rowPositions.filter((function(e){return"bottom"===e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return o.pinnedRowModel.getPinnedBottomRow(e.rowIndex)})).forEach(n):o.pinnedRowModel.forEachPinnedBottomRow(n),r}},t.prototype.getColumnsToExport=function(e,t,r){void 0===e&&(e=!1),void 0===t&&(t=!1);var n=this.columnModel.isPivotMode();if(r&&r.length)return this.columnModel.getGridColumns(r);var i=this.gridOptionsService.get("treeData"),u=[];return u=e&&!n?this.columnModel.getAllGridColumns():this.columnModel.getAllDisplayedColumns(),t&&!i&&(u=u.filter((function(e){return e.getColId()!==o.GROUP_AUTO_COLUMN_ID}))),u},t.prototype.recursivelyAddHeaderGroups=function(e,t,r){var n=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return n.push(e)}))})),e.length>0&&e[0]instanceof o.ColumnGroup&&this.doAddHeaderHeader(t,e,r),n&&n.length>0&&this.recursivelyAddHeaderGroups(n,t,r)},t.prototype.doAddHeaderHeader=function(e,t,r){var n=this,i=e.onNewHeaderGroupingRow(),u=0;t.forEach((function(e){var t,s=e;t=r?r(n.gridOptionsService.addGridCommonParams({columnGroup:s})):n.columnModel.getDisplayNameForColumnGroup(s,"header");var a=s.getLeafColumns().reduce((function(e,t,r,n){var i=o._.last(e);return"open"===t.getColumnGroupShow()?i&&null==i[1]||(i=[r],e.push(i)):i&&null==i[1]&&(i[1]=r-1),r===n.length-1&&i&&null==i[1]&&(i[1]=r),e}),[]);i.onColumn(s,t||"",u++,s.getLeafColumns().length-1,a)}))},d([o.Autowired("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),d([o.Autowired("columnModel")],t.prototype,"columnModel",void 0),d([o.Autowired("rowModel")],t.prototype,"rowModel",void 0),d([o.Autowired("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),d([o.Autowired("selectionService")],t.prototype,"selectionService",void 0),d([o.Autowired("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),d([o.Autowired("sortController")],t.prototype,"sortController",void 0),t=d([o.Bean("gridSerializer")],t)}(o.BeanStub),v={version:"31.0.3",moduleName:o.ModuleNames.CsvExportModule,beans:[p,f]},h=function(){function e(){}return e.createHeader=function(e){void 0===e&&(e={});var t=["version"];e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone");var o=t.map((function(t){return"".concat(t,'="').concat(e[t],'"')})).join(" ");return"".concat("<?","xml ").concat(o," ").concat("?>")},e.createXml=function(e,t){var o=this,r="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach((function(e){Object.keys(e.map).forEach((function(n){r+=o.returnAttributeIfPopulated(e.prefix+n,e.map[n],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(n){r+=o.returnAttributeIfPopulated(n,e.properties.rawMap[n],t)})));var n="<"+e.name+r;return e.children||null!=e.textNode?null!=e.textNode?n+">"+e.textNode+"</"+e.name+">\r\n":(n+=">\r\n",e.children&&e.children.forEach((function(e){n+=o.createXml(e,t)})),n+"</"+e.name+">\r\n"):n+"/>\r\n"},e.returnAttributeIfPopulated=function(e,t,o){if(!t&&""!==t&&0!==t)return"";var r=t;return"boolean"==typeof t&&o&&(r=o(t))," ".concat(e,'="').concat(r,'"')},e}(),m=function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},w=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),g=function(){function e(){}return e.addFolders=function(e){e.forEach(this.addFolder.bind(this))},e.addFolder=function(e){this.folders.push({path:e,created:new Date,isBase64:!1})},e.addFile=function(e,t,o){void 0===o&&(o=!1),this.files.push({path:e,created:new Date,content:t,isBase64:o})},e.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),o=this.buildUint8Array(t);return this.clearStream(),new Blob([o],{type:e})},e.clearStream=function(){this.folders=[],this.files=[]},e.buildFileStream=function(e){var t,o;void 0===e&&(e="");var r=this.folders.concat(this.files),n=r.length,i="",u=0,s=0;try{for(var a=m(r),l=a.next();!l.done;l=a.next()){var p=l.value,c=this.getHeader(p,u),d=c.fileHeader,f=c.folderHeader,v=c.content;u+=d.length+v.length,s+=f.length,e+=d+v,i+=f}}catch(e){t={error:e}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(t)throw t.error}}return e+i+this.buildFolderEnd(n,s,u)},e.getHeader=function(e,t){var r=e.content,n=e.path,i=e.created,u=e.isBase64,s=o._.utf8_encode,a=o._.decToHex,l=s(n),p=l!==n,c=this.convertTime(i),d=this.convertDate(i),f="";if(p){var v=a(1,1)+a(this.getFromCrc32Table(l),4)+l;f="up"+a(v.length,2)+v}var h=r?this.getConvertedContent(r,u):{size:0,content:""},m=h.size,w=h.content,g="\n\0"+(p?"\0\b":"\0\0")+"\0\0"+a(c,2)+a(d,2)+a(m?this.getFromCrc32Table(w):0,4)+a(m,4)+a(m,4)+a(l.length,2)+a(f.length,2);return{fileHeader:"PK\x03\x04"+g+l+f,folderHeader:"PK\x01\x02\x14\0"+g+"\0\0\0\0\0\0"+(r?"\0\0\0\0":"\x10\0\0\0")+a(t,4)+l+f,content:w||""}},e.getConvertedContent=function(e,t){return void 0===t&&(t=!1),t&&(e=e.split(";base64,")[1]),{size:(e=t?atob(e):e).length,content:e}},e.buildFolderEnd=function(e,t,r){var n=o._.decToHex;return"PK\x05\x06\0\0\0\0"+n(e,2)+n(e,2)+n(t,4)+n(r,4)+"\0\0"},e.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),o=0;o<t.length;o++)t[o]=e.charCodeAt(o);return t},e.getFromCrc32Table=function(e){if(!e.length)return 0;for(var t=e.length,o=new Uint8Array(t),r=0;r<t;r++)o[r]=e.charCodeAt(r);var n=-1,i=0;for(r=0;r<t;r++)i=o[r],n=n>>>8^w[255&(n^i)];return-1^n},e.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2},e.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()},e.folders=[],e.files=[],e}();exports.BaseCreator=r,exports.BaseGridSerializingSession=n,exports.CsvCreator=p,exports.CsvExportModule=v,exports.Downloader=i,exports.GridSerializer=f,exports.XmlFactory=h,exports.ZipContainer=g;

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

export declare const VERSION = "31.0.2";
export declare const VERSION = "31.0.3";
// DO NOT UPDATE MANUALLY: Generated from script during build time
export var VERSION = '31.0.2';
export var VERSION = '31.0.3';

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

export declare const VERSION = "31.0.2";
export declare const VERSION = "31.0.3";
{
"name": "@ag-grid-community/csv-export",
"version": "31.0.2",
"version": "31.0.3",
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",

@@ -49,3 +49,3 @@ "main": "./dist/esm/es6/main.mjs",

"dependencies": {
"@ag-grid-community/core": "~31.0.2"
"@ag-grid-community/core": "~31.0.3"
},

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

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

export declare const VERSION = "31.0.2";
export declare const VERSION = "31.0.3";

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 not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc