|
28 | 28 | import com.flowingcode.vaadin.addons.orgchart.event.NodesRemovedEvent; |
29 | 29 | import com.flowingcode.vaadin.addons.orgchart.event.ParentAddedEvent; |
30 | 30 | import com.flowingcode.vaadin.addons.orgchart.event.SiblingsAddedEvent; |
| 31 | +import com.flowingcode.vaadin.jsonmigration.JsonMigration; |
31 | 32 | import com.vaadin.flow.component.AttachEvent; |
32 | 33 | import com.vaadin.flow.component.ClientCallable; |
33 | 34 | import com.vaadin.flow.component.ComponentEvent; |
|
44 | 45 | import java.util.List; |
45 | 46 | import java.util.Objects; |
46 | 47 | import java.util.stream.Collectors; |
| 48 | +import lombok.experimental.ExtensionMethod; |
47 | 49 |
|
48 | 50 | /** |
49 | 51 | * OrgChart component definition. <br> |
|
57 | 59 | @NpmPackage(value = "orgchart", version = "3.7.0") |
58 | 60 | @NpmPackage(value = "html2canvas", version = "1.4.1") |
59 | 61 | @NpmPackage(value = "jquery", version = "3.6.2") |
| 62 | +@NpmPackage(value = "@polymer/polymer", version = "3.5.2") |
60 | 63 | @JsModule("jquery/dist/jquery.js") |
61 | 64 | @JsModule("orgchart/dist/js/jquery.orgchart.js") |
62 | 65 | @CssImport("orgchart/dist/css/jquery.orgchart.min.css") |
63 | 66 | @Tag("fc-orgchart") |
64 | 67 | @JsModule("./fc-orgchart.js") |
65 | 68 | @CssImport("./fc-orgchart-styles.css") |
66 | 69 | @NpmPackage(value = "json-digger", version = "2.0.2") |
| 70 | +@ExtensionMethod(value = JsonMigration.class, suppressBaseMethods = true) |
67 | 71 | public class OrgChart extends Div { |
68 | 72 |
|
69 | 73 | private OrgChartItem orgChartItem; |
|
0 commit comments