@progress/kendo-react-excel-export 6.1.1 → 7.0.0-develop.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/{dist/npm/ColumnBase.d.ts → ColumnBase.d.ts} +4 -0
  2. package/{dist/es/ExcelExport.d.ts → ExcelExport.d.ts} +5 -1
  3. package/{dist/es/ExcelExportColumn.d.ts → ExcelExportColumn.d.ts} +4 -0
  4. package/{dist/npm/ExcelExportColumnGroup.d.ts → ExcelExportColumnGroup.d.ts} +4 -0
  5. package/{dist/npm/ExcelExportData.d.ts → ExcelExportData.d.ts} +4 -0
  6. package/LICENSE.md +1 -1
  7. package/dist/cdn/js/kendo-react-excel.js +8 -0
  8. package/index.d.ts +15 -0
  9. package/index.js +8 -0
  10. package/index.mjs +226 -0
  11. package/{dist/es/ooxml → ooxml}/CellOptionsInterface.d.ts +4 -0
  12. package/{dist/npm/ooxml → ooxml}/ExporterColumns.d.ts +4 -0
  13. package/{dist/es/ooxml → ooxml}/workbook.d.ts +4 -0
  14. package/package-metadata.d.ts +9 -0
  15. package/package.json +28 -40
  16. package/{dist/npm/templates → templates}/ExcelExportFooter.d.ts +4 -0
  17. package/{dist/npm/templates → templates}/ExcelExportGroupFooter.d.ts +4 -0
  18. package/{dist/es/templates → templates}/ExcelExportGroupHeader.d.ts +4 -0
  19. package/about.md +0 -3
  20. package/dist/cdn/js/kendo-react-excel-export.js +0 -1
  21. package/dist/es/ColumnBase.d.ts +0 -38
  22. package/dist/es/ColumnBase.js +0 -1
  23. package/dist/es/ExcelExport.js +0 -193
  24. package/dist/es/ExcelExportColumn.js +0 -24
  25. package/dist/es/ExcelExportColumnGroup.d.ts +0 -11
  26. package/dist/es/ExcelExportColumnGroup.js +0 -17
  27. package/dist/es/ExcelExportData.d.ts +0 -13
  28. package/dist/es/ExcelExportData.js +0 -2
  29. package/dist/es/main.d.ts +0 -11
  30. package/dist/es/main.js +0 -9
  31. package/dist/es/ooxml/CellOptionsInterface.js +0 -2
  32. package/dist/es/ooxml/ExporterColumns.d.ts +0 -26
  33. package/dist/es/ooxml/ExporterColumns.js +0 -99
  34. package/dist/es/ooxml/workbook.js +0 -39
  35. package/dist/es/package-metadata.d.ts +0 -5
  36. package/dist/es/package-metadata.js +0 -11
  37. package/dist/es/templates/ExcelExportFooter.d.ts +0 -14
  38. package/dist/es/templates/ExcelExportFooter.js +0 -27
  39. package/dist/es/templates/ExcelExportGroupFooter.d.ts +0 -17
  40. package/dist/es/templates/ExcelExportGroupFooter.js +0 -27
  41. package/dist/es/templates/ExcelExportGroupHeader.js +0 -27
  42. package/dist/npm/ColumnBase.js +0 -2
  43. package/dist/npm/ExcelExport.d.ts +0 -151
  44. package/dist/npm/ExcelExport.js +0 -196
  45. package/dist/npm/ExcelExportColumn.d.ts +0 -50
  46. package/dist/npm/ExcelExportColumn.js +0 -27
  47. package/dist/npm/ExcelExportColumnGroup.js +0 -20
  48. package/dist/npm/ExcelExportData.js +0 -3
  49. package/dist/npm/main.d.ts +0 -11
  50. package/dist/npm/main.js +0 -32
  51. package/dist/npm/ooxml/CellOptionsInterface.d.ts +0 -76
  52. package/dist/npm/ooxml/CellOptionsInterface.js +0 -3
  53. package/dist/npm/ooxml/ExporterColumns.js +0 -103
  54. package/dist/npm/ooxml/workbook.d.ts +0 -14
  55. package/dist/npm/ooxml/workbook.js +0 -45
  56. package/dist/npm/package-metadata.d.ts +0 -5
  57. package/dist/npm/package-metadata.js +0 -14
  58. package/dist/npm/templates/ExcelExportFooter.js +0 -30
  59. package/dist/npm/templates/ExcelExportGroupFooter.js +0 -30
  60. package/dist/npm/templates/ExcelExportGroupHeader.d.ts +0 -16
  61. package/dist/npm/templates/ExcelExportGroupHeader.js +0 -30
  62. package/dist/systemjs/kendo-react-excel-export.js +0 -1
  63. package/e2e-next/excelexport.basic.tests.ts +0 -23
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- import { ColumnBase } from './ColumnBase';
3
- export interface ExcelExportColumnGroupProps extends ColumnBase {
4
- }
5
- /**
6
- * Represents the column group component of the KendoReact ExcelExport component.
7
- *
8
- * @returns null
9
- */
10
- declare const ExcelExportColumnGroup: React.FunctionComponent<ExcelExportColumnGroupProps>;
11
- export { ExcelExportColumnGroup };
@@ -1,17 +0,0 @@
1
- import * as PropTypes from 'prop-types';
2
- /**
3
- * Represents the column group component of the KendoReact ExcelExport component.
4
- *
5
- * @returns null
6
- */
7
- var ExcelExportColumnGroup = function (_) { return null; };
8
- ExcelExportColumnGroup.propTypes = {
9
- children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.element), PropTypes.element]),
10
- headerCellOptions: PropTypes.any,
11
- hidden: PropTypes.bool,
12
- level: PropTypes.number,
13
- locked: PropTypes.bool,
14
- title: PropTypes.string,
15
- width: PropTypes.number
16
- };
17
- export { ExcelExportColumnGroup };
@@ -1,13 +0,0 @@
1
- /**
2
- * The type that is expected for the ExcelExportComponent data.
3
- */
4
- export interface ExcelExportData {
5
- /**
6
- * The exported data. If grouped, the data must be structured as described in the [`GroupResult`]({% slug api_kendo-data-query_groupresult %}) of the KendoReact Data Query component.
7
- */
8
- data?: any[];
9
- /**
10
- * The exported data groups. The groups must be compatible with the [`GroupDescriptor`]({% slug api_kendo-data-query_groupdescriptor %}) of the KendoReact Data Query component.
11
- */
12
- group?: any[];
13
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- // tslint:enable:max-line-length
package/dist/es/main.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import { ExcelExport, ExcelExportProps } from './ExcelExport';
2
- import { ExcelExportData } from './ExcelExportData';
3
- import { ExcelExportColumn, ExcelExportColumnProps } from './ExcelExportColumn';
4
- import { ExcelExportColumnGroup, ExcelExportColumnGroupProps } from './ExcelExportColumnGroup';
5
- import { ColumnBase } from './ColumnBase';
6
- import { ExcelExportFooter, ExcelExportFooterProps } from './templates/ExcelExportFooter';
7
- import { ExcelExportGroupFooter, ExcelExportGroupFooterProps } from './templates/ExcelExportGroupFooter';
8
- import { ExcelExportGroupHeader, ExcelExportGroupHeaderProps } from './templates/ExcelExportGroupHeader';
9
- import * as KendoOoxml from '@progress/kendo-ooxml';
10
- export { ExcelExport, ExcelExportData, ExcelExportProps, ExcelExportColumnGroup, ExcelExportColumnGroupProps, ExcelExportFooter, ExcelExportFooterProps, ExcelExportColumn, ExcelExportColumnProps, ColumnBase, ExcelExportGroupFooter, ExcelExportGroupFooterProps, ExcelExportGroupHeader, ExcelExportGroupHeaderProps, KendoOoxml };
11
- export * from './ooxml/workbook';
package/dist/es/main.js DELETED
@@ -1,9 +0,0 @@
1
- import { ExcelExport } from './ExcelExport';
2
- import { ExcelExportColumn } from './ExcelExportColumn';
3
- import { ExcelExportColumnGroup } from './ExcelExportColumnGroup';
4
- import { ExcelExportFooter } from './templates/ExcelExportFooter';
5
- import { ExcelExportGroupFooter } from './templates/ExcelExportGroupFooter';
6
- import { ExcelExportGroupHeader } from './templates/ExcelExportGroupHeader';
7
- import * as KendoOoxml from '@progress/kendo-ooxml';
8
- export { ExcelExport, ExcelExportColumnGroup, ExcelExportFooter, ExcelExportColumn, ExcelExportGroupFooter, ExcelExportGroupHeader, KendoOoxml };
9
- export * from './ooxml/workbook';
@@ -1,2 +0,0 @@
1
- export {};
2
- // tslint:enable:max-line-length
@@ -1,26 +0,0 @@
1
- import { CellOptions } from './CellOptionsInterface';
2
- import { ExcelExportColumnProps } from '../ExcelExportColumn';
3
- /**
4
- * @hidden
5
- */
6
- export declare const toExporterColumns: (sourceColumns?: ExcelExportColumnProps[]) => ExporterColumn[];
7
- /**
8
- * @hidden
9
- */
10
- export declare class ExporterColumn {
11
- title?: string;
12
- field?: string;
13
- hidden?: boolean;
14
- locked?: boolean;
15
- width?: number;
16
- columns: ExporterColumn[] | null;
17
- groupHeaderTemplate: any;
18
- groupFooterTemplate: any;
19
- footerTemplate: any;
20
- headerCellOptions?: CellOptions;
21
- cellOptions?: CellOptions;
22
- groupHeaderCellOptions?: CellOptions;
23
- groupFooterCellOptions?: CellOptions;
24
- footerCellOptions?: CellOptions;
25
- constructor(column: ExcelExportColumnProps, columnIndex?: number);
26
- }
@@ -1,99 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import * as React from 'react';
13
- import * as ReactDOMServer from 'react-dom/server';
14
- /* tslint:disable align */
15
- /* tslint:disable:no-use-before-declare */
16
- var compileTemplate = function (Template, context, updateContext) {
17
- var result = function (data) {
18
- updateContext(context, data);
19
- var templateResult = ReactDOMServer.renderToStaticMarkup(React.createElement(Template, __assign({}, context)));
20
- var parsed = Number(templateResult);
21
- return isNaN(parsed)
22
- ? templateResult
23
- : parsed;
24
- };
25
- return result;
26
- };
27
- var updateGroupHeaderContext = function (context, data) {
28
- context.$implicit = context.group = data;
29
- context.field = data.field;
30
- context.value = data.value;
31
- context.aggregates = data.aggregates;
32
- };
33
- var updateGroupFooterContext = function (context, data) {
34
- context.group = data.group;
35
- context.$implicit = context.aggregates = data;
36
- };
37
- // eslint-disable-next-line @typescript-eslint/no-empty-function
38
- var updateFooterContext = function (_context, _data) { };
39
- /**
40
- * @hidden
41
- */
42
- export var toExporterColumns = function (sourceColumns) {
43
- var exporterColumns = [];
44
- var columnIndex = 0;
45
- var addColumns = function (columns, result, level) {
46
- columns.forEach(function (column) {
47
- if (column.level === level) {
48
- var exporterColumn = new ExporterColumn(column, columnIndex);
49
- result.push(exporterColumn);
50
- if (column.children && column.children.length > 1) {
51
- var children = exporterColumn.columns = [];
52
- addColumns(column.children, children, level + 1);
53
- }
54
- else {
55
- columnIndex++;
56
- }
57
- }
58
- });
59
- };
60
- addColumns(sourceColumns, exporterColumns, 0);
61
- return exporterColumns;
62
- };
63
- /**
64
- * @hidden
65
- */
66
- var ExporterColumn = /** @class */ (function () {
67
- function ExporterColumn(column, columnIndex) {
68
- this.columns = null;
69
- this.title = column.title;
70
- this.field = column.field;
71
- this.hidden = column.hidden;
72
- this.locked = column.locked;
73
- this.width = column.width;
74
- this.headerCellOptions = column.headerCellOptions;
75
- this.cellOptions = column.cellOptions;
76
- this.groupHeaderCellOptions = column.groupHeaderCellOptions;
77
- this.groupFooterCellOptions = column.groupFooterCellOptions;
78
- this.footerCellOptions = column.footerCellOptions;
79
- if (column.footer) {
80
- this.footerTemplate = compileTemplate(column.footer, {
81
- $implicit: column,
82
- column: column,
83
- columnIndex: columnIndex
84
- }, updateFooterContext);
85
- }
86
- if (column.groupFooter) {
87
- this.groupFooterTemplate = compileTemplate(column.groupFooter, {
88
- column: column,
89
- field: column.field
90
- }, updateGroupFooterContext);
91
- }
92
- if (column.groupHeader) {
93
- this.groupHeaderTemplate =
94
- compileTemplate(column.groupHeader, {}, updateGroupHeaderContext);
95
- }
96
- }
97
- return ExporterColumn;
98
- }());
99
- export { ExporterColumn };
@@ -1,39 +0,0 @@
1
- import { ExcelExporter, Workbook } from '@progress/kendo-ooxml';
2
- import { toExporterColumns } from './ExporterColumns';
3
- var getDepth = function (data) {
4
- return Math.max.apply(Math, data.map(function (i) { return i.level; })) + 1;
5
- };
6
- /**
7
- * @hidden
8
- */
9
- export var workbookOptions = function (options) {
10
- var columns = toExporterColumns(options.columns);
11
- var exporter = new ExcelExporter({
12
- columns: columns,
13
- data: options.data,
14
- filterable: options.filterable,
15
- groups: options.group,
16
- paddingCellOptions: options.paddingCellOptions,
17
- headerPaddingCellOptions: options.headerPaddingCellOptions,
18
- hierarchy: options.hierarchy ? { depth: getDepth(options.data), itemLevel: function (item) { return item.level; } } : null,
19
- collapsible: options.collapsible
20
- });
21
- var result = exporter.workbook();
22
- result.creator = options.creator;
23
- result.date = options.date;
24
- result.rtl = options.dir === 'rtl';
25
- return result;
26
- };
27
- /**
28
- * @hidden
29
- */
30
- export var toDataURL = function (options) {
31
- var workbook = new Workbook(options);
32
- return workbook.toDataURL();
33
- };
34
- /**
35
- * @hidden
36
- */
37
- export var isWorkbookOptions = function (value) {
38
- return value && value.sheets;
39
- };
@@ -1,5 +0,0 @@
1
- import { PackageMetadata } from '@progress/kendo-licensing';
2
- /**
3
- * @hidden
4
- */
5
- export declare const packageMetadata: PackageMetadata;
@@ -1,11 +0,0 @@
1
- /**
2
- * @hidden
3
- */
4
- export var packageMetadata = {
5
- name: '@progress/kendo-react-excel-export',
6
- productName: 'KendoReact',
7
- productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1700064415,
9
- version: '',
10
- licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
11
- };
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- import { ExcelExportColumnProps } from '../ExcelExportColumn';
3
- /**
4
- * Represents the props that will be passed to the ExcelExportFooter component when the template is rendered.
5
- */
6
- export interface ExcelExportFooterProps {
7
- column: ExcelExportColumnProps;
8
- columnIndex: number;
9
- }
10
- /**
11
- * Represents the footer of column.
12
- */
13
- export declare class ExcelExportFooter extends React.PureComponent<ExcelExportFooterProps> {
14
- }
@@ -1,27 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import * as React from 'react';
17
- /**
18
- * Represents the footer of column.
19
- */
20
- var ExcelExportFooter = /** @class */ (function (_super) {
21
- __extends(ExcelExportFooter, _super);
22
- function ExcelExportFooter() {
23
- return _super !== null && _super.apply(this, arguments) || this;
24
- }
25
- return ExcelExportFooter;
26
- }(React.PureComponent));
27
- export { ExcelExportFooter };
@@ -1,17 +0,0 @@
1
- import * as React from 'react';
2
- import { ExcelExportColumnProps } from '../ExcelExportColumn';
3
- import { AggregateResult, GroupResult } from '@progress/kendo-data-query';
4
- /**
5
- * Represents the props that will be passed to the ExcelExportGroupFooter component when the template is rendered.
6
- */
7
- export interface ExcelExportGroupFooterProps {
8
- field: string;
9
- column: ExcelExportColumnProps;
10
- aggregates: AggregateResult;
11
- group: GroupResult;
12
- }
13
- /**
14
- * Represents the footer of the column group.
15
- */
16
- export declare class ExcelExportGroupFooter extends React.PureComponent<ExcelExportGroupFooterProps> {
17
- }
@@ -1,27 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import * as React from 'react';
17
- /**
18
- * Represents the footer of the column group.
19
- */
20
- var ExcelExportGroupFooter = /** @class */ (function (_super) {
21
- __extends(ExcelExportGroupFooter, _super);
22
- function ExcelExportGroupFooter() {
23
- return _super !== null && _super.apply(this, arguments) || this;
24
- }
25
- return ExcelExportGroupFooter;
26
- }(React.PureComponent));
27
- export { ExcelExportGroupFooter };
@@ -1,27 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import * as React from 'react';
17
- /**
18
- * Represents the header of the column group.
19
- */
20
- var ExcelExportGroupHeader = /** @class */ (function (_super) {
21
- __extends(ExcelExportGroupHeader, _super);
22
- function ExcelExportGroupHeader() {
23
- return _super !== null && _super.apply(this, arguments) || this;
24
- }
25
- return ExcelExportGroupHeader;
26
- }(React.PureComponent));
27
- export { ExcelExportGroupHeader };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,151 +0,0 @@
1
- import * as React from 'react';
2
- import * as PropTypes from 'prop-types';
3
- import { WorkbookOptions } from '@progress/kendo-ooxml';
4
- import { CellOptions } from './ooxml/CellOptionsInterface';
5
- import { ExcelExportData } from './ExcelExportData';
6
- import { ExcelExportColumnProps } from './ExcelExportColumn';
7
- /**
8
- * Represents the props of the KendoReact ExcelExport component.
9
- */
10
- export interface ExcelExportProps {
11
- /**
12
- * @hidden
13
- */
14
- children?: any;
15
- /**
16
- * You can pass the columns through the props of the component. If both the columns prop and the child column components are presented, the columns from props will be used.
17
- */
18
- columns?: ExcelExportColumnProps[];
19
- /**
20
- * The creator of the workbook.
21
- */
22
- creator?: string;
23
- /**
24
- * The exported data. If grouped, the data must be structured as described by the [`GroupResult`]({% slug api_kendo-data-query_groupresult %}) option of the KendoReact Data Query component.
25
- */
26
- data?: any[];
27
- /**
28
- * The date on which the workbook is created. The default value is `new Date()`.
29
- */
30
- date?: Date;
31
- /**
32
- * Enables or disables the column filtering in the Excel file.
33
- */
34
- filterable?: boolean;
35
- /**
36
- * Specifies the name of the file that is exported to Excel. Defaults to `Export.xlsx`.
37
- */
38
- fileName?: string;
39
- /**
40
- * If set to `true`, the content is forwarded to `proxyURL` even if the browser supports the saving of files locally.
41
- */
42
- forceProxy?: boolean;
43
- /**
44
- * The exported data groups. The groups must be compatible with the [`GroupDescriptor`]({% slug api_kendo-data-query_groupdescriptor %}) option of the KendoReact Data Query component.
45
- */
46
- group?: any[];
47
- /**
48
- * The options of the cells that are inserted before the header cells to align the headers and the column values (when the data is grouped).
49
- */
50
- headerPaddingCellOptions?: CellOptions;
51
- /**
52
- * The options of the cells that are inserted before the data, group, and footer cells to indicate the group hierarchy (when the data is grouped).
53
- */
54
- paddingCellOptions?: CellOptions;
55
- /**
56
- * The URL of the server-side proxy which will stream the file to the end user. When the browser is not capable of saving files locally&mdash;for example, Internet Explorer 9 and earlier, and Safari&mdash;a proxy is used. The implementation of the server-side proxy has to be done by you.
57
- *
58
- * The proxy receives a `POST` request with the following parameters in the request body:
59
- * - `contentType`&mdash;The MIME type of the file.
60
- * - `base64`&mdash;The base-64 encoded file content.
61
- * - `fileName`&mdash;The file name, as requested by the caller. The proxy is expected to return the decoded file with the **Content-Disposition** header set to `attachment; filename="<fileName.xslx>"`.
62
- */
63
- proxyURL?: string;
64
- /**
65
- * If set to `rtl`, the Excel file will be rendered in the right-to-left mode.
66
- */
67
- dir?: string;
68
- /**
69
- * If set to true the data will be exported as a tree based on the `level` property of each data record.
70
- */
71
- hierarchy?: boolean;
72
- /**
73
- * Enables or disables collapsible (grouped) rows in the exported file.
74
- */
75
- collapsible?: boolean;
76
- /**
77
- * Triggered after the export is complete.
78
- */
79
- onExportComplete?: (event: ExcelExportExportEvent) => void;
80
- }
81
- /**
82
- * Represents the return type of ExcelExportExportEvent.
83
- */
84
- export declare type ExcelExportExportEvent = {
85
- /**
86
- * The target of the ExcelExportExportEvent from ExcelExport.
87
- */
88
- target: ExcelExport;
89
- };
90
- export declare class ExcelExport extends React.Component<ExcelExportProps> {
91
- /**
92
- * @hidden
93
- */
94
- static propTypes: {
95
- children: PropTypes.Requireable<any>;
96
- columns: PropTypes.Requireable<any[]>;
97
- creator: PropTypes.Requireable<string>;
98
- data: PropTypes.Requireable<any>;
99
- date: PropTypes.Requireable<any>;
100
- filterable: PropTypes.Requireable<boolean>;
101
- fileName: PropTypes.Requireable<string>;
102
- forceProxy: PropTypes.Requireable<boolean>;
103
- group: PropTypes.Requireable<any>;
104
- headerPaddingCellOptions: PropTypes.Requireable<any>;
105
- paddingCellOptions: PropTypes.Requireable<any>;
106
- proxyURL: PropTypes.Requireable<string>;
107
- dir: PropTypes.Requireable<string>;
108
- hierarchy: PropTypes.Requireable<boolean>;
109
- collapsible: PropTypes.Requireable<boolean>;
110
- };
111
- /**
112
- * @hidden
113
- */
114
- static defaultProps: {
115
- fileName: string;
116
- forceProxy: boolean;
117
- collapsible: boolean;
118
- };
119
- constructor(props: ExcelExportProps);
120
- /**
121
- * Saves the data to Excel.
122
- *
123
- * @param exportData - An optional parameter. Can be the data that will be exported or the [`WorkbookOptions`]({% slug api_excel-export_workbookoptions %}).
124
- * @param columns - An optional parameter. If present, it will be used instead of the columns prop or the child column components.
125
- */
126
- save(exportData?: any[] | ExcelExportData | WorkbookOptions, columns?: ExcelExportColumnProps[] | React.ReactElement<ExcelExportColumnProps>[]): void;
127
- /**
128
- * Returns a promise which will be resolved with the file data URI.
129
- *
130
- * @param exportData - The optional data or the [`WorkbookOptions`]({% slug api_excel-export_workbookoptions %}) that will be used to generate the data URI.
131
- * @param externalColumns - The optional columns that will be used.
132
- * @returns {Promise<string>} - The promise that will be resolved by the file data URI.
133
- */
134
- toDataURL(exportData?: any[] | ExcelExportData | WorkbookOptions, columns?: any[]): Promise<string>;
135
- /**
136
- * Based on the specified columns and data, returns [`WorkbookOptions`]({% slug api_excel-export_workbookoptions %}).
137
- *
138
- * @param exportData - The optional data that will be exported.
139
- * @param externalColumns - The optional columns that will be used.
140
- * @returns {WorkbookOptions} - The workbook options.
141
- */
142
- workbookOptions(exportData?: any[] | ExcelExportData, externalColumns?: ExcelExportColumnProps[] | React.ReactElement<ExcelExportColumnProps>[]): WorkbookOptions;
143
- /**
144
- * @hidden
145
- */
146
- render(): any;
147
- protected saveFile: (dataURL: string) => void;
148
- private extractColumns;
149
- private extractChild;
150
- private getExportData;
151
- }