@progress/kendo-react-excel-export 5.4.0-dev.202205200719 → 5.4.0-dev.202206061009
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.
- package/dist/cdn/js/kendo-react-excel-export.js +1 -1
- package/dist/es/ColumnBase.js +1 -0
- package/dist/es/ExcelExport.d.ts +1 -1
- package/dist/es/ExcelExport.js +8 -6
- package/dist/es/ExcelExportColumn.d.ts +5 -5
- package/dist/es/ExcelExportColumn.js +1 -1
- package/dist/es/ExcelExportColumnGroup.d.ts +2 -2
- package/dist/es/ExcelExportColumnGroup.js +1 -1
- package/dist/es/ExcelExportData.js +1 -0
- package/dist/es/main.d.ts +6 -6
- package/dist/es/main.js +6 -6
- package/dist/es/ooxml/CellOptionsInterface.js +1 -0
- package/dist/es/ooxml/ExporterColumns.d.ts +1 -1
- package/dist/es/ooxml/ExporterColumns.js +1 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/templates/ExcelExportFooter.d.ts +1 -1
- package/dist/es/templates/ExcelExportFooter.js +4 -2
- package/dist/es/templates/ExcelExportGroupFooter.d.ts +1 -1
- package/dist/es/templates/ExcelExportGroupFooter.js +4 -2
- package/dist/es/templates/ExcelExportGroupHeader.d.ts +1 -1
- package/dist/es/templates/ExcelExportGroupHeader.js +4 -2
- package/dist/npm/ExcelExport.d.ts +1 -1
- package/dist/npm/ExcelExport.js +13 -10
- package/dist/npm/ExcelExportColumn.d.ts +5 -5
- package/dist/npm/ExcelExportColumn.js +2 -1
- package/dist/npm/ExcelExportColumnGroup.d.ts +2 -2
- package/dist/npm/ExcelExportColumnGroup.js +2 -1
- package/dist/npm/main.d.ts +6 -6
- package/dist/npm/main.js +22 -10
- package/dist/npm/ooxml/ExporterColumns.d.ts +1 -1
- package/dist/npm/ooxml/ExporterColumns.js +4 -1
- package/dist/npm/ooxml/workbook.js +8 -4
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/templates/ExcelExportFooter.d.ts +1 -1
- package/dist/npm/templates/ExcelExportFooter.js +5 -2
- package/dist/npm/templates/ExcelExportGroupFooter.d.ts +1 -1
- package/dist/npm/templates/ExcelExportGroupFooter.js +5 -2
- package/dist/npm/templates/ExcelExportGroupHeader.d.ts +1 -1
- package/dist/npm/templates/ExcelExportGroupHeader.js +5 -2
- package/dist/systemjs/kendo-react-excel-export.js +1 -1
- package/package.json +8 -8
package/dist/es/ColumnBase.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/es/ExcelExport.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ export declare type ExcelExportExportEvent = {
|
|
|
87
87
|
*/
|
|
88
88
|
target: ExcelExport;
|
|
89
89
|
};
|
|
90
|
-
export
|
|
90
|
+
export declare class ExcelExport extends React.Component<ExcelExportProps> {
|
|
91
91
|
/**
|
|
92
92
|
* @hidden
|
|
93
93
|
*/
|
package/dist/es/ExcelExport.js
CHANGED
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
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");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -49,8 +51,8 @@ var ExcelExport = /** @class */ (function (_super) {
|
|
|
49
51
|
_this.extractChild = function (child, level) {
|
|
50
52
|
if (level === void 0) { level = 0; }
|
|
51
53
|
return React.isValidElement(child)
|
|
52
|
-
? __assign({}, child.props, { width: child.props.width && parseInt(""
|
|
53
|
-
&& _this.extractColumns(child.props.children, level + 1) }) : __assign({}, child, { level: level, children: child.children && _this.extractColumns(child.children, level + 1) });
|
|
54
|
+
? __assign(__assign({}, child.props), { width: child.props.width && parseInt("".concat(child.props.width), 10), level: level, children: child.props.children
|
|
55
|
+
&& _this.extractColumns(child.props.children, level + 1) }) : __assign(__assign({}, child), { level: level, children: child.children && _this.extractColumns(child.children, level + 1) });
|
|
54
56
|
};
|
|
55
57
|
_this.getExportData = function (exportData) {
|
|
56
58
|
var result;
|
|
@@ -76,9 +78,9 @@ var ExcelExport = /** @class */ (function (_super) {
|
|
|
76
78
|
licensing.validatePackage(packageMetadata);
|
|
77
79
|
}
|
|
78
80
|
else {
|
|
79
|
-
var message = "License activation failed for "
|
|
81
|
+
var message = "License activation failed for ".concat(packageMetadata.name, "\n");
|
|
80
82
|
message += 'The @progress/kendo-licensing script is not loaded.\n';
|
|
81
|
-
message += "See "
|
|
83
|
+
message += "See ".concat(packageMetadata.licensingDocsUrl, " for more information.\n");
|
|
82
84
|
console.warn(message);
|
|
83
85
|
}
|
|
84
86
|
_this.save = _this.save.bind(_this);
|
|
@@ -187,4 +189,4 @@ var ExcelExport = /** @class */ (function (_super) {
|
|
|
187
189
|
};
|
|
188
190
|
return ExcelExport;
|
|
189
191
|
}(React.Component));
|
|
190
|
-
export
|
|
192
|
+
export { ExcelExport };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ColumnBase } from './ColumnBase';
|
|
3
3
|
import { CellOptions } from './ooxml/CellOptionsInterface';
|
|
4
|
-
import ExcelExportGroupHeader from './templates/ExcelExportGroupHeader';
|
|
5
|
-
import ExcelExportGroupFooter from './templates/ExcelExportGroupFooter';
|
|
6
|
-
import ExcelExportFooter from './templates/ExcelExportFooter';
|
|
4
|
+
import { ExcelExportGroupHeader } from './templates/ExcelExportGroupHeader';
|
|
5
|
+
import { ExcelExportGroupFooter } from './templates/ExcelExportGroupFooter';
|
|
6
|
+
import { ExcelExportFooter } from './templates/ExcelExportFooter';
|
|
7
7
|
/**
|
|
8
8
|
* Represents the props of the KendoReact ExcelExportColumnProps component.
|
|
9
9
|
*/
|
|
@@ -46,5 +46,5 @@ export interface ExcelExportColumnProps extends ColumnBase {
|
|
|
46
46
|
*
|
|
47
47
|
* @returns null
|
|
48
48
|
*/
|
|
49
|
-
declare const ExcelExportColumn: React.
|
|
50
|
-
export
|
|
49
|
+
declare const ExcelExportColumn: React.FunctionComponent<ExcelExportColumnProps>;
|
|
50
|
+
export { ExcelExportColumn };
|
|
@@ -7,5 +7,5 @@ export interface ExcelExportColumnGroupProps extends ColumnBase {
|
|
|
7
7
|
*
|
|
8
8
|
* @returns null
|
|
9
9
|
*/
|
|
10
|
-
declare const ExcelExportColumnGroup: React.
|
|
11
|
-
export
|
|
10
|
+
declare const ExcelExportColumnGroup: React.FunctionComponent<ExcelExportColumnGroupProps>;
|
|
11
|
+
export { ExcelExportColumnGroup };
|
package/dist/es/main.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import ExcelExport,
|
|
1
|
+
import { ExcelExport, ExcelExportProps } from './ExcelExport';
|
|
2
2
|
import { ExcelExportData } from './ExcelExportData';
|
|
3
|
-
import ExcelExportColumn,
|
|
4
|
-
import ExcelExportColumnGroup,
|
|
3
|
+
import { ExcelExportColumn, ExcelExportColumnProps } from './ExcelExportColumn';
|
|
4
|
+
import { ExcelExportColumnGroup, ExcelExportColumnGroupProps } from './ExcelExportColumnGroup';
|
|
5
5
|
import { ColumnBase } from './ColumnBase';
|
|
6
|
-
import ExcelExportFooter,
|
|
7
|
-
import ExcelExportGroupFooter,
|
|
8
|
-
import ExcelExportGroupHeader,
|
|
6
|
+
import { ExcelExportFooter, ExcelExportFooterProps } from './templates/ExcelExportFooter';
|
|
7
|
+
import { ExcelExportGroupFooter, ExcelExportGroupFooterProps } from './templates/ExcelExportGroupFooter';
|
|
8
|
+
import { ExcelExportGroupHeader, ExcelExportGroupHeaderProps } from './templates/ExcelExportGroupHeader';
|
|
9
9
|
import * as KendoOoxml from '@progress/kendo-ooxml';
|
|
10
10
|
export { ExcelExport, ExcelExportData, ExcelExportProps, ExcelExportColumnGroup, ExcelExportColumnGroupProps, ExcelExportFooter, ExcelExportFooterProps, ExcelExportColumn, ExcelExportColumnProps, ColumnBase, ExcelExportGroupFooter, ExcelExportGroupFooterProps, ExcelExportGroupHeader, ExcelExportGroupHeaderProps, KendoOoxml };
|
|
11
11
|
export * from './ooxml/workbook';
|
package/dist/es/main.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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';
|
|
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
7
|
import * as KendoOoxml from '@progress/kendo-ooxml';
|
|
8
8
|
export { ExcelExport, ExcelExportColumnGroup, ExcelExportFooter, ExcelExportColumn, ExcelExportGroupFooter, ExcelExportGroupHeader, KendoOoxml };
|
|
9
9
|
export * from './ooxml/workbook';
|
|
@@ -65,6 +65,7 @@ export var toExporterColumns = function (sourceColumns) {
|
|
|
65
65
|
*/
|
|
66
66
|
var ExporterColumn = /** @class */ (function () {
|
|
67
67
|
function ExporterColumn(column, columnIndex) {
|
|
68
|
+
this.columns = null;
|
|
68
69
|
this.title = column.title;
|
|
69
70
|
this.field = column.field;
|
|
70
71
|
this.hidden = column.hidden;
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-excel-export',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1654509372,
|
|
9
9
|
version: '',
|
|
10
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
11
|
};
|
|
@@ -10,5 +10,5 @@ export interface ExcelExportFooterProps {
|
|
|
10
10
|
/**
|
|
11
11
|
* Represents the footer of column.
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export declare class ExcelExportFooter extends React.PureComponent<ExcelExportFooterProps> {
|
|
14
14
|
}
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
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");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -22,4 +24,4 @@ var ExcelExportFooter = /** @class */ (function (_super) {
|
|
|
22
24
|
}
|
|
23
25
|
return ExcelExportFooter;
|
|
24
26
|
}(React.PureComponent));
|
|
25
|
-
export
|
|
27
|
+
export { ExcelExportFooter };
|
|
@@ -13,5 +13,5 @@ export interface ExcelExportGroupFooterProps {
|
|
|
13
13
|
/**
|
|
14
14
|
* Represents the footer of the column group.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export declare class ExcelExportGroupFooter extends React.PureComponent<ExcelExportGroupFooterProps> {
|
|
17
17
|
}
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
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");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -22,4 +24,4 @@ var ExcelExportGroupFooter = /** @class */ (function (_super) {
|
|
|
22
24
|
}
|
|
23
25
|
return ExcelExportGroupFooter;
|
|
24
26
|
}(React.PureComponent));
|
|
25
|
-
export
|
|
27
|
+
export { ExcelExportGroupFooter };
|
|
@@ -12,5 +12,5 @@ export interface ExcelExportGroupHeaderProps {
|
|
|
12
12
|
/**
|
|
13
13
|
* Represents the header of the column group.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export declare class ExcelExportGroupHeader extends React.PureComponent<ExcelExportGroupHeaderProps> {
|
|
16
16
|
}
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
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");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -22,4 +24,4 @@ var ExcelExportGroupHeader = /** @class */ (function (_super) {
|
|
|
22
24
|
}
|
|
23
25
|
return ExcelExportGroupHeader;
|
|
24
26
|
}(React.PureComponent));
|
|
25
|
-
export
|
|
27
|
+
export { ExcelExportGroupHeader };
|
|
@@ -87,7 +87,7 @@ export declare type ExcelExportExportEvent = {
|
|
|
87
87
|
*/
|
|
88
88
|
target: ExcelExport;
|
|
89
89
|
};
|
|
90
|
-
export
|
|
90
|
+
export declare class ExcelExport extends React.Component<ExcelExportProps> {
|
|
91
91
|
/**
|
|
92
92
|
* @hidden
|
|
93
93
|
*/
|
package/dist/npm/ExcelExport.js
CHANGED
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -24,6 +26,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
24
26
|
return __assign.apply(this, arguments);
|
|
25
27
|
};
|
|
26
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ExcelExport = void 0;
|
|
27
30
|
var React = require("react");
|
|
28
31
|
var PropTypes = require("prop-types");
|
|
29
32
|
var kendo_file_saver_1 = require("@progress/kendo-file-saver");
|
|
@@ -35,7 +38,7 @@ var ExcelExport = /** @class */ (function (_super) {
|
|
|
35
38
|
function ExcelExport(props) {
|
|
36
39
|
var _this = _super.call(this, props) || this;
|
|
37
40
|
_this.saveFile = function (dataURL) {
|
|
38
|
-
kendo_file_saver_1.saveAs(dataURL, _this.props.fileName, {
|
|
41
|
+
(0, kendo_file_saver_1.saveAs)(dataURL, _this.props.fileName, {
|
|
39
42
|
forceProxy: _this.props.forceProxy,
|
|
40
43
|
proxyURL: _this.props.proxyURL
|
|
41
44
|
});
|
|
@@ -51,8 +54,8 @@ var ExcelExport = /** @class */ (function (_super) {
|
|
|
51
54
|
_this.extractChild = function (child, level) {
|
|
52
55
|
if (level === void 0) { level = 0; }
|
|
53
56
|
return React.isValidElement(child)
|
|
54
|
-
? __assign({}, child.props, { width: child.props.width && parseInt(""
|
|
55
|
-
&& _this.extractColumns(child.props.children, level + 1) }) : __assign({}, child, { level: level, children: child.children && _this.extractColumns(child.children, level + 1) });
|
|
57
|
+
? __assign(__assign({}, child.props), { width: child.props.width && parseInt("".concat(child.props.width), 10), level: level, children: child.props.children
|
|
58
|
+
&& _this.extractColumns(child.props.children, level + 1) }) : __assign(__assign({}, child), { level: level, children: child.children && _this.extractColumns(child.children, level + 1) });
|
|
56
59
|
};
|
|
57
60
|
_this.getExportData = function (exportData) {
|
|
58
61
|
var result;
|
|
@@ -78,9 +81,9 @@ var ExcelExport = /** @class */ (function (_super) {
|
|
|
78
81
|
licensing.validatePackage(package_metadata_1.packageMetadata);
|
|
79
82
|
}
|
|
80
83
|
else {
|
|
81
|
-
var message = "License activation failed for "
|
|
84
|
+
var message = "License activation failed for ".concat(package_metadata_1.packageMetadata.name, "\n");
|
|
82
85
|
message += 'The @progress/kendo-licensing script is not loaded.\n';
|
|
83
|
-
message += "See "
|
|
86
|
+
message += "See ".concat(package_metadata_1.packageMetadata.licensingDocsUrl, " for more information.\n");
|
|
84
87
|
console.warn(message);
|
|
85
88
|
}
|
|
86
89
|
_this.save = _this.save.bind(_this);
|
|
@@ -116,10 +119,10 @@ var ExcelExport = /** @class */ (function (_super) {
|
|
|
116
119
|
* @returns {Promise<string>} - The promise that will be resolved by the file data URI.
|
|
117
120
|
*/
|
|
118
121
|
ExcelExport.prototype.toDataURL = function (exportData, columns) {
|
|
119
|
-
var options = workbook_1.isWorkbookOptions(exportData)
|
|
122
|
+
var options = (0, workbook_1.isWorkbookOptions)(exportData)
|
|
120
123
|
? exportData
|
|
121
124
|
: this.workbookOptions(exportData, columns);
|
|
122
|
-
return workbook_1.toDataURL(options);
|
|
125
|
+
return (0, workbook_1.toDataURL)(options);
|
|
123
126
|
};
|
|
124
127
|
/**
|
|
125
128
|
* Based on the specified columns and data, returns [`WorkbookOptions`]({% slug api_excel-export_workbookoptions %}).
|
|
@@ -139,7 +142,7 @@ var ExcelExport = /** @class */ (function (_super) {
|
|
|
139
142
|
externalColumns ||
|
|
140
143
|
this.props.columns ||
|
|
141
144
|
React.Children.toArray(children));
|
|
142
|
-
var options = workbook_1.workbookOptions({
|
|
145
|
+
var options = (0, workbook_1.workbookOptions)({
|
|
143
146
|
columns: columns,
|
|
144
147
|
data: currentData.data,
|
|
145
148
|
group: currentData.group,
|
|
@@ -189,4 +192,4 @@ var ExcelExport = /** @class */ (function (_super) {
|
|
|
189
192
|
};
|
|
190
193
|
return ExcelExport;
|
|
191
194
|
}(React.Component));
|
|
192
|
-
exports.
|
|
195
|
+
exports.ExcelExport = ExcelExport;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ColumnBase } from './ColumnBase';
|
|
3
3
|
import { CellOptions } from './ooxml/CellOptionsInterface';
|
|
4
|
-
import ExcelExportGroupHeader from './templates/ExcelExportGroupHeader';
|
|
5
|
-
import ExcelExportGroupFooter from './templates/ExcelExportGroupFooter';
|
|
6
|
-
import ExcelExportFooter from './templates/ExcelExportFooter';
|
|
4
|
+
import { ExcelExportGroupHeader } from './templates/ExcelExportGroupHeader';
|
|
5
|
+
import { ExcelExportGroupFooter } from './templates/ExcelExportGroupFooter';
|
|
6
|
+
import { ExcelExportFooter } from './templates/ExcelExportFooter';
|
|
7
7
|
/**
|
|
8
8
|
* Represents the props of the KendoReact ExcelExportColumnProps component.
|
|
9
9
|
*/
|
|
@@ -46,5 +46,5 @@ export interface ExcelExportColumnProps extends ColumnBase {
|
|
|
46
46
|
*
|
|
47
47
|
* @returns null
|
|
48
48
|
*/
|
|
49
|
-
declare const ExcelExportColumn: React.
|
|
50
|
-
export
|
|
49
|
+
declare const ExcelExportColumn: React.FunctionComponent<ExcelExportColumnProps>;
|
|
50
|
+
export { ExcelExportColumn };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExcelExportColumn = void 0;
|
|
3
4
|
var PropTypes = require("prop-types");
|
|
4
5
|
/**
|
|
5
6
|
* Represents the columns of the KendoReact ExcelExport component.
|
|
@@ -7,6 +8,7 @@ var PropTypes = require("prop-types");
|
|
|
7
8
|
* @returns null
|
|
8
9
|
*/
|
|
9
10
|
var ExcelExportColumn = function (_) { return null; };
|
|
11
|
+
exports.ExcelExportColumn = ExcelExportColumn;
|
|
10
12
|
ExcelExportColumn.propTypes = {
|
|
11
13
|
cellOptions: PropTypes.any,
|
|
12
14
|
field: PropTypes.string,
|
|
@@ -23,4 +25,3 @@ ExcelExportColumn.propTypes = {
|
|
|
23
25
|
title: PropTypes.string,
|
|
24
26
|
width: PropTypes.number
|
|
25
27
|
};
|
|
26
|
-
exports.default = ExcelExportColumn;
|
|
@@ -7,5 +7,5 @@ export interface ExcelExportColumnGroupProps extends ColumnBase {
|
|
|
7
7
|
*
|
|
8
8
|
* @returns null
|
|
9
9
|
*/
|
|
10
|
-
declare const ExcelExportColumnGroup: React.
|
|
11
|
-
export
|
|
10
|
+
declare const ExcelExportColumnGroup: React.FunctionComponent<ExcelExportColumnGroupProps>;
|
|
11
|
+
export { ExcelExportColumnGroup };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExcelExportColumnGroup = void 0;
|
|
3
4
|
var PropTypes = require("prop-types");
|
|
4
5
|
/**
|
|
5
6
|
* Represents the column group component of the KendoReact ExcelExport component.
|
|
@@ -7,6 +8,7 @@ var PropTypes = require("prop-types");
|
|
|
7
8
|
* @returns null
|
|
8
9
|
*/
|
|
9
10
|
var ExcelExportColumnGroup = function (_) { return null; };
|
|
11
|
+
exports.ExcelExportColumnGroup = ExcelExportColumnGroup;
|
|
10
12
|
ExcelExportColumnGroup.propTypes = {
|
|
11
13
|
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.element), PropTypes.element]),
|
|
12
14
|
headerCellOptions: PropTypes.any,
|
|
@@ -16,4 +18,3 @@ ExcelExportColumnGroup.propTypes = {
|
|
|
16
18
|
title: PropTypes.string,
|
|
17
19
|
width: PropTypes.number
|
|
18
20
|
};
|
|
19
|
-
exports.default = ExcelExportColumnGroup;
|
package/dist/npm/main.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import ExcelExport,
|
|
1
|
+
import { ExcelExport, ExcelExportProps } from './ExcelExport';
|
|
2
2
|
import { ExcelExportData } from './ExcelExportData';
|
|
3
|
-
import ExcelExportColumn,
|
|
4
|
-
import ExcelExportColumnGroup,
|
|
3
|
+
import { ExcelExportColumn, ExcelExportColumnProps } from './ExcelExportColumn';
|
|
4
|
+
import { ExcelExportColumnGroup, ExcelExportColumnGroupProps } from './ExcelExportColumnGroup';
|
|
5
5
|
import { ColumnBase } from './ColumnBase';
|
|
6
|
-
import ExcelExportFooter,
|
|
7
|
-
import ExcelExportGroupFooter,
|
|
8
|
-
import ExcelExportGroupHeader,
|
|
6
|
+
import { ExcelExportFooter, ExcelExportFooterProps } from './templates/ExcelExportFooter';
|
|
7
|
+
import { ExcelExportGroupFooter, ExcelExportGroupFooterProps } from './templates/ExcelExportGroupFooter';
|
|
8
|
+
import { ExcelExportGroupHeader, ExcelExportGroupHeaderProps } from './templates/ExcelExportGroupHeader';
|
|
9
9
|
import * as KendoOoxml from '@progress/kendo-ooxml';
|
|
10
10
|
export { ExcelExport, ExcelExportData, ExcelExportProps, ExcelExportColumnGroup, ExcelExportColumnGroupProps, ExcelExportFooter, ExcelExportFooterProps, ExcelExportColumn, ExcelExportColumnProps, ColumnBase, ExcelExportGroupFooter, ExcelExportGroupFooterProps, ExcelExportGroupHeader, ExcelExportGroupHeaderProps, KendoOoxml };
|
|
11
11
|
export * from './ooxml/workbook';
|
package/dist/npm/main.js
CHANGED
|
@@ -1,20 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
5
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.KendoOoxml = exports.ExcelExportGroupHeader = exports.ExcelExportGroupFooter = exports.ExcelExportColumn = exports.ExcelExportFooter = exports.ExcelExportColumnGroup = exports.ExcelExport = void 0;
|
|
6
18
|
var ExcelExport_1 = require("./ExcelExport");
|
|
7
|
-
exports
|
|
19
|
+
Object.defineProperty(exports, "ExcelExport", { enumerable: true, get: function () { return ExcelExport_1.ExcelExport; } });
|
|
8
20
|
var ExcelExportColumn_1 = require("./ExcelExportColumn");
|
|
9
|
-
exports
|
|
21
|
+
Object.defineProperty(exports, "ExcelExportColumn", { enumerable: true, get: function () { return ExcelExportColumn_1.ExcelExportColumn; } });
|
|
10
22
|
var ExcelExportColumnGroup_1 = require("./ExcelExportColumnGroup");
|
|
11
|
-
exports
|
|
23
|
+
Object.defineProperty(exports, "ExcelExportColumnGroup", { enumerable: true, get: function () { return ExcelExportColumnGroup_1.ExcelExportColumnGroup; } });
|
|
12
24
|
var ExcelExportFooter_1 = require("./templates/ExcelExportFooter");
|
|
13
|
-
exports
|
|
25
|
+
Object.defineProperty(exports, "ExcelExportFooter", { enumerable: true, get: function () { return ExcelExportFooter_1.ExcelExportFooter; } });
|
|
14
26
|
var ExcelExportGroupFooter_1 = require("./templates/ExcelExportGroupFooter");
|
|
15
|
-
exports
|
|
27
|
+
Object.defineProperty(exports, "ExcelExportGroupFooter", { enumerable: true, get: function () { return ExcelExportGroupFooter_1.ExcelExportGroupFooter; } });
|
|
16
28
|
var ExcelExportGroupHeader_1 = require("./templates/ExcelExportGroupHeader");
|
|
17
|
-
exports
|
|
29
|
+
Object.defineProperty(exports, "ExcelExportGroupHeader", { enumerable: true, get: function () { return ExcelExportGroupHeader_1.ExcelExportGroupHeader; } });
|
|
18
30
|
var KendoOoxml = require("@progress/kendo-ooxml");
|
|
19
31
|
exports.KendoOoxml = KendoOoxml;
|
|
20
|
-
|
|
32
|
+
__exportStar(require("./ooxml/workbook"), exports);
|
|
@@ -11,6 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.ExporterColumn = exports.toExporterColumns = void 0;
|
|
14
15
|
var React = require("react");
|
|
15
16
|
var ReactDOMServer = require("react-dom/server");
|
|
16
17
|
/* tslint:disable align */
|
|
@@ -41,7 +42,7 @@ var updateFooterContext = function (_context, _data) { };
|
|
|
41
42
|
/**
|
|
42
43
|
* @hidden
|
|
43
44
|
*/
|
|
44
|
-
|
|
45
|
+
var toExporterColumns = function (sourceColumns) {
|
|
45
46
|
var exporterColumns = [];
|
|
46
47
|
var columnIndex = 0;
|
|
47
48
|
var addColumns = function (columns, result, level) {
|
|
@@ -62,11 +63,13 @@ exports.toExporterColumns = function (sourceColumns) {
|
|
|
62
63
|
addColumns(sourceColumns, exporterColumns, 0);
|
|
63
64
|
return exporterColumns;
|
|
64
65
|
};
|
|
66
|
+
exports.toExporterColumns = toExporterColumns;
|
|
65
67
|
/**
|
|
66
68
|
* @hidden
|
|
67
69
|
*/
|
|
68
70
|
var ExporterColumn = /** @class */ (function () {
|
|
69
71
|
function ExporterColumn(column, columnIndex) {
|
|
72
|
+
this.columns = null;
|
|
70
73
|
this.title = column.title;
|
|
71
74
|
this.field = column.field;
|
|
72
75
|
this.hidden = column.hidden;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isWorkbookOptions = exports.toDataURL = exports.workbookOptions = void 0;
|
|
3
4
|
var kendo_ooxml_1 = require("@progress/kendo-ooxml");
|
|
4
5
|
var ExporterColumns_1 = require("./ExporterColumns");
|
|
5
6
|
var getDepth = function (data) {
|
|
@@ -8,8 +9,8 @@ var getDepth = function (data) {
|
|
|
8
9
|
/**
|
|
9
10
|
* @hidden
|
|
10
11
|
*/
|
|
11
|
-
|
|
12
|
-
var columns = ExporterColumns_1.toExporterColumns(options.columns);
|
|
12
|
+
var workbookOptions = function (options) {
|
|
13
|
+
var columns = (0, ExporterColumns_1.toExporterColumns)(options.columns);
|
|
13
14
|
var exporter = new kendo_ooxml_1.ExcelExporter({
|
|
14
15
|
columns: columns,
|
|
15
16
|
data: options.data,
|
|
@@ -26,16 +27,19 @@ exports.workbookOptions = function (options) {
|
|
|
26
27
|
result.rtl = options.dir === 'rtl';
|
|
27
28
|
return result;
|
|
28
29
|
};
|
|
30
|
+
exports.workbookOptions = workbookOptions;
|
|
29
31
|
/**
|
|
30
32
|
* @hidden
|
|
31
33
|
*/
|
|
32
|
-
|
|
34
|
+
var toDataURL = function (options) {
|
|
33
35
|
var workbook = new kendo_ooxml_1.Workbook(options);
|
|
34
36
|
return workbook.toDataURL();
|
|
35
37
|
};
|
|
38
|
+
exports.toDataURL = toDataURL;
|
|
36
39
|
/**
|
|
37
40
|
* @hidden
|
|
38
41
|
*/
|
|
39
|
-
|
|
42
|
+
var isWorkbookOptions = function (value) {
|
|
40
43
|
return value && value.sheets;
|
|
41
44
|
};
|
|
45
|
+
exports.isWorkbookOptions = isWorkbookOptions;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.packageMetadata = void 0;
|
|
3
4
|
/**
|
|
4
5
|
* @hidden
|
|
5
6
|
*/
|
|
@@ -7,7 +8,7 @@ exports.packageMetadata = {
|
|
|
7
8
|
name: '@progress/kendo-react-excel-export',
|
|
8
9
|
productName: 'KendoReact',
|
|
9
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
10
|
-
publishDate:
|
|
11
|
+
publishDate: 1654509372,
|
|
11
12
|
version: '',
|
|
12
13
|
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'
|
|
13
14
|
};
|
|
@@ -10,5 +10,5 @@ export interface ExcelExportFooterProps {
|
|
|
10
10
|
/**
|
|
11
11
|
* Represents the footer of column.
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export declare class ExcelExportFooter extends React.PureComponent<ExcelExportFooterProps> {
|
|
14
14
|
}
|
|
@@ -3,16 +3,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ExcelExportFooter = void 0;
|
|
16
19
|
var React = require("react");
|
|
17
20
|
/**
|
|
18
21
|
* Represents the footer of column.
|
|
@@ -24,4 +27,4 @@ var ExcelExportFooter = /** @class */ (function (_super) {
|
|
|
24
27
|
}
|
|
25
28
|
return ExcelExportFooter;
|
|
26
29
|
}(React.PureComponent));
|
|
27
|
-
exports.
|
|
30
|
+
exports.ExcelExportFooter = ExcelExportFooter;
|