@nebular/theme
Advanced tools
Changelog
2.0.0-rc.4 (2017-12-31) :christmas_tree:
This release features an update to angular 5+, rxjs 5.5+. Make sure to update these dependencies in your project.
<a name="2.0.0-rc.3"></a>
Changelog
2.0.0-rc.3 (2017-10-26)
Changelog
2.0.0 (2018-10-02)
Nebular 2.0 is stable now! After 10 release candidates and a year of work we finally made it with a great help of Nebular community and we cannot be more grateful for all of your contributions! :tada:
isAuthenticatedOrRefresh
to not refresh token with no value (#708) (b29418f)Invalid value for $grid-breakpoints..
(#736) (23e7804)angular.json
(#701) (3211c54)isAuthenticatedOrRefresh
method, update NbAuthJWTInterceptor
to refresh the token (#649) (c8e8964)This release has introduced a number of changes which may required some manual update steps, depending on your setup:
@nebular/bootstrap
package. To do that:npm i @nebular/bootstrap
styles.scss
@import '~@nebular/bootstrap/styles/globals';
// ...
@include nb-install() {
// ...
@include nb-bootstrap-global();
}
~@nebular/theme/styles/global/bootstrap/breakpoints
in your code, replace it with ~@nebular/theme/styles/global/breakpoints
~@nebular/theme/styles/global/bootstrap/*.scss
somewhere in your code, replace it with ~@nebular/bootstrap/styles/*.scss
npm i @angular/cdk
Here's a list of other possibly breaking changes that you may need to take into account:
menu: NbMenuComponent
and NbContextMenuDirective
now fire itemClick even if item with routerLink
was clicked.
menu: The NbMenuService
not reply the last click event. To update: if you use the knowledge that the last click event is replied you can wrap onItemClick
stream in the custom stream based on ReplaySubject
.
theme: angular2-toaster styles were removed from Nebular.
Instead, we suggest using our new NbToastrService
. To update: add NbToastrModule
into imports of your app.module
.
Inject NbToastrService
into the required component.
call NbToastrService.show(...)
to render toasts.
For more information check toastr documentation.
theme: All bootstrap override styles were moved from the @nebular/theme package to the new @nebular/bootstrap package. If you don't need bootstrap support you can simply no use this package. @nebular/theme package introduced a dependency of normalize.css. To update:
npm i @nebular/bootstrap
styles.scss
@import '~@nebular/bootstrap/styles/globals';
// ...
@include nb-install() {
// ...
@include nb-bootstrap-global();
}
theme: appendToLayoutTop
and clearLayoutTop
methods was removed from NbThemeService
. Instead of this methods, you have to use NbOverlayService
. It's the extension of @angular/cdk overlays, so, check documentation first of all. Basic usage of overlays may look like this:
constructor(protected overlay: NbOverlayService) {
}
const overlayRef = overlay.create();
const overlayComponentPortal = new ComponentPortal(MyOverlayComponent);
overlayRef.attach(overlayComponentPortal);
tabset: Possibly a breaking change since tabs won't be bold in hover state.
auth: According to RFC6749 section 4.3.2, the OAuth2 token request body with grant-type='password' must provide username
to the auth server and not email
.
auth: NbAuthJWTInterceptor
now always tries to refresh the token.
Urls for token sending can be filtered using a filter function:
{ provide: NB_AUTH_TOKEN_INTERCEPTOR_FILTER, useValue: (req) => filter(req)},
failWhenNoToken
has been removed from password strategy as it was still not released and becoming redundant<a name="2.0.0-rc.10"></a>