make dist.

This commit is contained in:
Jim 2017-03-07 10:47:50 +08:00
parent 5d09783687
commit 5c15f2c016
12 changed files with 83 additions and 60 deletions

3
dist/ods.js vendored

@ -114,7 +114,8 @@ var rencoding = {
var rencstr = "&<>'\"".split("");
// TODO: CP remap (need to read file version to determine OS)
var encregex = /&[a-z]*;/g, coderegex = /_x([\da-fA-F]+)_/g;
/* 22.4.2.4 bstr (Basic String) */
var encregex = /&[a-z]*;/g, coderegex = /_x([\da-fA-F]{4})_/g;
function unescapexml(text){
var s = text + '';
return s.replace(encregex, function($$) { return encodings[$$]; }).replace(coderegex,function(m,c) {return String.fromCharCode(parseInt(c,16));});

2
dist/ods.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/ods.min.map vendored

File diff suppressed because one or more lines are too long

28
dist/xlsx.core.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

40
dist/xlsx.full.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

16
dist/xlsx.js vendored

@ -1415,7 +1415,8 @@ var rencstr = "&<>'\"".split("");
// TODO: CP remap (need to read file version to determine OS)
var unescapexml = (function() {
var encregex = /&[a-z]*;/g, coderegex = /_x([\da-fA-F]+)_/g;
/* 22.4.2.4 bstr (Basic String) */
var encregex = /&[a-z]*;/g, coderegex = /_x([\da-fA-F]{4})_/g;
return function unescapexml(text) {
var s = text + '';
return s.replace(encregex, function($$) { return encodings[$$]; }).replace(coderegex,function(m,c) {return String.fromCharCode(parseInt(c,16));});
@ -12597,6 +12598,7 @@ function format_cell(cell, v) {
function sheet_to_json(sheet, opts){
var val, row, range, header = 0, offset = 1, r, hdr = [], isempty, R, C, v;
var o = opts != null ? opts : {};
var skipUndefined = o.skipUndefined === undefined ? true : o.skipUndefined;
var raw = o.raw;
if(sheet == null || sheet["!ref"] == null) return [];
range = o.range !== undefined ? o.range : sheet["!ref"];
@ -12621,7 +12623,7 @@ function sheet_to_json(sheet, opts){
case 2: hdr[C] = cols[C]; break;
case 3: hdr[C] = o.header[C - r.s.c]; break;
default:
if(val === undefined) continue;
if(skipUndefined && val === undefined) continue;
hdr[C] = format_cell(val);
}
}
@ -12637,7 +12639,13 @@ function sheet_to_json(sheet, opts){
}
for (C = r.s.c; C <= r.e.c; ++C) {
val = sheet[cols[C] + rr];
if(val === undefined || val.t === undefined) continue;
if(val === undefined || val.t === undefined) {
if (!skipUndefined) {
row[hdr[C]] = o.defaultValue || '';
isempty = false;
}
continue;
}
v = val.v;
switch(val.t){
case 'e': continue;
@ -12645,7 +12653,7 @@ function sheet_to_json(sheet, opts){
case 'b': case 'n': break;
default: throw 'unrecognized type ' + val.t;
}
if(v !== undefined) {
if(!skipUndefined || v !== undefined) {
row[hdr[C]] = raw ? v : format_cell(val,v);
isempty = false;
}

20
dist/xlsx.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/xlsx.min.map vendored

File diff suppressed because one or more lines are too long

@ -12648,6 +12648,7 @@ function format_cell(cell/*:Cell*/, v/*:any*/) {
function sheet_to_json(sheet/*:Worksheet*/, opts/*:?Sheet2JSONOpts*/){
var val, row, range, header = 0, offset = 1, r, hdr = [], isempty, R, C, v;
var o = opts != null ? opts : {};
var skipUndefined = o.skipUndefined === undefined ? true : o.skipUndefined;
var raw = o.raw;
if(sheet == null || sheet["!ref"] == null) return [];
range = o.range !== undefined ? o.range : sheet["!ref"];
@ -12672,7 +12673,7 @@ function sheet_to_json(sheet/*:Worksheet*/, opts/*:?Sheet2JSONOpts*/){
case 2: hdr[C] = cols[C]; break;
case 3: hdr[C] = o.header[C - r.s.c]; break;
default:
if(val === undefined) continue;
if(skipUndefined && val === undefined) continue;
hdr[C] = format_cell(val);
}
}
@ -12688,7 +12689,13 @@ function sheet_to_json(sheet/*:Worksheet*/, opts/*:?Sheet2JSONOpts*/){
}
for (C = r.s.c; C <= r.e.c; ++C) {
val = sheet[cols[C] + rr];
if(val === undefined || val.t === undefined) continue;
if(val === undefined || val.t === undefined) {
if (!skipUndefined) {
row[hdr[C]] = o.defaultValue || '';
isempty = false;
}
continue;
}
v = val.v;
switch(val.t){
case 'e': continue;
@ -12696,7 +12703,7 @@ function sheet_to_json(sheet/*:Worksheet*/, opts/*:?Sheet2JSONOpts*/){
case 'b': case 'n': break;
default: throw 'unrecognized type ' + val.t;
}
if(v !== undefined) {
if(!skipUndefined || v !== undefined) {
row[hdr[C]] = raw ? v : format_cell(val,v);
isempty = false;
}

13
xlsx.js

@ -12598,6 +12598,7 @@ function format_cell(cell, v) {
function sheet_to_json(sheet, opts){
var val, row, range, header = 0, offset = 1, r, hdr = [], isempty, R, C, v;
var o = opts != null ? opts : {};
var skipUndefined = o.skipUndefined === undefined ? true : o.skipUndefined;
var raw = o.raw;
if(sheet == null || sheet["!ref"] == null) return [];
range = o.range !== undefined ? o.range : sheet["!ref"];
@ -12622,7 +12623,7 @@ function sheet_to_json(sheet, opts){
case 2: hdr[C] = cols[C]; break;
case 3: hdr[C] = o.header[C - r.s.c]; break;
default:
if(val === undefined) continue;
if(skipUndefined && val === undefined) continue;
hdr[C] = format_cell(val);
}
}
@ -12638,7 +12639,13 @@ function sheet_to_json(sheet, opts){
}
for (C = r.s.c; C <= r.e.c; ++C) {
val = sheet[cols[C] + rr];
if(val === undefined || val.t === undefined) continue;
if(val === undefined || val.t === undefined) {
if (!skipUndefined) {
row[hdr[C]] = o.defaultValue || '';
isempty = false;
}
continue;
}
v = val.v;
switch(val.t){
case 'e': continue;
@ -12646,7 +12653,7 @@ function sheet_to_json(sheet, opts){
case 'b': case 'n': break;
default: throw 'unrecognized type ' + val.t;
}
if(v !== undefined) {
if(!skipUndefined || v !== undefined) {
row[hdr[C]] = raw ? v : format_cell(val,v);
isempty = false;
}