Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.19.2 ready #523

Merged
merged 219 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
219 commits
Select commit Hold shift + click to select a range
66c3c12
#100 development branch with snapshot version set up
vaadin-miki May 4, 2020
d50a607
#100 ready (#101)
vaadin-miki May 7, 2020
85009d5
#105 fixed
vaadin-miki May 7, 2020
2ce9a58
#108 set up in a separate profile (#109)
vaadin-miki May 12, 2020
ac137aa
automated release notes (#110)
vaadin-miki May 12, 2020
5a61be5
#111 done
vaadin-miki May 12, 2020
06212f3
Merge pull request #112 from vaadin-miki/111-run-sonar-more-often
vaadin-miki May 12, 2020
aa302b5
#113 done
vaadin-miki May 12, 2020
06374ab
Merge pull request #114 from vaadin-miki/113-sonar-and-github-token
vaadin-miki May 12, 2020
bfcb333
#115 done
vaadin-miki May 12, 2020
7c824e4
Merge pull request #116 from vaadin-miki/115-no-shallow-clone
vaadin-miki May 12, 2020
b62bf69
#117 done
vaadin-miki May 13, 2020
82bbb44
#119 hopefully done, needs merging and testing (#120)
vaadin-miki May 25, 2020
8cb6b86
#22 and #124 done (#125)
vaadin-miki May 25, 2020
b833449
#126, #127, #129 done (#128)
vaadin-miki May 28, 2020
88f970e
#132 done (#133)
vaadin-miki May 29, 2020
3e2429e
122 super text field (#134)
vaadin-miki Jun 1, 2020
c50f655
#136 done
vaadin-miki Jun 2, 2020
396c8fe
Merge pull request #138 from vaadin-miki/136-fixed-setreadonly-for-nu…
vaadin-miki Jun 2, 2020
5601d60
#137 done (#140)
vaadin-miki Jun 2, 2020
9c89b31
123 text selection api (#142)
vaadin-miki Jun 4, 2020
df8cdf5
#139 done (#144)
vaadin-miki Jun 5, 2020
292cf82
#143 done (#145)
vaadin-miki Jun 5, 2020
bfc1641
#135 and #146 done (#148)
vaadin-miki Jun 5, 2020
39a3755
#147 done (#149)
vaadin-miki Jun 5, 2020
4cbaffe
#152 done (#153)
vaadin-miki Jun 8, 2020
d6931a3
Bump websocket-extensions from 0.1.3 to 0.1.4 in /demo-v14 (#151)
dependabot[bot] Jun 8, 2020
7d9efbf
#154 fixed (#155)
vaadin-miki Jun 9, 2020
c1be9fe
#131 could it be this simple?
vaadin-miki Jun 10, 2020
01efd91
Merge pull request #158 from vaadin-miki/131-conflict-resolving
vaadin-miki Jun 10, 2020
f9d1431
131 conflict resolving (#164)
vaadin-miki Jun 16, 2020
89c6bd3
#131 using separate step with PR for notes (with automatic merge) (#165)
vaadin-miki Jun 17, 2020
47f03a6
#131 using delayed merge action (#167)
vaadin-miki Jun 21, 2020
ac39ffa
(bot) release notes updated for 0.7.0
vaadin-miki Jun 21, 2020
5222ef1
automatic merge of PR #168
github-actions[bot] Jun 21, 2020
ab9bcca
#171 DatePattern now in a separate package (#172)
vaadin-miki Jun 22, 2020
c3a8281
173 threadlocal unload observer (#175)
vaadin-miki Jun 25, 2020
58ffe02
#170 done (#177)
vaadin-miki Jun 26, 2020
cbcfca6
#178 UnloadObserver is now UI-scoped singleton (#179)
vaadin-miki Jul 1, 2020
187eb88
(bot) release notes updated for 0.7.1
vaadin-miki Jul 1, 2020
e4a3335
automatic merge of PR #180
github-actions[bot] Jul 1, 2020
9aef510
done #182 and #183
vaadin-miki Jul 3, 2020
dd837d7
#174 done (#185)
vaadin-miki Jul 4, 2020
e70d813
(bot) release notes updated for 0.7.2
vaadin-miki Jul 4, 2020
36dd05a
automatic merge of PR #186
github-actions[bot] Jul 4, 2020
677592f
#188 fixes to automated release-notes.md creation (#190)
vaadin-miki Jul 6, 2020
7314c22
#189 done, #191 fixed in the process (#192)
vaadin-miki Jul 6, 2020
558f31e
#188 fixed wrong path (#193)
vaadin-miki Jul 6, 2020
8b04d63
(bot) release notes updated for 0.7.3
vaadin-miki Jul 6, 2020
6ffa1e0
automatic merge of PR #194
github-actions[bot] Jul 6, 2020
7630686
#160 done (#197)
vaadin-miki Jul 8, 2020
6bf0427
#196 done (#198)
vaadin-miki Jul 8, 2020
21a4e7e
#199 fixed (#200)
vaadin-miki Jul 22, 2020
e382394
#201 done (#202)
vaadin-miki Jul 24, 2020
f8a2eb1
(bot) release notes updated for 0.8.0
vaadin-miki Jul 27, 2020
34fa62d
automatic merge of PR #203
github-actions[bot] Jul 27, 2020
fca71dd
Removing beforeunload EventListener on detach (#207)
vaadin-miki Jul 28, 2020
c4d4c19
#208 added contributors to README
vaadin-miki Jul 28, 2020
92f74a1
GridSelect (#213)
vaadin-miki Aug 24, 2020
8e1fc7b
#214 seems done (#215)
vaadin-miki Aug 24, 2020
f2ab4ef
super date (time) picker now optionally always accepts short year (#217)
vaadin-miki Aug 24, 2020
0366d0a
(bot) release notes updated for 0.9.0
vaadin-miki Aug 27, 2020
8801399
automatic merge of PR #218
github-actions[bot] Aug 27, 2020
9e1beea
GridSelect's grid now can no longer have the selection mode changed (…
vaadin-miki Sep 3, 2020
dbd540d
#224 done (#225)
vaadin-miki Sep 7, 2020
563715b
#227 upgraded to vaadin 14.4 and added field helpers (#228)
vaadin-miki Oct 12, 2020
86d1954
#226 slf4j-simple is now demo dependency only (#230)
vaadin-miki Oct 12, 2020
7f009cd
#231 done (#232)
vaadin-miki Oct 12, 2020
aa8f3a2
Bump junit from 4.13 to 4.13.1 in /superfields (#229)
dependabot[bot] Oct 12, 2020
899e5c8
(bot) release notes updated for 0.9.1
vaadin-miki Oct 13, 2020
0bb0cb9
automatic merge of PR #233
github-actions[bot] Oct 13, 2020
3e810fc
Revert "Release notes for version " (#235) because of #220
vaadin-miki Oct 13, 2020
a40eec9
220 release process (#236)
vaadin-miki Oct 13, 2020
637944d
(bot) release notes updated for 0.9.1
vaadin-miki Oct 13, 2020
10e95f0
automatic merge of PR #237
github-actions[bot] Oct 13, 2020
dda5138
number fields validation fixed (#246)
vaadin-miki Nov 20, 2020
0387111
text selection mixin now works in grid (#247)
vaadin-miki Nov 20, 2020
2a89882
(bot) release notes updated for 0.9.2
vaadin-miki Nov 20, 2020
9a58f61
automatic merge of PR #248
github-actions[bot] Nov 20, 2020
a4a23aa
#239 GridMultiSelect done (pr #251)
vaadin-miki Dec 10, 2020
b7cbf37
#239 done (#252)
vaadin-miki Dec 11, 2020
209b0dc
#254 done (#255)
vaadin-miki Dec 16, 2020
8ad940d
ItemGrid item padding done (#250 #256 #257)
vaadin-miki Dec 17, 2020
22e8f02
(bot) release notes updated for 0.9.3
vaadin-miki Dec 17, 2020
5b998f7
automatic merge of PR #258
github-actions[bot] Dec 17, 2020
2bc28e7
#242 seems done for date picker at least (#261)
vaadin-miki Jan 13, 2021
372b6ce
superdatetimepicker type error no longer shown (#262)
vaadin-miki Jan 13, 2021
bbc1b33
(bot) release notes updated for 0.9.4
vaadin-miki Jan 13, 2021
8954a88
automatic merge of PR #263
github-actions[bot] Jan 13, 2021
a47547c
Scientific notation support for SuperBigDecimalField (#266)
vaadin-miki Jan 20, 2021
bad1b23
#264 removed deprecated code, refactored some complex code (#267)
vaadin-miki Jan 20, 2021
7343555
silenced sonar warnings about more than 5 superclasses
vaadin-miki Jan 20, 2021
062c2ae
silenced sonar warnings about more than 5 superclasses (#269)
vaadin-miki Jan 20, 2021
e6ace79
Placing number fields in form layout now honours size (#271)
vaadin-miki Feb 12, 2021
740e95b
#268 fixed, hopefully (#272)
vaadin-miki Feb 14, 2021
e9209d9
First iteration of ContentAware (#156) (#273)
vaadin-miki Feb 22, 2021
933758a
#274 done
vaadin-miki Feb 23, 2021
0208d9e
removed useless log message (#277)
vaadin-miki Feb 23, 2021
db77f5c
#278 Vaadin bumped to 14.4.8 (#279)
vaadin-miki Feb 28, 2021
5bfd326
#280 minimum Java turned to 11 (#281)
vaadin-miki Mar 3, 2021
961669e
(bot) release notes updated for 0.10.0
vaadin-miki Mar 3, 2021
6bb0518
automatic merge of PR #282
github-actions[bot] Mar 3, 2021
6f928f7
#284 fixed (#285)
vaadin-miki Mar 24, 2021
fb9e997
#286 done, Vaadin bumped to 14.5.1 (#287)
vaadin-miki Mar 25, 2021
d495f86
(bot) release notes updated for 0.10.1
vaadin-miki Mar 25, 2021
0e890fb
automatic merge of PR #288
github-actions[bot] Mar 25, 2021
b900acd
290 done, now possible to insert text from server-side (#291)
vaadin-miki Mar 28, 2021
13c759d
#292 #293 done (#294)
vaadin-miki Apr 20, 2021
7526a88
#299 bumped to Vaadin 14.6.3 (#300)
vaadin-miki Jun 17, 2021
c124cab
(bot) release notes updated for 0.10.2
vaadin-miki Jun 17, 2021
0f7d0c7
automatic merge of PR #301
github-actions[bot] Jun 17, 2021
41525be
#304 omit leading zero (#307)
vaadin-miki Aug 10, 2021
c12b9fe
removed test page for #305 from development (#308)
vaadin-miki Aug 10, 2021
9f58b85
CollectionField ready (#311)
vaadin-miki Sep 10, 2021
366e878
Mixins and javadocs cleaned up (#315)
vaadin-miki Sep 15, 2021
2116e22
Bumped Vaadin to 14.7.0 (#316)
vaadin-miki Sep 15, 2021
f446086
(bot) release notes updated for 0.11.0
vaadin-miki Sep 16, 2021
704428d
automatic merge of PR #317
github-actions[bot] Sep 16, 2021
789cd0f
Front-page of the demo app reworked (#321)
vaadin-miki Oct 29, 2021
b5d053d
Helpers are positionable now (#325)
vaadin-miki Oct 29, 2021
137a4ee
Vaadin bumped to 14.7.3 (#327)
vaadin-miki Oct 29, 2021
2f5efb3
fixed a few code quality issues (#328)
vaadin-miki Nov 19, 2021
bf984ab
#329 fixed (#331)
vaadin-miki Nov 26, 2021
6fc1ec5
#330 done (#332)
vaadin-miki Nov 26, 2021
c8eec4f
(bot) release notes updated for 0.11.1
vaadin-miki Nov 26, 2021
c14433a
automatic merge of PR #333
github-actions[bot] Nov 26, 2021
b736a24
#337 valuechangemode and clear buttons (#338)
vaadin-miki Jan 10, 2022
56f5b80
#339 non-destructive format changes (#340)
vaadin-miki Jan 11, 2022
4f54047
#341 updated docs (#342)
vaadin-miki Jan 13, 2022
8859a5a
(bot) release notes updated for 0.11.2
vaadin-miki Jan 13, 2022
d8509b7
automatic merge of PR #343
github-actions[bot] Jan 13, 2022
7d16771
#345 upgraded to Vaadin 14.8.1 (#346)
vaadin-miki Jan 14, 2022
7d08973
#349 Support for Vaadin 23 (#353)
vaadin-miki Mar 31, 2022
ac1ec1f
(bot) release notes updated for 0.12.0
vaadin-miki Mar 31, 2022
a3e5a4b
automatic merge of PR #354
github-actions[bot] Mar 31, 2022
cf0cc93
MapField, LabelField and VariantField (#362)
vaadin-miki Apr 12, 2022
866ef56
#358 hopefully fixed (#363)
vaadin-miki Apr 19, 2022
9670dea
#364 done (#365)
vaadin-miki Apr 19, 2022
f2491cc
(bot) release notes updated for 0.13.0
vaadin-miki Apr 19, 2022
9573ed2
automatic merge of PR #367
github-actions[bot] Apr 19, 2022
e016a0b
added tests for #369 (#370)
vaadin-miki Apr 21, 2022
0bd634e
#371 first try (#372)
vaadin-miki Apr 22, 2022
80612ba
fixed or silenced some issues reported by sonar (#373)
vaadin-miki Apr 22, 2022
ab8cfb8
CollectionField has now element filters (#376)
vaadin-miki Apr 28, 2022
bd89564
(bot) release notes updated for 0.13.1
vaadin-miki May 11, 2022
8614ae4
automatic merge of PR #377
github-actions[bot] May 11, 2022
b961375
#382 fixed (#384)
vaadin-miki Aug 24, 2022
0e96f9e
#380 ObjectField done (#389)
vaadin-miki Sep 9, 2022
7ab164e
#390 #391 Vaadin 23.2 and updated docs (#392)
vaadin-miki Sep 9, 2022
212a1aa
#386 done (#394)
vaadin-miki Sep 9, 2022
c61e4de
#388 #395 #396 fixed (#397)
vaadin-miki Sep 9, 2022
5f0a45f
(bot) release notes updated for 0.14.0
vaadin-miki Sep 9, 2022
7049070
automatic merge of PR #398
github-actions[bot] Sep 9, 2022
d4406ef
#402 #403 #404 done (#405)
vaadin-miki Sep 14, 2022
3b1952c
#400 #406 done (#407)
vaadin-miki Sep 15, 2022
2be310c
#408 done (#409)
vaadin-miki Sep 15, 2022
81a44ee
(bot) release notes updated for 0.14.1
vaadin-miki Sep 15, 2022
2417504
automatic merge of PR #410
github-actions[bot] Sep 15, 2022
6678c34
#412 done (#413)
vaadin-miki Sep 15, 2022
493e252
#414 #415 done (#417)
vaadin-miki Sep 26, 2022
580c046
#416 fixed, hopefully (#418)
vaadin-miki Sep 26, 2022
0608151
(bot) release notes updated for 0.15.0
vaadin-miki Sep 26, 2022
44c8fbe
automatic merge of PR #419
github-actions[bot] Sep 26, 2022
a601ddb
#421 done (#422)
vaadin-miki Oct 6, 2022
d9aef83
#385 goodbye, Heroku (#423)
vaadin-miki Oct 20, 2022
86e95a9
#426 done (#427)
vaadin-miki Nov 8, 2022
1256b40
#428 done (#429)
vaadin-miki Nov 11, 2022
49c0f5f
#366 hopefully done (#430)
vaadin-miki Nov 18, 2022
4fd31b4
#431 updated docs (#432)
vaadin-miki Nov 18, 2022
22ffc4d
(bot) release notes updated for 0.16.0
vaadin-miki Nov 18, 2022
9d0d5f7
automatic merge of PR #433
github-actions[bot] Nov 18, 2022
92ca82a
fixing release to central (#436)
vaadin-miki Nov 18, 2022
8db758e
#440 done (#441)
vaadin-miki Nov 22, 2022
a911425
#437 done (#442)
vaadin-miki Nov 25, 2022
a2496c4
#443 hopefully done (#444)
vaadin-miki Nov 25, 2022
3b566a7
#445 done (#446)
vaadin-miki Nov 25, 2022
fd38ec5
#448 #451 #454 #456 fixed (#455)
vaadin-miki Jan 27, 2023
df74337
(bot) release notes updated for 0.17.0
vaadin-miki Jan 31, 2023
985639e
automatic merge of PR #457
github-actions[bot] Jan 31, 2023
4d1444d
#449 done
vaadin-miki Mar 24, 2023
62190b9
#463 using some java 17 features (#464)
vaadin-miki Mar 24, 2023
a9fca97
(bot) release notes updated for 0.18.0
vaadin-miki Mar 26, 2023
d68b1f3
automatic merge of PR #465
github-actions[bot] Mar 26, 2023
17adc52
#467 hopefully done (#468)
vaadin-miki Mar 28, 2023
9352284
(bot) release notes updated for 0.18.1
vaadin-miki Mar 28, 2023
f359bb1
automatic merge of PR #469
github-actions[bot] Mar 28, 2023
536bfe9
#471 done (#474)
vaadin-miki May 5, 2023
a1a13ea
#472 number fields have now configurable alternative symbols (#475)
vaadin-miki May 25, 2023
6302201
#467 fixed, hopefully (#476)
vaadin-miki May 25, 2023
90959f6
#477 done (#478)
vaadin-miki May 25, 2023
9df26b4
(bot) release notes updated for 0.18.2
vaadin-miki May 25, 2023
6a0bf95
automatic merge of PR #479
github-actions[bot] May 25, 2023
4b67d41
#481 likely done (#482)
vaadin-miki Jun 2, 2023
7679c4b
#473 setPreventingInvalidInput done (#483)
vaadin-miki Jun 14, 2023
bbac338
(bot) release notes updated for 0.18.3
vaadin-miki Jun 14, 2023
20e07dc
automatic merge of PR #484
github-actions[bot] Jun 14, 2023
3dc0776
#487 done (#491)
vaadin-miki Nov 10, 2023
72e25be
#490 done (#492)
vaadin-miki Nov 10, 2023
0d598f5
#488 and #494 most likely done (#495)
vaadin-miki Nov 17, 2023
e1c4bfc
#493 done (#496)
vaadin-miki Nov 24, 2023
bde6a55
#497 done (#499)
vaadin-miki Dec 8, 2023
bfaa8e6
#498 likely done (#500)
vaadin-miki Dec 11, 2023
16c1e95
#498 done; added custom visibility ranges (#501)
vaadin-miki Dec 15, 2023
d45ca89
#502 done (#503)
vaadin-miki Dec 15, 2023
610ae28
(bot) release notes updated for 0.19.0
vaadin-miki Dec 15, 2023
3ae2934
automatic merge of PR #504
github-actions[bot] Dec 15, 2023
c3c0dbe
#508 likely done (#509)
vaadin-miki Dec 21, 2023
1f80021
#54 Swedish translation to superdatepickeri18n.properties (#507) (#510)
vaadin-miki Dec 21, 2023
b103a03
#511 done (#512)
vaadin-miki Dec 22, 2023
d63bb8f
#513 #514 done (#515)
vaadin-miki May 31, 2024
4732917
(bot) release notes updated for 0.19.1
vaadin-miki Jul 15, 2024
eec7c23
automatic merge of PR #516
github-actions[bot] Jul 15, 2024
f32b61a
#518 done (#520)
vaadin-miki Aug 29, 2024
d3054a2
#519 done (#521)
vaadin-miki Sep 6, 2024
af3ff88
(bot) release notes updated for 0.19.2
vaadin-miki Sep 6, 2024
e8de839
automatic merge of PR #522
github-actions[bot] Sep 6, 2024
5097d2b
(bot) version updated to 0.19.2
vaadin-miki Sep 6, 2024
6e01228
Merge branch 'master' into release-0.19.2
vaadin-miki Sep 6, 2024
37842e3
Update release-notes.md
vaadin-miki Sep 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This is the relevant dependency:
<dependency>
<groupId>pl.unforgiven</groupId>
<artifactId>superfields</artifactId>
<version>0.19.1</version>
<version>0.19.2</version>
</dependency>
```

Expand Down
5 changes: 4 additions & 1 deletion demo-v24/frontend/generated/vaadin-featureflags.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ window.Vaadin.featureFlags.exampleFeatureFlag = false;
window.Vaadin.featureFlags.collaborationEngineBackend = false;
window.Vaadin.featureFlags.webPush = false;
window.Vaadin.featureFlags.formFillerAddon = false;
window.Vaadin.featureFlags.reactRouter = false;
window.Vaadin.featureFlags.hillaI18n = false;
window.Vaadin.featureFlags.copilotFlow = false;
window.Vaadin.featureFlags.copilotI18n = false;
window.Vaadin.featureFlags.copilotExperimentalFeatures = false;
export {};
6 changes: 3 additions & 3 deletions demo-v24/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<parent>
<artifactId>superfields-parent</artifactId>
<groupId>pl.unforgiven</groupId>
<version>0.19.1</version>
<version>0.19.2</version>
</parent>

<artifactId>superfields-demo-v24</artifactId>
<version>0.19.1</version>
<version>0.19.2</version>
<name>V24+ demo app for SuperFields</name>
<description>Showcase application for V24+ and SuperFields.</description>
<packaging>war</packaging>
Expand All @@ -22,7 +22,7 @@
<dependency>
<groupId>pl.unforgiven</groupId>
<artifactId>superfields</artifactId>
<version>0.19.1</version>
<version>0.19.2</version>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.vaadin.miki.demo.builders;

import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.checkbox.Checkbox;
import com.vaadin.flow.component.combobox.ComboBox;
import org.vaadin.miki.demo.ContentBuilder;
Expand Down Expand Up @@ -30,6 +31,8 @@ public void buildContent(SuperTabs<?> component, Consumer<Component[]> callback)
component.setTabHandler(event.getValue());
});

callback.accept(new Component[]{multilineTabs, tabHandlers});
@SuppressWarnings("unchecked")
final Button tabSelect = new Button("Switch to \"Open source\" tab with .setSelected()", event -> ((SuperTabs<String>)component).getTabHeader("Open source").ifPresent(tab -> tab.setSelected(true)));
callback.accept(new Component[]{multilineTabs, tabHandlers, tabSelect});
}
}
2 changes: 1 addition & 1 deletion demo-v24/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// You might want to change the configurations to fit your preferences
// For more information about the configurations, please refer to http://www.typescriptlang.org/docs/handbook/tsconfig-json.html
{
"_version": "9",
"_version": "9.1",
"compilerOptions": {
"sourceMap": true,
"jsx": "react-jsx",
Expand Down
11 changes: 9 additions & 2 deletions demo-v24/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@
// This is needed for TypeScript compiler to declare and export as a TypeScript module.
// It is recommended to commit this file to the VCS.
// You might want to change the configurations to fit your preferences
declare module '*.css' {
import { CSSResultGroup } from 'lit';
declare module '*.css?inline' {
import type { CSSResultGroup } from 'lit';
const content: CSSResultGroup;
export default content;
}

// Allow any CSS Custom Properties
declare module 'csstype' {
interface Properties {
[index: `--${string}`]: any;
}
}
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>pl.unforgiven</groupId>
<artifactId>superfields-parent</artifactId>
<version>0.19.1</version>
<version>0.19.2</version>
<modules>
<module>superfields</module>
<module>demo-v24</module>
Expand All @@ -18,7 +18,7 @@
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<vaadin.version>24.3.12</vaadin.version>
<vaadin.version>24.4.11</vaadin.version>
</properties>

</project>
4 changes: 2 additions & 2 deletions superfields/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<name>SuperFields</name>
<description>Code for various Vaadin 24 fields and other components.</description>
<url>https://www.unforgiven.pl/superfields</url>
<version>0.19.1</version>
<version>0.19.2</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<vaadin.version>24.3.12</vaadin.version>
<vaadin.version>24.4.11</vaadin.version>
<maven.jar.plugin.version>3.1.2</maven.jar.plugin.version>
<javadoc.plugin.version>3.4.1</javadoc.plugin.version>
</properties>
Expand Down
9 changes: 8 additions & 1 deletion superfields/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 0.19.2 - Vaadin 24.4
## New features and enhancements
* \#518 - [selecting a tab programmatically in SuperTabs](https://github.com/vaadin-miki/super-fields/issues/518)
## Changes to API
* \#519 - [Upgrade to Vaadin 24.4](https://github.com/vaadin-miki/super-fields/issues/519)
## Bug fixes
(nothing reported)
# 0.19.1 - Bug fixes
## New features and enhancements
(nothing reported)
Expand Down Expand Up @@ -340,4 +347,4 @@
## Changes to API
(nothing reported)
## Bug fixes
* \#10 - [Max integer length does not work if it is a multiplication of grouping size](https://www.github.com/vaadin-miki/super-fields/issues/10)
* \#10 - [Max integer length does not work if it is a multiplication of grouping size](https://www.github.com/vaadin-miki/super-fields/issues/10)
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.vaadin.flow.component.html.Span;
import com.vaadin.flow.component.tabs.Tab;
import com.vaadin.flow.component.tabs.Tabs;
import com.vaadin.flow.dom.PropertyChangeEvent;
import org.vaadin.miki.markers.WithHelperMixin;
import org.vaadin.miki.markers.WithHelperPositionableMixin;
import org.vaadin.miki.markers.WithIdMixin;
Expand Down Expand Up @@ -207,6 +208,20 @@ protected void addNewTab(T value, Tab tab, Component content, boolean select) {
else
this.updateValue();
}
tab.getElement().addPropertyChangeListener("selected", this::tabSelectedPropertyChanged);
}

private void tabSelectedPropertyChanged(PropertyChangeEvent propertyChangeEvent) {
if(propertyChangeEvent.getPropertyName().equals("selected") &&
(propertyChangeEvent.getOldValue() == null || !Boolean.parseBoolean(propertyChangeEvent.getOldValue().toString())) &&
propertyChangeEvent.getValue() != null &&
Boolean.parseBoolean(propertyChangeEvent.getValue().toString())) {
this.tabsToContents.entrySet().stream()
.filter(entry -> Objects.equals(entry.getKey().getElement(), propertyChangeEvent.getSource()))
.findFirst()
.map(Map.Entry::getKey)
.ifPresent(this.tabs::setSelectedTab);
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import org.vaadin.miki.shared.dates.DatePatterns;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.time.format.FormatStyle;
import java.util.Locale;

public class DatePatternDelegateTest {
Expand Down Expand Up @@ -44,7 +46,8 @@ public void testFormattedValue() {

// now formatted according to locale
raw = this.datePicker.getFormattedValue();
Assert.assertEquals("03.05.1999", raw);
final String formatted = DateTimeFormatter.ofLocalizedDate(FormatStyle.SHORT).withLocale(this.datePicker.getLocale()).format(expected);
Assert.assertEquals(formatted, raw);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;

public class SuperTabsTest {

Expand Down Expand Up @@ -243,4 +244,20 @@ public void testChangingTabHandler() {
}
}

@Test
public void testTabSetSelected() {
final String tabTitle = "foo";
this.tabs.addTab("something", "anything", tabTitle, "another thing");
Assert.assertNotEquals(tabTitle, this.tabs.getValue());
final Optional<Tab> perhapsHeader = this.tabs.getTabHeader(tabTitle);
Assert.assertTrue(perhapsHeader.isPresent());
final Tab tab = perhapsHeader.get();
tab.setSelected(true);
Assert.assertEquals(tabTitle, this.tabs.getValue());

final Tab notThere = new Tab("oh wow");
notThere.setSelected(true);
Assert.assertEquals(tabTitle, this.tabs.getValue());
}

}
Loading