@nebular/security
Advanced tools
Changelog
9.0.0 (2021-12-01)
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.
@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.NbTriggerStrategyBase
's isNotOnHostOrContainer
, isOnHostOrContainer
, isOnHost
, isOnContainer
methods now expect Element
instead of Event
as the first parameter. Pass event.target as Element
instead of event
.NbSidebarComponent.toggleResponsive
method removed. Change method call to sidebar.responsive = !sidebar.responsive
.STATE_EXPANDED
, STATE_COLLAPSED
, STATE_COMPACTED
static properties removed. Use NbSidebarState
type values ('expanded'
, 'collapsed'
, 'compacted'
).RESPONSIVE_STATE_MOBILE
, RESPONSIVE_STATE_TABLET
, RESPONSIVE_STATE_PC
static properties removed. Use NbSidebarResponsiveState
type values ('mobile'
, 'tablet'
, 'pc'
).NbRouteTabsetComponent.tabs
property type changed from any
to NbRouteTab
.NbRouteTabsetComponent.changeTab
property type changed from EventEmitter<any>
to EventEmitter<NbRouteTab>
.tab
parameter type of the NbRouteTabsetComponent.selectTab
method changed from any
to NbRouteTab
.NbScrollableContainerDimentions
class renamed to NbScrollableContainerDimensions
. Use updated class name.NbOAuth2AuthStrategy.buildAuthHeader
return type changed from any
to HttpHeaders | undefined
. If the method is overridden in a derived class, update its return type as well.focusInputOnValueChange
property removed from NbAutocompleteDirective
class. Now autocomplete focuses input only when value is selected by option click or via keyboard.NbRangepickerComponent
's min
, max
properties are expecting Date
(or moment
if using moment adapter) type. filter
function parameter also corrected to Date
.NbDatepicker
now a has second generic D
to use for min
, max
, and filter
arguments. It should be set to Date
or moment
type.noop
(nbContextMenuTrigger="noop"
).13
dateTimeChange
output (#2816) (73a6b5a)routerLinkActiveOptions
per tab (#2907) (276d610)<a name="8.0.0"></a>
Changelog
8.0.0 (2021-06-27)
12
.tslib
version is 2.1.0
.NbTable
and NbTreeGridComponent
:
_viewRepeater
, _coalescedStyleScheduler
constructor parameters are now required._viewportRuler
, _stickyPositioningListener
) added to the constructor.NbChatMessageComponent
constructor now has a second parameter (NbCustomMessageService
).<a name="7.0.0"></a>
Changelog
7.0.0 (2021-01-18)
deps:
@nebular/fire
requires @angular/fire
6.1.0+ and firebase
8.0.0+.sidebar: Added change detector ref constructor parameter.
checkbox: NbCheckboxComponent.value
and NbCheckboxComponent.valueChange
properties removed. Use checked
and checkedChange
accordingly.
autocomplete: renderer
constructor parameter is now required.
toastr: NbToastrConfig.iconPack
property removed. You can set icon pack via icon
property:
const toastrConfig = {
// ...
icon: { icon: 'star', pack: 'eva' },
}
NbToastComponent.iconPack
and NbToastComponent.iconConfig
properties removed.
Use icon
property instead.
tooltip, popover: Falsy adjustment values no longer become converted to NbAdjustment.NOOP
, pass NbAdjustment.NOOP
instead.
theme: The document parameter in the NbViewportRulerAdapter and NbScrollDispatcherAdapter constructors is now required.
theme: Empty string won't be converted to basic
status anymore. If you used to set status
properties to ''
change it to 'basic'
.
theme: NbPositionedContainer
renamed to NbPositionedContainerComponent
.
auth: ~@nebular/auth/styles/all
file removed. Replace ~@nebular/auth/styles/all
imports with ~@nebular/auth/styles/globals
.
theme::
NbComponentStatus
type replaced with NbComponentOrCustomStatus
in following properties: NbActionComponent.badgeStatus
, NbBadge.status
, NbBadgeComponent.status
, NbButtonComponent.status
, NbAlertComponent.status
, NbCardComponent.status
, NbChatFormComponent.status
, NbChatComponent.status
, NbCheckboxComponent.status
, NbFormFieldControl.status$
, NbFormControlState.status
, NbInputDirective.status
, NbInputDirective.status%
, NbSelectComponent.status
, NbSelectComponent.status$
, NbIconConfig.status
, NbIconComponent.status
, NbProgressBarComponent.status
, NbRadioComponent.status
, NbRadioGroupComponent.status
, NbSpinnerDirective.spinnerStatus
, NbSpinnerComponent.status
, NbTabComponent.badgeStatus
, NbToastrConfig.status
, NbToggleComponent.status
, NbTooltipDirective.status
, NbTooltipComponent.context.status
, NbUserComponent.badgeStatus
.
If you extended listed components replace NbComponentStatus
in the property type with NbComponentOrCustomStatus
.NbBadgeComponent
, NbButtonComponent
, NbAlertComponent
, NbCardComponent
, NbChatComponent
, NbCheckboxComponent
, NbInputDirective
, NbSelectComponent
, NbIconComponent
, NbProgressBarComponent
, NbRadioComponent
, NbSpinnerComponent
, NbToastComponent
, NbToggleComponent
, NbTooltipComponent
constructors now require NbStatusService
as a constructor parameter. If you extended listed components, inject NbStatusService
and pass it to the base class.<a name="6.2.1"></a>