Commit Graph

362 Commits

Author SHA1 Message Date
Paul Ishenin
233eae2f4e !rows processing (fixes )
based on comment from @sheetjsdev:
https://github.com/SheetJS/js-xlsx/issues/81#issuecomment-48360276

fixes  h/t @neversaid
2017-03-31 00:00:42 -04:00
Benjamin Boudreau
563efd88f1 XLSX write sheetFormat option (fixes )
note: @sheetjsdev authored commit, original PR date/author used
2017-03-30 23:30:25 -04:00
4743085cb5 XLSB/XLSM sheet rels and hyperlinks
- XLSB/XLSM workbook/worksheet code names for VBA
- XLSX/XLSB write hyperlinks
- updated CFB to 0.11.1

Fixes:
- fixes  h/t @johnothetree (XLSM CodeName)
- fixes  h/t @SheetJSDev (Write Hyperlinks)
- fixes  h/t @MayaGi (XLSX Write Hyperlinks)
- fixes  h/t @slonoed (XLSX Write Hyperlinks)
2017-03-30 20:47:35 -04:00
65f1c7e58b HTML DOM Element read
- DOM <table> element parsing (fixes  h/t @axolo)
- removed InterfaceHdr check (fixes  h/t @Batistleman)
- gitbook docs
2017-03-29 15:14:15 -04:00
b89a876076 version bump 0.9.7: write features
- write !cols widths : XLSX XLSB XLML
- write hyperlinks   :           XLML
- XLSB convert date cell to numeric on write
- fixed issue with assigning self in jszip

issues:
- closes  h/t @jscheid
- closes  h/t @asfman
2017-03-28 18:03:03 -04:00
085150db3b DBF from js-harb
- merged DBF from js-harb (fixes  h/t @joefreire)
- updated codepage to 1.8.0
- stub for macro/dialog sheet parsing (fixes  h/t @GenoD)
- XLSB/XLSM write vbaraw (fixes  h/t @johnothetree)
- phantomjs demo (fixes  h/t @machinewu)
2017-03-28 00:41:01 -04:00
663270b762 XLS/XLSX/XLSB Interpret Chartsheets as Data Tables
- chartsheets are now stored as sheets with "!type" set to "chart"
- fixed Strict XML Workbook Relationships
- stubbed support for dialog and macro sheets
- removed legacy XLS `!range` field
2017-03-27 17:41:14 -04:00
471275b761 version bump 0.9.6
- new ExtendScript demo
- Base64 shim improvements h/t @davidchambers @sheetjsdev
- jszip improvements to support extendscript
2017-03-25 18:18:50 -04:00
OliverZ
1038400859 International Properties
Excel localizes "Worksheets" and other names in XLS[XMB] Properties

Fixes 

note: @oliverz contributed a file with "Arbeitsblätter"
      @sheetjsdev tested against test suite, PR  details used
2017-03-25 14:32:59 -04:00
70c48a74b9 API Improvements
- `aoa_to_sheet` function (fixes  h/t @fonzy2013 @rvdwijngaard)
- `writeFileAsync` function (fixes  h/t @barbalex)
- `sheet_to_json` tests + docs + blankrows (fixes  h/t @EEaglehouse)
- write number format scan now includes every index >= 50
- propagate SSF IE8 fixes (fixes  h/t @sheetjsdev)
- update shim for extendscript (see  h/t @firas3d)
- more flow type definitions
2017-03-24 21:36:40 -04:00
Jim
9ae3a64af8 sheet_to_json default value
uses `defval` key in options object

fixes  h/t @jimjin
fixes  h/t @jimjin
fixes  h/t @jtadmor
2017-03-23 01:58:08 -04:00
69782ca211 version bump 0.9.5: IE8+ browser tests
- minor changes to work around IE incompatibilities
- updated shim and browser tests
2017-03-22 21:18:40 -04:00
LieJiang
d83986d31c SSF undefined string guard (fixes )
note: @sheetjsdev authored commit, original PR date/author used
2017-03-22 11:23:13 -04:00
a846f7184d utility improvements
- sheet_to_csv strip option (fixes  h/t @davidworkman9)
- sheet_to_json dateNF option (fixes  h/t @rotemtam)
- file type detection expanded to 4 byte magic number
2017-03-22 03:50:11 -04:00
c7010eec35 XLS/XLSX/XLSB/XLML cellDates support
- uniform number->date cell conversion
- update SSF to 0.9.0 (for is_date)
- namespaced rich str xml
- license file changed to appease GH automatic license detector

|     id      | author       | comment                                 |
|:------------|:-------------|:----------------------------------------|
| closes  | @Aymkdn      | XLSX cellDates + SSF.is_date            |
| closes  | @elad        | same as  h/t @SystemParadox         |
| closes   | @vratiu      | same as                             |
| closes  | @varunoberoi | raw json output uses date               |
2017-03-21 16:44:35 -04:00
3cacfc406c version bump 0.9.4
- changed regexes to handle odd XML (fixes  h/t @chk- @imsaquib)
- XLML roundtrip 1252 encoding
- browser core tests added to main repo
2017-03-20 17:42:12 -04:00
245dd7fd82 Documentation improvements
- multiformat column widths (fixes  h/t @sheeeeep)
- skip nested BIFF files
2017-03-20 05:02:25 -04:00
František Žiačik
ea7a951506 better dup check (fixes ) 2017-03-19 19:48:49 -04:00
Alex Litskevich
8938336e1c XLSX Defined Names
closes  h/t @alitskevich
2017-03-19 13:29:04 -04:00
Pieter Sheth-Voss
f90fbd32e5 Parse XLSX Styles
some changes picked from 
2017-03-19 02:50:30 -04:00
7888070603 explicitly share styles and themes 2017-03-18 19:25:50 -04:00
5a3774e36e Formula write support
- XLSX/XLML/ODS/CSV formula write
- XLS Array/Formula record parsing
- ODS to/from CSF formula conversion
- XLML parse negative dates
- formula multiformat and roundtrip tests
- update SSF

Closes issues:
- closes  h/t @omershelef
- closes  h/t @akaustel
- closes  h/t @wawanopoulos
- closes  h/t @florf
- closes  h/t @christocracy
- closes  h/t @johnyesberg
- closes  h/t @alexanderknapstein
2017-03-17 20:45:06 -04:00
ea1873e572 version bump 0.9.3: multiformat alignment
- merge cells and stubs consistency
- character entity decoding
- cellDates processing for other formats
2017-03-15 21:17:24 -04:00
d3eaa62d45 unify stub cells with type z
- fixes  h/t @jugaltheshah @pimpelsang
- fixes  h/t @xushuheng0623 @abhishek1234321 @mateuszkrzeszowiec
- fixes  h/t @volodymyrl @elad
2017-03-15 04:19:02 -04:00
MURAKAMI Masahiko
05185e13f2 Fixed vbaraw parsing
- fixes  h/t @fossamagna
- fixes  h/t @aleramesh
2017-03-14 14:40:29 -04:00
7cb978b846 XLML write support
- XLML write (fixes  h/t @SheetJSDev)
- removed old iteration style from README (see )
- CellXF & StyleXF fields (fixes  h/t @ronnywang)
2017-03-14 04:19:51 -04:00
456ab63dc4 version bump 0.9.2: more bugfixes
- decode sheet name for XLSX and XLML (fixes  h/t @rocketmonkeys)
- XFExt (fixes  h/t @aetna-softwares @aimcom @baharudinafif)
- handle truly empty `<is>` elements (fixes  h/t @asksahil)
- pin version numbers for dependencies (fixes  h/t @nhtera)
- sed usage fix (see  h/t @liryna)
- fix hex2RGB substr indices (fixes  h/t @kamorahul)
- removed stale typescript files (see )
- reworked shift formula regex (fixed  h/t @SheetJSDev)
- README note on webpack codepage suppression (fixes  h/t @rusty1s)
- README note on WTF (fixes  h/t @livesoftware)
2017-03-13 02:46:37 -04:00
8cd9e81569 flow annotations
no errors when running flow!
2017-03-12 14:02:46 -04:00
Yusuke Kawasaki
4684914723 18.4.6 rPh CT_PhoneticRun (ignored)
added namespace to regex (closes  h/t @kawanet)

note: @sheetjsdev authored commit, original PR date/author used
2017-03-11 13:08:52 -05:00
71c23d9e2a version bump 0.9.1: cpexcel update
- codepage upgraded to 1.7.0
- remove require dark pattern (closes  h/t @keyiis)
- test for JSON header disambiguation
- utility functions documentation (fixes  h/t @dskrvk)
2017-03-10 18:39:17 -05:00
Patrick Lam
b0a72c8b0e disambiguate duplicate header names
closes  h/t @patricklam

note: @sheetjsdev authored commit, original PR date/author used
2017-03-10 14:15:39 -05:00
Takashi Fujita
d4829476f7 fix parse_si for Japanese excel files
fixes  h/t @tgfjt .  Original message:

using #parse_si 'Phonetic Properties' items for Japanese excel files,
the Phonetic items(KATAKANA) represents pronunciation hints of String(KANJI).

```xml
<si>
 <t>漢字(japanese KANJI)</t>
 <rPh>
  <t>フリガナ(this is KATAKANA for pronounciation:漢字)</t>
 </rPh>
</si>
```

It expected get '漢字' . but got '漢字フリガナ'.
so replace these string, because this can be caused by only `<rPh>`.
2017-03-10 13:27:11 -05:00
4880e9219f more formula parsing logic
- added more function argc counts and cleaned up error rendering
- disabled XLS error on MTRSettings (fixes  h/t @dskrvk)
- handle more unexpected XML empty tags (fixes  h/t @rahulsindc)
- throw error if SheetNames is not unique (fixes  h/t @zippy1981)
2017-03-10 03:39:51 -05:00
54b528eaed version bump 0.9.0: merged ODS into XLSX
The optional ODS module has been completely merged into xlsx.js and the
corresponding scripts have been removed.  The new xlsx.js file provides
appropriate ODS exports, so fixing is a matter of removing ods.js refs.
2017-03-09 20:09:18 -05:00
7b6fb7b327 version bump 0.8.8: HTML
- read MSO HTML (fixes  h/t @vineetl fixes  h/t @tienne)
- roll out xml namespace fix (closes  h/t @PierreOCXP)
- cellDates clarifications
2017-03-09 00:24:32 -05:00
Giovanni Bruno
d2b5506dec parse rich strings with bare boolean tags
h/t @giowe fixes 

note: @sheetjsdev authored commit, original PR date/author used
2017-03-07 14:09:28 -05:00
Francis Crick
f113fb1bf1 fixing an issue where _xd_ is getting escaped 2017-03-05 18:39:56 -08:00
3d1f0f79ca version bump 0.8.7: bundlers
demos for browserify/requirejs/webpack
2017-03-04 20:14:08 -05:00
5ae6b1965b version bump 0.8.6: module flush
- fixes  h/t @FredrikL @mooyoul
- pin npm version in travis, see https://github.com/npm/npm/issues/15855
- updated CFB (fixes  h/t @e12009)
- remove BOM for some SpreadsheetML files

case insensitive zip file search fixes:
- fixes  h/t @chikh
- fixes  h/t @chikh
- fixes  h/t @duzun
2017-02-24 02:33:01 -08:00
7408679252 version bump 0.8.5: FODS/UOS and IE6+ support
- read and write support for Flat ODS files
- read support for Uniform Office Spreadsheet (UOS)
- IE6-8 cell regex split fix (fixes    h/t @Aymkdn @C0d3ine)
- replace substr negative index with slices (fixes  h/t @Aymkdn)
- ODS parsexmltag ignores ext overrides (fixes  h/t @lgodard)
- csv can be written using write/writeFile with csv type
- added `type` to README (fixes  h/t @tomkel)
2017-02-21 22:57:59 -08:00
d7ecca0e8b version bump 0.8.4: formula parsing
- BIFF 2-12 formula parsing
- more content type coverage
- unified `.f` form: A1-style string
- `.F` field for array formulae
- formula output groups array formulae
- bin script -A --arrays output JS row objects
- whitespace robustness in inline string xml
- UTF-8 parsing in rich text runs (fixes  h/t @fuchsc)
- bold/italic/underline accept null val attr (h/t @qqilihq)
- sst trimming (fixes  h/t @shakhal @oising)
2017-02-19 12:36:32 -08:00
ab2ecebac9 version bump 0.8.3: BIFF2 read/write
- basic support for parsing BIFF2-4
- basic support for writing BIFF2
- cleaned up some bad substr uses for IE6 compatibility
- added flow type annotations for xlsx.flow.js
- added numerous null guards (fixes  h/t @martinheidegger)
- README cleanup (fixes  h/t @oliversalzburg)
- pin jszip to local version (closes  h/t @limouri)

bower issues:

|  id  | author            | comment                                   |
|-----:|:------------------|:------------------------------------------|
|  | @kkirsche         | fixes  by removing version from json  |
|  | @vincentcialdella | fixes  by changing default script     |
|  | @owencraig        | fixes  by using xlsx.core.min.js      |

format issues:

|  id  | author            | comment                                   |
|-----:|:------------------|:------------------------------------------|
|  | @morstaine        | fixes  by reworking related parse fns |
|  | @JanSchuermannPH  | fixes  detect FullPaths h/t @Mithgol  |
|  | @basma-emad       | fixes  offending file used `x:` NS    |
2017-02-10 11:23:29 -08:00
86d6a093f0 version bump 0.8.2: ODS and cleanup
- README and example cleanup
- basic XLSB and ODS write support
- flow typecheck for ODS file
  Note: xlsx.js flow fails: https://github.com/facebook/flow/issues/380
- exposed jszip compression (fixes , closes )

README issues:

|  id  | author         | comment                                      |
|-----:|:---------------|:---------------------------------------------|
|  | @sao93859      | closes                                   |
|  | @alexanderchan | closes  corrected examples               |
|  | @cskaandorp    | changed saveAs example to match write tests  |
|  | @dskrvk        | added note about s2roa h/t @LeonardoPatignio |
|  | @jimmywarting  | closes  adapted rABS examples with rAAS  |

ODS file format issues:

|  id  | author         | comment                                      |
|-----:|:---------------|:---------------------------------------------|
|  | @user4815162342| closes  h/t @ziacik                      |
|  | @paulproteus   | closes  rudimentary ODS write support    |
|  | @ziacik        | closes                                   |
|  | @ziacik        | closes  use JSON when available          |
|  | @ziacik        | closes                                   |
|  | @think01       | closes                                   |
|  | @mdamt         | closes  duplicate cells should be copied |
|  | @RB-Lab        | closes                                   |
|  | @lgodard       | closes  thanks to other changes          |
2017-02-03 15:50:45 -05:00
2a756fffcc version bump 0.8.1: fixes to support node 4+
- codepage updated to 1.6.0 (latest)
- clean up Makefile
- adapted .travis.yml to support 0.8
- removed test files that drifted from baseline
- removed XLSB pseudo-inverse tests due to fails in node 4+
2016-12-31 03:20:45 -05:00
0d38d4c0a0 version bump 0.8.0: unification with js-xls 0.7.5 2015-04-02 16:32:22 -04:00
harbhub
61b17e6d9d handle internal links (fixes ) 2014-11-13 03:44:29 -05:00
f9097d403b version bump 0.7.12: cell type 'd'
- more structure in the theme parsing
- cellDates option on parsing side creates date cells
- cellDates option on writing side creates cells with type 'd'
- cell types clarified, type 'str' phased out
- README clarifications
- more tests to ensure date consistency
- more test cases for ODS
2014-10-26 01:26:18 -04:00
61d2e55cc6 version bump 0.7.11: ODS hooks
- ODS hooks + very basic parser (ods.js)
- handle implicit row/col spec (h/t @EarlJS, see http://git.io/2lwOuA)
2014-10-09 22:22:38 -04:00
Mo de Ruiter
5942587509 Remove global variable "cellen" 2014-10-07 17:12:04 +02:00
19f3a6ae76 version bump 0.7.10: cleanup
- build bower.json (h/t @jjstewart, following the change from js-xls)
- README clarification on !ref (fixes )
- XLSX treat empty <v/> tags as empty cells (h/t @clarlars)
- XLSX write !merges array (fixes )
2014-08-26 13:40:04 -04:00
127a430e79 version bump 0.7.9: updating jszip to 2.4.0
Fixes 
2014-08-21 11:44:30 -04:00
d4999ac421 version bump 0.7.8: docs, defaults, details
- browser shim updated (h/t @wintersm for discovering this)
- smart tag ignores (h/t @lostinplace)
- sheet_to_row_object_array bugfix (fixes , h/t @ChrisBurkeBSD)
- README improved
- baltic and vietnamese codepages: updated codepage to 1.3.4
- iOS Numbers can handle inline strings -> disabling SST by default
- avoid Buffer accessors (see https://github.com/joyent/node/issues/7809)
- caching certain hot regexes
2014-07-28 09:22:32 -04:00
Chris Wheeler
19c22fa34a Prevented crash on wbfactoid 2014-07-14 11:53:04 -04:00
6bc24374b9 version bump 0.7.7: needs more cowbell
- parsexmltag and other hot functions now better optimized for v8
- monomorphic functions (different types -> different funcs)
- more efficient decode_range implementation when source is trusted
- regular expressions cached and simplified without breaking correctness
- more efficient utf8 techniques when available
- XLSX: large functions broken down into sub-functions (e.g. `parse_ws_xml`)
- XLSB: avoid unnecessary binds
- XLSB: assume no exotic codepage exists (no one else tries to write XLSB)
- demo exposes rABS / worker / transferable options
- more tests
- jszip updated to 2.3.0
- SSF updated to 0.8.1
- codepage updated to 1.3.1
2014-06-29 14:29:45 -04:00
aa46ada7b8 version bump 0.7.6-i: more browserify
h/t @volodymyrl
2014-06-27 11:11:33 -04:00
662c550d9e version bump 0.7.6-h: browserify issues
- updated codepage to 1.3.1 (h/t @volodymyrl)
2014-06-27 09:58:43 -04:00
87bbe636d3 version bump 0.7.6-a: npm is flaky [ci skip]
The original push showed up as failed, pushing again
2014-06-05 03:25:49 -04:00
44b55c5c56 version bump 0.7.6: IE compatibility
- jscs linting to check for trailing comma issues (h/t @altkatz)
- IE: phased out lazy string indexing in favor of charCodeAt
- XLSX: replaced certain operations in hot functions with faster alternatives
- updated SSF to 0.7.1
- improved coverage in tests
2014-06-05 03:06:20 -04:00
altkatz
a96b723cda IE Compatibility and notes 2014-06-03 14:44:08 -04:00
009946339c version bump 0.7.5: more performance
- eliminated functional constructs in hot functions
- format try-catch block extracted into new function
- cpexcel + codepage updated to 1.2.0
- more efficient (and correct) clean implementation of RGB/HSL/tint algorithms
- xlsx binary --all option enables every extra formatting and saving option
- column widths parsed and saved (requires cellStyles:true)
2014-06-02 01:19:07 -04:00
d882757c0a enforcing 31 character sheet name restriction 2014-05-31 11:44:56 -04:00
a3d9c4d9ac version bump 0.7.4: I/O improvements
- basic style + theme parsing, option .cellStyles (h/t @eladxxx)
- more XLSB writing stubs
- correct resolution of .xml/.bin files
- sheet_to_json improvements from js-xls
o opts.header = 1 for array of arrays
o opts.header = 'A' for spreadsheet column labels
o custom opts.header array for custom labels
o opts.range = n starts from row n
o opts.range = range restricts writer to work within the specified range
- Makefile adapted to work with cygwin on windows
2014-05-29 18:30:03 -04:00
eladxxx
5e9bca78f2 Initial implementation of style/theme parsing.
Huge thanks to @SheetJS for guidance on how to do all of this!

Experimental, guarded by the cellStyles option (default: false)
2014-05-29 09:18:23 +03:00
489b9cdde4 version bump 0.7.3: performance
- require cpexcel instead of full codepage library
- hardcode the unescapexml regexp
- utf8read short circuit for ASCII strings
- cellFormulae also acts on XLSX/XLSM
- bin/xlsx.njs do not process formulae unless requested
2014-05-25 02:04:08 -07:00
e1f8dbb863 version bump 0.7.2: bughunt
- read BOM, handle UTF16LE-encoded XML
- handle namespaces in [Content_Types].xml
- parse workbook rels to determine sheet files
- numbers OSX boolean support (apparently requires "0" or "1")
- XLSX force "General" style to be serialized, omit implied cell type and style
- updated SSF to 0.7.0 (h/t @sysarchitect)
- updated jszip to 2.2.2
- removed old tests/files path, replaced with test_files
- themes written
- ignore potential existence of thumbnail when calculating relationship ids
2014-05-22 05:16:51 -07:00
fbb2574191 removed stray comma (fixes ) 2014-05-17 11:57:29 -07:00
a1990758a0 version bump 0.7.1: test now ignores missing files
apparently openpyxl removed a few test files from their suite :/
2014-05-15 20:02:26 -07:00
d15b81e0e9 version bump 0.7.0: Basic write support
- very basic XLSX / XLSM write support with roundtrip tests (XLSB stubs)
- reorganized source tree
- new XLSB range check ensures that A1 is not emitted for empty sheets
- SSF table emitted in output (consistent with js-xls)
- CLI supports writing

Backwards-incompatible changes:
o new Property aliases (see CORE_PROPS and EXT_PROPS)
o FILETIME custom properties parsed as JS Dates
o `xlsx2csv` -> `xlsx` (and `bin/xlsx{2csv,}.njs`)
2014-05-15 17:33:34 -07:00
b645f6ef98 version bump 0.6.2: bits reorganization
- updated SSF to 0.6.5
- XLSB 'dbcs' uses codepage
- README bugfix (h/t @noodles)
- new tests: rawjson and json baselines generated by hand
- single cell ranges are encoded as cells ("A1" instead of "A1:A1") (h/t @clxl)
- source code alignment with js-xls
2014-05-03 11:51:10 -07:00
6801958327 version bump 0.6.1: dist cleanup
- XLSX format strings properly handles literal UTF8 chars (test apachepoi_49273)
- codepage updated to 1.0.0
- jszip updated to 2.2.0 (node-only)
- dist now contains jszip and codepage dependencies
- updated test_files
2014-04-22 18:37:08 -07:00
dc2d391fbc version bump 0.6.0: avoid globals
- all utilities are now wrapped in XLSX object
- codepage handling (h/t @xch89820)
- formula tag attributes (h/t @shaunthomas999)
- hyperlink support (h/t @sysarchitect, fixes )
- coverage test spinner (to prevent travis timeouts)
2014-04-15 02:04:03 -07:00
xu.chenhui
732cc073cf Fix a variable is undefined forever 2014-04-05 04:52:24 -04:00
0af8b20f0e version bump 0.5.17: do not throw for unknown tags
Fixes 
2014-04-04 16:03:43 -07:00
03588e332c version bump 0.5.16: content types et al
- added `bookVBA` option
- content type default corner cases
- fleshed out content type list
- XML parsing ignores namespaces
- updated SSF to 0.6.4
- testA tets enforce sheetRows=10 (shorter tests)
2014-04-03 15:51:54 -07:00
56b10f3616 version bump 0.5.15: converging tests
- test script normalized
- proper handling of empty sheet ranges
- xlsb sheetStubs and calcchain parsing
- jshint passes
- updated SSF to 0.6.2
2014-03-29 15:53:15 -07:00
d462e18846 version bump 0.5.14: XLSB comments
- SSF updated to 0.6.1 (h/t @notatestuser)
- more tests and related XLSB records
- XLSB plaintext comment and author
- preliminary work for XLSB formats
2014-03-28 19:05:50 -07:00
37cc0006f2 version bump 0.5.13: merge cells
merge ranges stored in !merges
- XLSB BrtMergeCell
- XLSX mergeCells (h/t @clayzermk1 for discussion )
- More XLSB Record cases
- merge test (js-xls test)
2014-03-23 14:30:00 -07:00
0a8304c076 version bump 0.5.12: pass AutoFilter tests
- XLSB Brt* records
2014-03-20 19:44:27 -07:00
2df14a3cce version bump 0.5.11: removing XLSB training wheels
- Brt* errors restored
- updated SSF to 0.5.9
2014-03-19 10:53:20 -07:00
49a37c9cf5 version bump 0.5.10-b: guard against corrupt SSF
- prevent overriding format code 0
- pivot table styles
2014-02-26 14:30:32 -05:00
ecee362e00 version bump 0.5.10-a: xlsx performance
- utf8 translation pushes to array rather than string concat
- large_strings test actually runs now (rather than blowing up)
2014-02-22 16:36:28 -05:00
ad20bf9b83 version bump 0.5.10: numbers iOS fix
Most writers write sheets to

xl/worksheets/sheetN.xml (where N is 1-indexed)

Numbers for iOS apparently writes to

xl/worksheets/sheet.xml (for first sheet)
xl/worksheets/sheetN.xml (N>1, 0-indexed -- sheet1.xml corresponds to 2nd sheet)

The right thing to do is to dig into workbook rels, but that's for another day
2014-02-21 11:41:37 -05:00
5c4b5827b5 version bump 0.5.9: sheetRows partial processing
- opts.sheetRows limits parsing; default (0) parses all rows
- added -n mode to xlsx2csv to control number of rows
- !ref will be adjusted; !fullref holds full range
2014-02-18 22:03:28 -05:00
33fbc389c5 version bump 0.5.8: bookFiles, default change
- option bookFiles controls whether zip files and keys are written to object
  *** Default has been flipped from "true" to "false"
- updated SSF to 0.5.8
- updated test_files to 20140216 (tests also look at 2013 XLSB)
- added dist files (make dist)
2014-02-17 03:44:22 -05:00
c0a8bef07c version bump 0.5.7: WTF-ification
- opts.bookDeps parses calc chain; now chains are not parsed by default
- getzipdata safe option obviates some try-catch blocks
- parsing cell type 'd' (h/t @malphettes, yet again :)
- opts.WTF throws on errors
2014-02-15 00:08:18 -05:00
Hugues Malphettes
a66ff4462e Support cells for the 'd' date type 2014-02-15 11:15:10 +08:00
2cb06e0fb8 version bump 0.5.6: custom properties
- custom properties (h/t @hmalphettes)
- new option bookProps
- added minified target (using uglify-js)
2014-02-14 01:25:46 -05:00
Hugues Malphettes
f5f9229ab2 Support custom properties
and return them as the hash workbook.Custprops
2014-02-14 11:39:03 +08:00
72d7707152 test cleanup 2014-02-13 03:48:41 -05:00
1dceeffbe9 version bump 0.5.5: sheet names optimization
- bookSheets option skips worksheet parsing (used by xlsx2csv)
- filtered tests (by file extension)
- XLSB formulae stubs
2014-02-13 01:22:42 -05:00
7e9f218f0f version bump 0.5.4: more options
- cellHTML controls HTML generation
- cellFormula controls formula output
- sheetStubs now defaults to false

- cleaned up unnecessary CSV quotes (fixed )
- updated test_files to 20140211
- updated SSF to 0.5.7
- removed unused main function
- removed some dead code
2014-02-12 01:09:42 -05:00
27af8a6d6a version bump 0.5.3: options!
- read and readFile accept opts argument:
o cellNF (default false) true -> cell.z holds number format string
o sheetStubs (default true) false -> stub cells not emitted

- name consistency (parse_workbook -> parse_wb_xml)
- README updates
- CONTRIBUTING notes added
2014-02-07 05:53:40 -05:00
99d879ee30 version bump 0.5.2: chores
- node jszip updated to 2.1.0 as per https://github.com/Stuk/jszip/issues/84
- travis 0.8 tests restored
- get_formulae ignores undefined values
- updated test_files to 20140206
2014-02-06 17:02:11 -05:00
972897c9ae version bump 0.5.1: field reorg
- cell.r holds the raw rich text, cell.h now holds the html
  (version 0.5.0 cell.raw -> cell.r, cell.r -> cell.h)
- similar changes to comments and XLSB generation
- removed some unused binary methods
2014-02-05 08:39:21 -05:00
242d5c655e xlsb browser fix 2014-02-04 11:10:42 -05:00
a96d8964e2 version bump 0.5.0: changes to cell interface
Cell object stores the formatted text in the `.w` field
- Raw format and types are preserved in the `.t`, `.v` fields
- Accessors have been updated to use the field

updates for older OOXML:
- ECMA-376 makes reference to old sstItem shared string item
- [MS-XLSX] xmlns for workbook
2014-02-03 19:00:44 -05:00
5c4bf62b83 version bump 0.4.3: shared strings and formatting
- XLSB basic support for number formats
- removed extraneous Strings table element
- formatting xml tags (rich_stress_test)
- updating test_files to 20130130
2014-01-31 06:52:18 -05:00
47dd984a6c version bump 0.4.2: using jszip module on node
- updated test_files
- new dependency in node: jszip
2014-01-29 22:06:14 -05:00
6990e66a56 version bump 0.4.1: more XLSB + cleanup
- updated ssf to 0.5.4
- cleaned up CSV string output
- added CSV tests (from test_files)
- passes lint
- inlineStr actually parses <is> block
- more XLSB bits
2014-01-29 01:00:09 -05:00
32d835ab81 version bump 0.4.0: very basic XLSB support
subfiles reshuffled (XLSB and XLSX/XLSM content separated)
2014-01-28 11:38:02 -05:00
844850abab version bump 0.3.10: xlsm support
different workbook content type, same representation
2014-01-25 17:28:27 -05:00
9c9aad5df3 version bump 0.3.9: general format used by default
(when no format or style is found, use general)

Other whitespace cleanup
2014-01-23 11:14:11 -05:00
a1ccaf511d version bump 0.3.8: more formatting
- updated SSF to 0.5.3

tests without baselines now try to generate CSV output
2014-01-23 01:20:19 -05:00
dd0a649c95 version bump 0.3.7: comments and coverage
- parsing comments (h/t @kinwahlai, @hmalphettes)
- XLSX.version now exposed in source
- code coverage
- updated SSF to 0.5.2
- updated tests/files
2014-01-21 23:58:26 -05:00
Hugues Malphettes
9efa4e2aae Update the range of the sheet when creating a cell for the content of its comments 2014-01-21 06:05:00 +07:00
Hugues Malphettes
5d43dffc79 Share the code for parsing the rich text and use it to parse the comments. 2014-01-18 21:45:49 +08:00
Hugues Malphettes
36f7080a68 Comments maybe contain an empty text tag 2014-01-18 16:29:51 +08:00
kinwah
59d9d9086b Support for parsing Comments
Comments parts listed in the [Content Types] are parsed.
Sheets's relationships are parsed.
Comments parts are correlated to their corresponding sheets parts.
Comments's contents are added to the ref'ed cells.
Rich text styling properties are currently ignored.

For example:
{
  "!ref": "A1:B3",
  "A1": {
    "v": 1,
    "t": "n"
  },
  "B1": {
    "v": "one",
    "t": "s",
    "r": "one",
    "c": [
      { "a": "Yegor Kozlov",
       "t": [ "Yegor Kozlov:",
              "\r\nfirst cell" ]
      }
    ]
  }
}
2014-01-16 10:30:01 +08:00
37753d8230 version bump 0.3.6: updating SSF
Addresses issue from LO Calc files generating invalid formats.

Link: https://github.com/SheetJS/js-xls/issues/24
2013-12-31 11:42:46 -05:00
afc4e281af version bump 0.3.5: updating SSF
- updated sheetnames tests
- updated ssf
2013-12-26 22:15:16 -05:00
e186e55341 version bump 0.3.4: updating SSF and related tests
version bump needed for npm
2013-12-16 11:38:10 -05:00
phola
02a0510c7b added check for module as well as require for node environment
see PR : https://github.com/SheetJS/js-xls/pull/23
2013-11-22 16:24:55 +00:00
7a3ca6a1ab added simple typescript reference file 2013-11-15 05:35:40 -08:00
0a70e1950f updated SSF dependency 2013-11-12 09:08:31 -08:00
b4f7030634 version bump 0.3.3: malformed xlsx parsing
Files that cannot be processed by Excel 2011 were removed from the suite
2013-11-12 08:29:55 -08:00
2cdd09f801 browser cleanup
utils should not be leaked
2013-11-09 13:21:03 -08:00
0b642080bf version bump 0.3.2: cleanup
- updated jszip to version 2 (20121106)
- added some .match guards (2)
- updated package.json
2013-11-06 00:09:23 -08:00
9e41edcbd2 cleaning up XLSX leak 2013-10-30 19:53:16 -07:00
fd6e3fa19b version bump 0.3.1: more cleanup
- xlsx2csv mirrors xls2csv options
- passes lint
- protection tag (1)
2013-10-30 15:42:27 -07:00
5d79aca2da version bump 0.2.8: range fix
Fixes 
2013-10-28 13:28:17 -07:00
dd9ac7d97f Removed unnecessary console.error statements
Fixes 

h/t Sebmaster for pointing this out
2013-10-10 02:53:15 -04:00
d85183c75f version bump 0.2.7-d: CSV generation issue
double-quotes are emitted as \"\"
2013-10-10 02:53:02 -04:00
81f89d6f4e version bump 0.2.7-c: basic html from sst
Very basic rendering.  Will ultimately be a separate component (to share code
with the more general formatting case)
2013-10-10 02:44:18 -04:00
55ba84d561 version bump 0.2.7-b: formatted string support
Mixed formatting stored in the shared string table.

Ultimately there will be a function to convert to HTML, but in the interim this
extracts plaintext and populates the right fields
2013-10-10 02:44:18 -04:00
247fd22c06 jshint passes 2013-10-10 02:44:18 -04:00
c5c3eebb09 LICENSE clarification; get_formulae function
To avoid future confusion, any code shared between this and the XLS project
relate to concepts discussed in ECMA-376 and hence fall within the purview of
this project's license.  A similar note should appear in the license for the
other projects.
2013-10-10 02:44:18 -04:00
5341a85f55 version bump 0.2.6: IE10 Drag and Drop support 2013-10-10 02:44:18 -04:00
1dc777f521 version bump 0.2.5: IE fix
IE apparently doesn't like [^], so the checks have been replaced with [^\u2603]
(eliminating ☃ the unicode snowman)
2013-10-10 02:44:18 -04:00
6716857483 shielding csv parser from unsupported formats 2013-10-10 02:44:18 -04:00
d54b9eaa71 version bump 0.2.4: CSV unwind JS escaping 2013-10-10 02:44:18 -04:00
e3301e1ff1 version bump 0.2.3: refactoring
- internally renamed count->Count and uniqueCount->Unique like xlsjs
- factored out xml bool parsing
2013-10-10 02:44:18 -04:00
8fc0f91395 Fixed xml parsing of '0' in date1904 2013-10-10 02:44:18 -04:00
a0b73e3d4f Version bump 0.2.1: date1904 support
date1904 flag now propagated to SSF
2013-10-10 02:44:18 -04:00
0d8fedfe1f added 'e' format from SSF 2013-10-10 02:44:18 -04:00
f47eafea77 minor cleanup 2013-10-10 02:44:18 -04:00
1071d03040 Corrected spec error in format code 14 2013-10-10 02:44:18 -04:00
cebc377e06 version bump 0.2.0: formatting
- Basic Format Code support (fixes )
- basic inlineStr parsing

note that the SSF stuff will ultimately rest in a separate repo
2013-10-10 02:44:18 -04:00
e556483faa more spec references 2013-10-10 02:44:18 -04:00
3925e53476 cleanup and spec references 2013-10-10 02:44:17 -04:00
3d0315358a whitespace cleanup 2013-10-10 02:44:17 -04:00
7d7d26a9cd fixing empty string regression
h/t @nathanathan
2013-10-10 02:44:17 -04:00
Nathan Breit
cd2cd0ba0d Fixing accidental detection of require.js as common js
I changed to code to check for common js by looking for exports and module instead. Also, would it be possible to require fs inside the function where it's used?
2013-10-10 02:44:17 -04:00
f1aa13dfaf version bump 0.1.5: proper parsing of strings
Note that CHAR actually appears to do different things in OSX and Windows ...

Need to build a separate codepage converter
2013-10-10 02:44:17 -04:00
ce9e211760 xml preserve space regex 2013-10-10 02:44:17 -04:00
d5da2eb017 version bump 0.1.4
- Handle 'e' error cells (sticking the actual error code in .err, .v undefined)
- Added quot and apos to encodings
2013-10-10 02:44:17 -04:00
91266af9aa Google Docs Sheet order incompatibility
Fixes .

Google Docs does not emit worksheet information, and furthermore does not follow
the sheet order as prescribed in the `[Content-Types].xml` metadata.  This
workaround forces it to treat the sheet list in Workbook as the map to the files
`xl/worksheets/sheet##.xml` even though the rIds are different.
2013-10-10 02:44:17 -04:00
28873fc0b5 version bump 0.1.2: Unicode Support
Motivated by inquiry regarding Hebrew support
2013-10-10 02:44:17 -04:00
378991cb30 Fixing one-off error in imputing range with gdocs
Fixes 

Note: Google Docs does not generate a 'spans' attribute, but opening and saving
with Excel appears to resolve the issue.
2013-10-10 02:44:17 -04:00
c960dca068 updated json output to reflect number headers 2013-10-10 02:44:17 -04:00
83f7112ceb fixed xml parsing issue with singleton formula 2013-10-10 02:44:17 -04:00
49c3d865b8 Named Ranges silently ignored
Fixes 

This is not the final fix -- the named ranges should be parsed
2013-10-10 02:44:17 -04:00
b275e4d4b5 Boolean value parsing 2013-10-10 02:44:17 -04:00
Nathan Breit
ba7b24a5d6 Adding ability to handle numbers and bools 2013-10-10 02:44:17 -04:00
269b6a665d LibreOffice xlsx baseline 2013-10-10 02:44:16 -04:00
1a18fff81d excel 2013 baseline parsing 2013-10-10 02:44:16 -04:00
8c5151af9f Fixing issue with stray XLSX.utils in xlsx.js
fixes 
2013-10-10 02:44:16 -04:00
b31ba59607 Handling Google Docs Quirks
closes 
2013-10-10 02:44:16 -04:00
a9dd6def72 refactoring the csv generation code
XLSX.utils.sheet_to_csv
2013-10-10 02:44:16 -04:00
077056d984 Handling empty typeless cells
@nathanathan presented a case generated from excel, which had the cell:

    <c r="E1" s="1"/>

The schema is incorrect here (advising to treat it as a NaN value).  The right
thing to do is to treat it as `undefined`.
2013-10-10 02:44:16 -04:00
Nathan Breit
8f5151c2e0 Fixing a conversion bug and adding JSON helper
closes 
2013-10-10 02:44:16 -04:00
f010c3165e Resolved issue with empty sheet generating single <sheetData/> tag 2013-10-10 02:44:16 -04:00
5806249485 initial 2013-10-10 02:43:57 -04:00