From 067f2dba7b52492e7bc8d571a813a55729ea3f71 Mon Sep 17 00:00:00 2001 From: miki Date: Fri, 11 Aug 2023 13:06:00 +0300 Subject: [PATCH] release 0.18.3-vaadin14 ready --- demo-v24/frontend/generated/vaadin-featureflags.ts | 6 ------ demo-v24/frontend/generated/vaadin.ts | 5 ----- superfields/pom.xml | 2 +- .../org/vaadin/miki/superfields/text/SuperTextField.java | 8 ++------ 4 files changed, 3 insertions(+), 18 deletions(-) delete mode 100644 demo-v24/frontend/generated/vaadin-featureflags.ts delete mode 100644 demo-v24/frontend/generated/vaadin.ts diff --git a/demo-v24/frontend/generated/vaadin-featureflags.ts b/demo-v24/frontend/generated/vaadin-featureflags.ts deleted file mode 100644 index 5478a58..0000000 --- a/demo-v24/frontend/generated/vaadin-featureflags.ts +++ /dev/null @@ -1,6 +0,0 @@ -// @ts-nocheck -window.Vaadin = window.Vaadin || {}; -window.Vaadin.featureFlags = window.Vaadin.featureFlags || {}; -window.Vaadin.featureFlags.exampleFeatureFlag = false; -window.Vaadin.featureFlags.collaborationEngineBackend = false; -export {}; \ No newline at end of file diff --git a/demo-v24/frontend/generated/vaadin.ts b/demo-v24/frontend/generated/vaadin.ts deleted file mode 100644 index 4bde8a3..0000000 --- a/demo-v24/frontend/generated/vaadin.ts +++ /dev/null @@ -1,5 +0,0 @@ -import './vaadin-featureflags.ts'; - -import './index'; - -import 'Frontend/generated/jar-resources/vaadin-dev-tools/vaadin-dev-tools.js'; diff --git a/superfields/pom.xml b/superfields/pom.xml index cc75f66..0545b1a 100644 --- a/superfields/pom.xml +++ b/superfields/pom.xml @@ -9,7 +9,7 @@ SuperFields Code for various V14+ fields and other components. https://www.unforgiven.pl/superfields - 0.18.3.vaadin14 + 0.18.3-vaadin14 8 diff --git a/superfields/src/main/java/org/vaadin/miki/superfields/text/SuperTextField.java b/superfields/src/main/java/org/vaadin/miki/superfields/text/SuperTextField.java index 2fa4032..6f95c97 100644 --- a/superfields/src/main/java/org/vaadin/miki/superfields/text/SuperTextField.java +++ b/superfields/src/main/java/org/vaadin/miki/superfields/text/SuperTextField.java @@ -51,7 +51,6 @@ public class SuperTextField extends TextField implements CanSelectText, TextSele private final TextModificationDelegate delegate = new TextModificationDelegate<>(this, this.getEventBus(), this::getValue); private TextInputMode textInputMode; - private boolean preventInvalidInput; public SuperTextField() { super(); @@ -156,15 +155,12 @@ public TextInputMode getTextInputMode() { @Override public void setPreventingInvalidInput(boolean prevent) { - this.preventInvalidInput = prevent; - this.getElement().getNode().runWhenAttached(ui -> ui.beforeClientResponse(this, context -> - this.getElement().callJsFunction("preventInvalidInput", prevent) - )); + this.setPreventInvalidInput(prevent); } @Override public boolean isPreventingInvalidInput() { - return this.preventInvalidInput; + return this.isPreventInvalidInput(); } @SuppressWarnings("squid:S1185") // removing this method makes the class impossible to compile due to missing methods