Jason Würtz
c6511ed829
test(ganttDb.spec): add simple tests for the durationToDate fn
2019-07-07 17:17:22 -03:00
Jason Würtz
047760ad4b
chore(ganttDb): export durationToDate so it can be tested
2019-07-07 17:17:05 -03:00
Jason Würtz
b7c4b66b61
test(ganttDb.spec): fix missing initialization for clear test
2019-07-07 17:04:40 -03:00
Jason Würtz
67bb5ffa73
refactor(ganttDb.js): extract durationToDate function
...
codeclimate was complaining about the getEndDate function so I split it up
2019-07-07 17:01:45 -03:00
Jason Würtz
1ee4b964e2
test(gantt.spec): add assertions to check that the parser didn't error
2019-07-07 16:41:07 -03:00
Jason Würtz
cb7d05bd53
chore(gantt.js): generate parser from jison
2019-07-07 16:28:53 -03:00
Jason Würtz
16f3338b3d
feat(gantt.jison): update parser to accept a inclusive end date arg
...
if a line contains inclusiveEndDates then it will toggle the chart to use inclusive end dates
2019-07-07 16:28:31 -03:00
Jason Würtz
0a567a3ef9
test(ganttDb): update inclusive end date tests
2019-07-07 16:27:41 -03:00
Jason Würtz
660e0f3d8b
refactor(ganttDb): separate out the inclusive end date toggle
2019-07-07 16:27:28 -03:00
Jason Würtz
ee766ec88e
fix(ganttDb): change manual end time determination
...
now it just checks if a valid end time was provided and instead of the comparison that went on before.
This needed to be done in order to support manual end dates with inclusive set to true since they don't match anymore as the 'manually' supplied end date is increased by one
2019-07-06 12:28:56 -03:00
Jason Würtz
63096a5c26
feat(ganttDb.js): add 1 day to end dates if inclusive is set to true
...
This will essentially keep all old behavior the same while still allowing users to specify if they want inclusive end dates
2019-07-06 12:27:28 -03:00
Jason Würtz
b5b714861d
test(ganttDb.spec): flip function design to specify inclusive instead
2019-07-06 12:26:32 -03:00
Jason Würtz
5c2d416a34
test(ganttDB.spec): fix typo
2019-07-06 12:25:57 -03:00
Jason Würtz
0515375cfa
test(ganttDb.spec): clear function
2019-07-06 11:54:45 -03:00
Jason Würtz
6d20ccccd0
feat(ganttDb.js): add getters for excludes,sections and date format
2019-07-06 11:54:18 -03:00
Jason Würtz
6dce255393
fix(ganttDb.js): clear formats and excludes on clear
2019-07-06 11:30:13 -03:00
Jason Würtz
402d4bdee1
test(gantt.spec): add parser test for inclusive end dates
2019-07-06 11:29:50 -03:00
Jason Würtz
123fba5b07
test(ganttDb.spec): add test case for inclusive end dates
2019-07-06 11:29:10 -03:00
Knut Sveidqvist
4bb0da0ce6
Merge of pull request #741
2019-06-29 10:41:44 +02:00
Adam Wulf
24600355c8
Merge remote-tracking branch 'origin/master' into flow/trapezoid
2019-06-25 22:36:13 -05:00
Knut Sveidqvist
5667694652
info diagram to show version of mermaid, bugfixes for gantt chart
2019-06-15 14:29:26 +02:00
Knut Sveidqvist
e0a70bd352
Merge of latest changesin to pr #804
2019-06-09 12:40:37 -07:00
Knut Sveidqvist
3e6396cc4b
Merged in recent updates
2019-06-09 10:53:46 -07:00
Knut Sveidqvist
a8d9b269ff
Fixed reference in test file
2019-06-09 07:07:57 -07:00
Knut Sveidqvist
df7dc21893
Merge branch 'no-bloat'
2019-06-09 07:00:29 -07:00
Fabio Spampinato
9290aa2b61
Replaced “moment” with “moment-mini"
2019-06-04 03:14:35 +02:00
abzicht
6ede0f6166
Allowing brackets in taskTxt, adjusted index.html example to include brackets in task text
2019-03-10 14:07:33 +01:00
abzicht
fa04e3de75
Adding jison processed js file because it seems that this is always committed to github
2019-03-10 13:42:43 +01:00
abzicht
63184d53c1
Argument processing now allows double quoted strings
2019-03-10 13:41:59 +01:00
abzicht
1dfff7ac0e
Added documentation and implemented empty functionarguments
2019-03-10 13:41:02 +01:00
abzicht
6c84544521
Changed href to scan for the next double quoted word. This allows whitespace in links and resolves the issue with href ending with EOF
2019-03-10 11:49:16 +01:00
abzicht
91651ca6ce
Fixed lint issues
2019-03-09 23:17:13 +01:00
abzicht
6fd790570a
Removed <a> tag, moved id attribute to text section
2019-03-09 23:14:28 +01:00
abzicht
b322a964ca
Code refactoring: Pushing functions is now to the funs list is now available in a separate function. Also, setLink no longer using the .link attribute and instead calls links directly via window.open
2019-03-09 23:13:53 +01:00
abzicht
20b35cbe13
Removed STR remains and fixed whitespace issue for 'call' which lead to undesired whitespace in function names
2019-03-09 22:42:27 +01:00
abzicht
d169641c99
Fixed lint issue
2019-03-09 22:19:08 +01:00
abzicht
856591d253
Removed STR as it is no longer required; made 'click' a state such that it returns the id that is specified after the keyword
2019-03-09 22:18:37 +01:00
abzicht
4587f5a73d
Added 'clickable' class to all elements with interactivity. This allows css styling for clickable elements
2019-03-09 20:08:52 +01:00
abzicht
10057217cb
Fixed issue which only passed the first char of functionargs to the function by splitting the functionargs by commas
2019-03-09 20:07:51 +01:00
abzicht
0c66e1b5b9
Added href support and improved callback argument handling
2019-03-09 12:11:56 +01:00
abzicht
67ee649d99
Added setLink and setClickEvent to gantt
2019-03-08 00:19:53 +01:00
abzicht
19d9dd6954
Fixed clickStatement to include ids
2019-03-07 22:31:38 +01:00
abzicht
e298351caa
Added <a href> and callback functionality to gantt diagrams
2019-03-07 22:00:02 +01:00
João Paulo Poffo
afeb3b53c9
Simplified methods
2019-02-12 17:52:18 -02:00
João Paulo Poffo
8ce658416b
Simplify to codeclimate
2019-02-12 17:40:57 -02:00
João Paulo Poffo
6e846ac3e5
Defined a renderEndDate
2019-02-12 17:29:38 -02:00
João Paulo Poffo
58df72984f
Standard
2019-02-07 12:05:09 -02:00
João Paulo Poffo
5bfddcc444
Complexity
2019-02-07 11:27:01 -02:00
João Paulo Poffo
a99b31a61d
Standard
2019-02-07 11:22:46 -02:00
João Paulo Poffo
8a8b7bd48c
Fixed weekend between dates; Manual endtimes; Additional testing
2019-02-07 11:21:00 -02:00