Releases: GwtMaterialDesign/gwt-material
Releases · GwtMaterialDesign/gwt-material
Release 2.0
Release 2.0-rc7
Reworked Test Framework
Project | Number of Tests |
---|---|
gwt-material | 1545 |
gwt-material-addins | 1048 |
gwt-material-table | 100 |
Total Unit Tests | 2693 |
Reworked Widget Loading mechanism.
- completely removed build / initialize / reinitialize methods.
- added JsLoader Interface to delegate the load, unload and reload methods.
Added missing apis
Component | New API |
---|---|
MaterialWidget | setBorder(String), setBorderTop(int), setBorderLeft(int), setBorderRight(int), setBorderBottom(int), setBorderRadius(String) |
setMinWidth(String), setMaxWidth(String), setMinHeight(String), setMaxHeight(String) | |
setTransform(String), setTransformOrigin(String), setTransformStyle(String), setPerspective(String), setPerspectiveOrigin(String), setBackfaceVisibility(String) | |
getLayoutPosition() (String) |
|
MaterialPanel | setContainerEnabled(boolean) |
HasIcon | getIconColor() (Color) |
MaterialModal | getOpacity() (double) |
ProgressMixin | getProgress() (MaterialProgress) |
EnabledMixin | setPropagateToChildren(boolean) |
Remove deprecated api's
Component | Deprecated Method | Replacement |
---|---|---|
MaterialLoader | loading() | |
MaterialLoader | progress() | |
MaterialCheckBox | setValue(boolean) | |
BaseWidget | MaterialWidget | |
ViewPort | ViewPort | |
Animation | MaterialAnimation | |
MaterialCard | setOrientation(Orientation), getOrientation() | |
MaterialSideNav | setup() | |
MaterialDatePicker | clear() |
Bug Fixes
- #662, #664, #695, #683, #705
- Fix the setValue for MaterialImage
- Fix UiBinder issue with MaterialPreLoader#setSize
- Fixes on MaterialWidget mixins.
Enhancements
- Improvements on
EnabledMixin
,ReadOnlyMixin
. - Standardized widgets to extend
AbstractValueWidget
if necessary. - Rework the Initial
ViewPort
detection builder (AddedResolution
- Boundary interface for providing your own WidthBoundary). HandlerRegistry
- smart registration of event handlers.- Added
StylePropertyMixin
for better handling of styles. - Added
Color.clearStyles
to clear an objects color styles. - Lazy load all component mixins.
- Refactor all code formats to follow GMD Code Standard.
- Block out CSS Test messages during surefire tests.
- Added
setValue(V value, boolean fireEvents, boolean reload)
- Ability to share test packages to other GMD Projects i.e addins.
- Enhanced the creation of
JsOptions
by default. - Major clean up
overridecss
, commenting each gmd components override styles.
Thanks to @BenDol and other contributors of this project.
Release 2.0-rc6
- Upgrade GWT Version to 2.8.1
- Added validate() to the base MaterialWidget and recursive validation. (Thanks @BenDol ).
- Added HasValue on MaterialImage.
- Added more helper methods to ViewPortHelper - isMobile(), isTablet() and isLaptop().
- Fixed MaterialToast resetting id when using custom classes (Thanks @xliii ).
- Corrected some Vietnamese translations for DatePicker (Thanks @Cupi ).
- Added jquery warning (#636) & fixed tabindex issue with MaterialDatePicker. (Thanks @BenDol ).
- Remove MaterialNoResult to Addins component and refactor to 'MaterialEmptyState'.
- Can now provide your own version of JQuery using JQueryProvider: (Thanks @BenDol ).
<replace-with class="com.client.MyJQueryProvider">
<when-type-is class="gwt.material.design.client.JQueryProvider"/>
</replace-with>
MyJQueryProvider extends JQueryProvider.
- Use LeafValueEditor in AbstractValueWidget. (Thanks @BenDol )
- Implements HasNoSideNavSelection to MaterialNavMenu.
- Added method setActive(int index) to automatically select sidenav items.
- Create FullscreenMixin and apply to existing core / addin widgets.
- Apply change on MaterialSlider - that has also fullscreen mode capability.
- Added Junit Test for recent Modal.setFullscreen(boolean).
Bug Fixes:
Release 2.0-rc5
Fixed Bugs
- #629 , #627 , #624 , #620 , #619 , #617 , #610 , #607 , #595 , #594
- #591 , #588 , #586 , #583 , #579 , #574 , #532
Transition Duration
- Created
HasDelayTransition
,HasDurationTransition
&HasInOutDurationTransition
for configurable animation transition properties. - MaterialAnimation - Refactor
setDurationMillis() -
>setDuration()
andsetDelayMillis()
->setDelay()
so that it will be uniform to other Component. (Provided documentation that the time suffix is milliseconds.). MaterialDropdown
/MaterialModal
/MaterialSideNav
- implements the in/out duration properties.- Updated the animation tests and other component tests on duration transition.
- Added
setTransition(TransitionConfig)
method on Base MaterialWidget to apply CSS3 transition easily. - Addins API Rework regarding Transition Duration - GwtMaterialDesign/gwt-material-addins#219
Add Links to Material Design Specification
- Provides link for brief information about each component.
- Updated the Demo showcase to have links also refered to Material Design Specification.
Added build()
base method to MaterialWidget
- A protected method to build the structure of any complex widget that can be overridden to perform a different behavior of this widget.
Added initialize()
base method to MaterialWidget
-
A protected method to initialize the component (JSInterop calls) to easily overridden when user wants to perform any other initialization.
-
CheckList - Spreadsheet for all the todo's and tests running on this API Change
Getter for child widget
- All children widgets of each complex component shall provide a getter for easy customization.
App Blueprint
Version update (Other projects)
- GMDTable & GMDJQuery
- The recent SNAPSHOT was changed from 1.0-SNAPSHOT - 2.0-SNAPSHOT
- Next release would be 2.0-rc5.
- Reason : We will synchronize every GMD Projects to have a uniform versioning which is currently (For SNAPSHOT 2.0, and for next release 2.0-rc5)
New Modules (GMD Addins & Table)
- Added
GwtMaterialAddinsBasic
&GwtMaterialAddinsBasicDebug
Commit - Added
GwtMaterialTableBasic
&GwtMaterialTableBasicDebug
Commit - All Basic modules will not import
materializecss
&overridecss
MaterialTabs
- We provided a
reinitialize()
- recalculate the width of the Tab's indicator. Demo - Source - Workaround for #532
sidenav.addOpenedHandler(event -> tab.reinitialize());
sidenav.addClosedHandler(event -> tab.reinitialize());
MaterialNavBar 2.0
Different Patterns:
- MaterialNavBar (Default) Demo - Source
- MaterialNavBar (Fixed) Demo - Source
- MaterialNavBar (Tall) Demo - Source
- MaterialNavBar (Extend) Demo - Source
- MaterialNavBar (Tabs) Demo - Source
- MaterialNavBarShrink - Demo - Source
MaterialSideNav 2.0
- Documentation
- Add MaterialSideNavContent - new container component to separate it from any sidenav links. This can be a good container for Material Form components such as input fields and pickers. Demo - Source
Different Patterns:
-
- behave as FIXED as Default type.
-
MaterialSideNavMini Demo - Source
- added method
setExpandable(boolean)
- to enable expandable feature. Demo - added method
setExpandOnClick(boolean)
- added method
-
MaterialSideNavPush Demo - Source
- implements
HasWithHeader
- to enablePUSH_WITH_HEADER
Demo
- implements
-
MaterialSideNavDrawer (Formerly named as OVERLAY) Demo - Source
- implements
HasWithHeader
- to enableDRAWER_WITH_HEADER
- implements
-
MaterialSideNavDrawer with Header (Formerly named as OVERLAY) Demo - Source
- implements
HasWithHeader
- to enableDRAWER_WITH_HEADER
- implements
Version 2.0-rc4
Version 2.0-rc4
- MaterialSideNav
- Fixed overlay leaks when sidenav unloads.
- Fixed display issue with card type
- Fixed issue with fixed type disappears on window
- Material Tabs
- Added Selection Event to easily navigate the current tab item
- MaterialColumn
- Fixed classname leaks on contructor
- MaterialDatePicker
- Added setContainer(BODY/SELF) to specify the root container of the datepicker.
- MaterialNavSection
- Added SelectionEvent to easily navigate the current nav link item
- MaterialValueBox
- Added setActive(boolean) to set the label style active (Good for placeholder + label combination)
- Fixed issues with Materialize loading multiple times.
- Bug Fixes for #494, #523, #527, #528, #529, #534, #538, #539, #546, #552, #555, #556, #558, #563, #559, #568, #569, #557
Version 2.0-rc3
Thanks @BenDol and other contributors
- MaterialDatePicker
- Supports Pushpin to be instantiated
- Sidenav - Make
showOnAttach
true by default. - MaterialWeather - Fixed background conflict with cards.
- Fix a
setValue
issue with MaterialRange. - Verify attach handler isn't already registered.
- TextWidget
- MaterialAnimation
- Marked
MaterialAnimator
as Deprecated - UseMaterialAnimation
for official GMD Animation class - Added Getters and setters for animation properties
- Marked
- Added a base
TextWidget
- Fix for the chrome autofill in all text fields.
- Major fixes with JQuery race loading (for addins particularly).
Release 2.0-rc2
Version 2.0-rc2
Thanks @BenDol and other contributors for making this 2.0-RC2 version.
- Bug fixes for 2.0-rc1 #493, #492, #193, #497, #500, #496, #79
- DatePicker - Auto Close Feature
- Search - Added OpenEventHandler
- Mobile Orientation Detection
- DatePicker
- Cards
- MaterialPushpin - Clean up and Improvement
- Security update on setText() -> Convert to SafeHtml to disable XSS attacks
- Fixed - Color.fromStyleNames() return wrong css style name in EnumHelper class
Release 2.0-rc1
Enhancement and Code Improvement / Cleanup
- JSInterop support
- Java 8 Support
- GWT 2.8 support
- Support with Errai
- MaterialWidget
- implements HasInteraction (contains HasClick, HasDoubleClick, HasMouse handlers) and Focusable handlers.
- Added ActiveMixin and TitleMixin as base mixins.
- Added DragStart, DragEnd, DragMove, DragEnter, DragLeave, DragOver events into base events.
- Added AbstractValueWidget to simplify value based functionality.
- Added KeyFactory.
- Update all Runnable parameters -> Function (JSInterop).
- Implement CssName Constants to clean up each css classnames of individual widgets.
- CssTypeMixin - Added possibility to set the target component.
- Refactor Color params(String) -> Color Enum.
- Added default Constructors.
- Organize Imports.
- Added support for onLoad multiple calls.
- Added read only states (Editable to Read Only Toggle mode).
GWTTestCase
- Implemented GWTTest to all Material Widgets and Addins.
Method Changes
- Breadcrumb
- Fixed Icon and Text alignment.
- Collapsible
- Implement CssType
- Allow access getBody() and getHeader()
- Collection Item
- Changed setDismissable() -> setDismissible().
- Implement CssType
- Fixed issue on setActive(boolean)
- Date Picker
- Allow access to getDateInput() - DateInput
- Fixed removeErrorModifiers
- Added open() / close() programmatic controls
- Dropdown
- Fixed constraint width api bug
- FAB
- Changed openFAB(), closeFAB() -> open(), close().
- Added Open / Close Event Handler.
- Image
- Added activates feature
- ListBox
- Allow access getListBox() - ListBox
- Loader
- Supports Specific Panel
- Modal
- Changed openModal(), closeModal() -> open(), close().
- Changed setDismissable() -> setDismissible().
- Added Open Event Handler
- Fixed Close not firing
- NavBar
- Allow access getNavMenu() - MaterialLink
- Progress
- Changed setColor(String) -> setColor(Color)
- Supports Specific Panel
- Added validation if progress percent is greater that 100
- Spinner
- Create Enum for SpinnerColor
- Search
- Fixed issue on isActive()
- Implement SearchHandler
- TextArea
- Fixed TextArea Resize Rule
- Toast with Callback
- Changed Runnable param to Functions.Func (JSInterop + Lambda).
- ValueBox
- Allow access to getValueBoxBase() - ValueBoxBase
Version 1.6.2
Emergency Patch Release for MaterialListBox issues.
Version 1.6.1
- Emergency patch for the MaterialListValueBox.
- Fixes the ValueChangeHandler issues.