Releases: ng-bootstrap/ng-bootstrap
16.0.0
This release bumps minimum required versions to Angular 17.0.0
and Bootstrap 5.3.2
.
Main features:
- dark mode support for all components and demo site.
- new stacked progressbar markup in Bootstrap
5.3
allowed us to do the long-standing stacked progressbar feature request. - Ethiopian calendar for datepicker.
- old component-based accordion implementation is removed (it was deprecated in
14.1.0
in favor of directive-based implementation). - we're using new control flow syntax internally and for all demos.
Please make sure to check the BREAKING CHANGES
section below.
Bug Fixes
- use
setInput
where possible for dynamic components (f29a7b5) - datepicker: fix day hover color in dark mode (519bbc3)
- dropdown: add
show
class to dropdown toggle when dropdown is open (#4532) (6bf2ab0), closes #4531 - nav:
NgbNavLinkBase
matches multiple times (02ab48b), closes #4594 - schematics: use
getMainFilePath()
to get main project file (acd635a) - tooltip: add offset to align with Bootstrap 5.3 (6fd04af), closes #4574
- datepicker:
startDate
type should accept dates with days (#4618) (81ec20a), closes #4616 - accordion: allow querying body template (#4625) (472d842), closes #4623
- dropdown: allow setting custom tabindex on items (#4626) (3d9f052), closes #4592
- nav: correct focus handing with keyboard (184b6bd)
Features
- bootstrap 5.3 and dark mode (99c2162), closes #4450
- add axe a11y tests of the demo site (#4588) (b573a2b)
- progressbar: add stacked progressbar (#4621) (1982133)
- datepicker: add ethiopian date picker (bf02fb0), closes #4499
- migrate to the new control flow syntax (6c3570b)
- accordion: remove
type
from configuration (ed7732a) - accordion: remove component-based version (7aab9e3)
- dropdown: remove deprecated
NgbNavbar
directive (c2c8061)
BREAKING CHANGES
- minimum required versions are now Angular
17.0.0
, Bootstrap5.3.2
and Popper2.11.8
- accordion: removed component-based accordion. It was deprecated in
14.1.0
- accordion: removed
type
property from theNgbAccordionConfig
. It was deprecated in14.1.0
. - we use
inject
function internally more than before, so constructor signatures have changed for all components. If you extend our components (and you really shouldn't do it), you might need to update your code. - nav:
NgbNavbar
directive is removed, as it is no longer required. It was deprecated in14.2.0
. - nav: default value for the
@Input() keyboard: boolean | 'changeWithArrows'
was changed fromfalse
totrue
, meaning that all navs are now keyboard accessible by default and focus between navs moves with arrow keys. Focusing behavior follows the WAI-ARIA tab recommendation as well as Bootstrap's nav implementation. To turn off keyboard support setkeyboard
tofalse
either on the individualNgbNav
or viaNgbNavConfig
16.0.0-rc.2
16.0.0-rc.1
16.0.0-rc.0
This release bumps minimum required versions to Angular 17.0.0
, Bootstrap 5.3.2
and introduces dark mode support for components and demo site.
It also removes old component-based accordion implementation, which was deprecated in 14.1.0
in favor of directive-based implementation.
Bug Fixes
- use
setInput
where possible for dynamic components (f29a7b5) - datepicker: fix day hover color in dark mode (519bbc3)
- dropdown: add
show
class to dropdown toggle when dropdown is open (#4532) (6bf2ab0), closes #4531 - nav:
NgbNavLinkBase
matches multiple times (02ab48b), closes #4594 - schematics: use
getMainFilePath()
to get main project file (acd635a) - tooltip: add offset to align with Bootstrap 5.3 (6fd04af), closes #4574
Features
- bootstrap 5.3 and dark mode (99c2162), closes #4450
- add axe a11y tests of the demo site (#4588) (b573a2b)
- accordion: remove
type
from configuration (ed7732a) - accordion: remove component-based version (7aab9e3)
- dropdown: remove deprecated
NgbNavbar
directive (c2c8061)
BREAKING CHANGES
- minimum required versions are now Angular
17.0.0
, Bootstrap5.3.2
and Popper2.11.8
- accordion: removed component-based accordion. It was deprecated in
14.1.0
- accordion: removed
type
property from theNgbAccordionConfig
. It was deprecated in14.1.0
. - nav:
NgbNavbar
directive is removed, as it is no longer required. It was deprecated in14.2.0
. - we use
inject
function internally more than before, so constructor signatures have changed for all components. If you extend our components (and you really shouldn't do it), you might need to update your code.
15.1.2
This release aligns tooltip closing behavior with Bootstrap (both desktop and mobile), fixes a long-standing bug with tooltip opening issues.
While we don't consider it a breaking change, some complex existing tooltips might behave differently.
Bug Fixes
- accordion: initialize
destroyOnHide
from configuration (a8b39be) - rating: generate correct
aria-readonly/disabled
attributes (#4586) (f99bc96) - tooltip: align closing behavior with Bootstrap (55f45fd), closes #3889
- tooltip: fixed closing on hover from arrow direction (4417ee6), closes #3997
- tooltip: remove padding for non-standard placements (c7c0978), closes #4369
15.1.1
Bug Fixes
15.1.0
15.0.1
Bug Fixes
- dropdown: set
display
when inside a navbar and guarded byngIf
(#4521) (05eafb2), closes #4520 - revert some inputs to optional (#4519) (decfe41), closes #4516 #4518
- schematics: don't use deprecated
--name
option (be75dcc) - schematics: support apps created with
--standalone
flag (7f5f7b6), closes #4511
15.0.0
This release bumps minimum supported version of Angular to 16.0.0
.
No new features are introduced since 14.x
, apart from some inputs becoming required.
Bug Fixes
Features
BREAKING CHANGES
- datepicker: Might be breaking, if datepicker arrows are customized.
Datepicker navigation arrow markup.
BEFORE:
<div class="ngb-dp-arrow"> <!-- left -->
<div class="ngb-dp-arrow right"> <!-- right -->
AFTER:
<div class="ngb-dp-arrow ngb-dp-arrow-prev"> <!-- prev -->
<div class="ngb-dp-arrow ngb-dp-arrow-next"> <!-- next -->
14.2.0
Bug Fixes
- accordion: don't fail when calling
toggle()
too early (#4506) (08585a3), closes #4505 - accordion: use a directive for
NgbAccordionBody
(#4507) (aedbab9), closes #4502
Features
- datepicker: add 'contentTemplate' to input datepicker (2bfc212), closes #4497
- datepicker: allow accessing i18n from the instance (0864688)
- dropdown: replace
NgbNavbar
usage by DOM call toclosest()
(#4471) (c524384), closes #4462 - modal: allow update options of opened modal (e945442), closes #4281 #4396 #4446
- typeahead: add
selectOnExact
option (4eb6cc7), closes #4371