Commit Graph

57 Commits

Author SHA1 Message Date
Andrii Kurdiumov 4fcf6ec3a9 Remove red squiggle 2022-11-20 17:13:40 +08:00
Jonathan Keebler b379121e36 substituteAll: Interpolate values for all the sheets using the given substitutions (#173) 2022-10-04 22:16:19 +06:00
Jonathan Durand 740534d7e2 Insert images (#126)
* first version

* can insert image - first version

* fix more than 9 images, with a parseInt on the '10' string. Otherwise, '9' if greater than '10'

* update Buffer() to Buffer.from()

* existing test if now ok, go to make test for insert image

* add first test

* add test for 100 insert images

* update readme.md, but need to be reread :)

* update index.d.ts

* convert tabulation to space

* remove fr - 0.0.1-security from package.json

* remove comment line

* remove condition not nescessary

* add percent ratio for single image

* Update Readme and add imageRatio option

* readd package-lock.json

* readd package-lock.json

* catch error if image does not exists

* change some comment console.log to console.error

* fix formatting

* test if imageToBuffer return a true image buffer, otherwise, throw an error - add handleImageError function : this function handle the image error and throw it by default; developers can override this function

* Move handleImageError function to an option

* remove useless ligne space in this commit
2022-05-30 10:30:57 +06:00
Jonathan Durand c514b3b0d4 add customXml in the order list for rebuild (#154)
* add customXml in the order list for rebuild to prevent error on remove sheet

* Remove the useless customXML type in order list ; in the sort function of rebuild, if the type of Relationship is not in the `order` list, go to the end ; adding test code
2022-05-30 00:22:33 +06:00
Andrii Kurdiumov 3a5ad82617 Switch tests to TypeScript (#158)
* Switch tests to TypeScript
* Set default branch for build
2022-05-10 18:01:46 +06:00
Jonathan Durand 451eb20a68 Formating (#124)
Adding 2 options affect table substitution :
subsituteAllTableRow : if true, all the cells in the row substitution will be copied in the new row
pushDownPageBreakOnTableSubstitution : if true, pushdown the pageBreak (not the rowBreaks : TODO with option)
2022-02-15 12:00:13 +06:00
Jonathan Durand 1e976308e1 Update copySheet function (#130)
* Update copySheet function

Add binary option for copySheet : for header/footer in UTF-8
Copy also rels file for the image
2022-02-14 22:17:33 +06:00
Ade Pangestu da61b0d5e5 Fixing Defined Range Name with Sheet Name (#150)
* fixing defined range name with sheetname
* add test for _xlnm.Print_Titles named range

Co-authored-by: Ade Pangestu <ade.pangestu@mitrais.com>
2022-02-14 17:02:38 +06:00
Andrii Kurdiumov bf0cdd9087 Replace buster with Jest (#118)
As consequences it require me to make couple of function public
and specify interfaces for resulting data.

Also this work expose that previous typings was incorrectly written.
@RW-DiefBell and @tiholic you seems to be relying on incorrect definitions.
Please check.
2020-08-10 15:53:23 +06:00
Jonathan Durand 0c564ccb5f Insert images (#110)
Add new substitution for images.
2020-07-31 18:01:01 +06:00
Jonathan Durand f9cde53721 Adding test : do not move image 2020-07-26 19:16:28 +02:00
JD2701 3f5a219c4f Move image when are below a substitute array 2020-07-26 19:03:26 +02:00
Dan Rusk 9c178aad6a Adds support for template placeholders in hyperlinks 2018-09-13 14:58:41 -04:00
Steven 306ea34cee add test to multple-sheets-arrays.xlsx 2018-08-09 14:43:16 +02:00
Steven e732f9c743 fix wrongly replacing text in shared strings 2018-08-09 10:28:46 +02:00
Mike Henderyckx f785f5829d Add test which checks if correct amount of dynamic cells are being rendered. No duplicates 2018-05-23 21:29:14 +02:00
T-rav 7309ddc0de Got it working with single item array with sub array of primatives 2018-05-08 11:22:56 +02:00
T-rav 9b56c47c4e Got a working test for array with single object, now to get array with single object with nested primative array to pass 2018-05-08 11:03:17 +02:00
Andrey Kyrdyumov 2d7f7ab294 Do not replace text in the shared strings
since this lead to replacement differnet values across multiple sheets.
Closes: #64
2017-12-11 22:16:30 +06:00
Andrey Kyrdyumov f8a6f94c79 Fix special case of array substitution
Fix #47
2017-10-01 02:38:17 +03:00
Andrey Kyrdyumov 3b56601608 Move debugging test output to separate explicit folder
which will have results excluded from source control. This allow to better expereince to adding test XLSX files since they will be directly visible as new in the UI
2017-10-01 01:32:33 +03:00
Andrey Kyrdyumov e20b9c628c Add ability use array indexer in the template specification 2017-09-26 01:10:45 +03:00
Andrey Kyrdyumov 3e84add451 Add test case for template created with Google Docs 2017-09-16 21:35:03 +03:00
Andrey Kyrdyumov afa2d988a3 Add test for formula recalculation 2017-09-13 19:36:39 +03:00
Andrey Kyrdyumov e0237b427d Create test for PR #34 2017-09-13 18:09:21 +03:00
Martin Aspeli 44f2c0191e Fix stupid typo bug 2017-01-01 22:34:47 +00:00
Martin Aspeli b58d5703ef Update <dimension /> when changing size of a table 2017-01-01 21:20:24 +00:00
Martin Aspeli 42dff30787 Fix linting errors 2017-01-01 20:41:12 +00:00
Martin Aspeli 0a5466ccd2 Fix corrupt output files from tests 2017-01-01 20:14:52 +00:00
Martin Aspeli 9418782372 Revert "Fixes optilude/xlsx-template#21" 2017-01-01 17:41:18 +00:00
Martin Aspeli 039579cd04 Merge pull request #22 from wombat86/fix-date-substitution
Fixes optilude/xlsx-template#21
2017-01-01 17:36:34 +00:00
cartuchogl 99bec65d2c Partial support for descendants properties like ${demo.prop} or ${table:list.obj.prop} 2016-10-13 16:37:09 +01:00
Iurii Raboshuk f7f7a94b47 Fixes optilude/xlsx-template#21 2016-08-04 18:13:01 +03:00
Michael Rothberg 05f5990807 Fix path issues in calc chain setup. Change calc chain rebuild. Update tests to work with new date functionality 2015-10-05 14:30:53 -04:00
Benjamin Chang 949279f81c test for totals row on tables 2015-04-20 13:07:23 -05:00
Martin Aspeli 318f953aca Upgrade buster to 0.7 2013-10-07 08:20:31 +01:00
Martin Aspeli a37c969e79 Implement and test adjustment of named tables, ranges and merged cells 2013-10-06 23:38:21 +01:00
Martin Aspeli aa8cda5e2b Many adavnces in the science of moving things right or down 2013-09-17 00:42:21 +01:00
Martin Aspeli 12fb982a9c All loading tables by name 2013-09-15 14:01:59 +01:00
Martin Aspeli bb30bbcd44 Add missing file 2013-09-15 13:28:10 +01:00
Martin Aspeli 808bad32aa Test + fixes for table insertions 2013-09-14 23:45:56 +01:00
Martin Aspeli 3f940aee7d Confirm algorithm works for large cells 2013-09-14 14:28:06 +01:00
Martin Aspeli e57271ecf1 Ability to check wether cell is within table 2013-09-14 13:34:51 +01:00
Martin Aspeli a011abcdd5 Tidy up and add comments where we have gaps still 2013-09-14 10:27:19 +01:00
Martin Aspeli 5804ab5d74 Partial implementation of table insertion 2013-09-14 00:37:52 +01:00
Martin Aspeli 9919fa3e2c Missing test file 2013-09-13 23:51:53 +01:00
Martin Aspeli 391f7b4478 Better tests for column input 2013-09-13 23:44:48 +01:00
Martin Aspeli 24b6fa8a63 Better tests 2013-09-13 20:19:10 +01:00
Martin Aspeli 9eda97e6a2 Basic column insertion 2013-09-13 20:16:12 +01:00
Martin Aspeli 49d8556b2c Convert between characters and numbers 2013-09-13 10:33:31 +01:00