From 72af79c866552c35ec845b81dcd3d36a151eb7c5 Mon Sep 17 00:00:00 2001 From: SheetJS Date: Fri, 15 Apr 2022 21:33:12 -0400 Subject: [PATCH] Demo UTF8 CSV option --- Makefile | 5 ++++ dist/shim.min.js | 2 ++ dist/xlsx.core.min.js | 15 ++++++++++++ dist/xlsx.full.min.js | 22 ++++++++++++++++++ index.html | 53 ++++++++++++++++++------------------------- xlsxworker.js | 2 +- 6 files changed, 67 insertions(+), 32 deletions(-) create mode 100644 dist/shim.min.js create mode 100644 dist/xlsx.core.min.js create mode 100644 dist/xlsx.full.min.js diff --git a/Makefile b/Makefile index 23845a9..49b9a60 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,16 @@ .PHONY: update update: + git show master:index.html > index.html git show master:dist/cpexcel.js > dist/cpexcel.js + git show master:dist/shim.min.js > dist/shim.min.js + git show master:dist/xlsx.core.min.js > dist/xlsx.core.min.js + git show master:dist/xlsx.full.min.js > dist/xlsx.full.min.js git show master:dist/xlsx.core.min.js > xlsx.core.min.js git show master:dist/xlsx.full.min.js > xlsx.full.min.js git show master:xlsx.js > xlsx.js git show master:shim.js > shim.js git show master:shim.js > tests/shim.js + git show master:xlsxworker.js > xlsxworker.js git show master:tests/base64.js > tests/base64.js git show master:dist/xlsx.zahl.js > tests/xlsx.zahl.js git show master:tests/core.js > tests/core.js diff --git a/dist/shim.min.js b/dist/shim.min.js new file mode 100644 index 0000000..a421ac0 --- /dev/null +++ b/dist/shim.min.js @@ -0,0 +1,2 @@ +/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */ +if(!Object.keys)Object.keys=function(){var t=Object.prototype.hasOwnProperty,e=!{toString:null}.propertyIsEnumerable("toString"),r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],i=r.length;return function(n){if(typeof n!=="object"&&typeof n!=="function"||n===null)throw new TypeError("Object.keys called on non-object");var o=[];for(var a in n)if(t.call(n,a))o.push(a);if(e)for(var l=0;l=0;--e)if(!t.charAt(e).match(/^\s/))return t.slice(0,e+1);return""};if(!Array.prototype.forEach)Array.prototype.forEach=function(t){var e=this.length>>>0,r=arguments[1]||void 0;for(var i=0;i>>0,r=arguments[1]||void 0,i=new Array(e);for(var n=0;n>>0,r=arguments[1]|0||0;for(r<0&&(r+=e)<0&&(r=0);r>>0,r=e-1;for(;r>=0;--r)if(this[r]===t)return r;return-1};if(!Array.isArray)Array.isArray=function(t){return Object.prototype.toString.call(t)==="[object Array]"};if(!Date.prototype.toISOString)Date.prototype.toISOString=function(){function t(t,e){return("0000000"+t).slice(-(e||2))}return function e(){var e=this.getUTCFullYear(),r="";if(e>9999)r="+"+t(e,6);else if(e<0)r="-"+t(-e,6);else r=t(e,4);return[r,t(this.getUTCMonth()+1),t(this.getUTCDate())].join("-")+"T"+[t(this.getUTCHours()),t(this.getUTCMinutes()),t(this.getUTCSeconds())].join(":")+"."+t(this.getUTCMilliseconds(),3)+"Z"}}();if(typeof ArrayBuffer!=="undefined"&&!ArrayBuffer.prototype.slice)ArrayBuffer.prototype.slice=function(t,e){if(t==null)t=0;if(t<0){t+=this.byteLength;if(t<0)t=0}if(t>=this.byteLength)return new Uint8Array(0);if(e==null)e=this.byteLength;if(e<0){e+=this.byteLength;if(e<0)e=0}if(e>this.byteLength)e=this.byteLength;if(t>e)return new Uint8Array(0);var r=new ArrayBuffer(e-t);var i=new Uint8Array(r);var n=new Uint8Array(this,t,e-t);if(i.set)i.set(n);else while(t<=--e)i[e-t]=n[e];return r};if(typeof Uint8Array!=="undefined"&&!Uint8Array.prototype.slice)Uint8Array.prototype.slice=function(t,e){if(t==null)t=0;if(t<0){t+=this.length;if(t<0)t=0}if(t>=this.length)return new Uint8Array(0);if(e==null)e=this.length;if(e<0){e+=this.length;if(e<0)e=0}if(e>this.length)e=this.length;if(t>e)return new Uint8Array(0);var r=new Uint8Array(e-t);while(t<=--e)r[e-t]=this[e];return r};var IE_SaveFile=function(){try{if(typeof IE_SaveFile_Impl=="undefined")document.write([' - + +