Releases: akveo/nebular
Releases · akveo/nebular
V9.1.0-rc.7
V9.1.0-rc.2
v9.0.0
BREAKING CHANGES
Theming
CSS custom properties mode for theming is enabled by default since Angular dropped support for Internet Explorer and also removed the ability to use node-sass
to compile sass. Read details and how to opt-out here.
This change doesn't affect users who use prebuilt Nebular themes. For prebult themes users we also ship prebuilt themes with custom properties. See usage guide here.
API changes
@nebular/theme/styles/_components.scss
file removed. Replace imports from this files with:@import '@nebular/theme/styles/theming'; @import '@nebular/theme/styles/themes';
layout-window-mode-max-width
,tabset-tab-text-hide-breakpoint
,route-tabset-tab-text-hide-breakpoint
theme properties removed. Migration guide.- overlay trigger:
NbTriggerStrategyBase
'sisNotOnHostOrContainer
,isOnHostOrContainer
,isOnHost
,isOnContainer
methods now expectElement
instead ofEvent
as the first parameter. Passevent.target as Element
instead ofevent
. - sidebar:
NbSidebarComponent.toggleResponsive
method removed. Change method call tosidebar.responsive = !sidebar.responsive
.STATE_EXPANDED
,STATE_COLLAPSED
,STATE_COMPACTED
static properties removed. UseNbSidebarState
type values ('expanded'
,'collapsed'
,'compacted'
).RESPONSIVE_STATE_MOBILE
,RESPONSIVE_STATE_TABLET
,RESPONSIVE_STATE_PC
static properties removed. UseNbSidebarResponsiveState
type values ('mobile'
,'tablet'
,'pc'
).
- router tabset:
NbRouteTabsetComponent.tabs
property type changed fromany
toNbRouteTab
.NbRouteTabsetComponent.changeTab
property type changed fromEventEmitter<any>
toEventEmitter<NbRouteTab>
.tab
parameter type of theNbRouteTabsetComponent.selectTab
method changed fromany
toNbRouteTab
.
- infinite list:
NbScrollableContainerDimentions
class renamed toNbScrollableContainerDimensions
. Use updated class name. - auth:
NbOAuth2AuthStrategy.buildAuthHeader
return type changed fromany
toHttpHeaders | undefined
. If the method is overridden in a derived class, update its return type as well. - autocomplete:
focusInputOnValueChange
property removed fromNbAutocompleteDirective
class. Now autocomplete focuses input only when value is selected by option click or via keyboard. - range-picker:
NbRangepickerComponent
'smin
,max
properties are expectingDate
(ormoment
if using moment adapter) type.filter
function parameter also corrected toDate
.NbDatepicker
now a has second genericD
to use formin
,max
, andfilter
arguments. It should be set toDate
ormoment
type.
- context menu: Context menu won't close on menu item click if trigger strategy is set to
noop
(nbContextMenuTrigger="noop"
).
Other
- Minimal required Angular version is
13
Features
- auth: ability to add additional request headers (#2825) (3959848)
- chat: ability to provide template as chat title (#2920) (9ccec64)
- date-time picker: ability to remove now button (#2848) (a2c9d10)
- date-time picker: add
dateTimeChange
output (#2816) (73a6b5a) - datepicker: allow to change adjustment (#2806) (a3b5ae5)
- icon: add support for ligature icons (#2951) (b89339d)
- infinite list: threshold emissions throttling (#2948) (718dd0a)
- layout: add nbLtr and nbRtl directives (#2927) (35a7ad1)
- layout: added error message if layout not provided (#2778) (7c12874)
- router tabset: ability to configure
routerLinkActiveOptions
per tab (#2907) (276d610) - select, autocomplete: ability to override options width (#2874) (e30e00c)
- stepper: add step change event (#2779) (1b871f4)
- tabset: ability to provide template as tab label (#2829) (d56a492)
- theme: enable CSS custom properties mode by default (#2965) (3a88e9b)
- theme: add prebuilt themes with custom properties (#2977) (ff0b034)
- toastr: add onclick, onclose events (#2821) (3795905)
- tooltip, popover: add disabled property (#2841) (b7fe861)
- window: ability to hide close button (#2952) (ad64fe2)
- window: add component instance property to window ref (#2858) (fcf1a08)
- window: template as window title (#2915) (8eaf460)
- window: window may return result (#2869) (95247a4)
- update to Angular 13 (#2944) (ed8cd04)
Bug Fixes
- autocomplete: handle null and undefined values (#2814) (7753027)
- autocomplete: input focus behavior on value change (#2852) (a86da11)
- button: prevent expression changed error on icon button (#2846) (baee608)
- button group: prevent unpress in single mode button group (#2860) (4b8a430)
- chat: file drop in firefox (#2776) (07db7f5)
- checkbox: don't style user icons in checkbox (#2857) (a94a867)
- context menu: don't close on item click with noop strategy (#2875) (a76fccf)
- context menu: prevent close on expand icon click (#2923) (2b7f60c)
- datapicker: input update issue with reactive forms (#2945) (07527f8)
- flip card: prevent extra whitespace (#2854) (e8fa95b)
- focus trigger strategy: detect click out via activeElement (#2865) (1f8e0cb)
- focus trigger strategy clickout: consider click target (#2885) (a5f695a)
- moment date service: use locale format by default (#2856) (491c696)
- range-picker: correct type for min, max, filter properties (#2877) (73cdec0)
- route tabset: support icon config object (#2810) (ff00a16)
- scroll service: listen position requests right after layout created (#2949) (74d64cf)
- select: add ellipsis on selection view (#2809) (9b525f4)
- select: correctly handle reset value when multiple is on ([#...