Skip to content

Commit 9fa9972

Browse files
authored
Merge pull request #1044 from GwtMaterialDesign/release_2.8.0
Release 2.8.0
2 parents f00988f + b6e4efb commit 9fa9972

File tree

7 files changed

+44
-14
lines changed

7 files changed

+44
-14
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ Support documentation can be found [here](https://github.com/GwtMaterialDesign/g
2020
We created <a href="http://gwtmaterialdesign.github.io/gwt-material-demo/apidocs" > Java Docs </a> for developers
2121

2222
## Maven
23-
### Current Version 2.8.3
23+
### Current Version 2.8.5
2424
```xml
2525
<dependency>
2626
<groupId>com.github.gwtmaterialdesign</groupId>
2727
<artifactId>gwt-material</artifactId>
28-
<version>2.8.3</version>
28+
<version>2.8.5</version>
2929
</dependency>
3030
```
3131
### Snapshot Version 2.8.0-SNAPSHOT

gwt-material/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>gwt-material-parent</artifactId>
66
<groupId>com.github.gwtmaterialdesign</groupId>
7-
<version>2.8.3</version>
7+
<version>2.8.5</version>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>
1010

gwt-material/src/main/java/gwt/material/design/client/MaterialDesignBase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
import com.google.gwt.core.client.GWT;
2424
import com.google.gwt.core.client.JavaScriptObject;
25+
import com.google.gwt.core.client.Scheduler;
2526
import com.google.gwt.core.client.ScriptInjector;
2627
import com.google.gwt.dom.client.StyleInjector;
2728
import com.google.gwt.resources.client.TextResource;
@@ -108,7 +109,7 @@ protected static void directInjectJs(TextResource resource, boolean removeTag, b
108109
}
109110

110111
public static void injectCss(TextResource resource) {
111-
StyleInjector.inject(resource.getText());
112+
StyleInjector.injectAtStart(resource.getText(), true);
112113
}
113114

114115
public static boolean checkJQuery(boolean debug) {

gwt-material/src/main/java/gwt/material/design/client/constants/SymbolType.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323

2424
public enum SymbolType implements CssType {
2525

26-
OUTLINED("material-symbols-outlined", "https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200"),
27-
ROUNDED("material-symbols-rounded", "https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,[email protected],100..700,0..1,-50..200"),
28-
SHARP("material-symbols-sharp", "https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL,[email protected],100..700,0..1,-50..200");
26+
OUTLINED("material-symbols-outlined", "https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200&display=block"),
27+
ROUNDED("material-symbols-rounded", "https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,[email protected],100..700,0..1,-50..200&display=block"),
28+
SHARP("material-symbols-sharp", "https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL,[email protected],100..700,0..1,-50..200&display=block");
2929

3030
protected String name;
3131
protected String cssLink;
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* #%L
3+
* GwtMaterial
4+
* %%
5+
* Copyright (C) 2015 - 2024 GwtMaterialDesign
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
20+
package gwt.material.design.client.js;
21+
22+
import elemental2.promise.Promise;
23+
import jsinterop.annotations.JsMethod;
24+
import jsinterop.annotations.JsType;
25+
26+
@JsType(isNative = true)
27+
public class ModernClipboard {
28+
29+
@JsMethod
30+
public native Promise writeText(String text);
31+
}

gwt-material/src/main/java/gwt/material/design/client/js/Navigator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,7 @@ public class Navigator {
3535

3636
@JsProperty
3737
public static boolean onLine;
38+
39+
@JsProperty
40+
public static ModernClipboard clipboard;
3841
}

pom.xml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.github.gwtmaterialdesign</groupId>
77
<artifactId>gwt-material-parent</artifactId>
8-
<version>2.8.3</version>
8+
<version>2.8.5</version>
99
<packaging>pom</packaging>
1010
<modules>
1111
<module>gwt-material</module>
@@ -75,7 +75,7 @@
7575
<connection>scm:git:[email protected]:GwtMaterialDesign/gwt-material.git</connection>
7676
<developerConnection>scm:git:[email protected]:GwtMaterialDesign/gwt-material.git</developerConnection>
7777
<url>http://github.com/GwtMaterialDesign/gwt-material</url>
78-
<tag>v2.8.3</tag>
78+
<tag>v2.8.5</tag>
7979
</scm>
8080

8181
<licenses>
@@ -198,11 +198,6 @@
198198
<tagNameFormat>v@{project.version}</tagNameFormat>
199199
</configuration>
200200
</plugin>
201-
<plugin>
202-
<groupId>org.apache.maven.plugins</groupId>
203-
<artifactId>maven-gpg-plugin</artifactId>
204-
<version>1.6</version>
205-
</plugin>
206201
</plugins>
207202

208203
<pluginManagement>

0 commit comments

Comments
 (0)