@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
3 lines (2 loc) • 1.55 kB
JavaScript
!function(o,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("kendo.core.js"),require("kendo.ooxml.cmn.chunk.js")):"function"==typeof define&&define.amd?define(["exports","kendo.core.min","kendo.ooxml.cmn.chunk"],e):e(((o="undefined"!=typeof globalThis?globalThis:o||self).kendo=o.kendo||{},o.kendo._globals=o.kendo._globals||{},o.kendo._globals.Ooxml={}),o.kendo._globals.Core,o.kendo._globals.OoxmlCmnChunk)}(this,(function(o,e,n){!function(o){n.I.register({toString:kendo.toString});let e=kendo.ConvertClass(n.W);var t=e.prototype.toDataURL;Object.assign(e.prototype,{toDataURL:function(){var o=t.call(this);if("string"!=typeof o)throw new Error("The toDataURL method can be used only with jsZip 2. Either include jsZip 2 or use the toDataURLAsync method.");return o},toDataURLAsync:function(){var e=o.Deferred(),n=t.call(this);return"string"==typeof n?n=e.resolve(n):n&&n.then&&n.then((function(o){e.resolve(o)}),(function(){e.reject()})),e.promise()}}),window.kendo.ooxml=window.kendo.ooxml||{},window.kendo.ooxml.IntlService=n.I,window.kendo.ooxml.Workbook=e,window.kendo.ooxml.Worksheet=kendo.ConvertClass(n.a),window.kendo.ooxml.createZip=function(){if("undefined"==typeof JSZip)throw new Error("JSZip not found. Check http://docs.telerik.com/kendo-ui/framework/excel/introduction#requirements for more details.");return new JSZip}}(window.kendo.jQuery),o.__meta__={id:"ooxml",name:"XLSX generation",category:"framework",advanced:!0,depends:["core","ooxml.cmn.chunk"]}}));
//# sourceMappingURL=kendo.ooxml.min.js.map