@progress/kendo-react-excel-export 7.0.3-develop.4 → 7.0.3-develop.7

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/ColumnBase.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { CellOptions } from './ooxml/CellOptionsInterface';
package/ExcelExport.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
package/LICENSE.md CHANGED
@@ -8,4 +8,4 @@ This is commercial software. To use it, you need to agree to the [**End User Lic
8
8
 
9
9
  All available KendoReact commercial licenses may be obtained at the [KendoReact website](https://www.telerik.com/kendo-react-ui/pricing).
10
10
 
11
- *Copyright © 2023 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.*
11
+ *Copyright © 2024 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.*
package/NOTICE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Progress KendoReact 2023
1
+ Progress KendoReact 2024
2
2
 
3
3
  Copyright © 2018-2023 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
4
4
 
package/README.md CHANGED
@@ -48,6 +48,6 @@ High-level component overview pages
48
48
 
49
49
  * [React Excel Export Component](https://www.telerik.com/kendo-react-ui/excelexport)
50
50
 
51
- *Copyright © 2023 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.*
51
+ *Copyright © 2024 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.*
52
52
 
53
53
  *Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.*
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  (function(n,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("prop-types"),require("@progress/kendo-file-saver"),require("@progress/kendo-ooxml"),require("react-dom/server"),require("@progress/kendo-react-common")):typeof define=="function"&&define.amd?define(["exports","react","prop-types","@progress/kendo-file-saver","@progress/kendo-ooxml","react-dom/server","@progress/kendo-react-common"],p):(n=typeof globalThis<"u"?globalThis:n||self,p(n.KendoReactExcel={},n.React,n.PropTypes,n.KendoFileSaver,n.KendoOoxml,n.ReactDOMServer,n.KendoReactCommon))})(this,function(n,p,r,k,h,w,v){"use strict";"use client";function u(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const l=u(p),R=u(h),F=u(w),f=(t,e,o)=>s=>{o(e,s);const d=F.renderToStaticMarkup(l.createElement(t,{...e})),a=Number(d);return isNaN(a)?d:a},D=(t,e)=>{t.$implicit=t.group=e,t.field=e.field,t.value=e.value,t.aggregates=e.aggregates},U=(t,e)=>{t.group=e.group,t.$implicit=t.aggregates=e},L=(t,e)=>{},N=t=>{const e=[];let o=0;const i=(s,d,a)=>{s.forEach(c=>{if(c.level===a){const E=new _(c,o);if(d.push(E),c.children&&c.children.length>1){const M=E.columns=[];i(c.children,M,a+1)}else o++}})};return i(t,e,0),e};class _{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=f(e.footer,{$implicit:e,column:e,columnIndex:o},L)),e.groupFooter&&(this.groupFooterTemplate=f(e.groupFooter,{column:e,field:e.field},U)),e.groupHeader&&(this.groupHeaderTemplate=f(e.groupHeader,{},D))}}const H=t=>Math.max(...t.map(e=>e.level))+1,m=t=>{const e=N(t.columns),i=new h.ExcelExporter({columns:e,data:t.data,filterable:t.filterable,groups:t.group,paddingCellOptions:t.paddingCellOptions,headerPaddingCellOptions:t.headerPaddingCellOptions,hierarchy:t.hierarchy?{depth:H(t.data),itemLevel:s=>s.level}:null,collapsible:t.collapsible}).workbook();return i.creator=t.creator,i.date=t.date,i.rtl=t.dir==="rtl",i},C=t=>new h.Workbook(t).toDataURL(),O=t=>t&&t.sheets,y={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/"};class g extends l.Component{constructor(e){super(e),this.saveFile=o=>{k.saveAs(o,this.props.fileName,{forceProxy:this.props.forceProxy,proxyURL:this.props.proxyURL})},this.extractColumns=(o,i=0)=>Array.isArray(o)?o.map(s=>this.extractChild(s,i)):[o,this.extractChild(o,i)],this.extractChild=(o,i=0)=>l.isValidElement(o)?{...o.props,width:o.props.width&&parseInt(`${o.props.width}`,10),level:i,children:o.props.children&&this.extractColumns(o.props.children,i+1)}:{...o,level:i,children:o.children&&this.extractColumns(o.children,i+1)},this.getExportData=o=>{let i;return o?Array.isArray(o)?i={data:o}:i=o:i={data:this.props.data,group:this.props.group},i},v.validatePackage(y),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((...i)=>{this.props.onExportComplete&&this.props.onExportComplete.call(void 0,{target:this}),this.saveFile(...i)})}toDataURL(e,o){const i=O(e)?e:this.workbookOptions(e,o);return C(i)}workbookOptions(e,o){const i=this.getExportData(e),s=this.props.children,d=s&&s.type&&s.type.displayName==="KendoReactGrid"&&s.props&&l.Children.toArray(s.props.children),a=this.extractColumns(d||o||this.props.columns||l.Children.toArray(s));return m({columns:a,data:i.data,group:i.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}}g.propTypes={children:r.any,columns:r.arrayOf(r.any),creator:r.string,data:r.any,date:r.any,filterable:r.bool,fileName:r.string,forceProxy:r.bool,group:r.any,headerPaddingCellOptions:r.any,paddingCellOptions:r.any,proxyURL:r.string,dir:r.string,hierarchy:r.bool,collapsible:r.bool},g.defaultProps={fileName:"Export.xlsx",forceProxy:!1,collapsible:!1};const x=t=>null;x.propTypes={cellOptions:r.any,field:r.string,footerCellOptions:r.any,footer:r.oneOfType([r.func,r.element]),groupFooterCellOptions:r.any,groupFooter:r.oneOfType([r.func,r.element]),groupHeaderCellOptions:r.any,groupHeader:r.oneOfType([r.func,r.element]),headerCellOptions:r.any,hidden:r.bool,level:r.number,locked:r.bool,title:r.string,width:r.number};const b=t=>null;b.propTypes={children:r.oneOfType([r.arrayOf(r.element),r.element]),headerCellOptions:r.any,hidden:r.bool,level:r.number,locked:r.bool,title:r.string,width:r.number};class G extends l.PureComponent{}class K extends l.PureComponent{}class A extends l.PureComponent{}n.KendoOoxml=R,n.ExcelExport=g,n.ExcelExportColumn=x,n.ExcelExportColumnGroup=b,n.ExcelExportFooter=G,n.ExcelExportGroupFooter=K,n.ExcelExportGroupHeader=A,n.isWorkbookOptions=O,n.toDataURL=C,n.workbookOptions=m,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
package/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  export * from './index';
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ExcelExport, type ExcelExportProps } from './ExcelExport';
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),r=require("prop-types"),E=require("@progress/kendo-file-saver"),c=require("@progress/kendo-ooxml"),k=require("react-dom/server"),w=require("@progress/kendo-react-common");function h(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const n=h(b),P=h(c),R=h(k),d=(t,e,o)=>i=>{o(e,i);const p=R.renderToStaticMarkup(n.createElement(t,{...e})),l=Number(p);return isNaN(l)?p:l},T=(t,e)=>{t.$implicit=t.group=e,t.field=e.field,t.value=e.value,t.aggregates=e.aggregates},v=(t,e)=>{t.group=e.group,t.$implicit=t.aggregates=e},F=(t,e)=>{},D=t=>{const e=[];let o=0;const s=(i,p,l)=>{i.forEach(a=>{if(a.level===l){const g=new U(a,o);if(p.push(g),a.children&&a.children.length>1){const y=g.columns=[];s(a.children,y,l+1)}else o++}})};return s(t,e,0),e};class U{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=d(e.footer,{$implicit:e,column:e,columnIndex:o},F)),e.groupFooter&&(this.groupFooterTemplate=d(e.groupFooter,{column:e,field:e.field},v)),e.groupHeader&&(this.groupHeaderTemplate=d(e.groupHeader,{},T))}}const L=t=>Math.max(...t.map(e=>e.level))+1,f=t=>{const e=D(t.columns),s=new c.ExcelExporter({columns:e,data:t.data,filterable:t.filterable,groups:t.group,paddingCellOptions:t.paddingCellOptions,headerPaddingCellOptions:t.headerPaddingCellOptions,hierarchy:t.hierarchy?{depth:L(t.data),itemLevel:i=>i.level}:null,collapsible:t.collapsible}).workbook();return s.creator=t.creator,s.date=t.date,s.rtl=t.dir==="rtl",s},x=t=>new c.Workbook(t).toDataURL(),C=t=>t&&t.sheets,N={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/"};class u extends n.Component{constructor(e){super(e),this.saveFile=o=>{E.saveAs(o,this.props.fileName,{forceProxy:this.props.forceProxy,proxyURL:this.props.proxyURL})},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)=>n.isValidElement(o)?{...o.props,width:o.props.width&&parseInt(`${o.props.width}`,10),level:s,children:o.props.children&&this.extractColumns(o.props.children,s+1)}:{...o,level:s,children:o.children&&this.extractColumns(o.children,s+1)},this.getExportData=o=>{let s;return o?Array.isArray(o)?s={data:o}:s=o:s={data:this.props.data,group:this.props.group},s},w.validatePackage(N),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((...s)=>{this.props.onExportComplete&&this.props.onExportComplete.call(void 0,{target:this}),this.saveFile(...s)})}toDataURL(e,o){const s=C(e)?e:this.workbookOptions(e,o);return x(s)}workbookOptions(e,o){const s=this.getExportData(e),i=this.props.children,p=i&&i.type&&i.type.displayName==="KendoReactGrid"&&i.props&&n.Children.toArray(i.props.children),l=this.extractColumns(p||o||this.props.columns||n.Children.toArray(i));return f({columns:l,data:s.data,group:s.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}}u.propTypes={children:r.any,columns:r.arrayOf(r.any),creator:r.string,data:r.any,date:r.any,filterable:r.bool,fileName:r.string,forceProxy:r.bool,group:r.any,headerPaddingCellOptions:r.any,paddingCellOptions:r.any,proxyURL:r.string,dir:r.string,hierarchy:r.bool,collapsible:r.bool};u.defaultProps={fileName:"Export.xlsx",forceProxy:!1,collapsible:!1};const O=t=>null;O.propTypes={cellOptions:r.any,field:r.string,footerCellOptions:r.any,footer:r.oneOfType([r.func,r.element]),groupFooterCellOptions:r.any,groupFooter:r.oneOfType([r.func,r.element]),groupHeaderCellOptions:r.any,groupHeader:r.oneOfType([r.func,r.element]),headerCellOptions:r.any,hidden:r.bool,level:r.number,locked:r.bool,title:r.string,width:r.number};const m=t=>null;m.propTypes={children:r.oneOfType([r.arrayOf(r.element),r.element]),headerCellOptions:r.any,hidden:r.bool,level:r.number,locked:r.bool,title:r.string,width:r.number};class _ extends n.PureComponent{}class H extends n.PureComponent{}class G extends n.PureComponent{}exports.KendoOoxml=P;exports.ExcelExport=u;exports.ExcelExportColumn=O;exports.ExcelExportColumnGroup=m;exports.ExcelExportFooter=_;exports.ExcelExportGroupFooter=H;exports.ExcelExportGroupHeader=G;exports.isWorkbookOptions=C;exports.toDataURL=x;exports.workbookOptions=f;
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  "use client";
@@ -64,7 +64,7 @@ const w = (r) => Math.max(...r.map((e) => e.level)) + 1, P = (r) => {
64
64
  name: "@progress/kendo-react-excel-export",
65
65
  productName: "KendoReact",
66
66
  productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
67
- publishDate: 1703228039,
67
+ publishDate: 1704377320,
68
68
  version: "",
69
69
  licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
70
70
  };
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { WorkbookSheetRowCellBorderBottom, WorkbookSheetRowCellBorderLeft, WorkbookSheetRowCellBorderTop, WorkbookSheetRowCellBorderRight } from '@progress/kendo-ooxml';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { CellOptions } from './CellOptionsInterface';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { WorkbookOptions } from '@progress/kendo-ooxml';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { PackageMetadata } from '@progress/kendo-licensing';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-excel-export",
3
- "version": "7.0.3-develop.4",
3
+ "version": "7.0.3-develop.7",
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.0.3-develop.4",
27
+ "@progress/kendo-react-common": "7.0.3-develop.7",
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
  },
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2023 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as React from 'react';