Releases: OnsenUI/OnsenUI-dist
Releases · OnsenUI/OnsenUI-dist
2.4.2
2.4.1
Bug Fixes
- ons.notification.prompt: Only returns input value if the clicked button is primary. Otherwise, returns null. Fixed #2050.
- ons-input, ons-search-input: Fixed #2075.
- ons-icon: Its class attribute is now recovered after modifications.
Misc
- css-components: Removed
.text-input--transparent
modifier (same as default style).
2.4.0
New Features
- core: Separated files are now cached after the first request. This improves performance when pushing pages.
- core: Added
ons.preload
method to manually cache templates. This improves performance when pushing pages. - core: Support for
HTMLTemplateElement
(<template>
). The former<ons-template>
is still supported for backward compatibility. - core: Added page life-cycle hooks (similar to life-cycle events).
<template>
elements allow<script>
tags in their content, which is useful for initialising pages. Therefore, hooks likepageElement.onInit
,pageElement.onShow
, etc. have been added. - ons-progress-bar, ons-progress-circular: Added new appearances for iOS.
Bug Fixes
- css-components: Fixed incorrect image path (select, search input).
- ons-tabbar, ons-lazy-repeat, ons-carousel:
ons-tabbar
now appliesvisibility:hidden
instead ofdisplay:none
to pages. This fixes issues forons-lazy-repeat
andons-carousel
insideons-tabbar
. - ons-carousel: Fixed #2065.
Misc
- css-components: Refined the appearance of
checkbox
on iOS. - css-components: Refined the appearance of
radio-button
on iOS. - css-components: Refined the appearance of
button
on Android. - css-components: Refined the appearance of
progress-bar
on Android. - css-components: Refined the appearance of
progress-circular
on Android. - css-components: Refined the appearance of
checkbox
animation on Android. - css-components: Refined the appearance of
list-item--chevron
. - core: Updated
font-awesome
icon library. - ons-toast: Improved
ascend
animator performance.
BREAKING CHANGES
- ons-input: It has been split into different elements:
ons-input
for text types;ons-checkbox
for checkboxes;ons-radio
for radio buttons; andons-search-input
for styled search inputs.<ons-input type="radio" checked>
=><ons-radio checked>
2.3.3
New Features
- onsenui.d.ts: Enabled
import * as ons from 'onsenui';
in TypeScript. - onsenui.d.ts: Added definitions for Onsen UI 2.3.x.
Misc
- core: Added warning which is shown when Onsen UI is loaded more than once.
2.3.2
New Features
- css-components: Added
--material
modifier onnotification
CSS components.
Bug Fixes
- ons-page: Fixed iOS status-bar-fill not added in initially opened modals (#1944).
- ons-splitter: Fixed
reveal
animation glitch. - ons-action-sheet: Fixed glitch when hiding on iOS.
Misc
- css-components: Refined the appearance of
select
. Fixed #2017. - css-components: Refined the appearance of
range
on iOS. - core: Excluded test cases from
onsenui
package.
2.3.1
Misc
- Remove
module
property frompackage.json
temporarily.
2.3.0
New Features
- css-components: Added
action-sheet
component. - css-components: Added
toast
component. - css-components: Added
card
component. - css-components: Added
segment
component. - core: Added
ons-action-sheet
andons-action-sheet-button
elements. - core: Added
ons-toast
element. - core: Added
ons-card
element. - core: Added new method
ons.openActionSheet(...)
for creating inlineons-action-sheet
elements. - core: Added new method
ons.notification.toast(...)
for creating inline and queuedons-toast
elements. - core: Added new method
ons.createElement(...)
that allows creating new elements from templates or inline HTML. - core:
onsenui
is now available as ES Modules. - core: A fake device back button event is now fired on ESC press.
- ons-navigator: Added
removePage
method. - ons-input: Added styling support for
type='search'
. - angular1: Added
ons-action-sheet
bindings. - angular1: Added
ons-toast
bindings. - angular1: Added
ons-card
bindings. - angular1: Added
ons-list-title
bindings.
Bug Fixes
- css-components: Fixed color of range component in Firefox. Fixed #1964.
- core: Fixed broken sourcemap of
onsenui.js
(#1958). - ons-carousel: Fixed #1952.
- ons-carousel:
refresh
event is now triggered when resized. - ons-dialog: Fixed
disabled
attribute. - ons-dialog: Fixed
mask-color
attribute. - ons-splitter: Fixed
animation
attribute issue. - angular1: Page loader now throws
destroy
event when page is unloaded. - angular1:
myNavigator.topPage.data
should now be ready by the time the controller runs. Fixed #1854.
Misc
- core: Removed polyfill for
Element.prototype.remove
. - core: Removed polyfill for
Element.prototype.classList
. - core: Removed polyfill for
Promise
. - core: Removed polyfill for
CustomEvent
. - core: Removed JavaScript Dynamic Content shim for Windows 8 Store apps.
BREAKING CHANGES
- ons-navigator: Removed
options.refresh
.prepop
event andremovePage
can be used instead. - ons-template, external files:
ons-page
tag is not added automatically anymore as a wrapper of the target template. It must be manually specified. - ons.createDialog, ons.createPopover, ons.createAlertDialog: Tags like
<ons-dialog>
,<ons-alert-dialog>
or<ons-popover>
are not added automatically anymore to the target template, they must be manually specified instead. - ons.notification: Canceled notifications do not reject the returned promise anymore. Instead, when canceled they resolve to
-1
foralert
andconfirm
, ornull
forprompt
. - angular1: Removed
onsSlidingMenu
andonsSplitView
directives.
2.2.6
2.2.5
New Features
- css-components: Added
list-title
component (#1960). - core: Added
ons-list-title
element. - ons-splitter: Added
push
andreveal
animations (#1916).
Bug Fixes
- core: Polyfill
Set
andMap
in order to support old browsers (#1967). - ons-navigator: Discard toolbars inside tabbars for ios-slide.
- ons-carousel: Fixed #1952.
- ons-pull-hook: Fixed #1970.
- angular1: Page loader now throws
destroy
event when page is unloaded (#1934). - angular1:
myNavigator.topPage.data
should now be ready by the time the controller runs. Fixed #1854.
Misc
- Restored
bower.json
. - Refactored
ons-alert-dialog
,ons-dialog
,ons-modal
andons-popover
(#1935).