felipe
fb6a4383ff
renamed cell#push to cell#addContent
2017-03-11 21:15:45 +01:00
felipe
70f4613e1b
appease the linter
2017-03-11 10:30:25 +01:00
felipe
bd9d6b74f5
added Cell#createParagraph method
2017-03-11 10:30:08 +01:00
felipe
bd3eb3e214
move the cell-paragraph validation into prepForXml
...
Instead of forcing table cells to only have a single paragraph as
their content, we now check whether they end in a paragraph (and
insert one if necessary) during #prepForXml
2017-03-11 10:22:30 +01:00
felipe
c10b576a3a
added fixedWidthLayout option and method
2017-03-11 09:59:29 +01:00
felipe
210b97d00b
added document#createTable
2017-03-11 09:02:36 +01:00
felipe
62a238de84
more sane width management
2017-03-11 09:02:22 +01:00
felipe
7b6f5bbaef
forgot to test #getCell
2017-03-10 17:48:05 +01:00
felipe
a45048a464
fix a handful of strict null errors; make test config also be strict
...
These errors only arose because I didn't run `npm build`, only `npm
test`. Then, when I tried building the null checks failed. Keeping the
two config fiels in sync will help prevent this issue in the future
2017-03-10 17:45:37 +01:00
felipe
c0b0649f37
added tests for table v1
2017-03-10 17:39:37 +01:00
felipe
e7e5c61a90
clean up initial table attempt (linter, interfaces, etc.)
2017-03-10 17:11:08 +01:00
felipe
f1fb0c4f22
initial attempt at Table
2017-03-10 16:55:39 +01:00
felipe
599be5bf2b
got a little carried away with the purge! fixed failing errors
2017-03-10 16:35:48 +01:00
felipe
9d7573ed9c
fix unused imports linter warnings
2017-03-10 16:09:21 +01:00
felipe
35ddda444a
rename paragraph#createRun to paragraph#createTextRun
2017-03-10 14:44:25 +01:00
felipe
8d11ec3422
add paragraph.createRun method
2017-03-10 14:36:16 +01:00
felipe
ea647d84df
add document.createParagraph method
2017-03-10 14:31:21 +01:00
felipe
8c91c04afa
clean up latentstyles to use modern attribute implementation
2017-03-10 14:31:21 +01:00
felipe
a89718ea83
fix a couple of compiler null warnings
2017-03-10 14:31:21 +01:00
felipe
62911d6e44
make XmlAttributeComponent into a generic class
...
This change brings increased type safety to uses of
XmlAttributeComponent. Now the compiler is checkign for us that the
properties that get passed in to every subclass match the intended
interface, and also that the xmlKeys property -> xml attribute mapping
has all the right keys
2017-03-10 14:19:45 +01:00
felipe
766069c7cc
make packers a top-level export
2017-03-10 13:54:49 +01:00
Dolan
f80a5654b4
adding unused variable checking
2017-03-10 10:33:42 +00:00
felipe
fd1aab48f7
removed some dead code causing tslint problems
2017-03-10 10:35:38 +01:00
felipe
7ff838357a
removed empty Attributes from ParagraphProperties
...
I checked the spec, and "w:pPr" does not take any attributes. I also
converted the paragraph tests to use the deep.equal style to get rid
of some more jsonify!
2017-03-10 10:32:40 +01:00
felipe
958b5ea307
improved type annotation for Attributes#prepForXml
2017-03-10 08:58:29 +01:00
felipe
3a6cf81c60
use strict null checks for added type safety
...
From the TypeScript manual "In strict null checking mode, the null and
undefined values are not in the domain of every type and are only
assignable to themselves and any (the one exception being that
undefined is also assignable to void)."
In other words, this setting means the compiler will complain if you
try to use a variable, but it might be null or undefined. Since the
project builds and tests pass with it, I think it's good to turn it
on. If it becomes annoying, you can always turn it off later
2017-03-10 08:54:55 +01:00
felipe
10684b34aa
clean up unused imports and a linter warning
2017-03-10 08:52:47 +01:00
felipe
2fc9156e93
remove console.log statements
2017-03-10 08:25:11 +01:00
felipe
c521d0ce63
rename toXml -> prepForXml
2017-03-10 08:23:27 +01:00
Dolan
11bbb5e285
linting
2017-03-09 23:32:52 +00:00
Dolan
18bba1870e
added types for app-root-path
2017-03-09 23:20:37 +00:00
Dolan
c6eef3fd79
tslint fixes
2017-03-09 23:20:28 +00:00
Dolan
06353a6977
linting
2017-03-09 22:57:37 +00:00
Dolan
2b28dd42ee
unclear variable name. please improve
2017-03-09 22:57:30 +00:00
Dolan
7022b39d2e
linting
2017-03-09 22:56:08 +00:00
Dolan
5fac776dca
listing stuff
2017-03-09 22:31:55 +00:00
felipe
30fef5238e
fix some linter warnings
2017-03-09 21:06:54 +01:00
felipe
0fe6ff95a2
fix an incorrect test
2017-03-09 20:49:34 +01:00
felipe
11e918114d
clear out clearVariables! In comes toXml
2017-03-09 20:49:14 +01:00
felipe
879b9163a3
Allow XmlComponent to take strings and remove XmlUnit
2017-03-09 20:21:49 +01:00
felipe
4a2b8a1e04
remove unused XmlProperty code
2017-03-09 19:04:17 +01:00
felipe
d6f5fe0ae8
Remove extraneous multi-property from base numbering object
2017-03-09 17:59:17 +01:00
felipe
aac81ffa12
add Styles to top-level exports
2017-03-09 13:27:53 +01:00
felipe
d93432678b
added #createParagraphStyle method to Styles
2017-03-09 13:27:40 +01:00
felipe
ac7799a875
add an #underline method to ParagraphStyle
2017-03-09 13:19:50 +01:00
felipe
766bcabcb8
allow Underline to be called with type and color; fix default
2017-03-09 12:42:19 +01:00
felipe
f06094c91d
clean up underlineTests linter warnings
2017-03-09 12:36:33 +01:00
felipe
3b18b8267a
fix paragraphTests.ts linter warnings
2017-03-09 12:25:59 +01:00
felipe
20ec9b679e
added Spacing for paragraphs and ParagraphStyle
2017-03-09 12:16:49 +01:00
felipe
449d1bc2c3
added fluent formatting methods to ParagraphStyle
2017-03-09 11:27:47 +01:00