Skip to content

Commit

Permalink
Merge pull request #441 from GwtMaterialDesign/release_2.8.0
Browse files Browse the repository at this point in the history
Release 2.8.0
  • Loading branch information
kevzlou7979 authored Nov 2, 2023
2 parents 88378ae + 4b507aa commit 7cbe3e3
Show file tree
Hide file tree
Showing 15 changed files with 4,677 additions and 4,119 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

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

## Current Version 2.8.1
## Current Version 2.8.3
```xml
<dependency>
<groupId>com.github.gwtmaterialdesign</groupId>
<artifactId>gwt-material-addins</artifactId>
<version>2.8.1</version>
<version>2.8.3</version>
</dependency>
```

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>gwt-material-parent</artifactId>
<groupId>com.github.gwtmaterialdesign</groupId>
<version>2.8.1</version>
<version>2.8.3</version>
</parent>

<artifactId>gwt-material-addins</artifactId>
Expand All @@ -24,7 +24,7 @@
<connection>scm:git:git@github.com:GwtMaterialDesign/gwt-material-addins.git</connection>
<developerConnection>scm:git:git@github.com:GwtMaterialDesign/gwt-material-addins.git</developerConnection>
<url>http://github.com/GwtMaterialDesign/gwt-material-addins</url>
<tag>v2.8.1</tag>
<tag>v2.8.3</tag>
</scm>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import gwt.material.design.addins.client.moment.option.CalendarFormat;
import gwt.material.design.addins.client.moment.option.CreationData;
import gwt.material.design.addins.client.moment.option.Duration;
import gwt.material.design.addins.client.moment.option.LocaleOptions;
import gwt.material.design.addins.client.moment.resources.MomentClientBundle;
import gwt.material.design.jquery.client.api.Functions;
import jsinterop.annotations.*;
Expand Down Expand Up @@ -943,4 +944,9 @@ public class Moment {
*/
@JsMethod
public native String toJDFString(String format);

public native MomentTimezone tz(String timeZone);

@JsMethod(namespace = "moment")
public static native void updateLocale(String locale, LocaleOptions localeOptions);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2023 GwtMaterialDesign
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package gwt.material.design.addins.client.moment;

import jsinterop.annotations.JsMethod;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;

@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "moment")
public class MomentTimezone {

public native MomentTimezone zone(String timeZone);

public native String format(String format);

@JsMethod(namespace = "moment.tz")
public static native String guess();

public native MomentTimezone add(int amount, String unit);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2023 GwtMaterialDesign
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package gwt.material.design.addins.client.moment.option;

import jsinterop.annotations.JsFunction;

@FunctionalInterface
@JsFunction
public interface FullLocaleFormatter {

String call(Object number, boolean withoutSuffix, String key, boolean isFuture);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2023 GwtMaterialDesign
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package gwt.material.design.addins.client.moment.option;

import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;

@JsType(isNative = true, name = "Object", namespace = JsPackage.GLOBAL)
public class LocaleOptions {

@JsProperty
public RelativeTime relativeTime;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2023 GwtMaterialDesign
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package gwt.material.design.addins.client.moment.option;

import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;

@JsType(isNative = true, name = "Object", namespace = JsPackage.GLOBAL)
public class RelativeTime {

@JsProperty
public Object future;

@JsProperty
public Object past;

@JsProperty
public Object s;

@JsProperty
public Object ss;

@JsProperty
public Object m;

@JsProperty
public Object mm;

@JsProperty
public Object h;

@JsProperty
public Object hh;

@JsProperty
public Object d;

@JsProperty
public Object dd;

@JsProperty
public Object w;

@JsProperty
public Object ww;

@JsProperty
public Object M;

@JsProperty
public Object MM;

@JsProperty
public Object y;

@JsProperty
public Object yy;
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2023 GwtMaterialDesign
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package gwt.material.design.addins.client.moment.option;

import jsinterop.annotations.JsFunction;

@FunctionalInterface
@JsFunction
public interface SuffixLocaleFormatter {

String call(String number);
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@ public interface MomentClientBundle extends ClientBundle {

@Source("js/moment-with-locales.min.js")
TextResource momentWithLocale();

@Source("js/moment.timezone.min.js")
TextResource momentWithTimezone();
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@ public interface MomentClientDebugBundle extends ClientBundle {

@Source("js/moment-jdateformatparser.js")
TextResource momentJDateConverterDebugJs();

@Source("js/moment.timezone.js")
TextResource momentWithTimezone();
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}

.stamp-loading {
width: 140px;
width: 100%;
height: 8px;
border-radius: 8px;
color: transparent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}

.stamp-loading {
width: 160px;
width: 100%;
height: 8px;
border-radius: 8px;
color: transparent;
Expand Down
Loading

0 comments on commit 7cbe3e3

Please sign in to comment.