@progress/kendo-react-excel-export 9.4.0-develop.1 → 9.4.0-develop.11
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 +1 -1
- package/ExcelExport.mjs +0 -1
- package/ExcelExportColumn.js +1 -1
- package/ExcelExportColumn.mjs +0 -1
- package/ExcelExportColumnGroup.js +1 -1
- package/ExcelExportColumnGroup.mjs +3 -4
- package/dist/cdn/js/kendo-react-excel.js +8 -1
- package/index.js +2 -1
- package/index.mjs +5 -5
- package/ooxml/ExporterColumns.js +1 -1
- package/ooxml/ExporterColumns.mjs +10 -11
- package/ooxml/workbook.js +1 -1
- package/ooxml/workbook.mjs +6 -7
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -3
- package/package.json +3 -3
- package/templates/ExcelExportFooter.js +1 -1
- package/templates/ExcelExportFooter.mjs +0 -1
- package/templates/ExcelExportGroupFooter.js +1 -1
- package/templates/ExcelExportGroupFooter.mjs +3 -4
- package/templates/ExcelExportGroupHeader.js +1 -1
- package/templates/ExcelExportGroupHeader.mjs +0 -1
package/ExcelExport.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),o=require("prop-types"),u=require("@progress/kendo-file-saver"),p=require("./ooxml/workbook.js"),y=require("@progress/kendo-react-common"),b=require("./package-metadata.js");function g(i){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const t in i)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(i,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>i[t]})}}return e.default=i,Object.freeze(e)}const a=g(d),n=class n extends a.Component{constructor(e){super(e),this.saveFile=t=>{u.saveAs(t,this.props.fileName,{forceProxy:this.props.forceProxy,proxyURL:this.props.proxyURL})},this.extractColumns=(t,r=0)=>Array.isArray(t)?t.map(s=>this.extractChild(s,r)):[t,this.extractChild(t,r)],this.extractChild=(t,r=0)=>a.isValidElement(t)?{...t.props,width:t.props.width&&parseInt(`${t.props.width}`,10),level:r,children:t.props.children&&this.extractColumns(t.props.children,r+1)}:{...t,level:r,children:t.children&&this.extractColumns(t.children,r+1)},this.getExportData=t=>{let r;return t?Array.isArray(t)?r={data:t}:r=t:r={data:this.props.data,group:this.props.group},r},y.validatePackage(b.packageMetadata),this.save=this.save.bind(this),this.toDataURL=this.toDataURL.bind(this),this.workbookOptions=this.workbookOptions.bind(this)}save(e,t){this.toDataURL(e,t).then((...r)=>{this.props.onExportComplete&&this.props.onExportComplete.call(void 0,{target:this}),this.saveFile(...r)})}toDataURL(e,t){const r=p.isWorkbookOptions(e)?e:this.workbookOptions(e,t);return p.toDataURL(r)}workbookOptions(e,t){const r=this.getExportData(e),s=this.props.children,c=s&&s.type&&s.type.displayName==="KendoReactGrid"&&s.props&&a.Children.toArray(s.props.children),h=this.extractColumns(c||t||this.props.columns||a.Children.toArray(s));return p.workbookOptions({columns:h,data:r.data,group:r.group,filterable:this.props.filterable,creator:this.props.creator,date:this.props.date,dir:this.props.dir,hierarchy:this.props.hierarchy,paddingCellOptions:this.props.paddingCellOptions,headerPaddingCellOptions:this.props.headerPaddingCellOptions,collapsible:this.props.collapsible})}render(){return this.props.children||null}};n.propTypes={children:o.any,columns:o.arrayOf(o.any),creator:o.string,data:o.any,date:o.any,filterable:o.bool,fileName:o.string,forceProxy:o.bool,group:o.any,headerPaddingCellOptions:o.any,paddingCellOptions:o.any,proxyURL:o.string,dir:o.string,hierarchy:o.bool,collapsible:o.bool},n.defaultProps={fileName:"Export.xlsx",forceProxy:!1,collapsible:!1};let l=n;exports.ExcelExport=l;
|
package/ExcelExport.mjs
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
import * as p from "react";
|
|
10
9
|
import o from "prop-types";
|
|
11
10
|
import { saveAs as l } from "@progress/kendo-file-saver";
|
package/ExcelExportColumn.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("prop-types"),o=n=>null;o.propTypes={cellOptions:e.any,field:e.string,footerCellOptions:e.any,footer:e.oneOfType([e.func,e.element]),groupFooterCellOptions:e.any,groupFooter:e.oneOfType([e.func,e.element]),groupHeaderCellOptions:e.any,groupHeader:e.oneOfType([e.func,e.element]),headerCellOptions:e.any,hidden:e.bool,level:e.number,locked:e.bool,title:e.string,width:e.number};exports.ExcelExportColumn=o;
|
package/ExcelExportColumn.mjs
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
import e from "prop-types";
|
|
10
9
|
const o = (n) => null;
|
|
11
10
|
o.propTypes = {
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("prop-types"),o=l=>null;o.propTypes={children:e.oneOfType([e.arrayOf(e.element),e.element]),headerCellOptions:e.any,hidden:e.bool,level:e.number,locked:e.bool,title:e.string,width:e.number};exports.ExcelExportColumnGroup=o;
|
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
import e from "prop-types";
|
|
10
|
-
const
|
|
11
|
-
|
|
9
|
+
const o = (l) => null;
|
|
10
|
+
o.propTypes = {
|
|
12
11
|
children: e.oneOfType([e.arrayOf(e.element), e.element]),
|
|
13
12
|
headerCellOptions: e.any,
|
|
14
13
|
hidden: e.bool,
|
|
@@ -18,5 +17,5 @@ l.propTypes = {
|
|
|
18
17
|
width: e.number
|
|
19
18
|
};
|
|
20
19
|
export {
|
|
21
|
-
|
|
20
|
+
o as ExcelExportColumnGroup
|
|
22
21
|
};
|
|
@@ -5,4 +5,11 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* @license
|
|
10
|
+
*-------------------------------------------------------------------------------------------
|
|
11
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
12
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
13
|
+
*-------------------------------------------------------------------------------------------
|
|
14
|
+
*/
|
|
15
|
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("react"),require("prop-types"),require("@progress/kendo-file-saver"),require("@progress/kendo-ooxml"),require("react-dom/server"),require("@progress/kendo-react-common")):"function"==typeof define&&define.amd?define(["exports","react","prop-types","@progress/kendo-file-saver","@progress/kendo-ooxml","react-dom/server","@progress/kendo-react-common"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).KendoReactExcel={},e.React,e.PropTypes,e.KendoFileSaver,e.KendoOoxml,e.ReactDOMServer,e.KendoReactCommon)}(this,(function(e,o,t,r,l,s,i){"use strict";function n(e){var o=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),o.default=e,Object.freeze(o)}var p=n(o),a=n(l),d=n(s);const c=(e,o,t)=>r=>{t(o,r);const l=d.renderToStaticMarkup(p.createElement(e,{...o})),s=Number(l);return isNaN(s)?l:s},h=(e,o)=>{e.$implicit=e.group=o,e.field=o.field,e.value=o.value,e.aggregates=o.aggregates},u=(e,o)=>{e.group=o.group,e.$implicit=e.aggregates=o},g=(e,o)=>{};class m{constructor(e,o){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=c(e.footer,{$implicit:e,column:e,columnIndex:o},g)),e.groupFooter&&(this.groupFooterTemplate=c(e.groupFooter,{column:e,field:e.field},u)),e.groupHeader&&(this.groupHeaderTemplate=c(e.groupHeader,{},h))}}const f=e=>Math.max(...e.map((e=>e.level)))+1,y=e=>{const o=(e=>{const o=[];let t=0;const r=(e,o,l)=>{e.forEach((e=>{if(e.level===l){const s=new m(e,t);if(o.push(s),e.children&&e.children.length>1){const o=s.columns=[];r(e.children,o,l+1)}else t++}}))};return r(e,o,0),o})(e.columns),t=new l.ExcelExporter({columns:o,data:e.data,filterable:e.filterable,groups:e.group,paddingCellOptions:e.paddingCellOptions,headerPaddingCellOptions:e.headerPaddingCellOptions,hierarchy:e.hierarchy?{depth:f(e.data),itemLevel:e=>e.level}:null,collapsible:e.collapsible}).workbook();return t.creator=e.creator,t.date=e.date,t.rtl="rtl"===e.dir,t},x=e=>new l.Workbook(e).toDataURL(),O=e=>e&&e.sheets,b={name:"@progress/kendo-react-excel-export",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:0,version:"$VERSION",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"},C=class extends p.Component{constructor(e){super(e),this.saveFile=e=>{r.saveAs(e,this.props.fileName,{forceProxy:this.props.forceProxy,proxyURL:this.props.proxyURL})},this.extractColumns=(e,o=0)=>Array.isArray(e)?e.map((e=>this.extractChild(e,o))):[e,this.extractChild(e,o)],this.extractChild=(e,o=0)=>p.isValidElement(e)?{...e.props,width:e.props.width&&parseInt(`${e.props.width}`,10),level:o,children:e.props.children&&this.extractColumns(e.props.children,o+1)}:{...e,level:o,children:e.children&&this.extractColumns(e.children,o+1)},this.getExportData=e=>{let o;return o=e?Array.isArray(e)?{data:e}:e:{data:this.props.data,group:this.props.group},o},i.validatePackage(b),this.save=this.save.bind(this),this.toDataURL=this.toDataURL.bind(this),this.workbookOptions=this.workbookOptions.bind(this)}save(e,o){this.toDataURL(e,o).then(((...e)=>{this.props.onExportComplete&&this.props.onExportComplete.call(void 0,{target:this}),this.saveFile(...e)}))}toDataURL(e,o){const t=O(e)?e:this.workbookOptions(e,o);return x(t)}workbookOptions(e,o){const t=this.getExportData(e),r=this.props.children,l=r&&r.type&&"KendoReactGrid"===r.type.displayName&&r.props&&p.Children.toArray(r.props.children),s=this.extractColumns(l||o||this.props.columns||p.Children.toArray(r));return y({columns:s,data:t.data,group:t.group,filterable:this.props.filterable,creator:this.props.creator,date:this.props.date,dir:this.props.dir,hierarchy:this.props.hierarchy,paddingCellOptions:this.props.paddingCellOptions,headerPaddingCellOptions:this.props.headerPaddingCellOptions,collapsible:this.props.collapsible})}render(){return this.props.children||null}};C.propTypes={children:t.any,columns:t.arrayOf(t.any),creator:t.string,data:t.any,date:t.any,filterable:t.bool,fileName:t.string,forceProxy:t.bool,group:t.any,headerPaddingCellOptions:t.any,paddingCellOptions:t.any,proxyURL:t.string,dir:t.string,hierarchy:t.bool,collapsible:t.bool},C.defaultProps={fileName:"Export.xlsx",forceProxy:!1,collapsible:!1};let k=C;const E=e=>null;E.propTypes={cellOptions:t.any,field:t.string,footerCellOptions:t.any,footer:t.oneOfType([t.func,t.element]),groupFooterCellOptions:t.any,groupFooter:t.oneOfType([t.func,t.element]),groupHeaderCellOptions:t.any,groupHeader:t.oneOfType([t.func,t.element]),headerCellOptions:t.any,hidden:t.bool,level:t.number,locked:t.bool,title:t.string,width:t.number};const v=e=>null;v.propTypes={children:t.oneOfType([t.arrayOf(t.element),t.element]),headerCellOptions:t.any,hidden:t.bool,level:t.number,locked:t.bool,title:t.string,width:t.number};class w extends p.PureComponent{}let R=class extends p.PureComponent{};class P extends p.PureComponent{}e.KendoOoxml=a,e.ExcelExport=k,e.ExcelExportColumn=E,e.ExcelExportColumnGroup=v,e.ExcelExportFooter=w,e.ExcelExportGroupFooter=R,e.ExcelExportGroupHeader=P,e.isWorkbookOptions=O,e.toDataURL=x,e.workbookOptions=y}));
|
package/index.js
CHANGED
|
@@ -5,4 +5,5 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
8
|
+
"use client";
|
|
9
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./ExcelExport.js"),n=require("./ExcelExportColumn.js"),x=require("./ExcelExportColumnGroup.js"),p=require("./templates/ExcelExportFooter.js"),u=require("./templates/ExcelExportGroupFooter.js"),E=require("./templates/ExcelExportGroupHeader.js"),i=require("@progress/kendo-ooxml"),t=require("./ooxml/workbook.js");function s(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const c=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(r,e,c.get?c:{enumerable:!0,get:()=>o[e]})}}return r.default=o,Object.freeze(r)}const a=s(i);exports.ExcelExport=l.ExcelExport;exports.ExcelExportColumn=n.ExcelExportColumn;exports.ExcelExportColumnGroup=x.ExcelExportColumnGroup;exports.ExcelExportFooter=p.ExcelExportFooter;exports.ExcelExportGroupFooter=u.ExcelExportGroupFooter;exports.ExcelExportGroupHeader=E.ExcelExportGroupHeader;exports.KendoOoxml=a;exports.isWorkbookOptions=t.isWorkbookOptions;exports.toDataURL=t.toDataURL;exports.workbookOptions=t.workbookOptions;
|
package/index.mjs
CHANGED
|
@@ -11,18 +11,18 @@ import { ExcelExportColumn as p } from "./ExcelExportColumn.mjs";
|
|
|
11
11
|
import { ExcelExportColumnGroup as E } from "./ExcelExportColumnGroup.mjs";
|
|
12
12
|
import { ExcelExportFooter as f } from "./templates/ExcelExportFooter.mjs";
|
|
13
13
|
import { ExcelExportGroupFooter as n } from "./templates/ExcelExportGroupFooter.mjs";
|
|
14
|
-
import { ExcelExportGroupHeader as
|
|
14
|
+
import { ExcelExportGroupHeader as k } from "./templates/ExcelExportGroupHeader.mjs";
|
|
15
15
|
import * as o from "@progress/kendo-ooxml";
|
|
16
|
-
import { isWorkbookOptions as
|
|
16
|
+
import { isWorkbookOptions as u, toDataURL as i, workbookOptions as O } from "./ooxml/workbook.mjs";
|
|
17
17
|
export {
|
|
18
18
|
t as ExcelExport,
|
|
19
19
|
p as ExcelExportColumn,
|
|
20
20
|
E as ExcelExportColumnGroup,
|
|
21
21
|
f as ExcelExportFooter,
|
|
22
22
|
n as ExcelExportGroupFooter,
|
|
23
|
-
|
|
23
|
+
k as ExcelExportGroupHeader,
|
|
24
24
|
o as KendoOoxml,
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
u as isWorkbookOptions,
|
|
26
|
+
i as toDataURL,
|
|
27
27
|
O as workbookOptions
|
|
28
28
|
};
|
package/ooxml/ExporterColumns.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use
|
|
8
|
+
"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;
|
|
@@ -5,28 +5,27 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
import * as g from "react";
|
|
10
9
|
import * as n from "react-dom/server";
|
|
11
10
|
const d = (t, e, r) => (l) => {
|
|
12
11
|
r(e, l);
|
|
13
|
-
const s = n.renderToStaticMarkup(/* @__PURE__ */ g.createElement(t, { ...e })),
|
|
14
|
-
return isNaN(
|
|
12
|
+
const s = n.renderToStaticMarkup(/* @__PURE__ */ g.createElement(t, { ...e })), o = Number(s);
|
|
13
|
+
return isNaN(o) ? s : o;
|
|
15
14
|
}, f = (t, e) => {
|
|
16
15
|
t.$implicit = t.group = e, t.field = e.field, t.value = e.value, t.aggregates = e.aggregates;
|
|
17
16
|
}, u = (t, e) => {
|
|
18
17
|
t.group = e.group, t.$implicit = t.aggregates = e;
|
|
19
18
|
}, C = (t, e) => {
|
|
20
|
-
},
|
|
19
|
+
}, F = (t) => {
|
|
21
20
|
const e = [];
|
|
22
21
|
let r = 0;
|
|
23
|
-
const p = (l, s,
|
|
24
|
-
l.forEach((
|
|
25
|
-
if (
|
|
26
|
-
const a = new O(
|
|
27
|
-
if (s.push(a),
|
|
22
|
+
const p = (l, s, o) => {
|
|
23
|
+
l.forEach((i) => {
|
|
24
|
+
if (i.level === o) {
|
|
25
|
+
const a = new O(i, r);
|
|
26
|
+
if (s.push(a), i.children && i.children.length > 1) {
|
|
28
27
|
const h = a.columns = [];
|
|
29
|
-
p(
|
|
28
|
+
p(i.children, h, o + 1);
|
|
30
29
|
} else
|
|
31
30
|
r++;
|
|
32
31
|
}
|
|
@@ -56,5 +55,5 @@ class O {
|
|
|
56
55
|
}
|
|
57
56
|
export {
|
|
58
57
|
O as ExporterColumn,
|
|
59
|
-
|
|
58
|
+
F as toExporterColumns
|
|
60
59
|
};
|
package/ooxml/workbook.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use
|
|
8
|
+
"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;
|
package/ooxml/workbook.mjs
CHANGED
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
import { ExcelExporter as o, Workbook as a } from "@progress/kendo-ooxml";
|
|
10
9
|
import { toExporterColumns as c } from "./ExporterColumns.mjs";
|
|
11
|
-
const
|
|
10
|
+
const d = (e) => Math.max(...e.map((r) => r.level)) + 1, p = (e) => {
|
|
12
11
|
const r = c(e.columns), t = new o({
|
|
13
12
|
columns: r,
|
|
14
13
|
data: e.data,
|
|
@@ -16,13 +15,13 @@ const n = (e) => Math.max(...e.map((r) => r.level)) + 1, i = (e) => {
|
|
|
16
15
|
groups: e.group,
|
|
17
16
|
paddingCellOptions: e.paddingCellOptions,
|
|
18
17
|
headerPaddingCellOptions: e.headerPaddingCellOptions,
|
|
19
|
-
hierarchy: e.hierarchy ? { depth:
|
|
18
|
+
hierarchy: e.hierarchy ? { depth: d(e.data), itemLevel: (l) => l.level } : null,
|
|
20
19
|
collapsible: e.collapsible
|
|
21
20
|
}).workbook();
|
|
22
21
|
return t.creator = e.creator, t.date = e.date, t.rtl = e.dir === "rtl", t;
|
|
23
|
-
},
|
|
22
|
+
}, b = (e) => new a(e).toDataURL(), h = (e) => e && e.sheets;
|
|
24
23
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
h as isWorkbookOptions,
|
|
25
|
+
b as toDataURL,
|
|
26
|
+
p as workbookOptions
|
|
28
27
|
};
|
package/package-metadata.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-excel-export",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1738311847,version:"9.4.0-develop.11",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"};exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -5,14 +5,13 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
const e = {
|
|
10
9
|
name: "@progress/kendo-react-excel-export",
|
|
11
10
|
productName: "KendoReact",
|
|
12
11
|
productCode: "KENDOUIREACT",
|
|
13
12
|
productCodes: ["KENDOUIREACT"],
|
|
14
|
-
publishDate:
|
|
15
|
-
version: "9.4.0-develop.
|
|
13
|
+
publishDate: 1738311847,
|
|
14
|
+
version: "9.4.0-develop.11",
|
|
16
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
17
16
|
};
|
|
18
17
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-excel-export",
|
|
3
|
-
"version": "9.4.0-develop.
|
|
3
|
+
"version": "9.4.0-develop.11",
|
|
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",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@progress/kendo-licensing": "^1.3.4",
|
|
29
29
|
"@progress/kendo-data-query": "^1.0.0",
|
|
30
|
-
"@progress/kendo-react-common": "9.4.0-develop.
|
|
30
|
+
"@progress/kendo-react-common": "9.4.0-develop.11",
|
|
31
31
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
|
|
32
32
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
|
|
33
33
|
},
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"package": {
|
|
56
56
|
"productName": "KendoReact",
|
|
57
57
|
"productCode": "KENDOUIREACT",
|
|
58
|
-
"publishDate":
|
|
58
|
+
"publishDate": 1738311847,
|
|
59
59
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
60
60
|
}
|
|
61
61
|
},
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use
|
|
8
|
+
"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;
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
import * as e from "react";
|
|
10
9
|
class t extends e.PureComponent {
|
|
11
10
|
}
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use
|
|
8
|
+
"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;
|
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class t extends e.PureComponent {
|
|
8
|
+
import * as o from "react";
|
|
9
|
+
class r extends o.PureComponent {
|
|
11
10
|
}
|
|
12
11
|
export {
|
|
13
|
-
|
|
12
|
+
r as ExcelExportGroupFooter
|
|
14
13
|
};
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use
|
|
8
|
+
"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;
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";
|
|
9
8
|
import * as e from "react";
|
|
10
9
|
class r extends e.PureComponent {
|
|
11
10
|
}
|