|
28 | 28 | import com.vaadin.flow.component.ComponentEvent; |
29 | 29 | import com.vaadin.flow.component.ComponentEventListener; |
30 | 30 | import com.vaadin.flow.component.Tag; |
| 31 | +import com.vaadin.flow.component.dependency.CssImport; |
31 | 32 | import com.vaadin.flow.component.dependency.JsModule; |
32 | 33 | import com.vaadin.flow.component.dependency.NpmPackage; |
33 | | -import com.vaadin.flow.component.dependency.StyleSheet; |
34 | 34 | import com.vaadin.flow.component.html.Div; |
35 | 35 | import com.vaadin.flow.shared.Registration; |
36 | 36 | import java.util.List; |
|
45 | 45 | * @author pbartolo |
46 | 46 | */ |
47 | 47 | @SuppressWarnings("serial") |
48 | | -// @NpmPackage(value = "orgchart", version = "2.1.4") |
49 | | -@NpmPackage(value = "html2canvas", version = "^0.5.0-beta4") |
50 | | -@NpmPackage(value = "jquery", version = "3.4.1") |
| 48 | +@NpmPackage(value = "orgchart", version = "3.7.0") |
| 49 | +@NpmPackage(value = "html2canvas", version = "1.4.1") |
| 50 | +@NpmPackage(value = "jquery", version = "3.6.2") |
51 | 51 | @JsModule("jquery/dist/jquery.js") |
52 | | -@JsModule("./orgchart/dist/js/jquery.orgchart.js") |
53 | | -@StyleSheet("context://frontend/jquery.orgchart.min.css") |
| 52 | +@JsModule("orgchart/dist/js/jquery.orgchart.js") |
| 53 | +@CssImport("orgchart/dist/css/jquery.orgchart.min.css") |
54 | 54 | @Tag("fc-orgchart") |
55 | 55 | @JsModule("./fc-orgchart.js") |
56 | 56 | public class OrgChart extends Div { |
|
0 commit comments