@progress/kendo-react-excel-export 7.2.4-develop.3 → 7.2.4-develop.4
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/ExcelExport.js +8 -0
- package/ExcelExport.mjs +120 -0
- package/ExcelExportColumn.js +8 -0
- package/ExcelExportColumn.mjs +29 -0
- package/ExcelExportColumnGroup.js +8 -0
- package/ExcelExportColumnGroup.mjs +22 -0
- package/dist/cdn/js/kendo-react-excel.js +8 -5
- package/index.d.mts +413 -5
- package/index.d.ts +413 -15
- package/index.js +8 -5
- package/index.mjs +25 -215
- package/ooxml/ExporterColumns.js +8 -0
- package/ooxml/ExporterColumns.mjs +52 -0
- package/ooxml/workbook.js +8 -0
- package/ooxml/workbook.mjs +28 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +2 -2
- package/templates/ExcelExportFooter.js +8 -0
- package/templates/ExcelExportFooter.mjs +14 -0
- package/templates/ExcelExportGroupFooter.js +8 -0
- package/templates/ExcelExportGroupFooter.mjs +14 -0
- package/templates/ExcelExportGroupHeader.js +8 -0
- package/templates/ExcelExportGroupHeader.mjs +14 -0
- package/ColumnBase.d.ts +0 -42
- package/ExcelExport.d.ts +0 -155
- package/ExcelExportColumn.d.ts +0 -54
- package/ExcelExportColumnGroup.d.ts +0 -15
- package/ExcelExportData.d.ts +0 -17
- package/ooxml/CellOptionsInterface.d.ts +0 -80
- package/ooxml/ExporterColumns.d.ts +0 -30
- package/ooxml/workbook.d.ts +0 -18
- package/package-metadata.d.ts +0 -9
- package/templates/ExcelExportFooter.d.ts +0 -18
- package/templates/ExcelExportGroupFooter.d.ts +0 -21
- package/templates/ExcelExportGroupHeader.d.ts +0 -20
package/index.mjs
CHANGED
|
@@ -1,218 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
5
8
|
"use client";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
o(e, i);
|
|
15
|
-
const n = C.renderToStaticMarkup(/* @__PURE__ */ p.createElement(r, { ...e })), l = Number(n);
|
|
16
|
-
return isNaN(l) ? n : l;
|
|
17
|
-
}, y = (r, e) => {
|
|
18
|
-
r.$implicit = r.group = e, r.field = e.field, r.value = e.value, r.aggregates = e.aggregates;
|
|
19
|
-
}, O = (r, e) => {
|
|
20
|
-
r.group = e.group, r.$implicit = r.aggregates = e;
|
|
21
|
-
}, b = (r, e) => {
|
|
22
|
-
}, k = (r) => {
|
|
23
|
-
const e = [];
|
|
24
|
-
let o = 0;
|
|
25
|
-
const s = (i, n, l) => {
|
|
26
|
-
i.forEach((a) => {
|
|
27
|
-
if (a.level === l) {
|
|
28
|
-
const h = new E(a, o);
|
|
29
|
-
if (n.push(h), a.children && a.children.length > 1) {
|
|
30
|
-
const u = h.columns = [];
|
|
31
|
-
s(a.children, u, l + 1);
|
|
32
|
-
} else
|
|
33
|
-
o++;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
return s(r, e, 0), e;
|
|
38
|
-
};
|
|
39
|
-
class E {
|
|
40
|
-
constructor(e, o) {
|
|
41
|
-
this.columns = null, this.title = e.title, this.field = e.field, this.hidden = e.hidden, this.locked = e.locked, this.width = e.width, this.headerCellOptions = e.headerCellOptions, this.cellOptions = e.cellOptions, this.groupHeaderCellOptions = e.groupHeaderCellOptions, this.groupFooterCellOptions = e.groupFooterCellOptions, this.footerCellOptions = e.footerCellOptions, e.footer && (this.footerTemplate = d(e.footer, {
|
|
42
|
-
$implicit: e,
|
|
43
|
-
column: e,
|
|
44
|
-
columnIndex: o
|
|
45
|
-
}, b)), e.groupFooter && (this.groupFooterTemplate = d(e.groupFooter, {
|
|
46
|
-
column: e,
|
|
47
|
-
field: e.field
|
|
48
|
-
}, O)), e.groupHeader && (this.groupHeaderTemplate = d(e.groupHeader, {}, y));
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
const w = (r) => Math.max(...r.map((e) => e.level)) + 1, P = (r) => {
|
|
52
|
-
const e = k(r.columns), s = new f({
|
|
53
|
-
columns: e,
|
|
54
|
-
data: r.data,
|
|
55
|
-
filterable: r.filterable,
|
|
56
|
-
groups: r.group,
|
|
57
|
-
paddingCellOptions: r.paddingCellOptions,
|
|
58
|
-
headerPaddingCellOptions: r.headerPaddingCellOptions,
|
|
59
|
-
hierarchy: r.hierarchy ? { depth: w(r.data), itemLevel: (i) => i.level } : null,
|
|
60
|
-
collapsible: r.collapsible
|
|
61
|
-
}).workbook();
|
|
62
|
-
return s.creator = r.creator, s.date = r.date, s.rtl = r.dir === "rtl", s;
|
|
63
|
-
}, R = (r) => new m(r).toDataURL(), T = (r) => r && r.sheets, F = {
|
|
64
|
-
name: "@progress/kendo-react-excel-export",
|
|
65
|
-
productName: "KendoReact",
|
|
66
|
-
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
67
|
-
publishDate: 1709632299,
|
|
68
|
-
version: "",
|
|
69
|
-
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
70
|
-
};
|
|
71
|
-
class c extends p.Component {
|
|
72
|
-
constructor(e) {
|
|
73
|
-
super(e), this.saveFile = (o) => {
|
|
74
|
-
g(o, this.props.fileName, {
|
|
75
|
-
forceProxy: this.props.forceProxy,
|
|
76
|
-
proxyURL: this.props.proxyURL
|
|
77
|
-
});
|
|
78
|
-
}, this.extractColumns = (o, s = 0) => Array.isArray(o) ? o.map((i) => this.extractChild(i, s)) : [o, this.extractChild(o, s)], this.extractChild = (o, s = 0) => p.isValidElement(o) ? {
|
|
79
|
-
...o.props,
|
|
80
|
-
width: o.props.width && parseInt(`${o.props.width}`, 10),
|
|
81
|
-
level: s,
|
|
82
|
-
children: o.props.children && this.extractColumns(o.props.children, s + 1)
|
|
83
|
-
} : {
|
|
84
|
-
...o,
|
|
85
|
-
level: s,
|
|
86
|
-
children: o.children && this.extractColumns(o.children, s + 1)
|
|
87
|
-
}, this.getExportData = (o) => {
|
|
88
|
-
let s;
|
|
89
|
-
return o ? Array.isArray(o) ? s = {
|
|
90
|
-
data: o
|
|
91
|
-
} : s = o : s = {
|
|
92
|
-
data: this.props.data,
|
|
93
|
-
group: this.props.group
|
|
94
|
-
}, s;
|
|
95
|
-
}, x(F), this.save = this.save.bind(this), this.toDataURL = this.toDataURL.bind(this), this.workbookOptions = this.workbookOptions.bind(this);
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Saves the data to Excel.
|
|
99
|
-
*
|
|
100
|
-
* @param exportData - An optional parameter. Can be the data that will be exported or the [`WorkbookOptions`]({% slug api_excel-export_workbookoptions %}).
|
|
101
|
-
* @param columns - An optional parameter. If present, it will be used instead of the columns prop or the child column components.
|
|
102
|
-
*/
|
|
103
|
-
save(e, o) {
|
|
104
|
-
this.toDataURL(e, o).then((...s) => {
|
|
105
|
-
this.props.onExportComplete && this.props.onExportComplete.call(void 0, { target: this }), this.saveFile(...s);
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Returns a promise which will be resolved with the file data URI.
|
|
110
|
-
*
|
|
111
|
-
* @param exportData - The optional data or the [`WorkbookOptions`]({% slug api_excel-export_workbookoptions %}) that will be used to generate the data URI.
|
|
112
|
-
* @param externalColumns - The optional columns that will be used.
|
|
113
|
-
* @returns {Promise<string>} - The promise that will be resolved by the file data URI.
|
|
114
|
-
*/
|
|
115
|
-
toDataURL(e, o) {
|
|
116
|
-
const s = T(e) ? e : this.workbookOptions(e, o);
|
|
117
|
-
return R(s);
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Based on the specified columns and data, returns [`WorkbookOptions`]({% slug api_excel-export_workbookoptions %}).
|
|
121
|
-
*
|
|
122
|
-
* @param exportData - The optional data that will be exported.
|
|
123
|
-
* @param externalColumns - The optional columns that will be used.
|
|
124
|
-
* @returns {WorkbookOptions} - The workbook options.
|
|
125
|
-
*/
|
|
126
|
-
// tslint:enable:max-line-length
|
|
127
|
-
workbookOptions(e, o) {
|
|
128
|
-
const s = this.getExportData(e), i = this.props.children, n = i && i.type && i.type.displayName === "KendoReactGrid" && i.props && p.Children.toArray(i.props.children), l = this.extractColumns(
|
|
129
|
-
n || o || this.props.columns || p.Children.toArray(i)
|
|
130
|
-
);
|
|
131
|
-
return P({
|
|
132
|
-
columns: l,
|
|
133
|
-
data: s.data,
|
|
134
|
-
group: s.group,
|
|
135
|
-
filterable: this.props.filterable,
|
|
136
|
-
creator: this.props.creator,
|
|
137
|
-
date: this.props.date,
|
|
138
|
-
dir: this.props.dir,
|
|
139
|
-
hierarchy: this.props.hierarchy,
|
|
140
|
-
paddingCellOptions: this.props.paddingCellOptions,
|
|
141
|
-
headerPaddingCellOptions: this.props.headerPaddingCellOptions,
|
|
142
|
-
collapsible: this.props.collapsible
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* @hidden
|
|
147
|
-
*/
|
|
148
|
-
render() {
|
|
149
|
-
return this.props.children || null;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
c.propTypes = {
|
|
153
|
-
children: t.any,
|
|
154
|
-
columns: t.arrayOf(t.any),
|
|
155
|
-
creator: t.string,
|
|
156
|
-
data: t.any,
|
|
157
|
-
date: t.any,
|
|
158
|
-
filterable: t.bool,
|
|
159
|
-
fileName: t.string,
|
|
160
|
-
forceProxy: t.bool,
|
|
161
|
-
group: t.any,
|
|
162
|
-
headerPaddingCellOptions: t.any,
|
|
163
|
-
paddingCellOptions: t.any,
|
|
164
|
-
proxyURL: t.string,
|
|
165
|
-
dir: t.string,
|
|
166
|
-
hierarchy: t.bool,
|
|
167
|
-
collapsible: t.bool
|
|
168
|
-
};
|
|
169
|
-
c.defaultProps = {
|
|
170
|
-
fileName: "Export.xlsx",
|
|
171
|
-
forceProxy: !1,
|
|
172
|
-
collapsible: !1
|
|
173
|
-
};
|
|
174
|
-
const v = (r) => null;
|
|
175
|
-
v.propTypes = {
|
|
176
|
-
cellOptions: t.any,
|
|
177
|
-
field: t.string,
|
|
178
|
-
footerCellOptions: t.any,
|
|
179
|
-
footer: t.oneOfType([t.func, t.element]),
|
|
180
|
-
groupFooterCellOptions: t.any,
|
|
181
|
-
groupFooter: t.oneOfType([t.func, t.element]),
|
|
182
|
-
groupHeaderCellOptions: t.any,
|
|
183
|
-
groupHeader: t.oneOfType([t.func, t.element]),
|
|
184
|
-
headerCellOptions: t.any,
|
|
185
|
-
hidden: t.bool,
|
|
186
|
-
level: t.number,
|
|
187
|
-
locked: t.bool,
|
|
188
|
-
title: t.string,
|
|
189
|
-
width: t.number
|
|
190
|
-
};
|
|
191
|
-
const U = (r) => null;
|
|
192
|
-
U.propTypes = {
|
|
193
|
-
children: t.oneOfType([t.arrayOf(t.element), t.element]),
|
|
194
|
-
headerCellOptions: t.any,
|
|
195
|
-
hidden: t.bool,
|
|
196
|
-
level: t.number,
|
|
197
|
-
locked: t.bool,
|
|
198
|
-
title: t.string,
|
|
199
|
-
width: t.number
|
|
200
|
-
};
|
|
201
|
-
class G extends p.PureComponent {
|
|
202
|
-
}
|
|
203
|
-
class K extends p.PureComponent {
|
|
204
|
-
}
|
|
205
|
-
class M extends p.PureComponent {
|
|
206
|
-
}
|
|
9
|
+
import { ExcelExport as t } from "./ExcelExport.mjs";
|
|
10
|
+
import { ExcelExportColumn as p } from "./ExcelExportColumn.mjs";
|
|
11
|
+
import { ExcelExportColumnGroup as E } from "./ExcelExportColumnGroup.mjs";
|
|
12
|
+
import { ExcelExportFooter as f } from "./templates/ExcelExportFooter.mjs";
|
|
13
|
+
import { ExcelExportGroupFooter as n } from "./templates/ExcelExportGroupFooter.mjs";
|
|
14
|
+
import { ExcelExportGroupHeader as u } from "./templates/ExcelExportGroupHeader.mjs";
|
|
15
|
+
import * as o from "@progress/kendo-ooxml";
|
|
16
|
+
import { isWorkbookOptions as i, toDataURL as k, workbookOptions as O } from "./ooxml/workbook.mjs";
|
|
207
17
|
export {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
18
|
+
t as ExcelExport,
|
|
19
|
+
p as ExcelExportColumn,
|
|
20
|
+
E as ExcelExportColumnGroup,
|
|
21
|
+
f as ExcelExportFooter,
|
|
22
|
+
n as ExcelExportGroupFooter,
|
|
23
|
+
u as ExcelExportGroupHeader,
|
|
24
|
+
o as KendoOoxml,
|
|
25
|
+
i as isWorkbookOptions,
|
|
26
|
+
k as toDataURL,
|
|
27
|
+
O as workbookOptions
|
|
218
28
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),f=require("react-dom/server");function d(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,o.get?o:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const h=d(c),C=d(f),a=(t,e,r)=>p=>{r(e,p);const l=C.renderToStaticMarkup(h.createElement(t,{...e})),i=Number(l);return isNaN(i)?l:i},O=(t,e)=>{t.$implicit=t.group=e,t.field=e.field,t.value=e.value,t.aggregates=e.aggregates},b=(t,e)=>{t.group=e.group,t.$implicit=t.aggregates=e},F=(t,e)=>{},S=t=>{const e=[];let r=0;const o=(p,l,i)=>{p.forEach(s=>{if(s.level===i){const n=new u(s,r);if(l.push(n),s.children&&s.children.length>1){const g=n.columns=[];o(s.children,g,i+1)}else r++}})};return o(t,e,0),e};class u{constructor(e,r){this.columns=null,this.title=e.title,this.field=e.field,this.hidden=e.hidden,this.locked=e.locked,this.width=e.width,this.headerCellOptions=e.headerCellOptions,this.cellOptions=e.cellOptions,this.groupHeaderCellOptions=e.groupHeaderCellOptions,this.groupFooterCellOptions=e.groupFooterCellOptions,this.footerCellOptions=e.footerCellOptions,e.footer&&(this.footerTemplate=a(e.footer,{$implicit:e,column:e,columnIndex:r},F)),e.groupFooter&&(this.groupFooterTemplate=a(e.groupFooter,{column:e,field:e.field},b)),e.groupHeader&&(this.groupHeaderTemplate=a(e.groupHeader,{},O))}}exports.ExporterColumn=u;exports.toExporterColumns=S;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as g from "react";
|
|
10
|
+
import * as n from "react-dom/server";
|
|
11
|
+
const d = (t, e, r) => (l) => {
|
|
12
|
+
r(e, l);
|
|
13
|
+
const s = n.renderToStaticMarkup(/* @__PURE__ */ g.createElement(t, { ...e })), i = Number(s);
|
|
14
|
+
return isNaN(i) ? s : i;
|
|
15
|
+
}, f = (t, e) => {
|
|
16
|
+
t.$implicit = t.group = e, t.field = e.field, t.value = e.value, t.aggregates = e.aggregates;
|
|
17
|
+
}, u = (t, e) => {
|
|
18
|
+
t.group = e.group, t.$implicit = t.aggregates = e;
|
|
19
|
+
}, C = (t, e) => {
|
|
20
|
+
}, c = (t) => {
|
|
21
|
+
const e = [];
|
|
22
|
+
let r = 0;
|
|
23
|
+
const p = (l, s, i) => {
|
|
24
|
+
l.forEach((o) => {
|
|
25
|
+
if (o.level === i) {
|
|
26
|
+
const a = new O(o, r);
|
|
27
|
+
if (s.push(a), o.children && o.children.length > 1) {
|
|
28
|
+
const h = a.columns = [];
|
|
29
|
+
p(o.children, h, i + 1);
|
|
30
|
+
} else
|
|
31
|
+
r++;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
return p(t, e, 0), e;
|
|
36
|
+
};
|
|
37
|
+
class O {
|
|
38
|
+
constructor(e, r) {
|
|
39
|
+
this.columns = null, this.title = e.title, this.field = e.field, this.hidden = e.hidden, this.locked = e.locked, this.width = e.width, this.headerCellOptions = e.headerCellOptions, this.cellOptions = e.cellOptions, this.groupHeaderCellOptions = e.groupHeaderCellOptions, this.groupFooterCellOptions = e.groupFooterCellOptions, this.footerCellOptions = e.footerCellOptions, e.footer && (this.footerTemplate = d(e.footer, {
|
|
40
|
+
$implicit: e,
|
|
41
|
+
column: e,
|
|
42
|
+
columnIndex: r
|
|
43
|
+
}, C)), e.groupFooter && (this.groupFooterTemplate = d(e.groupFooter, {
|
|
44
|
+
column: e,
|
|
45
|
+
field: e.field
|
|
46
|
+
}, u)), e.groupHeader && (this.groupHeaderTemplate = d(e.groupHeader, {}, f));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
O as ExporterColumn,
|
|
51
|
+
c as toExporterColumns
|
|
52
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@progress/kendo-ooxml"),a=require("./ExporterColumns.js"),n=e=>Math.max(...e.map(r=>r.level))+1,c=e=>{const r=a.toExporterColumns(e.columns),t=new o.ExcelExporter({columns:r,data:e.data,filterable:e.filterable,groups:e.group,paddingCellOptions:e.paddingCellOptions,headerPaddingCellOptions:e.headerPaddingCellOptions,hierarchy:e.hierarchy?{depth:n(e.data),itemLevel:l=>l.level}:null,collapsible:e.collapsible}).workbook();return t.creator=e.creator,t.date=e.date,t.rtl=e.dir==="rtl",t},s=e=>new o.Workbook(e).toDataURL(),d=e=>e&&e.sheets;exports.isWorkbookOptions=d;exports.toDataURL=s;exports.workbookOptions=c;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { ExcelExporter as o, Workbook as a } from "@progress/kendo-ooxml";
|
|
10
|
+
import { toExporterColumns as c } from "./ExporterColumns.mjs";
|
|
11
|
+
const n = (e) => Math.max(...e.map((r) => r.level)) + 1, i = (e) => {
|
|
12
|
+
const r = c(e.columns), t = new o({
|
|
13
|
+
columns: r,
|
|
14
|
+
data: e.data,
|
|
15
|
+
filterable: e.filterable,
|
|
16
|
+
groups: e.group,
|
|
17
|
+
paddingCellOptions: e.paddingCellOptions,
|
|
18
|
+
headerPaddingCellOptions: e.headerPaddingCellOptions,
|
|
19
|
+
hierarchy: e.hierarchy ? { depth: n(e.data), itemLevel: (l) => l.level } : null,
|
|
20
|
+
collapsible: e.collapsible
|
|
21
|
+
}).workbook();
|
|
22
|
+
return t.creator = e.creator, t.date = e.date, t.rtl = e.dir === "rtl", t;
|
|
23
|
+
}, p = (e) => new a(e).toDataURL(), u = (e) => e && e.sheets;
|
|
24
|
+
export {
|
|
25
|
+
u as isWorkbookOptions,
|
|
26
|
+
p as toDataURL,
|
|
27
|
+
i as workbookOptions
|
|
28
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-excel-export",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:0,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
const e = {
|
|
10
|
+
name: "@progress/kendo-react-excel-export",
|
|
11
|
+
productName: "KendoReact",
|
|
12
|
+
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
13
|
+
publishDate: 1709714567,
|
|
14
|
+
version: "",
|
|
15
|
+
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
e as packageMetadata
|
|
19
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-excel-export",
|
|
3
|
-
"version": "7.2.4-develop.
|
|
3
|
+
"version": "7.2.4-develop.4",
|
|
4
4
|
"description": "React Excel export helps you export and save data to Excel files and customize or filter the output. KendoReact Excel Export package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@progress/kendo-licensing": "^1.3.4",
|
|
26
26
|
"@progress/kendo-data-query": "^1.0.0",
|
|
27
|
-
"@progress/kendo-react-common": "7.2.4-develop.
|
|
27
|
+
"@progress/kendo-react-common": "7.2.4-develop.4",
|
|
28
28
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
29
29
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|
|
30
30
|
},
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react");function c(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const a=c(n);class l extends a.PureComponent{}exports.ExcelExportFooter=l;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as e from "react";
|
|
10
|
+
class t extends e.PureComponent {
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
t as ExcelExportFooter
|
|
14
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react");function c(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const u=c(n);class a extends u.PureComponent{}exports.ExcelExportGroupFooter=a;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as e from "react";
|
|
10
|
+
class t extends e.PureComponent {
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
t as ExcelExportGroupFooter
|
|
14
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react");function c(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const a=c(n);class u extends a.PureComponent{}exports.ExcelExportGroupHeader=u;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as e from "react";
|
|
10
|
+
class r extends e.PureComponent {
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
r as ExcelExportGroupHeader
|
|
14
|
+
};
|
package/ColumnBase.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { CellOptions } from './ooxml/CellOptionsInterface';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export interface ColumnBase {
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
children?: any;
|
|
14
|
-
/**
|
|
15
|
-
* The options of the column header cell.
|
|
16
|
-
*/
|
|
17
|
-
headerCellOptions?: CellOptions;
|
|
18
|
-
/**
|
|
19
|
-
* Sets the visibility of the column.
|
|
20
|
-
*
|
|
21
|
-
* @default false
|
|
22
|
-
*/
|
|
23
|
-
hidden?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
level?: number;
|
|
28
|
-
/**
|
|
29
|
-
* Toggles the locked (frozen) state of the column.
|
|
30
|
-
*
|
|
31
|
-
* @default false
|
|
32
|
-
*/
|
|
33
|
-
locked?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* The title of the column.
|
|
36
|
-
*/
|
|
37
|
-
title?: string;
|
|
38
|
-
/**
|
|
39
|
-
* The width of the column in pixels.
|
|
40
|
-
*/
|
|
41
|
-
width?: number;
|
|
42
|
-
}
|