Skip to content

Commit fc2f6ad

Browse files
authored
Merge pull request #376 from GwtMaterialDesign/release_2.2
Release 2.2
2 parents 11aec9d + bc0f287 commit fc2f6ad

File tree

168 files changed

+26307
-1241
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+26307
-1241
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ cache:
77
- $HOME/.m2
88
before_install:
99
# install the gwt-material-jquery library before we build the demo
10-
- git clone -b release_2.1.1 https://github.com/GwtMaterialDesign/gwt-material-jquery.git
10+
- git clone -b release_2.2 https://github.com/GwtMaterialDesign/gwt-material-jquery.git
1111
- cd gwt-material-jquery
1212
- mvn install -DskipTests=true -DdryRun=true
1313
- cd ..
1414
# install the gwt-material library before we build the demo
15-
- git clone -b release_2.1.1 https://github.com/GwtMaterialDesign/gwt-material.git
15+
- git clone -b release_2.2 https://github.com/GwtMaterialDesign/gwt-material.git
1616
- cd gwt-material
1717
- mvn install -DskipTests=true -DdryRun=true
1818
- cd ..

.utility/deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
set -ev
3-
if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "release_2.1.1" ]; then
3+
if [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "release_2.2" ]; then
44
echo "<settings><servers><server><id>ossrh</id><username>\${env.OSSRH_USER}</username><password>\${env.OSSRH_PASS}</password></server></servers></settings>" > ~/settings.xml
5-
mvn deploy --settings ~/settings.xml
5+
mvn deploy -DskipTests --settings ~/settings.xml
66
fi

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
Gwt Material Design Extra Components for https://github.com/GwtMaterialDesign/gwt-material <br>
88

9-
## Current Version 2.1.1
9+
## Current Version 2.2-rc1
1010
```xml
1111
<dependency>
1212
<groupId>com.github.gwtmaterialdesign</groupId>
1313
<artifactId>gwt-material-addins</artifactId>
14-
<version>2.1.1</version>
14+
<version>2.2-rc1</version>
1515
</dependency>
1616
```
1717

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@
55
<parent>
66
<artifactId>gwt-material-parent</artifactId>
77
<groupId>com.github.gwtmaterialdesign</groupId>
8-
<version>2.1.1</version>
8+
<version>2.2-rc1</version>
99
</parent>
1010

1111
<artifactId>gwt-material-addins</artifactId>
1212
<packaging>gwt-lib</packaging>
1313

1414
<name>Gwt Material Addins</name>
15-
<version>2.1.1</version>
15+
<version>2.2-rc1</version>
1616
<description>Extra Components of GWT Material Framework</description>
1717

1818
<properties>
19-
<gwt-material.version>2.1.1</gwt-material.version>
19+
<gwt-material.version>2.2-rc1</gwt-material.version>
2020
</properties>
2121

2222
<scm>
2323
<connection>scm:git:[email protected]:GwtMaterialDesign/gwt-material-addins.git</connection>
2424
<developerConnection>scm:git:[email protected]:GwtMaterialDesign/gwt-material-addins.git</developerConnection>
2525
<url>http://github.com/GwtMaterialDesign/gwt-material-addins</url>
26-
<tag>v2.1.1</tag>
26+
<tag>v2.2-rc1</tag>
2727
</scm>
2828

2929
<licenses>

src/main/java/gwt/material/design/addins/client/base/constants/AddinsCssName.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public interface AddinsCssName {
7575
String SUCCESS = "success";
7676
String ERROR = "error";
7777
String STEPPER = "stepper";
78+
String STEP_HEADER = "step-header";
7879
String FEEDBACK = "feedback";
7980
String SUBHEADER = "subheader";
8081
String CONTAINER1 = "container1";
@@ -122,4 +123,5 @@ public interface AddinsCssName {
122123
String WIDE = "wide";
123124
String BRIDGE_PATH = "bridge-path";
124125
String INTERACT_IGNORED_CONTENT = "interact-ignored-content";
126+
String FIXED_STEP_WIDTH = "fixed-step-width";
125127
}

src/main/java/gwt/material/design/addins/client/camera/MaterialCameraCapture.java

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,23 @@ protected void nativePlay(Element video) {
242242

243243
Navigator.mediaDevices.getUserMedia(constraints).then(streamObj -> {
244244
mediaStream = (MediaStream) streamObj;
245-
if (URL.createObjectURL(mediaStream) != null) {
246-
$(video).attr("src", URL.createObjectURL(mediaStream));
247-
} else if (WebkitURL.createObjectURL(mediaStream) != null) {
248-
$(video).attr("src", WebkitURL.createObjectURL(mediaStream));
249-
}
250-
if (video instanceof VideoElement) {
251-
((VideoElement) video).play();
245+
246+
if (mediaStream != null) {
247+
try {
248+
video.setPropertyObject("srcObject", mediaStream);
249+
} catch (Exception e) {
250+
if (URL.createObjectURL(mediaStream) != null) {
251+
$(video).attr("src", URL.createObjectURL(mediaStream));
252+
} else if (WebkitURL.createObjectURL(mediaStream) != null) {
253+
$(video).attr("src", WebkitURL.createObjectURL(mediaStream));
254+
}
255+
} finally {
256+
if (video instanceof VideoElement) {
257+
((VideoElement) video).play();
258+
}
259+
}
252260
}
261+
253262
onCameraCaptureLoad();
254263
return null;
255264
}).catchException(error -> {

src/main/java/gwt/material/design/addins/client/carousel/MaterialCarousel.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
package gwt.material.design.addins.client.carousel;
2121

2222
import com.google.gwt.core.client.GWT;
23-
import com.google.gwt.core.client.Scheduler;
2423
import com.google.gwt.dom.client.Document;
2524
import com.google.gwt.event.logical.shared.ValueChangeEvent;
2625
import com.google.gwt.event.logical.shared.ValueChangeHandler;
@@ -42,7 +41,10 @@
4241
import gwt.material.design.client.base.mixin.CssTypeMixin;
4342
import gwt.material.design.client.base.mixin.ToggleStyleMixin;
4443
import gwt.material.design.client.constants.CssName;
45-
import gwt.material.design.client.ui.*;
44+
import gwt.material.design.client.ui.MaterialButton;
45+
import gwt.material.design.client.ui.MaterialImage;
46+
import gwt.material.design.client.ui.MaterialPanel;
47+
import gwt.material.design.client.ui.MaterialTab;
4648

4749
import java.util.List;
4850

@@ -271,7 +273,7 @@ public void play() {
271273
}
272274

273275
protected Object command(String action, Object... params) {
274-
if (container == null || !container.isAttached()) {
276+
if (container == null) {
275277
GWT.log("Your carousel container is not yet initialized", new IllegalStateException());
276278
} else {
277279
return $("#" + container.getId()).slick(action, params);

0 commit comments

Comments
 (0)