From 4bc4d08ba94e4aa15b7b97cbca461037239b637c Mon Sep 17 00:00:00 2001 From: Paola De Bartolo Date: Tue, 27 Jan 2026 16:01:04 -0300 Subject: [PATCH 1/4] build(demo): upgrade commons-demo to 5.1.0 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5f295ff..06b6bfd 100644 --- a/pom.xml +++ b/pom.xml @@ -18,7 +18,7 @@ UTF-8 ${project.basedir}/drivers 11.0.26 - 5.0.0 + 5.1.0 true From 7b821ee734c1cf6cc53b0a2b5d6b074a465a7eca Mon Sep 17 00:00:00 2001 From: Paola De Bartolo Date: Tue, 27 Jan 2026 16:01:56 -0300 Subject: [PATCH 2/4] ci: upgrade Vaadin to 25.0.3 in v25 profile --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 06b6bfd..1ae16a1 100644 --- a/pom.xml +++ b/pom.xml @@ -502,7 +502,7 @@ 21 21 - 25.0.0 + 25.0.3 11.0.26 From aee0fc55cc6b2a0bb84be6472bbafc23fb3bf307 Mon Sep 17 00:00:00 2001 From: Paola De Bartolo Date: Tue, 27 Jan 2026 16:13:40 -0300 Subject: [PATCH 3/4] fix: update styles for buttons in overflow for Vaadin 25 compatibility A separate style sheet is needed as buttons are in the shadow dom. Close #17 --- .../dayofweekselector/DayOfWeekSelector.java | 2 + .../styles/fc-days-of-week-selector.css | 52 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 src/main/resources/META-INF/frontend/styles/fc-days-of-week-selector.css diff --git a/src/main/java/com/flowingcode/vaadin/addons/dayofweekselector/DayOfWeekSelector.java b/src/main/java/com/flowingcode/vaadin/addons/dayofweekselector/DayOfWeekSelector.java index 78b03ef..84a9f90 100644 --- a/src/main/java/com/flowingcode/vaadin/addons/dayofweekselector/DayOfWeekSelector.java +++ b/src/main/java/com/flowingcode/vaadin/addons/dayofweekselector/DayOfWeekSelector.java @@ -47,6 +47,8 @@ @CssImport("./styles/fc-days-of-week-selector-styles.css") @CssImport(value = "./styles/vaadin-context-menu-list-box.css", themeFor = "vaadin-context-menu-list-box") +@CssImport(value = "./styles/fc-days-of-week-selector.css", + themeFor = "fc-days-of-week-selector") @JsModule("./src/fc-days-of-week-selector.ts") @Tag("fc-days-of-week-selector") public class DayOfWeekSelector extends CustomField> { diff --git a/src/main/resources/META-INF/frontend/styles/fc-days-of-week-selector.css b/src/main/resources/META-INF/frontend/styles/fc-days-of-week-selector.css new file mode 100644 index 0000000..c0e1dfc --- /dev/null +++ b/src/main/resources/META-INF/frontend/styles/fc-days-of-week-selector.css @@ -0,0 +1,52 @@ +/*- + * #%L + * Day of Week Selector Add-on + * %% + * Copyright (C) 2023 - 2026 Flowing Code + * %% + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * #L% + */ + +/* FOR VAADIN 25 */ +/* for hidden buttons in the overflow */ + +vaadin-button.fc-days-of-week-selector-button { + --lumo-button-size: 40px; + border-radius: 50%; + width: var(--lumo-button-size); + max-width: var(--lumo-button-size); + min-width: var(--lumo-button-size); + height: var(--lumo-button-size); + max-height: var(--lumo-button-size); + min-height: var(--lumo-button-size); + padding-left: calc(var(--lumo-button-size) / 4); + padding-right: calc(var(--lumo-button-size) / 4); +} + +vaadin-button.fc-days-of-week-selector-button[theme~='primary'][disabled]::part(label) { + opacity: 1; +} + +vaadin-button.fc-days-of-week-selector-button[disabled].readOnly{ + color: var(--lumo-secondary-text-color); + background: transparent; +} + +vaadin-button.fc-days-of-week-selector-button[theme~='primary'][disabled].readOnly { + border: var(--vaadin-input-field-readonly-border, 1px dashed var(--lumo-contrast-30pct)); +} + +vaadin-button.fc-days-of-week-selector-button[focus-ring]{ + box-shadow: none; +} From d3226857f6f4532e905e333bf9f9682401b9207d Mon Sep 17 00:00:00 2001 From: Paola De Bartolo Date: Tue, 27 Jan 2026 16:32:24 -0300 Subject: [PATCH 4/4] feat(demo): add AppShellConfiguratorImpl for Vaadin 25 compatibility --- pom.xml | 1 + .../addons/AppShellConfiguratorImpl.java | 28 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 src/test/java/com/flowingcode/vaadin/addons/AppShellConfiguratorImpl.java diff --git a/pom.xml b/pom.xml index 1ae16a1..02ef836 100644 --- a/pom.xml +++ b/pom.xml @@ -474,6 +474,7 @@ **/it/* **/DemoView.class **/DemoLayout.class + **/AppShellConfiguratorImpl.class diff --git a/src/test/java/com/flowingcode/vaadin/addons/AppShellConfiguratorImpl.java b/src/test/java/com/flowingcode/vaadin/addons/AppShellConfiguratorImpl.java new file mode 100644 index 0000000..5f67d7b --- /dev/null +++ b/src/test/java/com/flowingcode/vaadin/addons/AppShellConfiguratorImpl.java @@ -0,0 +1,28 @@ +/*- + * #%L + * Day of Week Selector Add-on + * %% + * Copyright (C) 2023 - 2026 Flowing Code + * %% + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * #L% + */ +package com.flowingcode.vaadin.addons; + +import com.vaadin.flow.component.page.AppShellConfigurator; +import com.vaadin.flow.theme.Theme; + +@Theme +public class AppShellConfiguratorImpl implements AppShellConfigurator { + +}