Project root of the Gantt component addon, Flow integration for Vaadin 24 platform.
Multi-module Maven project with two modules: gantt-flow-addon and gantt-flow-demo.
gantt-flow-addon
contains add-on sources build into JAR deliverable.gantt-flow-demo
contains demo application build into WAR package.
Gantt gantt = new Gantt();
Step step = new Step();
step.setCaption("First Step");
step.setBackgroundColor("#9cfb84");
step.setStartDate(LocalDate.now().atTime(12, 0));
step.setEndDate(step.getStartDate().plusWeeks(1));
gantt.addStep(step);
Main component class org.vaadin.tltv.gantt.Gantt
is a Java wrapper for tltv-gantt-element
web component. This requires two dependecies:
tltv-gantt-element
(https://github.com/tltv/gantt-element)tltv-timeline-element
(https://github.com/tltv/timeline-element).
Timeline element and gantt element depends on following libraries:
- Lit (https://lit.dev/)
- date-fns (https://github.com/date-fns/date-fns)
- date-fns-tz (https://github.com/marnusw/date-fns-tz)
formatInTimeZone
is not working in all cases (date-fns-tz 2.0.0).
E.g. Gantt with "Europe/Berlin" time-zone shows wrong hour when run in Browser with "Europe/Helsinki" timezone.
Latest version and instructions are availabe in Vaadin Directory: https://vaadin.com/directory/component/gantt-flow-add-on
Building the component and demo in development mode:
- Run
mvn clean install
Building the component and demo in production mode:
- Run
mvn clean install -Pproduction
Starting the gantt-flow-demo server:
cd gantt-flow-demo
- Run
mvn jetty:run
- Open http://localhost:8080 in the browser.
Building deliverable for Vaadin Directory:
cd gantt-flow-addon
- Run
mvn clean install -Pdirectory
MIT - Tomi Virtanen