Releases: clarketm/TableExport
v5.0.0-rc.10
fix: reset hashCode
seed for cloned nodes and dynamic tables.
Start using today!
npm install [email protected]
v5.0.0-rc.9
fix: Excel (xlsx
, xlsm
, xlsb
, xls
) cell merge support #69
Start using today!
npm install [email protected]
v4.0.11
v5.0.0-rc.8
fix: rowspan
/colspan
bug specific to XLSX format (introduced by the previous code cleanup commit).
Start using today!
npm install tableexport@next
OR
npm install [email protected]
v5.0.0-rc.7
v5.0.0-rc.7 new features:
ignoreCSS
andemptyCSS
values can now be configured with a custom CSS selector or an array of custom CSS selectors.
// example
TableExport.prototype.ignoreCSS = '.tableexport-ignore' // default
TableExport.prototype.ignoreCSS = '.myIgnoredCells' // custom selector
TableExport.prototype.ignoreCSS = [ '.tableexport-ignore', '[data-hide]' ] // custom selector[]
the default selector values (
.tableexport-ignore
and.tableexport-empty
) remain unchanged.
- General code cleanup: replace "magic strings" with configurable
TableExport.prototype
properties.
Start using today!
npm install [email protected]
v5.0.0-rc.6
fixes Rowspan and Colspan #27 with the exception of a few edge cases.
Updates to the rowspan
/colspan
algorithm:
- Handle
rowspan
andcolspan
parsing once in the initialRowColMap
build rather than at runtime for each DOM node with arowspan
orcolspan
attribute. - Reengineer the
handleRowSpan
function to track a pointer reference to the currentrowspan
accumulator value. - Reengineer the
handleColSpan
function to track a pointer reference to the currentcolspan
accumulator value. - Create
isRowSpan
andisColSpan
helper methods on theRowColMap
class.
Start using today!
npm install [email protected]
v5.0.0-rc.4
v5.0.0-rc.4 new features:
- Added Excel Macro-Enabled Workbook (
xlsm
) and Excel Binary Workbook (xlsb
) file format support. - Improved
error
handling and logging. - Added
formatConfig
->enforceStrictRFC4180
boolean prototype property to thexls
,csv
, andtxt
formats to dictate the use ofjs-xlsx
for parsing. (disabled by default forcsv
andtxt
due to Excel's discord with RFC4180). - Significant
exporters
procedure cleanup/overhaul (200+ lines of redundant code removed).
Start using today!
npm install [email protected]
v5.0.0-rc.3
Updates to the rowspan
/colspan
algorithm:
- Execution logic reordering inside the
handleColSpan
andhandleRowSpan
functions when handling DOM elements with both arowpan
andcolspan
value. - Terminating condition optimization to eliminate redundant iteration.
- Single instantiation of the
RowColMap
builder from theTableExport
context.
Start using today!
npm install [email protected]
v5.0.0-rc.2
v5.0.0-rc.2 new features:
- Change
Excel
default format fromxls
toxlsx
v5.0.0-rc.1
v5.0.0-rc.1 new features:
- Add new
RowColMap
helper class: a table preprocessing stage to collect metadata and prevent repetitive iterations for every filetype. - Restructure the
LocalStorage
helper class (removed fromTableExport.prototype
). - Add
CONSTANTS
toTableExport.prototype
for convenient, centralized access to internal property values (as well as to prune out magic strings). - Rewrite the rowspan/colspan algorithm to be more precise when handling complex assortments of
rowspan
andcolspan
(fixesRowspan and Colspan
#27). - Added
getFileSize
utility method to quickly calculate the filesize of a file export. - Rename
getBinaryData
to the more semantically correctgetRawData
- Rename
types
totypeConfig
- Move
xlsx
,xls
,csv
, andtxt
TableExport.prototype
properties to be nested under theformatConfig
namespace. - Added more
examples
.
npm install [email protected]