43 Commits

Author SHA1 Message Date
Faris Ansari
7d1f9b6bf1 Corner radius configurable 2018-02-17 23:39:58 +05:30
Faris Ansari
d3d725c25e Merge with master 2018-02-17 23:34:14 +05:30
Faris Ansari
390fd2d324 Change Bar hover behaviour, Bar animation 2018-02-17 23:23:05 +05:30
Faris Ansari
e55107ee82 [v0.1.0] Major Refactor
- Remove moment and Snap dependencies
- Use Rollup as build tool
- Use Prettier for linting/styling
- Use Jest for testing
- Use yarn
2018-02-11 16:48:44 +05:30
Stephen Kasica
2abbb1dce5 Define bar corner radius on initialization (#43)
* Merge defaults and config deeply in set_defaults

The Object.assign method performs a shallow merge, thus it can lose
properties in nested objects. For example, if config.bar = { foo: bar }
then it would entirely replace defaults.bar and self.config.bar.height
would be undefined. The deepmerge library is a lightweight module that
merges enumerable attributes deeply. In the above example,
self.config.bar would then be {foo: bar, height: 20}.

I think this commit also retroactively applies some previous changes to
dist/frappe-gantt.js and dist/frappe-gantt.js.map from commits: 241c65db697475a3a17324f4c613d28353f89a8c,
1926ddbd48f1ff0bd7a0d49cadf14fcd415c3bfd, and be45a9656ffd482e1611198158b6032c965e1309.

* Define bar corner radius on initialization

Allows this property to be set without changing source code. Requires
deep merge of default and config objects added in commit f32e76af7733515f10a9adc004100e57f794f804

* Fix bug causing TypeError when config parameter is undefined

Fixes issue when optional config parameter is unspecified since
Deepmerge throws error  "Cannot convert undefined or null to object"
in such cases.
2018-01-18 22:32:12 +05:30
Faris Ansari
c8bfc1d679 build version 0.0.7 2017-10-30 16:21:21 +05:30
Faris Ansari
d432ab200e Merge branch 'master' of github.com:frappe/gantt 2017-10-30 15:07:11 +05:30
Faris Ansari
241c65db69 Element parameter support for HTML Element, SVG Element or CSS selector (#25)
* * adjusted the library to support both string css selectors and a raw svg element when resetting its internal variables

* * changes parent_element to use const again instead of let

* * updated the element selection logic to include checking for an html element and finding a child svg object

* * updated parameter comment and exception message to mention both html and svg dom element support

* Code formatting
2017-07-31 14:46:10 +05:30
Faris Ansari
78033cd689 Merge pull request #21 from dalwadani/patch-1
Remove letter-spacing to display Arabic properly
2017-06-26 00:26:48 +05:30
Dhaifallah Alwadani
67a67b927c Remove letter-spacing to display Arabic properly 2017-06-21 17:36:16 +03:00
Faris Ansari
1926ddbd48 Handle large duration tasks 2017-06-20 06:10:31 +05:30
Faris Ansari
be45a9656f Increase grid height to show last popup message 2017-06-08 17:35:26 +05:30
Faris Ansari
25c4d24c0f build version 0.0.6 2017-06-06 12:05:09 +05:30
Faris Ansari
47819199fe Filter falsy values in make_arrows 2017-06-06 12:02:51 +05:30
Faris Ansari
d1f932649a Fix incorrect computation of end_date (Fixes frappe/erpnext#8531) 2017-05-16 11:13:46 +05:30
Faris Ansari
d07c38b769 Merge pull request #14 from frappe/hustcc-master
Custom class for tasks (hustcc pr enhancement)
2017-03-21 10:35:54 +05:30
Faris Ansari
d4b3080360 build version 0.0.5 2017-03-21 10:33:08 +05:30
Faris Ansari
3f037321ae update readme 2017-03-21 10:33:08 +05:30
Faris Ansari
4a902557d6 change let to var for old node version 2017-03-21 10:33:08 +05:30
Faris Ansari
407f076d51 ability to specify custom class for tasks 2017-03-21 10:33:08 +05:30
Faris Ansari
4534f6b6fe Update README.md 2017-03-20 20:44:24 +05:30
Faris Ansari
d82071b58a build version 0.0.4 2017-02-14 18:34:58 +05:30
Faris Ansari
df2d35c77d [fix] canvas width 2017-02-14 18:33:37 +05:30
Faris Ansari
b33216274c generate id if not given, custom popup html 2017-02-14 17:14:57 +05:30
Faris Ansari
ac37400390 Add refresh method
updates gantt with new tasks, no need to initialize new object
2017-02-14 15:10:31 +05:30
Faris Ansari
630f8405e1 [fix] date text in week mode 2017-02-02 16:52:53 +05:30
Faris Ansari
9bcd2a4236 [fix] drag when no progress handle 2017-01-29 12:43:24 +05:30
Faris Ansari
44954a77aa build version 0.0.3 2017-01-28 15:37:55 +05:30
Faris Ansari
379b2d9bf7 minor 2017-01-28 15:34:56 +05:30
Faris Ansari
32c1ca9129 update details popup on change, compute_date refactor 2017-01-28 13:58:35 +05:30
Faris Ansari
5ab94156dd child task restrict position, scroll position 2017-01-28 12:48:25 +05:30
Faris Ansari
3caff0e781 build version 0.0.2 2017-01-05 13:20:17 +05:30
Faris Ansari
cbafcde5f8 fixed progress resize handle 2017-01-05 13:10:36 +05:30
Faris Ansari
2b845bdd55 added license 2016-12-29 11:56:54 +05:30
Faris Ansari
b92de74543 update readme 2016-12-29 11:55:01 +05:30
Faris Ansari
b32ac7d318 added readme 2016-12-28 12:59:35 +05:30
Faris Ansari
cf3e4bbd8f build version 0.0.1 2016-12-28 12:22:03 +05:30
Faris Ansari
abfbaa709b fixed month issues, change lib name to frappe-gantt 2016-12-23 15:31:58 +05:30
Faris Ansari
4297b28113 show details on click 2016-12-23 14:48:10 +05:30
Faris Ansari
6164ac4b33 Fix drag left event 2016-12-23 12:47:23 +05:30
Faris Ansari
414ebae75a events working 2016-12-23 12:42:09 +05:30
Faris Ansari
6169f11053 fixed hold and drag 2016-12-19 23:09:16 +05:30
Faris Ansari
77af1bb8fb First commit 2016-12-17 22:15:48 +05:30