forked from SheetJS/sheetjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- dist scripts properly export library - XLS/XLSB formulae quote sheet names containing spaces - skipHidden ported to streaming CSV write - updated codepage to 1.11.0 - flow and TS updates - webpack demo example using dist scripts - requirejs demo
- Loading branch information
1 parent
0f39f28
commit 9358214
Showing
59 changed files
with
1,264 additions
and
762 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
bits/ | ||
demos/ | ||
dist/ | ||
docbits/ | ||
misc/ | ||
node_modules/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
XLSX.version = '0.11.0'; | ||
XLSX.version = '0.11.1'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
var RTF = (function() { | ||
function rtf_to_sheet(d/*:RawData*/, opts)/*:Worksheet*/ { | ||
switch(opts.type) { | ||
case 'base64': return rtf_to_sheet_str(Base64.decode(d), opts); | ||
case 'binary': return rtf_to_sheet_str(d, opts); | ||
case 'buffer': return rtf_to_sheet_str(d.toString('binary'), opts); | ||
case 'array': return rtf_to_sheet_str(cc2str(d), opts); | ||
} | ||
throw new Error("Unrecognized type " + opts.type); | ||
} | ||
|
||
function rtf_to_sheet_str(str/*:string*/, opts)/*:Worksheet*/ { | ||
throw new Error("Unsupported RTF"); | ||
} | ||
|
||
function rtf_to_workbook(d/*:RawData*/, opts)/*:Workbook*/ { return sheet_to_workbook(rtf_to_sheet(d, opts), opts); } | ||
function sheet_to_rtf() { throw new Error("Unsupported"); } | ||
|
||
return { | ||
to_workbook: rtf_to_workbook, | ||
to_sheet: rtf_to_sheet, | ||
from_sheet: sheet_to_rtf | ||
}; | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# RequireJS | ||
|
||
The minified dist files trip up the RequireJS mechanism. To bypass, the scripts | ||
automatically expose an `XLSX` variable that can be used if the require callback | ||
argument is `_XLSX` rather than `XLSX`: | ||
|
||
```js | ||
require(["xlsx.full.min"], function(_XLSX) { /* ... */ }); | ||
``` | ||
|
||
This demo uses the `r.js` optimizer to build a source file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!DOCTYPE html> | ||
<!-- xlsx.js (C) 2013-present SheetJS http://sheetjs.com --> | ||
<!-- vim: set ts=2: --> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<title>JS-XLSX Live Demo</title> | ||
<style> | ||
#drop{ | ||
border:2px dashed #bbb; | ||
-moz-border-radius:5px; | ||
-webkit-border-radius:5px; | ||
border-radius:5px; | ||
padding:25px; | ||
text-align:center; | ||
font:20pt bold,"Vollkorn";color:#bbb | ||
} | ||
#b64data{ | ||
width:100%; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<b>JS-XLSX Live Demo</b><br /> | ||
Output Format: | ||
<select name="format"> | ||
<option value="csv" selected> CSV</option> | ||
<option value="json"> JSON</option> | ||
<option value="form"> FORMULAE</option> | ||
</select><br /> | ||
|
||
<div id="drop">Drop a spreadsheet file here to see sheet data</div> | ||
<p><input type="file" name="xlfile" id="xlf" /> ... or click here to select a file</p> | ||
<textarea id="b64data">... or paste a base64-encoding here</textarea> | ||
<input type="button" id="dotext" value="Click here to process the base64 text" onclick="b64it();"/><br /> | ||
Advanced Demo Options: <br /> | ||
Use Web Workers: (when available) <input type="checkbox" name="useworker" checked><br /> | ||
Use Transferrables: (when available) <input type="checkbox" name="xferable" checked><br /> | ||
Use readAsBinaryString: (when available) <input type="checkbox" name="userabs" checked><br /> | ||
<pre id="out"></pre> | ||
<br /> | ||
<script src="require.js"></script> | ||
<script> | ||
var XW = { | ||
/* worker message */ | ||
msg: 'xlsx', | ||
/* worker scripts */ | ||
rABS: './xlsxworker2.js', | ||
norABS: './xlsxworker1.js', | ||
noxfer: './xlsxworker.js' | ||
}; | ||
</script> | ||
<script src="requirejs-built.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
webpack.js | ||
webpack.min.js | ||
*.out.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
TOOL=webpack | ||
WPOPTS=--display-modules --display-reasons --profile | ||
.PHONY: all | ||
all: $(TOOL).min.js | ||
all: $(TOOL).min.js core.out.js full.out.js | ||
|
||
$(TOOL).min.js: $(TOOL).js | ||
uglifyjs $< > $@ | ||
|
||
.PHONY: $(TOOL).js | ||
$(TOOL).js: | ||
webpack main.js --output-filename $@ --display-modules --profile | ||
webpack main.js --output-filename $@ $(WPOPTS) | ||
|
||
.PHONY: core.out.js full.out.js | ||
core.out.js full.out.js: %.out.js: %.js | ||
webpack $< --output-filename $@ $(WPOPTS) |
Oops, something went wrong.