Skip to content

Commit 4e5d233

Browse files
paodbjavier-godoy
authored andcommitted
refactor: change JavaScript annotation for JsModule annotation
1 parent f593e17 commit 4e5d233

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/com/flowingcode/vaadin/addons/chipfield/Chip.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
import com.vaadin.flow.component.Component;
2323
import com.vaadin.flow.component.Tag;
24-
import com.vaadin.flow.component.dependency.JavaScript;
24+
import com.vaadin.flow.component.dependency.JsModule;
2525
import com.vaadin.flow.component.dependency.NpmPackage;
2626
import com.vaadin.flow.component.html.Span;
2727
import com.vaadin.flow.component.icon.Icon;
@@ -38,7 +38,7 @@
3838
@NpmPackage(value = "@polymer/paper-material", version = "^3.0.1")
3939
@NpmPackage(value = "@polymer/paper-ripple", version = "^3.0.1")
4040
@NpmPackage(value = "@polymer/paper-styles", version = "^3.0.1")
41-
@JavaScript("./paper-chip.js")
41+
@JsModule("./paper-chip.js")
4242
public class Chip extends Component {
4343

4444
public static final String CHIP_LABEL = "event.detail.chipLabel";

src/main/java/com/flowingcode/vaadin/addons/chipfield/ChipField.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import com.vaadin.flow.component.HasStyle;
3030
import com.vaadin.flow.component.ItemLabelGenerator;
3131
import com.vaadin.flow.component.Tag;
32-
import com.vaadin.flow.component.dependency.JavaScript;
32+
import com.vaadin.flow.component.dependency.JsModule;
3333
import com.vaadin.flow.component.dependency.NpmPackage;
3434
import com.vaadin.flow.data.binder.HasDataProvider;
3535
import com.vaadin.flow.data.binder.HasItemsAndComponents;
@@ -60,7 +60,7 @@
6060
@NpmPackage(value = "@polymer/paper-material", version = "^3.0.1")
6161
@NpmPackage(value = "@polymer/paper-ripple", version = "^3.0.1")
6262
@NpmPackage(value = "@polymer/paper-styles", version = "^3.0.1")
63-
@JavaScript("./paper-chip-input-autocomplete.js")
63+
@JsModule("./paper-chip-input-autocomplete.js")
6464
public class ChipField<T> extends AbstractField<ChipField<T>, List<T>>
6565
implements HasStyle, HasItemsAndComponents<T>, HasDataProvider<T>, HasSize {
6666

0 commit comments

Comments
 (0)