Skip to content

Commit

Permalink
Release 0.8.0 ready (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaadin-miki authored Jul 27, 2020
1 parent f7374ef commit 0e7b94d
Show file tree
Hide file tree
Showing 36 changed files with 3,053 additions and 2,096 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This is the relevant dependency:
<dependency>
<groupId>org.vaadin.miki</groupId>
<artifactId>superfields</artifactId>
<version>0.7.3</version>
<version>0.8.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion demo-v14/frontend/styles/demo-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ span.highlighted {

.tab-icon {
margin-right: 5px;
}
}
3,748 changes: 1,794 additions & 1,954 deletions demo-v14/package-lock.json

Large diffs are not rendered by default.

158 changes: 81 additions & 77 deletions demo-v14/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,48 @@
"dependencies": {
"@polymer/polymer": "3.2.0",
"@webcomponents/webcomponentsjs": "^2.2.10",
"@vaadin/vaadin-crud": "1.1.0",
"@vaadin/vaadin-grid": "5.5.3",
"@vaadin/vaadin-crud": "1.2.1",
"@vaadin/vaadin-grid": "5.6.6",
"@vaadin/vaadin-icons": "4.3.1",
"@vaadin/vaadin-split-layout": "4.1.1",
"@vaadin/vaadin-combo-box": "5.0.11",
"@vaadin/vaadin-split-layout": "4.2.0",
"@vaadin/vaadin-combo-box": "5.2.0",
"@vaadin/vaadin-cookie-consent": "1.1.2",
"@vaadin/vaadin-core-shrinkwrap": "14.2.0",
"@vaadin/vaadin-upload": "4.2.2",
"@vaadin/vaadin-dialog": "2.3.0",
"@vaadin/vaadin-select": "2.1.7",
"@vaadin/vaadin-app-layout": "2.0.5",
"@vaadin/vaadin-item": "2.1.1",
"@vaadin/vaadin-core-shrinkwrap": "14.3.0",
"@vaadin/vaadin-upload": "4.3.0",
"@vaadin/vaadin-dialog": "2.4.2",
"@vaadin/vaadin-select": "2.2.0",
"@vaadin/vaadin-app-layout": "2.1.0",
"@vaadin/vaadin-item": "2.2.0",
"@vaadin/vaadin-board": "2.1.1",
"@vaadin/vaadin-charts": "6.2.4",
"@vaadin/vaadin-notification": "1.4.0",
"@vaadin/vaadin-grid-pro": "2.0.7",
"@vaadin/vaadin-progress-bar": "1.1.2",
"@vaadin/vaadin-shrinkwrap": "14.2.0",
"@vaadin/vaadin-date-time-picker": "1.0.0",
"@vaadin/vaadin-ordered-layout": "1.2.0",
"@vaadin/vaadin-login": "1.0.1",
"@vaadin/vaadin-button": "2.2.2",
"@vaadin/vaadin-date-picker": "4.0.8",
"@vaadin/vaadin-text-field": "2.5.5",
"@vaadin/vaadin-menu-bar": "1.0.5",
"@vaadin/vaadin-custom-field": "1.0.11",
"@vaadin/vaadin-form-layout": "2.1.7",
"@vaadin/vaadin-confirm-dialog": "1.1.6",
"@vaadin/vaadin-accordion": "1.0.1",
"@polymer/iron-list": "3.0.2",
"@vaadin/vaadin-list-box": "1.2.0",
"@vaadin/vaadin-details": "1.0.1",
"@vaadin/vaadin-checkbox": "2.2.13",
"@vaadin/vaadin-charts": "6.3.0",
"@vaadin/vaadin-notification": "1.5.0",
"@vaadin/vaadin-grid-pro": "2.1.1",
"@vaadin/vaadin-progress-bar": "1.2.0",
"@vaadin/vaadin-shrinkwrap": "14.3.0",
"@vaadin/vaadin-date-time-picker": "1.2.0",
"@vaadin/vaadin-ordered-layout": "1.3.0",
"@vaadin/vaadin-login": "1.1.0",
"@vaadin/vaadin-button": "2.3.0",
"@vaadin/vaadin-date-picker": "4.2.0",
"@vaadin/vaadin-text-field": "2.6.2",
"@vaadin/vaadin-menu-bar": "1.1.0",
"@vaadin/vaadin-custom-field": "1.1.0",
"@vaadin/vaadin-form-layout": "2.2.0",
"@vaadin/vaadin-confirm-dialog": "1.2.0",
"@vaadin/vaadin-accordion": "1.1.0",
"@polymer/iron-list": "3.1.0",
"@vaadin/vaadin-list-box": "1.3.0",
"@vaadin/vaadin-details": "1.1.0",
"@vaadin/vaadin-checkbox": "2.3.0",
"@polymer/iron-icon": "3.0.1",
"@vaadin/vaadin-time-picker": "2.0.7",
"@vaadin/vaadin-context-menu": "4.3.15",
"@vaadin/vaadin-tabs": "3.0.5",
"@vaadin/vaadin-radio-button": "1.2.6",
"@vaadin/vaadin-lumo-styles": "1.5.0",
"@vaadin/vaadin-material-styles": "1.2.3",
"@vaadin/vaadin-rich-text-editor": "1.1.1"
"@vaadin/vaadin-time-picker": "2.2.0",
"@vaadin/vaadin-context-menu": "4.4.0",
"@vaadin/vaadin-tabs": "3.1.0",
"@vaadin/vaadin-radio-button": "1.3.0",
"@vaadin/vaadin-lumo-styles": "1.6.0",
"@vaadin/vaadin-material-styles": "1.3.2",
"@vaadin/vaadin-rich-text-editor": "1.2.0",
"lit-element": "^2.2.1"
},
"devDependencies": {
"webpack": "4.42.0",
Expand All @@ -55,53 +56,55 @@
"webpack-merge": "4.2.2",
"raw-loader": "3.1.0",
"compression-webpack-plugin": "3.1.0",
"terser": "4.6.7"
"terser": "4.6.7",
"chokidar": "^3.4.0"
},
"vaadin": {
"dependencies": {
"@polymer/polymer": "3.2.0",
"@webcomponents/webcomponentsjs": "^2.2.10",
"@vaadin/vaadin-crud": "1.1.0",
"@vaadin/vaadin-grid": "5.5.3",
"@vaadin/vaadin-crud": "1.2.1",
"@vaadin/vaadin-grid": "5.6.6",
"@vaadin/vaadin-icons": "4.3.1",
"@vaadin/vaadin-split-layout": "4.1.1",
"@vaadin/vaadin-combo-box": "5.0.11",
"@vaadin/vaadin-split-layout": "4.2.0",
"@vaadin/vaadin-combo-box": "5.2.0",
"@vaadin/vaadin-cookie-consent": "1.1.2",
"@vaadin/vaadin-core-shrinkwrap": "14.2.0",
"@vaadin/vaadin-upload": "4.2.2",
"@vaadin/vaadin-dialog": "2.3.0",
"@vaadin/vaadin-select": "2.1.7",
"@vaadin/vaadin-app-layout": "2.0.5",
"@vaadin/vaadin-item": "2.1.1",
"@vaadin/vaadin-core-shrinkwrap": "14.3.0",
"@vaadin/vaadin-upload": "4.3.0",
"@vaadin/vaadin-dialog": "2.4.2",
"@vaadin/vaadin-select": "2.2.0",
"@vaadin/vaadin-app-layout": "2.1.0",
"@vaadin/vaadin-item": "2.2.0",
"@vaadin/vaadin-board": "2.1.1",
"@vaadin/vaadin-charts": "6.2.4",
"@vaadin/vaadin-notification": "1.4.0",
"@vaadin/vaadin-grid-pro": "2.0.7",
"@vaadin/vaadin-progress-bar": "1.1.2",
"@vaadin/vaadin-shrinkwrap": "14.2.0",
"@vaadin/vaadin-date-time-picker": "1.0.0",
"@vaadin/vaadin-ordered-layout": "1.2.0",
"@vaadin/vaadin-login": "1.0.1",
"@vaadin/vaadin-button": "2.2.2",
"@vaadin/vaadin-date-picker": "4.0.8",
"@vaadin/vaadin-text-field": "2.5.5",
"@vaadin/vaadin-menu-bar": "1.0.5",
"@vaadin/vaadin-custom-field": "1.0.11",
"@vaadin/vaadin-form-layout": "2.1.7",
"@vaadin/vaadin-confirm-dialog": "1.1.6",
"@vaadin/vaadin-accordion": "1.0.1",
"@polymer/iron-list": "3.0.2",
"@vaadin/vaadin-list-box": "1.2.0",
"@vaadin/vaadin-details": "1.0.1",
"@vaadin/vaadin-checkbox": "2.2.13",
"@vaadin/vaadin-charts": "6.3.0",
"@vaadin/vaadin-notification": "1.5.0",
"@vaadin/vaadin-grid-pro": "2.1.1",
"@vaadin/vaadin-progress-bar": "1.2.0",
"@vaadin/vaadin-shrinkwrap": "14.3.0",
"@vaadin/vaadin-date-time-picker": "1.2.0",
"@vaadin/vaadin-ordered-layout": "1.3.0",
"@vaadin/vaadin-login": "1.1.0",
"@vaadin/vaadin-button": "2.3.0",
"@vaadin/vaadin-date-picker": "4.2.0",
"@vaadin/vaadin-text-field": "2.6.2",
"@vaadin/vaadin-menu-bar": "1.1.0",
"@vaadin/vaadin-custom-field": "1.1.0",
"@vaadin/vaadin-form-layout": "2.2.0",
"@vaadin/vaadin-confirm-dialog": "1.2.0",
"@vaadin/vaadin-accordion": "1.1.0",
"@polymer/iron-list": "3.1.0",
"@vaadin/vaadin-list-box": "1.3.0",
"@vaadin/vaadin-details": "1.1.0",
"@vaadin/vaadin-checkbox": "2.3.0",
"@polymer/iron-icon": "3.0.1",
"@vaadin/vaadin-time-picker": "2.0.7",
"@vaadin/vaadin-context-menu": "4.3.15",
"@vaadin/vaadin-tabs": "3.0.5",
"@vaadin/vaadin-radio-button": "1.2.6",
"@vaadin/vaadin-lumo-styles": "1.5.0",
"@vaadin/vaadin-material-styles": "1.2.3",
"@vaadin/vaadin-rich-text-editor": "1.1.1"
"@vaadin/vaadin-time-picker": "2.2.0",
"@vaadin/vaadin-context-menu": "4.4.0",
"@vaadin/vaadin-tabs": "3.1.0",
"@vaadin/vaadin-radio-button": "1.3.0",
"@vaadin/vaadin-lumo-styles": "1.6.0",
"@vaadin/vaadin-material-styles": "1.3.2",
"@vaadin/vaadin-rich-text-editor": "1.2.0",
"lit-element": "^2.2.1"
},
"devDependencies": {
"webpack-babel-multi-target-plugin": "2.3.3",
Expand All @@ -112,8 +115,9 @@
"webpack": "4.42.0",
"terser": "4.6.7",
"webpack-merge": "4.2.2",
"webpack-dev-server": "3.10.3"
"webpack-dev-server": "3.10.3",
"chokidar": "^3.4.0"
},
"hash": "ff6bf9595a64a06dbab813090ee759084167b12ba737d4b8d0a4e8305a6b4b05"
"hash": "7f1db8716ed4e10dc92bab2e55b34ca30608326186a717575db9447840a76bc1"
}
}
6 changes: 3 additions & 3 deletions demo-v14/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<parent>
<artifactId>superfields-parent</artifactId>
<groupId>org.vaadin.miki</groupId>
<version>0.7.3</version>
<version>0.8.0</version>
</parent>

<artifactId>superfields-demo-v14</artifactId>
<version>0.7.3</version>
<version>0.8.0</version>
<name>V14 demo app for SuperFields</name>
<description>Showcase application for V14 and SuperFields.</description>
<packaging>war</packaging>
Expand All @@ -23,7 +23,7 @@
<dependency>
<groupId>org.vaadin.miki</groupId>
<artifactId>superfields</artifactId>
<version>0.7.3</version>
<version>0.8.0</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
Expand Down
25 changes: 24 additions & 1 deletion demo-v14/src/main/java/org/vaadin/miki/DemoComponentFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.FocusNotifier;
import com.vaadin.flow.component.HasValue;
import com.vaadin.flow.component.UI;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.button.ButtonVariant;
import com.vaadin.flow.component.checkbox.Checkbox;
import com.vaadin.flow.component.combobox.ComboBox;
import com.vaadin.flow.component.html.Div;
Expand All @@ -22,6 +24,7 @@
import com.vaadin.flow.function.SerializableBiConsumer;
import com.vaadin.flow.function.SerializableConsumer;
import org.slf4j.LoggerFactory;
import org.vaadin.miki.events.state.StateChangeNotifier;
import org.vaadin.miki.events.text.TextSelectionNotifier;
import org.vaadin.miki.markers.CanReceiveSelectionEventsFromClient;
import org.vaadin.miki.markers.CanSelectText;
Expand All @@ -30,6 +33,8 @@
import org.vaadin.miki.markers.WithNullValueOptionallyAllowed;
import org.vaadin.miki.shared.dates.DatePattern;
import org.vaadin.miki.shared.dates.DatePatterns;
import org.vaadin.miki.superfields.buttons.MultiClickButton;
import org.vaadin.miki.superfields.buttons.SimpleButtonState;
import org.vaadin.miki.superfields.dates.SuperDatePicker;
import org.vaadin.miki.superfields.dates.SuperDateTimePicker;
import org.vaadin.miki.superfields.itemgrid.ItemGrid;
Expand Down Expand Up @@ -115,6 +120,12 @@ private DemoComponentFactory() {
).withId("super-tabs")
);
this.components.put(ObservedField.class, new ObservedField());
this.components.put(MultiClickButton.class, new MultiClickButton(
event -> UI.getCurrent().navigate(""),
new SimpleButtonState("Click to navigate to Info Page").withThemeVariant(ButtonVariant.LUMO_PRIMARY),
new SimpleButtonState("Are you sure?", VaadinIcon.INFO_CIRCLE.create()),
new SimpleButtonState("Really navigate away?", VaadinIcon.INFO.create()).withThemeVariant(ButtonVariant.LUMO_ERROR)
).withId("multi-click-button"));
this.components.put(ComponentObserver.class, new ComponentObserver());
this.components.put(UnloadObserver.class, UnloadObserver.get().withoutQueryingOnUnload());
this.components.put(ItemGrid.class, new ItemGrid<Class<? extends Component>>(
Expand Down Expand Up @@ -160,6 +171,7 @@ private DemoComponentFactory() {
this.contentBuilders.put(UnloadObserver.class, this::buildUnloadObserver);
this.contentBuilders.put(FocusNotifier.class, this::buildFocusNotifier);
this.contentBuilders.put(BlurNotifier.class, this::buildBlurNotifier);
this.contentBuilders.put(StateChangeNotifier.class, this::buildStateChangeNotifier);

this.afterLocaleChange.put(SuperIntegerField.class, o -> ((SuperIntegerField)o).setMaximumIntegerDigits(6));
this.afterLocaleChange.put(SuperLongField.class, o -> ((SuperLongField)o).setMaximumIntegerDigits(11));
Expand Down Expand Up @@ -209,6 +221,13 @@ private void buildBlurNotifier(Component component, Consumer<Component[]> callba
callback.accept(new Component[]{new Span("Leave the demo component to see a notification.")});
}

private void buildStateChangeNotifier(Component component, Consumer<Component[]> callback) {
((StateChangeNotifier<?, ?>)component).addStateChangeListener(event ->
Notification.show("Component "+component.getClass().getSimpleName()+" changed its state.", NOTIFICATION_TIME, Notification.Position.BOTTOM_END)
);
callback.accept(new Component[]{new Span("Notifications will be shown when this component changes its state for any reason.")});
}

private void buildHasLocale(Component component, Consumer<Component[]> callback) {
final ComboBox<Locale> locales = new ComboBox<>("Select locale:", new Locale("pl", "PL"), Locale.UK, Locale.FRANCE, Locale.GERMANY, Locale.CHINA);
locales.setItemLabelGenerator(locale -> locale.getDisplayCountry() + " / "+locale.getDisplayLanguage());
Expand Down Expand Up @@ -275,7 +294,11 @@ private void buildItemGrid(Component component, Consumer<Component[]> callback)
}

private void buildHasDatePattern(Component component, Consumer<Component[]> callback) {
final ComboBox<DatePattern> patterns = new ComboBox<>("Select date display pattern:", DatePatterns.YYYY_MM_DD, DatePatterns.M_D_YYYY_SLASH, DatePatterns.DD_MM_YYYY_DOTTED, DatePatterns.D_M_YY_DOTTED);
final ComboBox<DatePattern> patterns = new ComboBox<>("Select date display pattern:",
DatePatterns.YYYY_MM_DD, DatePatterns.M_D_YYYY_SLASH,
DatePatterns.DD_MM_YYYY_DOTTED, DatePatterns.D_M_YY_DOTTED,
DatePatterns.YYYYMMDD, DatePatterns.DDMMYY
);
final Button clearPattern = new Button("Clear pattern", event -> ((HasDatePattern)component).setDatePattern(null));
clearPattern.setDisableOnClick(true);
final Component clearPatternOrContainer;
Expand Down
6 changes: 4 additions & 2 deletions demo-v14/webpack.generated.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ const confFolder = `${mavenOutputFolderForFlowBundledFiles}/${config}`;
const statsFile = `${confFolder}/stats.json`;
// make sure that build folder exists before outputting anything
const mkdirp = require('mkdirp');
mkdirp(buildFolder);
mkdirp(confFolder);

const devMode = process.argv.find(v => v.indexOf('webpack-dev-server') >= 0);

!devMode && mkdirp(buildFolder);
mkdirp(confFolder);

let stats;

const watchDogPrefix = '--watchDogPort=';
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.vaadin.miki</groupId>
<artifactId>superfields-parent</artifactId>
<version>0.7.3</version>
<version>0.8.0</version>
<modules>
<module>superfields</module>
<module>demo-v14</module>
Expand All @@ -16,7 +16,7 @@
<maven.compiler.source>10</maven.compiler.source>
<maven.compiler.target>10</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<vaadin.version>14.2.0</vaadin.version>
<vaadin.version>14.3.0</vaadin.version>
</properties>

</project>
22 changes: 11 additions & 11 deletions settings.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

<settings>
<servers>
<server>
<id>github</id>
<username>${env.GITHUB_ACTOR}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>
</settings>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>github</id>
<username>${env.GITHUB_ACTOR}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>
</settings>
4 changes: 2 additions & 2 deletions superfields/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
<artifactId>superfields</artifactId>
<name>SuperFields</name>
<description>Code for various V14+ fields and other components.</description>
<version>0.7.3</version>
<version>0.8.0</version>

<properties>
<maven.compiler.source>10</maven.compiler.source>
<maven.compiler.target>10</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<vaadin.version>14.2.0</vaadin.version>
<vaadin.version>14.3.0</vaadin.version>
<maven.jar.plugin.version>3.1.2</maven.jar.plugin.version>
</properties>

Expand Down
8 changes: 8 additions & 0 deletions superfields/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# 0.8.0 - MultiClickButton
## New features and enhancements
* \#160 - [Confirm-on-click button](https://github.com/vaadin-miki/super-fields/issues/160)
* \#201 - [Allow date pattern with no separator character](https://github.com/vaadin-miki/super-fields/issues/201)
## Changes to API
(nothing reported)
## Bug fixes
* \#199 - [Number fields causes NPE when null value is used](https://github.com/vaadin-miki/super-fields/issues/199)
# 0.7.3 - Null as default value in number fields
## New features and enhancements
(nothing reported)
Expand Down
Loading

0 comments on commit 0e7b94d

Please sign in to comment.