Skip to content

Commit 3f1dfbf

Browse files
authored
Merge pull request #392 from xdev-software/develop
Release
2 parents ca48b00 + 679ec0f commit 3f1dfbf

27 files changed

+111
-75
lines changed

.config/pmd/ruleset.xml

+7
Original file line numberDiff line numberDiff line change
@@ -151,5 +151,12 @@
151151
<exclude name="UseStringBufferForStringAppends"/>
152152
</rule>
153153

154+
<rule ref="category/java/performance.xml/TooFewBranchesForSwitch">
155+
<properties>
156+
<!-- If you have one case only please use a if -->
157+
<property name="minimumNumberCaseForASwitch" value="2"/>
158+
</properties>
159+
</rule>
160+
154161
<rule ref="category/java/security.xml"/>
155162
</ruleset>

.github/workflows/broken-links.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@ permissions:
1111
jobs:
1212
link-checker:
1313
runs-on: ubuntu-latest
14+
timeout-minutes: 15
1415
steps:
1516
- uses: actions/checkout@v4
1617

1718
- run: mv .github/.lycheeignore .lycheeignore
1819

1920
- name: Link Checker
2021
id: lychee
21-
uses: lycheeverse/lychee-action@v1
22+
uses: lycheeverse/lychee-action@v2
23+
with:
24+
fail: false # Don't fail on broken links, create an issue instead
2225

2326
- name: Find already existing issue
2427
id: find-issue

.github/workflows/check-build.yml

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ env:
2626
jobs:
2727
build:
2828
runs-on: ubuntu-latest
29+
timeout-minutes: 30
2930

3031
strategy:
3132
matrix:
@@ -73,6 +74,7 @@ jobs:
7374
checkstyle:
7475
runs-on: ubuntu-latest
7576
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate/') }}
77+
timeout-minutes: 15
7678

7779
strategy:
7880
matrix:
@@ -95,6 +97,7 @@ jobs:
9597
pmd:
9698
runs-on: ubuntu-latest
9799
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate/') }}
100+
timeout-minutes: 15
98101

99102
strategy:
100103
matrix:

.github/workflows/release.yml

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ permissions:
1414
jobs:
1515
check-code:
1616
runs-on: ubuntu-latest
17+
timeout-minutes: 30
1718
steps:
1819
- uses: actions/checkout@v4
1920

@@ -48,6 +49,7 @@ jobs:
4849
prepare-release:
4950
runs-on: ubuntu-latest
5051
needs: [check-code]
52+
timeout-minutes: 10
5153
outputs:
5254
upload_url: ${{ steps.create_release.outputs.upload_url }}
5355
steps:
@@ -112,6 +114,7 @@ jobs:
112114
publish-maven:
113115
runs-on: ubuntu-latest
114116
needs: [prepare-release]
117+
timeout-minutes: 60
115118
steps:
116119
- uses: actions/checkout@v4
117120

@@ -143,6 +146,7 @@ jobs:
143146
publish-pages:
144147
runs-on: ubuntu-latest
145148
needs: [prepare-release]
149+
timeout-minutes: 15
146150
steps:
147151
- uses: actions/checkout@v4
148152

@@ -172,6 +176,7 @@ jobs:
172176
after-release:
173177
runs-on: ubuntu-latest
174178
needs: [publish-maven]
179+
timeout-minutes: 10
175180
steps:
176181
- uses: actions/checkout@v4
177182

.github/workflows/sonar.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- '.idea/**'
1212
- 'assets/**'
1313
pull_request:
14-
types: [opened, synchronize, reopened]
14+
branches: [ develop ]
1515
paths-ignore:
1616
- '**.md'
1717
- '.config/**'
@@ -27,6 +27,7 @@ jobs:
2727
token-check:
2828
runs-on: ubuntu-latest
2929
if: ${{ !(github.event_name == 'pull_request' && startsWith(github.head_ref, 'renovate/')) }}
30+
timeout-minutes: 5
3031
outputs:
3132
hasToken: ${{ steps.check-token.outputs.has }}
3233
steps:
@@ -40,6 +41,7 @@ jobs:
4041
runs-on: ubuntu-latest
4142
needs: token-check
4243
if: ${{ needs.token-check.outputs.hasToken }}
44+
timeout-minutes: 30
4345
steps:
4446
- uses: actions/checkout@v4
4547
with:

.github/workflows/sync-labels.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ permissions:
1414
jobs:
1515
labels:
1616
runs-on: ubuntu-latest
17+
timeout-minutes: 10
1718
steps:
1819
- uses: actions/checkout@v4
1920
with:

.github/workflows/test-deploy.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ env:
99
jobs:
1010
publish-maven:
1111
runs-on: ubuntu-latest
12+
timeout-minutes: 60
1213
steps:
1314
- uses: actions/checkout@v4
1415

.github/workflows/update-from-template.yml

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ permissions:
3131
jobs:
3232
update:
3333
runs-on: ubuntu-latest
34+
timeout-minutes: 60
3435
outputs:
3536
update_branch_merged_commit: ${{ steps.manage-branches.outputs.update_branch_merged_commit }}
3637
create_update_branch_merged_pr: ${{ steps.manage-branches.outputs.create_update_branch_merged_pr }}
@@ -180,6 +181,7 @@ jobs:
180181
needs: [update]
181182
if: needs.update.outputs.create_update_branch_merged_pr == 1
182183
runs-on: ubuntu-latest
184+
timeout-minutes: 60
183185
steps:
184186
- uses: actions/checkout@v4
185187
with:

.idea/checkstyle-idea.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.mvn/wrapper/maven-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.8/apache-maven-3.9.8-bin.zip
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip

CHANGELOG.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 4.2.0
2+
* Improved styling
3+
* Overlay now has the same minimum width as the underlying DateRangePicker
4+
* The default is ``20em``, this can be changed using ``--date-range-picker-min-width``
5+
* Layouts inside the overlay now use the full available width
6+
* Removed excess top padding from input components
7+
* Refactored CSS class names (should cause less conflicts now)
8+
* Updated to Vaadin 24.5
9+
110
## 4.1.1
211
* Only use client-side locale for formatting when no ``formatLocale`` has been set #353
312

@@ -13,7 +22,6 @@
1322
* Various dependency updates including Vaadin 24.1
1423

1524
## 4.0.0
16-
1725
⚠️<i>This release contains breaking changes</i>
1826

1927
* Adds support for Vaadin 24+, drops support for Vaadin 23<br/>
@@ -32,12 +40,10 @@
3240
* Vaadin 23.3
3341

3442
## 3.0.1
35-
3643
* Updated dependencies
3744
* Vaadin 23.2
3845

3946
## 3.0.0
40-
4147
⚠️<i>This release contains breaking changes</i>
4248

4349
* Adds support for Vaadin 23+, drops support for Vaadin 14 #155<br/>

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ A Vaadin Flow DateRangePicker implementation
1919
| --- | --- |
2020
| Vaadin 24+ (latest) | ``4+`` |
2121
| Vaadin 23 | ``3.x`` |
22-
| Vaadin 14 (LTS - former release model) | ``2.x`` |
22+
| Vaadin 14 | ``2.x`` |
2323

2424
## Run the Demo
2525
* Checkout the repo

pom.xml

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>software.xdev</groupId>
88
<artifactId>vaadin-date-range-picker-root</artifactId>
9-
<version>4.1.2-SNAPSHOT</version>
9+
<version>4.2.0-SNAPSHOT</version>
1010
<packaging>pom</packaging>
1111

1212
<organization>
@@ -40,12 +40,12 @@
4040
<plugin>
4141
<groupId>org.apache.maven.plugins</groupId>
4242
<artifactId>maven-checkstyle-plugin</artifactId>
43-
<version>3.4.0</version>
43+
<version>3.6.0</version>
4444
<dependencies>
4545
<dependency>
4646
<groupId>com.puppycrawl.tools</groupId>
4747
<artifactId>checkstyle</artifactId>
48-
<version>10.17.0</version>
48+
<version>10.20.1</version>
4949
</dependency>
5050
</dependencies>
5151
<configuration>
@@ -70,7 +70,7 @@
7070
<plugin>
7171
<groupId>org.apache.maven.plugins</groupId>
7272
<artifactId>maven-pmd-plugin</artifactId>
73-
<version>3.24.0</version>
73+
<version>3.26.0</version>
7474
<configuration>
7575
<includeTests>true</includeTests>
7676
<printFailingErrors>true</printFailingErrors>
@@ -82,12 +82,12 @@
8282
<dependency>
8383
<groupId>net.sourceforge.pmd</groupId>
8484
<artifactId>pmd-core</artifactId>
85-
<version>7.4.0</version>
85+
<version>7.7.0</version>
8686
</dependency>
8787
<dependency>
8888
<groupId>net.sourceforge.pmd</groupId>
8989
<artifactId>pmd-java</artifactId>
90-
<version>7.4.0</version>
90+
<version>7.7.0</version>
9191
</dependency>
9292
</dependencies>
9393
</plugin>
@@ -99,7 +99,7 @@
9999
<plugin>
100100
<groupId>org.apache.maven.plugins</groupId>
101101
<artifactId>maven-jxr-plugin</artifactId>
102-
<version>3.4.0</version>
102+
<version>3.6.0</version>
103103
</plugin>
104104
</plugins>
105105
</reporting>

vaadin-date-range-picker-demo/pom.xml

+16-4
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<parent>
88
<groupId>software.xdev</groupId>
99
<artifactId>vaadin-date-range-picker-root</artifactId>
10-
<version>4.1.2-SNAPSHOT</version>
10+
<version>4.2.0-SNAPSHOT</version>
1111
</parent>
1212

1313
<artifactId>vaadin-date-range-picker-demo</artifactId>
14-
<version>4.1.2-SNAPSHOT</version>
14+
<version>4.2.0-SNAPSHOT</version>
1515
<packaging>jar</packaging>
1616

1717
<organization>
@@ -29,9 +29,9 @@
2929
<mainClass>software.xdev.vaadin.Application</mainClass>
3030

3131
<!-- Dependency-Versions -->
32-
<vaadin.version>24.4.7</vaadin.version>
32+
<vaadin.version>24.5.3</vaadin.version>
3333

34-
<org.springframework.boot.version>3.3.2</org.springframework.boot.version>
34+
<org.springframework.boot.version>3.3.5</org.springframework.boot.version>
3535
</properties>
3636

3737
<dependencyManagement>
@@ -61,6 +61,12 @@
6161
<dependency>
6262
<groupId>com.vaadin</groupId>
6363
<artifactId>vaadin-core</artifactId>
64+
<exclusions>
65+
<exclusion>
66+
<groupId>com.vaadin</groupId>
67+
<artifactId>hilla-dev</artifactId>
68+
</exclusion>
69+
</exclusions>
6470
</dependency>
6571
<dependency>
6672
<groupId>software.xdev</groupId>
@@ -72,6 +78,12 @@
7278
<dependency>
7379
<groupId>com.vaadin</groupId>
7480
<artifactId>vaadin-spring-boot-starter</artifactId>
81+
<exclusions>
82+
<exclusion>
83+
<groupId>com.vaadin</groupId>
84+
<artifactId>hilla</artifactId>
85+
</exclusion>
86+
</exclusions>
7587
</dependency>
7688
<!-- Temporarily excluded by Vaadin due to "security vulnerability" -->
7789
<dependency>

vaadin-date-range-picker-demo/src/main/java/software/xdev/vaadin/daterange_picker/example/DateRangePickerStyledDemo.java

+12-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
import com.vaadin.flow.component.HasSize;
44
import com.vaadin.flow.component.UI;
55
import com.vaadin.flow.component.button.Button;
6+
import com.vaadin.flow.component.html.Div;
67
import com.vaadin.flow.component.icon.VaadinIcon;
78
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
9+
import com.vaadin.flow.component.splitlayout.SplitLayout;
810
import com.vaadin.flow.dom.ThemeList;
911
import com.vaadin.flow.router.Route;
1012
import com.vaadin.flow.theme.lumo.Lumo;
@@ -15,15 +17,20 @@ public class DateRangePickerStyledDemo extends AbstractSimpleChangeDemo
1517
{
1618
public static final String NAV = "styled";
1719

18-
private final Button btnDarkMode = new Button("Toogle theme");
20+
private final Button btnDarkMode = new Button("Toggle theme");
1921

2022
public DateRangePickerStyledDemo()
2123
{
2224
this.initUI();
2325
}
2426

27+
@SuppressWarnings("checkstyle:MagicNumber")
2528
protected void initUI()
2629
{
30+
this.dateRangePicker.setWidthFull();
31+
32+
this.taResult.setSizeFull();
33+
2734
this.btnDarkMode.addClickListener(ev ->
2835
{
2936
final ThemeList themeList = UI.getCurrent().getElement().getThemeList();
@@ -40,11 +47,13 @@ protected void initUI()
4047
this.updateBtnDarkMode();
4148
});
4249

43-
this.taResult.setSizeFull();
50+
final SplitLayout splitLayout = new SplitLayout(this.dateRangePicker, new Div());
51+
splitLayout.setSplitterPosition(25);
52+
splitLayout.setWidthFull();
4453

4554
this.getContent().setPadding(false);
4655
this.getContent().add(
47-
new VerticalLayout(this.dateRangePicker),
56+
splitLayout,
4857
new VerticalLayout(this.taResult, this.btnDarkMode));
4958
this.getContent().getChildren().forEach(comp -> ((HasSize)comp).setHeight("50%"));
5059
this.getContent().setHeightFull();

0 commit comments

Comments
 (0)