Releases: OnsenUI/OnsenUI
Releases · OnsenUI/OnsenUI
2.12.8
2.12.7
2.12.6
2.12.5
2.12.4
2.12.3
2.12.2
2.12.1
Bug Fixes
- ons-alert-dialog: User's onDeviceBackButton setting is no longer ignored when connecting element.
- ons-splitter-side: Fix options.animation being ignored.
- ons-list-item: Wait until content is ready before expanding list item when expanded is set.
New Features
- ons-speed-dial: Added
openattribute and property. - ons-speed-dial: Added
rippleproperty. - ons-list-item: Added
expandableproperty. - ons-list-item: Added
tappableproperty. - ons-list-item: Added
lockOnDragproperty. - ons-list-item: Added
animationproperty. - ons-list-item: Added
tapBackgroundColorproperty. - ons-ripple: Added
centerproperty. - ons-icon: Added
fixedWidthproperty. - ons-icon: Added
spinproperty. - ons-carousel: Added
fullscreenproperty. - ons-carousel: Added
autoRefreshproperty. - ons-fab: Added
rippleproperty. - ons-input: Added
floatproperty. - ons-popover: Added
coverTargetproperty. - ons-pull-hook: Added
fixedContentproperty. - ons-speed-dial-item: Added
rippleproperty. - ons-tabbar: Added
tabBorderproperty. - ons-tabbar: Added
animationOptionsproperty. - ons-toolbar: Added
staticproperty. - ons-input:
typeproperty is now settable. - ons-navigator: Added
swipeevent. - ons-navigator: Added
animationOptionsproperty. - ons-splitter-side: Added
animationOptionsproperty. - ons-splitter-side: Added
swipeevent.
2.12.0
BREAKING CHANGES
- ons-list-item:
expandedclass has been renamed tolist-item--expanded. - ons-tab: Setting onClick no longers prevents default behaviour.
event.preventDefaultshould be called in the onClick callback. - ons-back-button: Setting onClick no longers prevents default behaviour.
event.preventDefaultshould be called in the onClick callback. - ons-speed-dial: Setting onClick no longers prevents default behaviour.
event.preventDefaultshould be called in the onClick callback. - core: The ES modules are now distributed in ES6 instead of transpiled ES5. If you need to support ES5, you should transpile the contents of the
esmdirectory. - core: Bundlers will now use the ES modules version of Onsen UI by default instead of the UMD version.
- The TypeScript declaration file has been moved to
esm/onsenui.d.ts. - ons-template:
ons-templatehas been removed. Usetemplateinstead.
Bug Fixes
- ons-splitter-side: Stop creating new swipe reveals when connected if one already exists.
- core: DOMContentReady and deviceready event listeners are removed after being invoked once. (#2886).
- ons-button: Allow form submission on submit key keypress. (#2857).
- ons-list-item: Clicks are ignored while the expandable list item is expanding/contracting.
- ons-button, ons-alert-dialog-button, ons-toolbar-button, ons-action-sheet-button: Ensure ons-ripple is imported when button is imported.
- ons-dialog, ons-alert-dialog, ons-modal, ons-popover, ons-action-sheet:
dialog-cancelevent is renamed todialogcancel. - ons-action-sheet: Hide title element when title is null or undefined.
- ons-splitter-side: Fix error being thrown when
animation-optionsattribute is set. - ons-popover: Use regular function instead of arrow function to stop default animation breaking.
- ons-select: Remove ons-select element when
removeis called with no arguments.
New Features
- ons-tabbar:
swipeevent is now emitted when the tabbar swipes. - ons-carousel:
swipeevent is now emitted when the carousel swipes. - ons-pull-hook:
pullevent is now emitted when the pull hook is pulled. - ons-tab: Calling event.preventDefault for click events can be used to prevent switching tab.
- ons-back-button: Calling event.preventDefault for click events can be used to prevent navigator going back a page.
- ons-speed-dial: Calling event.preventDefault for click events can be used to prevent speed dial opening/closing.
- ons-splitter-side: Added
swipeableproperty. - ons-list-item: Added
expandableattribute and property. (#2896). - ons-list-item: Added
expandevent that fires when an expandable list item is clicked and expands or contracts. - ons-button: Added
rippleproperty to mirror existingrippleattribute. - ons-dialog, ons-alert-dialog, ons-modal, ons-popover, ons-action-sheet: Added
visibleattribute. - ons-dialog, ons-alert-dialog, ons-modal, ons-popover, ons-action-sheet: Can now be shown or hidden by setting the
visibleproperty/attribute. - ons-dialog, ons-alert-dialog, ons-popover, ons-action-sheet: Added
maskColorproperty. - ons-alert-dialog, ons-toast, ons-modal, ons-dialog, ons-action-sheet, ons-popover: Added
animationOptionsproperty. - ons-action-sheet: Added
titleproperty to mirror existingtitleattribute. - ons-carousel: Added
animationOptionsproperty. - ons-carousel: Added
active-indexattribute andactiveIndexproperty. - ons-segment:
active-indexcan now be set at any time, not just during initialization. Also added correspondingactiveIndexproperty. - ons-tabbar: Added
hideTabsproperty. - ons-tabbar: Added
activeIndexproperty. The active tab can now be changed by setting either theactive-indexattribute or theactiveIndexproperty.
Misc
- Support for bower has been dropped. (#2924).
- The ES modules are now distributed as unbundled ES6 instead of bundled ES5. (#2731).
modulekey has been added to package.json. Bundlers will now use the ES modules version of Onsen UI by default instead of the UMD version.- The TypeScript declaration file has been moved to
esm/onsenui.d.ts. - The CSS components source has been moved to
css/css-components-src. - The paths to all components have been standardized. For ESM imports use
import onsenui/esm/elements/<component-name>.jsfor all components.
2.11.2
Bug Fixes
- ons.platform: isIOS now returns true for iPadOS. (#2804).
- ons.platform: Only prompt input cursor for supported input types. (#2803).
- core: Fix animations not working for platform-specific animations.
- ons-fab: Fix fab not being positioned relative to tab page. (#2810).
- core: Fix setImmediate not defined for ESM bug.
- ons.platform: isIPhoneX now works for iPhone 11 and 12 variants. (#2811).
New Features
- core: Add blur and focus methods for input elements. (#2809).